Consistency-Preserving Concept Erasure via Unsafe–Safe Pairing and Directional Fisher-Weighted Adaptation

Yongwoo Kim, Sungmin Cha, Hyunsoo Kim, Jaewon Lee, Donghyun KimNeurIPS 2026

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.

Figure 1: While existing concept erasure methods either incompletely remove target concepts or change semantic content, our approach achieves surgical erasure by isolating and replacing only the target attributes, maintaining structural consistency and fine-grained details.

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:

Figure 2: Overview of the proposed PAIRed Erasing (PAIR) pipeline. (a) Construction of unsafe–safe pairs. Unsafe images are first generated using forget (target) prompts and filtered by a classifier, then edited to obtain semantically aligned safe counterparts, forming paired forget data Df and retain data Dr. (b) Given paired conditions, the T2I model is optimized to realign unsafe generations toward their safe counterparts using paired images and captions, while preserving consistency. To preserve consistency during fine-tuning, we adopt Fisher-Weighted Initialization for DoRA (FiDoRA), which enables consistency-preserving weight updates by decomposing weight directions and magnitudes (c), and initializing the decomposed parameters using unsafe–safe pairs (d).
  1. 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.
  2. 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.
  3. 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.
Figure 3: Directional sensitivity versus consistency. The red line represents di- rectional changes (∆).

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
Figure 5: Win rate comparison across human evaluation (left) and MLLM-based judgment (right).

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

Abstract

With the increasing versatility of text-to-image diffusion models, the ability to selectively erase undesirable concepts (e.g., harmful content) has become indispensable. However, existing concept erasure approaches primarily focus on removing unsafe concepts without providing guidance toward corresponding safe alternatives, which often leads to failure in preserving the structural and semantic consistency between the original and erased generations. In this paper, we propose a novel framework, PAIRed Erasing (PAIR), which reframes concept erasure from simple removal to consistency-preserving semantic realignment using unsafe–safe pairs. We first generate safe counterparts from unsafe inputs while preserving structural and semantic fidelity, forming paired unsafe–safe multimodal data. Leveraging these pairs, we introduce two key components: (1) Paired Semantic Realignment, a guided objective that uses unsafe–safe pairs to explicitly map target concepts to semantically aligned safe anchors; and (2) Fisher-Weighted Initialization for DoRA, which initializes parameter-efficient low-rank adaptation matrices using unsafe–safe pairs, encouraging the generation of safe alternatives while selectively suppressing unsafe concepts. Together, these components enable fine-grained erasure that removes only the targeted concepts while maintaining overall semantic consistency. Extensive experiments demonstrate that our approach achieves the best overall trade-off among baselines, providing effective concept erasure while preserving structural integrity, semantic coherence, and generation quality.
BibTeX
@inproceedings{kim2026consistency,
  author = {Yongwoo Kim and Sungmin Cha and Hyunsoo Kim and Jaewon Lee and Donghyun Kim},
  title = {{Consistency-Preserving Concept Erasure via Unsafe–Safe Pairing and Directional Fisher-Weighted Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aHNQKnXHXJ},
}
Figure