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:
- 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).
- 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.
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:
- Erasure Loss ($L_{erase}$): Minimizes the attention mass assigned to the target token.
- Preservation Loss ($L_{preserve}$): Ensures that attention maps for non-target tokens remain completely unchanged, preventing collateral damage.
- 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.
- 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$).
- 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