Where Should Concept Erasure Occur: Concept-Layer Alignment in Text-to-Video Diffusion ModelsWhere Concept Erasure Should Occur: Concept-Layer Alignment in Text-to-Video Diffusion Models
The authors propose CLEAR, which automatically searches the text encoder of T2V diffusion models for concept-separable layers to perform SAE erasure; the authors claim that on Wan2.2-5B the average generation rate for object concepts drops from 61.8% to 12.8%.
Without modifying the diffusion model weights, the defender performs SAE feature subtraction on a single layer of the T5 text encoder at inference time to suppress target concepts (objects, nudity, celebrity identity, artistic style); positive/negative prompt pairs synthesized with Llama-3-8B are used for training, and Ring-A-Bell rewritten prompts are used to evaluate evasion scenarios.
- Semantic information in T2V diffusion models is unevenly distributed along depth, and existing concept erasure methods mostly operate at a fixed layer; the authors argue this leads to residual target concepts or damage to non-target semantics.
- CLEAR models the intervention depth as a learnable variable, uses Gumbel-Softmax for differentiable layer search, guides layer selection with a concept–non-target separability loss, then uses an SAE to decompose features and subtracts the target direction according to a specificity mask, without changing model weights.
- Four concept categories—objects, nudity, celebrities, and artistic styles—are evaluated on Wan2.2-5B and CogVideoX-2B: the authors report that CLEAR mostly has the lowest generation rate and identity similarity, and that under Ring-A-Bell rewritten prompts the generation rate also decreases, but by a smaller margin.
- The authors note that each target concept requires separate optimization, and that scaling to large concept libraries requires more efficient parameter sharing; the experiments cover only four concept categories—objects, identity, nudity, and artistic style—and more complex and relational concepts are left for future work.
- Evaluated models
- Wan2.2-5BCogVideoX-2BFLUX.1-devText2Video-Zero
- Benchmarks
- T2VUnlearning benchmarkRing-A-Bell
- Metrics
- Generative RateOverall ConsistencyImaging QualityAesthetic QualityMotion SmoothnessIdentity Similarity ScoreVCLIPe/VCLIPsHa
The researchers propose the CLEAR framework, which, through concept-layer alignment, turns the selection of concept-erasure layers in text-to-video diffusion models into an optimization of the separability between the concept and non-targets. Its basis is that text-to-video diffusion Transformers encode semantic information unevenly at different depths, and the target concept is more easily separated only at some representation depths. On large-scale text-to-video diffusion models, the framework achieves more precise concept suppression while maintaining overall generation quality.
Paper analysis
What problem does this paper attempt to solve?
The authors argue that the effectiveness of T2V concept erasure depends on intervention depth, and propose CLEAR, a framework that automatically selects erasure layers per concept.
Core question: in T2V diffusion models, at which representation depth should concept erasure occur in order to precisely suppress the target concept without harming other semantics.
- Problem setting: the authors state that semantic information in T2V diffusion transformers is unevenly distributed along depth, and that the same erasure operation applied to different layers produces different semantic outcomes (Figure 1), often suppressing coarse-grained categories while missing fine-grained concepts.
- Shortcomings of existing methods: the authors state that most existing inference-time and training-time erasure methods implicitly assume layer-agnostic behavior, operating on fixed or heuristically selected layers without accounting for how semantic representations evolve with depth, leading to semantic leakage and non-target degradation.
- Core observation: the authors propose concept–layer topological alignment, i.e., the target concept is more separable from non-target semantics at certain depths, forming a linearly isolable subspace; the t-SNE in Figure 2 shows that the positive and negative sample distributions of object concepts and sensitive concepts differ across layers, and the linear probe in Appendix E shows that the nudity concept has an error rate of about 4.5% at shallow layers (Block 0–8), dropping to 0.4% at deep layers (Block 21).
- Proposed method: the paper proposes CLEAR (Concept-Layer Erasure Alignment fRamework), which formalizes layer selection as an optimization problem over concept–non-target separability, replaces heuristic layer selection with a separability-driven objective, and does not modify the diffusion model weights at inference time.
- Threat model (defense perspective):
- Defense goal: suppress the T2V model from generating target concepts (general objects, safety-sensitive concepts such as nudity, celebrity identities, artistic styles).
- Defense location: at inference time, acts on a single selected layer of the T5 text encoder, without changing model weights.
- Knowledge assumption: the defender can use an LLM to synthesize positive and negative prompt pairs with/without the target concept for training.
- Evasion scenario: evaluate the robustness of erasure using Ring-A-Bell rewritten prompts (which do not name the target concept).
What related research exists?
Related work is divided into two groups, T2V concept erasure and mechanistic interpretability; the authors state that both treat the intervention depth as a fixed hyperparameter.
T2V concept erasure (inference-time methods)
- NegPrompt (Li et al., 2024), SAFREE (Yoon et al., 2025), etc.: at inference time, use negative prompts or safety guidance to steer generation away from the target concept, without modifying model parameters. The authors state that the effectiveness of such methods depends on prompt structure and may be unstable under complex or compositional prompts.
- VideoEraser (Xu et al., 2025): an inference-time baseline; the authors state that it achieves lower average identity similarity on CogVideoX-2B, but requires online gradient optimization at inference time, incurring about 1.4× computational overhead.
T2V concept erasure (training-time methods)
- T2VUnlearning (Ye et al., 2025), Liu & Tan (2025), Zhang et al. (2026), etc.: directly modify model behavior via fine-tuning or closed-form solutions, with more persistent suppression. The authors state that parameter-level intervention may introduce non-target changes when the target concept is entangled with related semantics.
Mechanistic interpretability
- Sparse representation learning: SAEs are used to decompose polysemantic activations into more semantically consistent features (Huben et al., 2024; Thasarathan et al., 2025).
- SAE erasure in the T2I domain: zero-shot feature deactivation by Tian et al. (2025), supervised neuron localization by Cassano et al. (2025) and He et al. (2025a). The authors state that these methods focus on "which features to suppress" while treating the intervention depth as a fixed hyperparameter or a manual choice.
- Depth-related evidence: Li et al. (2025) state that safety concepts become linearly separable only at specific "safety-critical" layers; Toker et al. (2024) state that semantic concepts form progressively at different stages of the architecture.
Baselines and benchmarks: the compared baselines are NegPrompt, SAFREE, and T2VUnlearning (VideoEraser is additionally compared on celebrity concepts); test prompts come from the T2VUnlearning benchmark, and the evasion prompt evaluation uses Ring-A-Bell (Tsai et al., 2024).
The authors position this paper as: turning the erasure location from a fixed design choice into an optimization variable determined by the model's representation structure, which is the difference from the above work (per the authors).
How does the paper address this problem?
CLEAR uses Gumbel-Softmax differentiable search to select layers, SAE to decompose features, and a separability loss for guidance, alternately optimizing "where to erase" and "how to erase".
Overall idea: treat the intervention depth as a learnable, differentiable variable, use concept–non-target separability as the search signal to select the optimal layer, then at that layer use SAE sparse features to perform inference-time subtractive intervention; the framework is named CLEAR.
Problem setting
- Given a pretrained T2V diffusion model and a target concept C, apply an intervention h′l = E(hl) to the layer-l activations hl; the same operation produces different semantic effects at different depths.
- The intervention acts on the blocks of the T5 text encoder; training uses positive/negative prompt pairs (with/without the target concept, otherwise semantically identical), synthesized by an LLM.
Learning where to erase: continuous relaxation of depth
- Use learnable parameters α = {α1, …, αL} to represent the preference for each layer, without locking in a single layer in advance.
- The discrete layer index is non-differentiable, so a Gumbel–Softmax relaxation is used: pk = (exp((log αk + gk)/τ))/(∑j exp((log αj + gj)/τ)); as the temperature τ is annealed, the soft preference converges to a single discrete layer.
- Appendix B: τ is linearly annealed from 1.0 to 0.1; the nudity concept is trained for 3,750 iterations, the other concepts for 2,500.
Learning how to erase: concept-aligned feature directions
- Use a shared SAE to project activations h into a high-dimensional sparse feature space (hidden dimension 131,072, d_sae ≫ d_model), f = ReLU(W_enc h + b_enc).
- Define a Shared Mask m_shared based on feature activations on the negative sample set (larger values are more associated with non-target semantics); its complement gives the Specificity Mask m_spec = 1 − m_shared, used to distinguish concept-specific features from shared features.
- The contrast between concept-specific energy (filtered by m_spec) and shared energy (filtered by m_shared) serves as the differentiable signal L_con for the "topological sweet spot".
Separability-driven alternating optimization
- Step 1 (fix p): train the SAE to minimize the reconstruction objective weighted by layer preference LSAE(θ) = 𝔼[|hl − ∑l pl ĥl|22 + λ|fl|1], λ = 1e−4.
- Step 2 (fix θ): update α to minimize L_CLEAR = L_con + L_SAE, where L_con(α) = log(1 + S_uni/(S_spe + ϵ)), penalizing the ratio of shared energy to concept-specific energy.
- The two steps alternate so that layer selection and feature decomposition co-evolve; Appendix A gives pseudocode, and the whole pipeline completes in about two hours on a single H100.
Inference-time intervention
- After optimization, take l* = arg max α_l, mount the trained SAE only at that layer, without changing model parameters.
- Estimate the target concept component from m_spec and project it back into model space: v_tar = W_dec(f ⊙ m_spec), h′ = h − γ·v_tar; γ controls intervention strength (γ = 10 in the main experiments).
What experiments did the paper conduct?
Evaluating four categories of concepts on Wan2.2-5B and CogVideoX-2B, the authors report that CLEAR mostly has the lowest generation rate and identity similarity.
Experimental setup
- Models evaluated: Wan2.2-5B and CogVideoX-2B (main experiments); the appendix transfers to FLUX.1-dev (T2I) and Text2Video-Zero (CLIP text encoder). The intervention acts on the blocks of the T5 text encoder.
- Concepts: four categories—10 general objects (e.g., parachute, springer dog), nudity, 5 celebrities (Merkel, Obama, Trump, Biden, Elizabeth), 5 artistic styles (Van Gogh, etc.).
- Baselines: NegPrompt, SAFREE, T2VUnlearning; for celebrity concepts, VideoEraser is additionally compared.
- Metrics: Generative Rate (percentage of frames containing the target concept, detected with pretrained classifiers: NudeNet for nudity, FaceNet for celebrities), Overall Consistency (ViCLIP similarity), Imaging Quality (MUSIQ), Aesthetic Quality (LAION-Aesthetic), Motion Smoothness; for style, VCLIPe/VCLIPs and Ha = VCLIPs − VCLIPe.
- Data: positive and negative prompt pairs are synthesized by Llama-3-8B; test prompts come from the T2VUnlearning benchmark and do not appear in training/validation; except for artistic style, generation uses a fixed seed of 42.
- Training scale: the paper does not report the number of prompt pairs per group in the main experiments (the sensitivity analysis in Appendix N uses 500–3000 pairs); the number of repetitions is not reported.
Main results
Average generation rate for object concepts (%, lower is better) and mean quality, according to Table 1:
Swipe horizontally to read the table
Method Wan2.2-5B Generation Rate Wan2.2-5B Img. CogVideoX-2B Generation Rate CogVideoX-2B Img. Origin 61.8 0.6910 56.2 0.5505 NegPrompt 54.3 0.6644 26.9 0.5106 SAFREE 28.1 0.6304 14.6 0.4522 T2VUnlearning 24.5 0.6652 7.4 0.3907 CLEAR 12.8 0.7025 7.1 0.4683 - The authors state that CLEAR achieves the lowest average generation rate on both models while maintaining or slightly improving imaging quality; on CogVideoX-2B, T2VUnlearning's generation rate of 7.4% is close to CLEAR, but its Imaging Quality drops to 0.3907.
- Nudity (Table 2a/3a): on Wan2.2-5B, CLEAR's generation rate is 11.1%, lower than T2VUnlearning's 18.6% and SAFREE's 48.7%; on CogVideoX-2B, CLEAR is 14.63%, lower than VideoEraser's 19.22% and T2VUnlearning's 19.63%.
- Celebrities (Table 2b/3b): on Wan2.2-5B, CLEAR's average identity similarity is 0.0151, lower than T2VUnlearning's 0.0215; on CogVideoX-2B, VideoEraser's average of 0.1140 is lower than CLEAR's 0.1802, and the authors state that VideoEraser requires online gradient optimization at inference time, with about 1.4× computational overhead, while CLEAR is better on Biden and Elizabeth.
Artistic style erasure
- Wan2.2-5B (Table 4): CLEAR has the highest Ha on all 5 artists, e.g., Rembrandt's Ha is 0.1308, SAFREE's is 0.0731, T2VUnlearning's is 0.0906.
- CogVideoX-2B (Table 14, Appendix I): CLEAR has the highest Ha only on Rembrandt (0.1537); on Picasso, Ha is −0.0178 (worse than all baselines other than Origin), on Andy Warhol 0.0889 is lower than T2VUnlearning's 0.1528, and on Van Gogh 0.0037 is lower than T2VUnlearning's 0.0347.
Ablations and evasion prompts
- Search efficiency and accuracy (Table 5): CLEAR completes layer selection with a single training run (1×), whereas brute-force layer-by-layer search requires 24× and the stride-4 Manual baseline requires 5×; on Parachute, CLEAR selects Block 6 (Manual's best is Block 8), and on Nudity, CLEAR selects Block 18 (Manual is Block 16; Manual suppresses more strongly, but the authors state it causes visual degradation).
- Role of L_con (Table 5): after removing L_con, the search favors middle layers (Block 13–15) and generation rates are higher (Parachute 27.0% vs 18.4%, Springer Dog 14.0% vs 4.8%).
- Ring-A-Bell evasion prompts (Table 9): Wan2.2-5B generation rate 69.6% → 25.6%, CogVideoX-2B 31.8% → 22.2%; the authors state that suppression is weaker than with explicit prompts, but this indicates the intervention acts on concept-level representations rather than lexical triggers.
Other ablations and analyses
- Single-layer vs multi-layer (Table 6/17): Top-1 generation rate is 11.1%, Top-1+Top-2 is 13.9%–30.1%; the authors state that multiple layers introduce feature interference.
- Intervention strength γ (Table 6, Wan2.2-5B nudity): γ=8 gives a generation rate of 28.4%, γ=10 gives 11.1%, γ=12 gives 3.2% but Consistency drops to 0.0933.
- SAE vs dense steering vector (Table 8): steering vector generation rate 24.5% vs CLEAR 11.1%.
- Layer-by-layer intervention (Table 7, nudity): Block 14 has the lowest generation rate at 1.5%, Block 20 rises to 32.9%, showing depth dependence.
- Multi-concept erasure (Table 15, Appendix J): within the same category (Van Gogh & Picasso), CLEAR preserves Rembrandt VCLIP at 0.1315, while T2VUnlearning drops to 0.0283.
- Transfer (Table 16, Appendix K/L): FLUX.1-dev nudity generation rate 74.0% → 18.0%; Text2Video-Zero 70.4% → 12.9%.
What are some points that can be further explored?
The authors note that optimizing each concept separately is hard to scale and that concept-type coverage is limited; the experiments cover two T2V backbones and four concept categories.
Limitations and future directions noted by the authors
- Each target concept requires separate optimization; scaling to large concept libraries may require more efficient parameter sharing, intervention composition, or reusable SAE dictionaries (Appendix P).
- The experiments focus on object, identity, nudity, and artistic style concepts; extending to more complex concepts, relational concepts, and policy-dependent safety definitions is future work (Appendix P).
- T2I transfer is validated only on FLUX.1-dev; the authors state that broader validation across architectures and concepts is left for future work (Appendix K).
- Text encoder generalization is validated only on Text2Video-Zero (CLIP encoder); the authors state that evaluation across more encoders and model families is a future direction (Appendix L).
Scope of experimental coverage
- The main experiments evaluate 2 models in total, Wan2.2-5B and CogVideoX-2B; the appendix additionally tests FLUX.1-dev and Text2Video-Zero (Table 16).
- Concepts cover 10 objects, nudity, 5 celebrities, and 5 artistic styles; the multi-concept experiments cover same-category 2-concept and cross-category 2-concept combinations (Table 15).
- The compared baselines are NegPrompt, SAFREE, and T2VUnlearning, with VideoEraser added for celebrity concepts; the evasion prompt evaluation covers only the nudity concept on Ring-A-Bell (Table 9).
- Training prompt pairs are synthesized by Llama-3-8B; Appendix N compares 500–3000 pairs on Parachute, and the paper does not report the number of pairs used per group in the main experiments.
- Except for artistic style, generation uses a fixed seed of 42; the paper does not report the number of repetitions or statistical significance tests, nor does it report human evaluation.
Summarize the main content of the paper
CLEAR turns layer selection for T2V concept erasure into a differentiable optimization problem; the authors claim more precise erasure with less quality loss on two T2V models.
A defense paper on concept erasure in T2V diffusion models, whose core claim is that erasure effectiveness depends on intervention depth.
- Problem: The authors state that the semantic representations of T2V models are unevenly distributed along depth, and existing methods erase at fixed layers, causing residual target concepts or damage to non-target semantics; the authors propose concept–layer topological alignment, i.e., concepts are more separable from non-target semantics at specific depths.
- Method: CLEAR uses Gumbel-Softmax to relax layer selection into differentiable variables, guides the search with a concept–non-target separability loss L_con, then uses a shared SAE to decompose features and performs inference-time feature subtraction at the selected layers according to specificity masks, without modifying the diffusion model weights; search and training for one concept take about two hours on a single H100.
- Object concepts: On Wan2.2-5B the average generation rate drops from 61.8% to 12.8% (T2VUnlearning is 24.5%), and on CogVideoX-2B it drops to 7.1%; Imaging Quality is higher than the baselines in both cases (Table 1).
- Sensitive and identity concepts: On Wan2.2-5B the nudity generation rate is 11.1% (T2VUnlearning 18.6%); the average identity similarity for five celebrities is 0.0151 (Table 2).
- Evasion prompts: On Ring-A-Bell, the Wan2.2-5B generation rate is 69.6% → 25.6%, a smaller suppression magnitude than for explicit prompts (Table 9).
- Exceptions: In celebrity erasure on CogVideoX-2B, VideoEraser's average similarity is 0.1140, lower than CLEAR's 0.1802; for artistic styles on CogVideoX-2B, CLEAR has the highest Ha only for Rembrandt (Table 3b, Table 14).
- Authors' conclusion: The authors claim that jointly optimizing "where to erase" and "how to erase" achieves scalable concept erasure at about an order of magnitude lower search cost; the limitation is that each concept must be optimized separately, and complex and relational concepts are left for future work.