Source-linked AI summary

Raising the Cost of Malicious AI-Powered Image Editing

Hadi Salman, Alaa Khaddaj, Guillaume Leclerc, Andrew Ilyas, Aleksander Madry

arXiv:2302.06588v1cs.LG

TL;DR

Malicious image editing with large diffusion models is easy and difficult to eliminate, motivating methods that raise its cost. The paper immunizes images with imperceptible adversarial perturbations, using encoder and diffusion attacks to disrupt targeted models and prevent realistic edits. The authors demonstrate efficacy and identify transformation robustness and future-model compatibility as practical boundaries.

  • Problem

    Large diffusion models enable realistic malicious image edits without specialized skills or expensive equipment, motivating the question of how to raise their cost.

  • Method

    The paper immunizes images by adding imperceptible adversarial perturbations that disrupt targeted diffusion models, using encoder and diffusion attacks.

  • Results

    The authors demonstrate that crafted perturbations can prevent realistic image editing and that encoder and diffusion immunization methods produce edits different from those for non-immunized images, unlike random-noise immunization.

  • Takeaways & Limitations

    Immunized images can continue to be shared while receiving a layer of protection against undesirable manipulation, with practical effectiveness requiring complementary technical and policy components.

  • Takeaways & Limitations

    Perturbations may lose effectiveness after cropping, filtering, rotation, or noise purification, and are not guaranteed to work against future diffusion-model versions.

Abstract

from arXiv · show

We present an approach to mitigating the risks of malicious image editing posed by large diffusion models. The key idea is to immunize images so as to make them resistant to manipulation by these models. This immunization relies on injection of imperceptible adversarial perturbations designed to disrupt the operation of the targeted diffusion models, forcing them to generate unrealistic images. We provide two methods for crafting such perturbations, and then demonstrate their efficacy. Finally, we discuss a policy component necessary to make our approach fully effective and practical -- one that involves the organizations developing diffusion models, rather than individual users, to implement (and support) the immunization process.

1 Introduction

Large diffusion models make realistic image editing easy, raising concerns about malicious manipulation. The paper proposes immunizing images with imperceptible perturbations that disrupt diffusion-based edits.

  • Large diffusion models produce high-quality photorealistic images and enable accessible image synthesis and editing.
  • Because realistic malicious edits can now be created without specialized skills or expensive equipment, the paper asks how to raise their cost.
  • Image immunization adds a carefully crafted imperceptible perturbation that makes a specific image resistant to AI-powered manipulation.
  • The perturbation disrupts diffusion-model operation, forcing edits to become unrealistic while allowing people to share immunized images normally.
  • The authors demonstrate perturbation-crafting methods that prevent realistic image editing and discuss complementary technical and policy components for practical deployment.

2 Preliminaries

Diffusion models generate and edit images through iterative denoising, while latent diffusion models perform this process in a compressed latent space. Adversarial examples provide the framework for adding imperceptible perturbations that manipulate model behavior.

  • Diffusion Models: Diffusion models incrementally add Gaussian noise to images, then learn a denoising network to predict the added noise at each timestep.
  • Latent Diffusion Models: Latent diffusion models encode images into latent representations and perform the diffusion and denoising process in latent space.
  • Latent Diffusion Models: After denoising, the generated latent representation is decoded into a new image.
  • Prompt-guided sampling using an LDM: Prompt-guided sampling combines the latent representation produced during diffusion with an embedding of the user-defined textual prompt.
  • LDMs capabilities: Latent diffusion models support text-guided image generation, image variations, and localized image editing.
  • Adversarial Attacks: An adversarial example is an imperceptible perturbation constrained to remain close to the original image while manipulating a model’s behavior.

3 Adversarially Attacking Latent Diffusion Models

The paper immunizes images with imperceptible adversarial perturbations that disrupt latent diffusion models through either the encoder or the full diffusion process. The more complex diffusion attack also targets text conditioning, aiming to make generated edits resemble a specified target image.

  • Approach: Image immunization adds adversarial perturbations that make images harder to manipulate using latent diffusion models.The approach uses techniques from adversarial attacks to disrupt model operation while keeping the perturbations imperceptible.
  • Encoder attack: The encoder attack forces an LDM encoder to map an input image toward a target latent representation, causing irrelevant or unrealistic generated images.The perturbation is found with projected gradient descent and can target the representation of a gray image.
  • Encoder attack: The encoder attack can preserve textual-prompt effects, such as generating wedding suits from an immunized image of two men.The resulting image may contain visual artifacts while still reflecting the prompt.
  • Diffusion attack: The diffusion attack perturbs the input so the full LDM generates a specified target image, such as random noise or a gray image.It targets the complete diffusion process rather than only the encoder.
  • Diffusion attack: The diffusion attack targets text-prompt conditioning as well as image influence, aiming to prevent prompt-specific content from appearing in the edited image.The paper illustrates this with an edited image in which wedding suits do not appear.
  • Diffusion attack: The diffusion attack is harder to execute because full-process PGD requires backpropagation through repeated denoising steps and causes memory issues.The authors address this challenge by backpropagating through only a few diffusion steps.

4 Results

