Mist: Towards Improved Adversarial Examples for Diffusion Models

Chumeng Liang, Xiaoyu WuarXiv 2023

Abstract

Diffusion Models (DMs) have empowered great success in artificial-intelligence-generated content, especially in artwork creation, yet raising new concerns in intellectual properties and copyright. For example, infringers can make profits by imitating non-authorized human-created paintings with DMs. Recent researches suggest that various adversarial examples for diffusion models can be effective tools against these copyright infringements. However, current adversarial examples show weakness in transferability over different painting-imitating methods and robustness under straightforward adversarial defense, for example, noise purification. We surprisingly find that the transferability of adversarial examples can be significantly enhanced by exploiting a fused and modified adversarial loss term under consistent parameters. In this work, we comprehensively evaluate the cross-method transferability of adversarial examples. The experimental observation shows that our method generates more transferable adversarial examples with even stronger robustness against the simple adversarial defense.

Introduction

As Diffusion Models (DMs) like Stable Diffusion have become mainstream, they have enabled a new form of copyright infringement known as "style mimicry." Using techniques like Dreambooth or Textual Inversion, anyone can take a small set of an artist's works and train an AI to generate new images in that exact style, often without the artist's consent.

While researchers have developed adversarial examples—subtle, invisible perturbations added to images to "break" the AI's learning process—existing tools have historically suffered from two major flaws. First is a lack of transferability, where an attack designed to stop image-to-image generation might fail to stop Textual Inversion. Second is fragility, where simple preprocessing, such as cropping a few pixels or resizing the image, often destroys the adversarial noise, leaving the artist's work unprotected.

The Mist Framework

The authors introduce Mist, a new adversarial framework designed to make artistic work "unlearnable" for AI diffusion models. Mist improves upon previous methods through two primary technical innovations: a joint loss function and optimized target selection.

Joint Loss Function

Mist combines two distinct types of adversarial objectives to ensure broad protection across different AI imitation methods:

  • Semantic Loss: This maximizes the model's training loss, essentially trying to push the image's representation out of the AI's "understanding" and into a chaotic state. This is particularly effective against Textual Inversion, where model weights are frozen.
  • Textural Loss: This minimizes the distance between the perturbed image and a specific "target image" within the latent space of the model's encoder. This performs better against Dreambooth, where weights are fine-tuned.

By using a weighted "Fused Mode," Mist provides a balanced defense that works across multiple AI tools simultaneously.

Visual comparison of AI-generated outputs under various attack configurations. The Fused Mode provides the most comprehensive disruption across different model components.

Optimized Target Selection

The researchers discovered that the choice of the "target image" used in the textural loss is critical. They found that images with high contrast, sharp edges (Canny edges), and repetitive patterns—specifically a densely arranged "MIST" logo—create the most robust and effective protection. This acts like a "sticky" digital watermark that is deeply embedded in the latent representation, allowing it to survive transformations that would destroy standard noise.

Experimental Results

The study primarily utilized the WikiArt dataset (specifically Van Gogh paintings) and Monet paintings to simulate real-world infringement scenarios. The method was tested against popular DM-based imitation tools, including Dreambooth, Textual Inversion, Scenario.gg, and NovelAI.

Robustness and Transferability

In tests involving cropping and resizing, Mist was the only method that remained effective. Other methods, including the well-known "Glaze," saw their protection significantly degraded under these transformations. Visual results demonstrate that while unprotected images allow the AI to generate clean, stylized art, "Misted" images cause the AI to produce garbled, chaotic, or completely unrelated outputs.

Evaluation of attack robustness. The bottom row demonstrates that Mist's protection persists even when the training samples undergo preprocessing like resizing or cropping.

Quantitative Performance

Using metrics like FID (Frechet Inception Distance)—where a higher score indicates the AI failed to reproduce the style—Mist consistently outperformed baseline attacks. For example, under Textual Inversion with preprocessing, Mist achieved an FID of 350.87 compared to the "No Attack" baseline of 280.63.

Conclusion and Future Work

Mist represents a significant step forward in protecting artists' intellectual property. However, the authors note that the semantic and textural losses can sometimes partially interfere with each other, meaning the "fused" weight parameter requires careful tuning. Future research will focus on understanding the specific frequency spectrums that make target images most effective and further optimizing the framework for speed and even stronger robustness.

The project is open-source and available for artists to use at github.com/mist-project/mist.

Summary updated

BibTeX
@misc{liang2023mist,
  author = {Chumeng Liang and Xiaoyu Wu},
  title = {{Mist: Towards Improved Adversarial Examples for Diffusion Models}},
  year = {2023},
  eprint = {2305.12683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12683},
}
Figure