TL;DR
Fine-tuning text-to-image diffusion models to add new concepts or erase unwanted ones causes severe, hidden collateral damage to completely unrelated concepts. The authors introduce DriftScope, a data-free diagnostic tool that surfaces this semantic erosion by optimizing a soft prompt to maximize cross-attention divergence between model checkpoints, returning a ranked blacklist of corrupted tokens.
What Problem Does This Paper Address?
When developers adapt pre-trained text-to-image models—either to inject a custom style/object (concept customization via DreamBooth) or to remove unsafe content (concept unlearning)—they typically evaluate success based only on the target task. Did the model learn the new dog? Did it stop generating nudity?
However, modifying model weights introduces a major side effect: open-world forgetting. The authors reveal that adaptation systematically degrades semantically unrelated concepts. Crucially, standard aggregate evaluation metrics like Fréchet Inception Distance (FID) and Kernel Inception Distance (KID) are completely blind to this localized damage. They remain flat and "healthy" even when specific, unrelated image classes are quietly ruined, only spiking after the model has reached near-total collapse.
Methods
To expose and localize this hidden drift, the authors developed a two-part approach:
- Distributional Analysis: They leveraged Sparse Autoencoders (SAEs) trained on DINOv2 features to track concept-level shifts in the generative distribution, alongside zero-shot classification via the Gaussian Diffusion Classifier (GDC) to measure actual capability loss.
- DriftScope Diagnostic Tool: To audit models without needing real reference data or access to internal weight matrices, the authors created DriftScope.
As shown in the pipeline above, DriftScope parameterizes a prompt template (e.g., "A photo of a [MASK]") using a masked language model (BERT) and prepends learnable continuous soft prompt vectors. Using Gumbel-Softmax relaxation, it optimizes these tokens to maximize the $L_1$ distance between the cross-attention maps produced by the base model ($M_b$) and the adapted model ($M_m$) across identical noise seeds. Tokens whose cross-attention maps diverge the most are flagged as the most heavily impacted concepts.
Datasets
The paper utilizes several standard datasets and benchmarks for evaluation:
- DiffusionDB: 10,000 prompts sampled to generate paired images for the SAE distribution analysis.
- Zero-Shot Classification Benchmarks: CIFAR-10, Oxford Flowers 102, and Food-101 were used via GDC to evaluate semantic degradation.
- DreamBooth Dataset: The original, publicly available dataset of dog images for customization fine-tuning.
- AdvUnlearn Repository: Used to source pre-trained concept unlearning checkpoints.
Key Insights and Ideas
- The Three Regimes of Damage: The authors categorize adaptation damage into three distinct behaviors:
- Catastrophic & Detectable: Widespread model degradation where FID/KID spike significantly (e.g., EraseDiff).
- Insidious: Aggregate metrics stay perfectly flat, yet specific classes suffer massive zero-shot accuracy drops (e.g., SPM unlearning).
- Subtle: Mean accuracy changes hover near zero, but a massive standard deviation across classes reveals that a few specific concepts were severely compromised while others remained untouched (e.g., DreamBooth).
- Target-Dependent Collateral Damage: The drift is not random noise; it is structurally tied to the concept being modified. For instance, unlearning the concept "garbage" unexpectedly erodes the model's ability to generate "truck" and "bus", while unlearning "tench" (a fish) corrupts "book" and "calendar".
- Cross-Attention as a Drift Signal: Cross-attention maps in the early denoising steps govern high-level semantic structure. Maximizing their divergence provides a highly sensitive, token-level localization of semantic drift.
Key Results
The authors proved that standard metrics hide severe degradation, which DriftScope successfully uncovers:
- As detailed in Table 1, the SPM unlearning method achieves a near-perfect KID delta of 0.00002 (indicating no aggregate change), yet suffers a worst-case zero-shot accuracy drop of 18.9 points on CIFAR-10.
- For DreamBooth on Stable Diffusion 1.5, the mean accuracy drop on Oxford Flowers was a modest -2.88 points, but it exhibited a massive standard deviation of 12.21, proving that specific, non-target categories were severely damaged.
- When auditing nudity unlearning, DriftScope successfully flagged body, goddess, and woman as the highest-drift tokens, capturing the exact human-form concepts collaterally damaged during erasure.
Limitations and Future Work
Because DriftScope relies on an optimization-based search across multiple random initializations and noise seeds, it is computationally intensive compared to static analytic metrics. Additionally, the method assumes that both checkpoints still retain a coherent generative structure; if an adaptation method causes total model collapse (such as Scissorhands), the cross-attention maps become globally uninformative, causing DriftScope's token-level attribution to break down.
Future work could explore expanding DriftScope to audit downstream text-to-video models or developing more efficient, closed-form alternatives to the prompt optimization step.
Summary updated