On Stable Diffusion v1.5, immunization disrupted realistic image variations and edits, with diffusion attacks producing especially unrealistic edits. Quantitative evaluations further showed that immunized-image edits diverged from non-immunized edits and reduced image-prompt similarity.

  • Qualitative Results: Stable Diffusion v1.5 failed to generate realistic prompted variations from images immunized with the encoder attack.The white-cow example shows that immunization disrupts a realistic variation while preserving the evaluation setup based on a source image and text prompt.
  • Qualitative Results: Both encoder and diffusion attacks prevented realistic text-guided image edits, with the diffusion attack producing more unrealistic images.The editing task uses an image, a mask, and a textual prompt; immunization made the resulting edits unrealistic, and the diffusion attack further reduced their quality.
  • Quantitative Results: Edits from immunized images were substantially different from edits from non-immunized images, whereas uniform random noise produced edits almost identical to the non-immunized baseline.Table 6 reports multiple similarity metrics over 60 images; lower similarity is better for this objective, and both proposed attacks outperformed random-noise immunization.
  • Quantitative Results: Diffusion-attack immunization decreased cosine similarity between generated images and their guiding text prompts.Figure 7 compares immunized and non-immunized generations, including a small-random-noise baseline, with error bars showing the interquartile range over 60 runs.

5 A Techno-Policy Approach to Mitigation of AI-Powered Editing

The proposed immunization has important robustness and future-model limitations. The paper therefore combines technical remedies with policy-supported collaboration among model developers, users, and platforms.

  • Limitations: Immunizing perturbations may become ineffective after cropping, filtering, rotation, or noise purification.The paper identifies robust adversarial perturbations as a possible technical remedy for withstanding these image modifications and noise manipulations.
  • Limitations: Perturbations effective against current diffusion models are not guaranteed to transfer perfectly to future model versions.The paper notes that adversarial transferability may help but cannot provide perfect transfer.
  • Policy Remedies: The proposed policy approach asks model developers, end-users, and platforms to collaborate through APIs for immunizing images against manipulation.These APIs should provide forward compatibility, potentially by planting current immunizing perturbations as backdoors when future models are trained.
  • Policy Remedies: The approach exploits incentive alignment because the parties creating the perturbations or backdoors are also the developers of the models being attacked.The paper contrasts this arrangement with typical adversarial-perturbation and backdoor settings and links it to forward-compatibility challenges.

6 Related Work

Related work addresses image manipulation through attacks on models, fake-image detection, and protection against unauthorized data exploitation. These lines of research target different stages of image misuse and model use.

  • Data Misuse After Training: Prior work studied data misuse after model training, including defenses that attack GANs themselves.This work arose alongside concerns about generating fake images from personal data.
  • Deepfake Detection: Deepfake detection methods identify manipulated images using facial-expression consistency, image artifacts, or trained recognition models.The passage describes detection as an alternative line of work aimed at identifying fakes rather than preventing their generation.
  • Data Misuse During Model Training: Other research addresses data misuse during model training through unlearnable examples that add imperceptible backdoor signals to user data.These methods seek protection against unauthorized exploitation of internet-available data during training.

7 Conclusion

The paper presents imperceptible adversarial perturbations that disrupt targeted diffusion models and prevent realistic modifications of immunized images. It also identifies model-developer cooperation as necessary for practical deployment.

  • Imperceptible adversarial perturbations disrupt targeted diffusion models, preventing realistic modifications of immunized images.
  • The approach raises the difficulty of using diffusion models for malicious image manipulation.
  • Effective deployment requires organizations developing diffusion models to provide APIs supporting image immunization.

A.1 Details of the diffusion model we used

This section details Stable Diffusion v1.5, the diffusion-model background, and two adversarial attacks used to craft imperceptible image immunizations. The attacks iteratively update bounded perturbations to disrupt either image embeddings or generated outputs.

  • Diffusion model setup: The experiments use the open-source Stable Diffusion model hosted on Hugging Face and fixed hyperparameters for generation.
  • Adversarial attacks: Both attacks use perturbations large enough to disturb the image but small enough to remain imperceptible to human observers.
  • Adversarial attacks: The encoder attack updates an image perturbation to reduce similarity between the immunized image and a target image in encoder-embedding space.
  • Adversarial attacks: The diffusion attack updates a bounded perturbation to increase mismatch between the target image and the diffusion model’s generated output.
  • Diffusion background: Diffusion models add Gaussian noise over T forward steps and iteratively denoise from x_T to reconstruct x_0 during the backward process.
  • Diffusion background: Latent diffusion models perform the diffusion process in latent space, enabling more efficient training and faster inference while maintaining high-quality samples.

C.1 Additional quantitative results

Additional quantitative evaluation uses several image-similarity metrics and reports that immunization reduces similarity between outputs generated with and without immunization. The diffusion attack produces a further reduction beyond the encoder attack.

  • Additional quantitative results: Five additional metrics—SR-SIM, GMSD, VSI, DSS, and HaarPSI—evaluate similarity between images generated with and without immunization.The metrics indicate whether higher or lower values correspond to higher similarity.
  • Additional quantitative results: Applying the encoder attack decreases similarity between generated images with and without immunization.
  • Additional quantitative results: Applying the diffusion attack further decreases similarity beyond the encoder attack.
  • Additional quantitative results: The additional metrics are reported in Table 10, with errors representing standard deviation over 60 images.
Loading 2302.06588v1…