arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.01969

RASteer: Retain-Aware Activation Steering for Concept Erasure in Diffusion Models

Yongliang Wu, Haori Lu, Yulun Wu, Jinqi Luo, Xingyu Zhu, Yaoyao Liu

ABSTRACT

Concept erasure aims to remove a target concept, such as a copyrighted style, a recognizable character, or unsafe content, from a pretrained text-to-image diffusion model while preserving its ability to generate other content. Existing activation steering methods build an erasure direction mainly from the target concept and adjust model activations along it at inference time. However, target and retained concepts often overlap in the model's representation space, so this direction also contains shared components that retained concepts rely on. Steering directly along this direction can therefore suppress retained concepts and harm the generation of non-target content. To address this issue, we propose Retain-aware Activation Steering (RASteer), a training-free method. RASteer first builds a retain subspace from the concepts to preserve. Retain-Orthogonal Steering (ROS) then removes components aligned with this subspace from the erasure direction, making steering more specific to the target. Since fully removing the shared components can weaken erasure, we further introduce Overlap-Adaptive Calibration (OAC). At each layer and denoising step, OAC uses the overlap between the erasure direction and the retain subspace to control how much of each shared component is removed, balancing target erasure and concept preservation. Experiments on unsafe-content, instance, and artistic-style erasure across multiple backbones and benchmarks show that RASteer matches or outperforms the activation steering and weight editing baselines we evaluate, achieving a better balance between erasure and preservation. 1^{1}

1 INTRODUCTION

Text-to-image (T2I) diffusion models (Rombach et al., 2022) are trained on web-scale data and inevitably learn content that their providers cannot include in their products, such as copyrighted artistic styles, recognizable characters, and unsafe images. When takedown requests, changes in regulations, or safety audits require removing such content, retraining on filtered data is too costly, while prompt- or output-level filters are easily bypassed (Rando et al., 2022; Zhang et al., 2026; Sarwar et al., 2026). Concept erasure offers a practical alternative: it directly edits a released model to prevent it from generating a target concept (Gandikota et al., 2023; Kumari et al., 2023; Gandikota et al., 2024; Gong et al., 2024; Lu et al., 2024; Li et al., 2026), and has become a key step in deploying T2I models responsibly. Such edits must erase the target while preserving all other content, including unrelated styles and characters, as well as open-domain generation.

Existing erasure methods broadly fall into two categories: weight editing and activation steering. Weight editing fine-tunes the model or applies closed-form updates to its cross-attention matrices (Gandikota et al., 2023; Kumari et al., 2023; Gandikota et al., 2024; Gong et al., 2024; Lu et al., 2024; Li et al., 2026; Liu et al., 2025; 2026; Hu et al., 2026), writing these changes into model parameters and increasing the cost of switching or undoing edits. By contrast, activation steering (Gaintseva et al., 2026; Huu-Tien et al., 2024; Xie et al., 2025; Zhang et al., 2024b) keeps model weights fixed and suppresses target concepts by adjusting intermediate activations during inference,

∗^{*}Corresponding author

1^{1}Project page: https://rasteer.cvmlgroup.web.illinois.edu/

(a) Qualitative comparisons Retention: Snoopy (erase Sonic)

Figure

Unedited

CASteer

RASteer

Erasure: Snoopy (full projection)

(b) Gate-score overlap

Target: Sonic; retained: Snoopy

Figure

Figure

Unedited

(c) Erasure–preservation trade-off

Full projection

RASteer

Figure

Figure 1: Erasure–preservation trade-offs in steering. (a) Collateral damage from original-direction steering (top) and incomplete erasure under full projection (bottom). (b) Fractions of activations above each threshold. (c) Target and mean retained CLIP accuracy for Snoopy erasure.

allowing edits to be enabled, disabled, or combined. The erasure direction is constructed from the target concept, and each image patch is gated based on its activation's alignment with that direction.

However, the target’s erasure direction may contain shared components that retained concepts also rely on, causing collateral damage. In the top row of Figure 1a, steering along the original direction to erase Sonic turns the retained character Snoopy into an ordinary dog. Figure 1b further shows overlap between the alignment scores of target and retained activations: at the default threshold, the gate incorrectly triggers on 65% of retained activations and misses 21% of target activations. Raising the threshold reduces false triggers but misses more target activations. In the bottom row of Figure 1a, Snoopy remains recognizable after full projection even though it is the erasure target, showing that completely removing shared components can also weaken target erasure. These observations show the need to incorporate information about retained concepts into the erasure direction to reduce collateral damage and improve target erasure.

