Concept Erasure via Attention Redirection

Amit Schechter, Rinon Gal, Ofir Kedem, Gal Chechik, Daniel Cohen-OrCVPR 2026 Findings 2026

TL;DR

Attention Redirection for Concept Erasure (ARCE) is a lightweight method that removes unwanted or copyrighted concepts from text-to-image diffusion models without altering the model's original weights. By training a dedicated "eraser token" to intercept and redirect attention from a target concept to a neutral anchor, ARCE achieves cleaner erasure and better preservation of surrounding content than traditional weight-tuning methods, even resisting concept re-emergence during inpainting.

What Problem Does This Paper Address?

As text-to-image models like FLUX become increasingly powerful, they also pose significant legal and ethical risks by readily generating copyrighted characters, explicit content, or likenesses of real celebrities.

To mitigate this, researchers developed "concept erasure" techniques. However, existing approaches typically modify the model's internal weights via fine-tuning or closed-form editing. This often leads to two major issues:

  1. Collateral Damage: Erasing one concept accidentally degrades or erases semantically related concepts (e.g., erasing "Spiderman" might inadvertently break the model's ability to generate "Batman" or generic spiders).
  2. Brittleness (Concept Re-emergence): Erased concepts frequently resurface when the model is given adversarial prompts or additional visual context, such as during an image inpainting task where partial geometry or background cues are visible.

ARCE addresses these challenges by reframing concept erasure not as a weight-deletion problem, but as an attention-routing problem.

Methods

Instead of modifying the weights of a frozen FLUX-DEV model, ARCE injects a single, lightweight eraser token (a key-value pair) into each cross-attention layer.

Figure 2. Attention Redirection training scheme. A noised image and text prompt are given as input (left). Right: The top row shows the original attention maps for the tokens in ”Mickey juggling balls”, as well as the output image without erasure. The bottom row shows the modified attention maps after injecting the eraser key, along with the output image generated using the target value. The target token’s attention (red) is suppressed with the erasure loss Lerase, while non-target tokens preserve their original attention via the preservation loss Lpreserve. The reconstruction loss Lreconstruct encourages the output image (generated with the original target value) to match the baseline image, redirecting the target token’s attention to the eraser token. The eraser key and scale (green) are optimized to minimize the combined loss. This allows the target concept to be removed while preserving the rest of the prompt.

The core mechanics consist of:

  • The Eraser Key (Trainable): Optimized to actively "steal" attention maps away from the target concept tokens.
  • The Eraser Value (Fixed): Set to a neutral anchor concept (e.g., the embedding for a generic "person" or "object"). At inference time, any image patch that begins to exhibit features of the forbidden concept is automatically routed to this neutral alternative.

The training objective optimizes the eraser key using three distinct losses:

  1. Erasure Loss ($L_{erase}$): Minimizes the attention mass assigned to the target token.
  2. Preservation Loss ($L_{preserve}$): Ensures that attention maps for non-target tokens remain completely unchanged, preventing collateral damage.
  3. Reconstruction Loss ($L_{reconstruct}$): Uses a standard velocity flow-matching loss to ensure stable generation and seamless redirection.

Datasets

The authors evaluated ARCE across 25 distinct visual concepts split into three categories:

  • Objects: 10 classes chosen from the Imagenette dataset.
  • Copyrighted Characters: 10 widely recognized characters from the CopyCat dataset (e.g., Spiderman, Elsa).
  • Celebrities: 5 well-known individuals from the CelebA dataset.

For evaluation, they generated a dataset of 415 prompts using GPT-5 to create diverse explicit scenarios, indirect/adversarial descriptions, and prompts for "neighboring" concepts (e.g., generating "Batman" to see if erasing "Spiderman" caused collateral damage).

Key Insights and Ideas

  • Erasure as Traffic Control: Trying to force a neural network to "forget" a concept by changing its weights is destructive. Treating the forbidden concept as a feature that simply needs to be rerouted to a safe destination preserves the integrity of the rest of the network.
  • Surgical Localization: Because the intervention introduces only a single token per attention layer, it acts as a highly localized patch. This explains why ARCE maintains excellent prompt adherence and spatial layouts compared to weight-tuning methods, which often cause latent space collapse.
  • Defeating Inpainting Re-emergence: Inpainting is notoriously difficult for erasure models because the remaining visual context triggers the target concept's latent features. Because ARCE operates directly within the attention layers, the eraser token successfully intercepts these visual triggers as soon as they manifest.

Key Results

The authors used a state-of-the-art vision-language model (Qwen2.5-VL-32B) to objectively judge whether the target concepts were successfully erased.

Quantitative evaluation of concept erasure.
  • Superior Erasure: ARCE achieved the lowest total erasure accuracy ($Acc_{erase} = 0.141$), outperforming established baselines like ESD ($0.198$) and EraseAnything ($0.204$).
  • Preserving the Neighborhood: ARCE demonstrated a massive advantage in preserving related concepts ($Acc_{rel} = 0.610$), whereas aggressive fine-tuning methods like ESD severely damaged neighboring concepts ($Acc_{rel} = 0.217$).
Figure 4. Qualitative comparison of concept erasure methods on three different target concepts, highlighting their effect on related concepts. Baseline methods either harm neighboring concepts (ESD, EraseAnything), or fail to erase the target concept (UCE). In contrast, our method surgically removes the target concept while preserving neighboring concepts, illustrating more precise, localized erasure.
  • Inpainting Robustness: Under challenging inpainting conditions, ARCE maintained an erasure accuracy score of $0.62$, significantly outperforming all baselines which completely failed to suppress the concept (scores ranging from $0.82$ to $0.88$).

Limitations and Future Work

  • Abstract Concepts: ARCE is highly effective for concrete concepts (objects, characters, people) that exhibit well-defined, localized attention patterns. It is less suited for abstract concepts, such as artistic styles, where attention maps are broadly dispersed across the entire image.
  • Multimodal In-Context Extension: The current framework is designed around text-to-image attention redirection. The authors note that future work could explore extending this mechanism to fully multimodal diffusion pipelines to prevent concept generation triggered by image-guided prompts or reference images.

Summary updated

BibTeX
@inproceedings{schechter2026concept,
  author = {Amit Schechter and Rinon Gal and Ofir Kedem and Gal Chechik and Daniel Cohen-Or},
  title = {{Concept Erasure via Attention Redirection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=vZwY4btpEH},
}
Figure