Model Integrity when Unlearning with T2I Diffusion Models

Andrea Schioppa, Emiel Hoogeboom, Jonathan HeekarXiv 2024 · DOI

Text-to-image (T2I) diffusion models are trained on massive internet datasets, often inadvertently learning copyrighted characters, private individuals, or harmful content. Machine Unlearning (MU) aims to "erase" these specific concepts from a pre-trained model's weights without the prohibitive cost of retraining from scratch. However, current unlearning methods are often "blunt instruments." Erasing one concept (e.g., Van Gogh’s style) often causes collateral damage to unrelated concepts (e.g., Vermeer’s style), a phenomenon known as a loss of model integrity.

Measuring Model Integrity

The authors argue that standard evaluation metrics like FID (image quality) and CLIPScore (text-alignment) are too coarse to detect subtle degradations in model behavior. A model can maintain a good FID score while its integrity is compromised—for instance, if it begins generating unrelated styles in grayscale.

To address this, the paper introduces the Integrity Metric ($\mathcal{I}$). This metric directly compares images generated by the original model and the unlearned model using identical prompts and random seeds. It utilizes LPIPS (Learned Perceptual Image Patch Similarity) to quantify how much the "retained" parts of the model have changed. Lower values of $\mathcal{I}$ indicate better preservation of the model's original behavior.

Qualitative comparison of unlearning methods on the "Artist" task (Van Gogh). Proposed methods Saddle and OVW maintain high integrity on the retain set (Vermeer) compared to baselines.

Proposed Methods: Saddle and OVW

The researchers propose two new algorithms designed to maximize integrity:

  1. Saddle (Unsupervised): This algorithm performs a "tug-of-war" optimization. It uses gradient ascent to increase the loss on the "forget set" (making those images harder to generate) while simultaneously minimizing an Integrity Loss on the "retain set" to keep those outputs consistent with the original model.
  2. OVW (Overwrite - Supervised): This method is used when a specific target for the forgotten concept is available (e.g., replacing a celebrity's face with a generic gray background). To prevent this "overwriting" from bleeding into related concepts, OVW introduces a "help set"—a small collection of prompts related to the forget set that the model is explicitly instructed not to change.

Experimental Results

The methods were evaluated using a 2-billion parameter UViT model on three tasks: removing a specific Celebrity, removing an Artist (Van Gogh), and removing a broad category (Animal - cats).

Quantitative results across different unlearning tasks and methods. Proposed methods (Saddle and OVW) consistently achieve lower Integrity Metric (I) scores and lower probability of generating forgotten concepts (p_Un).

Key findings include:

  • Superior Integrity: On the Van Gogh task, the proposed OVW method achieved an Integrity Metric ($\mathcal{I}$) of 0.08, significantly outperforming baselines like Selective Amnesia (0.67) and EraseDiff (0.21).
  • Effective Forgetting: Despite the focus on integrity, the methods remained highly effective. For Celebrity and Artist tasks, the probability of generating the forbidden concept ($p_{\text{Un}}$) dropped to near zero or very low single digits.
  • Data-Limited Success: The Integrity Loss improved FID scores by up to 3.9 points when the original training data was unavailable, forcing the use of synthetic "retain" images.

Limitations

While highly effective for specific styles or individuals, unlearning massive, pervasive categories like "cats" remains challenging. While the proposed methods outperformed baselines, achieving a perfect balance between total erasure and total integrity for broad concepts remains an open problem. Additionally, the study focused on the image decoder; future work may explore the impact of unlearning on the text encoder.

Summary updated

BibTeX
@misc{schioppa2024model,
  author = {Andrea Schioppa and Emiel Hoogeboom and Jonathan Heek},
  title = {{Model Integrity when Unlearning with T2I Diffusion Models}},
  year = {2024},
  eprint = {2411.02068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.02068},
}
Figure