To address these issues, we propose Retain-aware Activation Steering (RASteer), which uses information about retained concepts to refine the erasure direction. It consists of two modules: Retain-Orthogonal Steering (ROS) and Overlap-Adaptive Calibration (OAC). ROS constructs a retain subspace from the steering vectors of retained concepts. It identifies and reduces the shared components of the original erasure direction that align with this subspace, making the direction more specific to the target and reducing suppression of retained concepts. OAC adjusts the removal strength based on the overlap between the erasure direction and the retain subspace at each layer and denoising step, balancing target erasure and concept preservation. As shown in Figure 1c, RASteer further lowers target classification accuracy compared with full projection while maintaining similar accuracy on retained concepts, illustrating how adaptive calibration improves target erasure.

We evaluate RASteer on unsafe-content, instance, and artistic-style erasure across multiple backbones and benchmarks, comparing against activation-steering and weight-editing baselines under the same evaluation pipeline. The results show that RASteer effectively suppresses target concepts while largely preserving retained concepts and general image quality, achieving a better trade-off between erasure and preservation. Our contributions are:

• We propose RASteer, a closed-form, training-free method that erases concepts by steering cross-attention activations while keeping model weights fixed and edits reversible and composable.

• We introduce ROS to remove retain-subspace components from erasure directions and OAC to adjust removal strength at each layer based on erasure–retain overlap, without learnable parameters.

• Across unsafe-content, instance, and artistic-style erasure on multiple backbones and benchmarks, RASteer achieves the best erasure–preservation trade-off among the compared methods.

References (48)

  • Cure: Concept unlearning via orthogonal representation editing in diffusion models
  • Saeuron: Interpretable concept unlearning in diffusion models with sparse autoencoders
  • inemo: Incremental neural mesh models for robust class-incremental learning
  • Casteer: Cross-attention steering for controllable concept erasure
  • Erasing concepts from diffusion models
  • Unified concept editing in diffusion models
  • Reliable and efficient concept erasure of text-to-image diffusion models
  • Model editing harms general abilities of large language models: Regularization to the rescue
  • Gans trained by a two time-scale update rule converge to a local nash equilibrium
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Unibench: A hybrid multi-task framework for benchmarking text-to-image model unlearning
  • Receler: Reliable concept erasing of text-to-image diffusion models via lightweight erasers
  • On effects of steering latent representation for large language model unlearning (opens arXiv in a new tab)
  • Ablating concepts in text-to-image diffusion models
  • Concept pinpoint eraser for text-to-image diffusion models via residual attention gate
  • Scalable, precise, and efficient concept erasure for diffusion models
  • Online optimal control with linear dynamics and predictions: Algorithms and regret analysis
  • Online optimization with predictions and switching costs: Fast algorithms and the fundamental limit
  • Online optimal control with affine constraints
  • Microsoft coco: Common objects in context
  • Rethinking machine unlearning in image generation models
  • Image can bring your memory back: A novel multi-modal guided attack against image generation model unlearning
  • Mnemonics training: Multi-class incremental learning without forgetting
  • Adaptive aggregation networks for class-incremental learning
  • Rmm: Reinforced memory management for class-incremental learning
  • Online hyperparameter optimization for class-incremental learning
  • Continual detection transformer for incremental object detection
  • Wakening past concepts without past data: Class-incremental learning from online placebos
  • Mace: Mass concept erasure in diffusion models
  • Class-incremental exemplar compression for class-incremental learning
  • One-dimensional adapter to rule them all: Concepts, diffusion models and erasing applications
  • Perturbation-restrained sequential model editing
  • Locating and editing factual associations in gpt
  • Mass-editing memory in a transformer (opens arXiv in a new tab)
  • Editing implicit assumptions in text-to-image diffusion models
  • Sdxl: Improving latent diffusion models for high-resolution image synthesis
  • Red-teaming the stable diffusion safety filter (opens arXiv in a new tab)
  • High-resolution image synthesis with latent diffusion models
  • Multimodal unlearning across vision, language, video, and audio: Survey of methods, datasets, and benchmarks
  • Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models
  • Wise: Rethinking the knowledge memory for lifelong model editing of large language models
  • Erasing concepts, steering generations: A comprehensive survey of concept suppression (opens arXiv in a new tab)
  • Safree: Training-free and adaptive guard for safe text-to-image and video generation
  • Concept unlearning by modeling key steps of diffusion process
  • Forget-me-not: Learning to forget in text-to-image diffusion models
  • Steerdiff: Steering towards safe text-to-image diffusion models (opens arXiv in a new tab)
  • The unreasonable effectiveness of deep features as a perceptual metric
  • Continual learning for abdominal multi-organ and tumor segmentation