Glaze: Protecting Artists from Style Mimicry by Text-to-Image Models

Shawn Shan, Jenna Cryan, Emily Wenger, Haitao Zheng, Rana Hanocka, Ben Y. Zhao

Introduction

The rapid proliferation of generative AI models, such as Stable Diffusion and Midjourney, has introduced a significant threat to the creative community: style mimicry. By fine-tuning these models on a small set of an artist's original works, "mimics" can generate new images that replicate an artist's unique aesthetic without their consent. This devalues the artist's labor and threatens their livelihood by allowing the mass production of art that looks like their own.

Examples of diverse artistic styles generated by AI, highlighting the breadth of mimicry capabilities.

The Problem of Style Mimicry

Unlike traditional image classification, generative models are designed to reconstruct high-fidelity features like texture, color, and composition. Existing "cloaking" techniques designed for facial recognition often fail here because they target identity classifiers rather than the generative feature space. Mimics only require approximately 20 images to effectively "steal" a style, making the barrier to entry for unauthorized replication dangerously low.

The Glaze System

Glaze is a defensive system that allows artists to "cloak" their work with subtle, human-imperceptible perturbations. These perturbations are designed to mislead the generative model's feature extractor during the fine-tuning process.

The standard image generation pipeline, showing how feature extractors and generators interact during training and inference.

The system operates through three primary steps:

  1. Style Transfer as a Guide: Glaze uses a pre-trained style transfer model to generate a "target" version of the artwork in a radically different style (e.g., transforming a sketch into an oil painting).
  2. Feature Space Optimization: It computes a minimal perturbation ($\delta$) such that the generative model’s feature extractor perceives the cloaked image as the target style, while the human eye still sees the original style.
  3. Perceptual Constraints: The optimization is bounded by Learned Perceptual Image Patch Similarity (LPIPS) to ensure the cloak remains visually unobtrusive to human viewers.

When a model is trained on these cloaked images, it learns to associate the artist's name with the incorrect "target" style, resulting in incoherent or mismatched outputs during generation.

Experimental Evaluation

The researchers evaluated Glaze using both contemporary and historical datasets:

  • Contemporary Artists: Four professional artists provided original, private pieces to test real-world efficacy.
  • Historical Data: Over 42,000 pieces from 195 artists in the WikiArt dataset were used to simulate attacks on established styles.
  • Metrics: Success was measured using CLIP-based genre shift (detecting if the generated art's genre changed) and direct qualitative feedback from over 1,000 professional artists.

Key Results

Glaze demonstrated high efficacy and robustness across multiple testing scenarios:

  • High Success Rate: In user studies, 93% of artists rated Glaze as successful. Quantitatively, it achieved a >96% CLIP-based genre shift against Stable Diffusion with minimal perturbations ($p=0.05$).
  • Robustness: The protection remained effective (>85%) against common image processing "cleaning" attempts, such as Gaussian noise and JPEG compression.
  • Real-World Impact: Tests against commercial platforms like scenario.gg confirmed that Glaze successfully disrupts professional-grade mimicry services.

Discussion and Limitations

A key insight from the study is that generative models are "continuous"; Glaze exploits this by forcing the model into "incoherent blends" that ruin aesthetic value. Interestingly, artists expressed a high tolerance for minor artifacts if it meant protecting their intellectual property.

However, Glaze is not a panacea. It is a "forward-looking" defense and cannot protect art already used in training sets. Furthermore, as AI architectures evolve, an ongoing "arms race" between cloaking techniques and adaptive countermeasures is likely. Ultimately, the authors argue that technical solutions must be paired with legal and regulatory frameworks to ensure long-term artist protection.

Summary updated

BibTeX
@inproceedings{shan2023glaze,
  author = {Shawn Shan and Jenna Cryan and Emily Wenger and Haitao Zheng and Rana Hanocka and Ben Y. Zhao},
  title = {{Glaze: Protecting Artists from Style Mimicry by Text-to-Image Models}},
  booktitle = {USENIX Security},
  year = {2023},
  url = {https://openreview.net/forum?id=kF6E96vJaj},
}
Figure