TL;DR
When you ask a text-to-image model to "forget" an undesirable concept like nudity or a copyrighted art style, standard methods usually push that concept into an empty, undefined void—often wrecking the rest of the image's composition in the process. PAIR (PAIRed Erasing) reframes unlearning from blind deletion to semantic realignment: instead of telling a model what not to draw, it uses synthetic "unsafe–safe" image pairs to explicitly show it what to draw instead (e.g., putting clothes on a figure while keeping their exact pose and background). By combining multimodal visual guidance with a mathematically targeted adapter initialization, PAIR achieves surgical concept removal while touching just 0.05% of the model's weights.
What Problem Does This Paper Address?
Modern diffusion models learn from massive, largely unfiltered web scrapes, inevitably absorbing concepts we don't want them to generate—from NSFW content to living artists' styles. Retraining billion-parameter models from scratch on cleaned data is prohibitively expensive, which has sparked intense interest in concept erasure (machine unlearning for vision models).
The prevailing paradigm, popularized by Erased Stable Diffusion (ESD), fine-tunes the model to push the target concept's noise predictions toward a generic "null" space (an empty text prompt). Think of this like trying to edit a word out of a sentence by replacing it with static: because concepts in neural networks are deeply entangled, mapping "nudity" to nothingness accidentally damages neighboring concepts like "human anatomy," distorting poses and scene layouts. Furthermore, most methods rely on full fine-tuning, updating nearly 100% of the U-Net's parameters—an expensive hammer when what we really need is a scalpel.
Methods
PAIR replaces heavy-handed negation with three tightly integrated components:
- Synthetic Unsafe–Safe Pairing: Since perfectly aligned counterfactual images don't exist in the wild, the authors build a synthetic pipeline. They generate images containing the target concept (e.g., nudity or Van Gogh's style), verify them with task-specific classifiers, and pass them through instruction-based image editors (RealEdit or ICEdit) to neutralize only the target attribute—clothing a nude subject or converting a Van Gogh into a generic painting while preserving structural layout.
- Paired Semantic Realignment (PSR) Loss: Rather than steering the model toward an empty prompt like ESD, PSR steers the unsafe prediction toward its paired safe anchor. Crucially, this is multimodal: visual embeddings from the paired images are injected directly into the U-Net's cross-attention layers via a pretrained IP-Adapter, followed by a text-only fine-tuning phase so the erasure generalizes to text prompts at inference time.
- FiDoRA (Fisher-Weighted Initialization for DoRA): Standard DoRA decomposes weight updates into magnitude (how strongly a feature fires) and direction (what semantic concept it points to). PAIR computes directional Fisher Information on the unsafe–safe pairs to find weight directions highly sensitive to the unsafe concept but insensitive to the safe counterpart. Using weighted Singular Value Decomposition (SVD), FiDoRA initializes tiny low-rank adapters right along this sensitive subspace, letting the model cleanly "rotate" away from the target concept from step one.
Datasets
- Training: Synthetic paired datasets (e.g., 1,000 filtered unsafe–safe pairs) generated directly from Stable Diffusion using concept-specific prompts and edited via RealEdit (nudity) or ICEdit (styles/objects).
- Evaluation: I2P (Inappropriate Image Prompts) for target nudity prompts; MMA, Ring-A-Bell (RAB), and UnlearnDiffAtk (UD) for adversarial prompt attacks; COCO-10K to check benign image quality and text alignment; and UnlearnCanvas to test generalization across 50 diverse artistic styles.
Key Insights and Ideas
- Large directional weight shifts break structural consistency: By measuring the cosine distance of weight columns before and after unlearning, the authors uncover a clean geometric insight: big shifts in weight direction strongly correlate with degraded image structure (lower SSIM). Constraining where weights rotate—while allowing magnitude adjustments—is the secret to preserving background and pose. Directional sensitivity vs. structural consistency
- Direct latent noising speeds up training: Traditional erasure methods must iteratively denoise random noise during training to find out what the model would generate. Because PAIR already has concrete unsafe images ($x_f$), it adds noise directly to them in closed form, skipping iterative denoising overhead altogether.
- Multimodal anchoring tolerates noisy data: Even when 25% to 50% of the training pairs are intentionally corrupted (e.g., flipped or unedited), erasure performance barely budges because text and visual anchors reinforce one another.
Key Results
Evaluated on Stable Diffusion v1.4 while updating only 0.05% of parameters (compared to 94.65%–100% for full fine-tuning baselines like ESD, AGE, and Co-Erasing):
- Nudity Removal: PAIR slashes the Attack Success Rate (measured by ImageGuard) from 51.00% down to 2.67% (NudeNet ASR: 1.33%) and crushes the MMA adversarial attack down to 7.50% (vs. 30.10% for ESD and 19.10% for AGE). Simultaneously, it achieves the best benign generation quality (16.93 FID on COCO-10K, beating even the original SD's 17.56) and the highest overall Harmonic Mean (66.83).
- Artistic Style Removal (Van Gogh): PAIR drops style ASR from 59.67% to 1.00% while maintaining the best COCO FID (16.90) and high structural consistency (83.56 DINO score), leaving other artists like Jan Vermeer untouched.
- Human & MLLM Preference: In blind evaluations judging both erasure and consistency, PAIR won 49.2% of human votes (more than double second-place ESD) and 74.0% of GPT-5.2 Thinking judgments. Human and MLLM win rates
Limitations and Future Work
Detailed discussions of limitations and broader societal impacts are deferred to Appendix C, which is not included in the main text provided. However, from the methodology presented, PAIR relies on external pretrained classifiers and instruction-based image editors (like RealEdit and ICEdit) to curate its synthetic training pairs—meaning erasing a novel concept requires having a reasonably capable detector and editor for that concept upfront, even if the training objective itself is resilient to moderate pairing noise.
Summary updated