EraseSAE: Precise Concept Erasure in Text-to-Video Diffusion Models Using Sparse AutoencodersEraseSAE: Surgical Concept Erasure in Text-to-Video Diffusion Models via Sparse Autoencoders
EraseSAE uses decompose-attribute-erase and reduces the nudity rate to 2.62 on CogVideoX-5B's Gen set (Table 1).
Pretrained DiT text-to-video models may generate explicit content or deepfakes of public figures. The defender freezes the diffusion weights, trains PConvSAE on intermediate layers, locks concept kernels offline, and modulates CFG with spatiotemporal masks at inference time, suppressing only the target's active regions. Adversarial evaluation uses Ring-A-Bell rewritten prompts. The main text does not state white-box or black-box.
- DiT text-to-video models can generate explicit content or deepfakes of public figures. Training-free erasure only suppresses surface prompts, while weight modification acts globally on polysemantic units, failing to separate the target from unrelated frames.
- EraseSAE trains a partitioned convolutional SAE, splitting a layer's activations into scene and concept branches. Paired prompts use log-probability ratios to lock concept kernels; at inference, per-timestep masks add negative guidance to CFG only in active regions.
- On CogVideoX-5B, Gen nudity rate 2.62, SSIM 74.99 (Table 1), celebrity average Erase 8.00 (Table 2). On HunyuanVideo, corresponding are 7.13, 65.69, 19.20. I2P total 160 (Table 3).
- The conclusion does not mention limitations. Experiments include nude and five celebrities on CogVideoX-5B, HunyuanVideo, and Flux.1 [dev]; ablations only on the HunyuanVideo nude task. The main text does not give K, τ, s, or number of repetitions, and does not report agreement between the detector and humans.
- Evaluated models
- CogVideoX-5BHunyuanVideoFlux.1 [dev]
- Benchmarks
- GenRing-A-BellI2PVBenchcelebrity prompts (Donald Trump, Barack Obama, Elon Musk, Queen Elizabeth, Taylor Swift)
- Metrics
- Nudity RateSSIMObject ClassSubject ConsistencyErasePreserveexplicit content countP̄
EraseSAE achieves precise concept erasure in DiT-architecture text-to-video diffusion models via sparse autoencoders, first decomposing dense spatiotemporal activations into interpretable sparse features with a Partitioned Convolutional Sparse Autoencoder, then using a contrastive attribution mechanism to locate concept-specific feature kernels, and at inference time generating spatiotemporal masks per timestep to limit the erasure scope. Experiments show the method achieves precise and robust removal across multiple diffusion models and concept erasure tasks, with minimal generation quality loss, significantly outperforming existing methods. This work has been accepted at ECCV 2026, and the code is publicly available.
Paper analysis
What problem does this paper attempt to solve?
Existing erasure granularity is coarse and lacks spatiotemporal locality; EraseSAE performs surgical erasure on monosemantic features.
T2V diffusion models need surgical concept erasure, but existing intervention granularity is coarse and lacks spatiotemporal locality.
- Scenario: The authors argue that DiT-based text-to-video models have loose data filtering, generating explicit content or deepfakes of public figures. Post-filtering retraining is too costly; concept erasure removes specified semantics while preserving other generation capabilities.
- Limitations: The authors argue that training-free methods (negative prompts, text embedding manipulation, conditional guidance) only suppress surface-level phenomena; internal representations remain and are vulnerable to adversarial bypass. Training-based global fine-tuning, closed-form editing, and neuron pruning act on polysemantic units, causing forgetting of unrelated concepts, leaving traces in other pathways, or harming co-encoded benign concepts; when concepts occupy only local spatiotemporal regions, erasure remains global (Fig. 2).
- Hypothesis: The authors argue that intervention should target monosemantic features. SAE decomposes dense activations into sparse monosemantic combinations, isolating targets, covering distributed pathways, and restricting suppression to where concepts appear, both spatially and temporally. The authors also note that linear SAEs ignore neighborhood dependencies, and diffusion features evolve from coarse structure to fine detail across timesteps, making single-timestep attribution insufficient.
- Approach: The authors propose EraseSAE, which uses decomposition–attribution–erasure to erase target concepts in monosemantic space, and claim it is the first framework applying SAE to concept erasure in T2V diffusion models.
- Threat model:
- Objective: Remove specified concepts (in experiments, nudity and celebrity identity) while preserving unrelated visuals and other identities.
- System: Pre-trained DiT-based T2V models; also tested on Flux.1 [dev] for nudity.
- Capabilities: Diffusion model is frozen. Defender trains PConvSAE, locks concept kernels offline, and uses masks to modulate classifier-free guidance at inference. The paper does not mention white-box or black-box.
- Adversarial and evaluation: Uses Ring-A-Bell to rewrite prompts. Nudity is measured by NudeNet per-frame exposure rate, celebrities by Giphy detection accuracy.
What related research exists?
Both training-free and weight-modifying erasure are coarse, and SAE erasure previously existed only on the image side; the authors state T2V still lacks fine-grained local erasure.
Erasure literature is organized by whether weights are modified; SAE has moved from language models to images, and the authors state it has not yet entered T2V.
Training-free erasure
- SLD (2023): Adds safety guidance during denoising to steer sampling away from unsafe content.
- SAFREE (2025): Orthogonally projects text embeddings away from toxic concept directions. The text also points to other methods that only modify inference, not weights.
- Authors' criticism: Such methods only suppress at the surface; internal representations remain exploitable by adversarial attacks.
Training-based erasure
- ESD (2023) uses negative prompt guidance to fine-tune cross-attention; CA (2023) anchors outputs to a reference distribution to ablate concepts.
- UCE (2024) uses closed-form projection for multi-concept editing, MACE (2024) extends to large-scale concept sets with closed-form mappings; AdvUnlearn (2024) and Receler (2024) add adversarial training during fine-tuning; EraseAnything (2025) extends to flow matching with bilevel optimization.
- Authors' criticism: These methods are coarse-grained, erasure is global, and they lack the locality needed to preserve unrelated content.
T2V erasure
- VideoEraser (2025) projects prompt embeddings away from unsafe directions; T2VUnlearning (2025) fine-tunes velocity prediction with negative guidance.
- Authors' criticism: Spatiotemporal entanglement in video amplifies limitations inherited from T2I; the authors state no method can yet perform fine-grained local erasure without harming overall generation quality.
Sparse autoencoders
- SAE (Olshausen and Field, 1997) decomposes dense activations into sparse linear combinations of monosemantic features. Cunningham et al. (2024) used it to interpret language models; subsequent work extended it to frontier models (Templeton, 2024) and feature-level steering (Shi et al., 2025).
- SAUCE (2025) suppresses unwanted features in autoregressive vision-language models; SAeUron (2025) puts SAE into image diffusion models for concept erasure.
- Authors' claim: No prior work has studied SAE in T2V diffusion models. A conventional MLP-SAE flattens hidden states, destroying spatiotemporal locality, and lacks semantic isolation between regions, causing concept leakage.
Baselines and data: Video experiment baselines are Neg Prompt, SAFREE, VideoEraser, T2VUnlearning (Table 1, Table 2). On I2P there are also UCE, MACE, EAP (2024), EraseAnything (Table 3). Data includes self-built Gen (500 nudity prompts), Ring-A-Bell, I2P, and 400 prompts per celebrity for five celebrities; fidelity is measured with SSIM and VBench's Object Class and Subject Consistency.
The authors place EraseSAE on monosemantic features, claiming it simultaneously has the robust erasure of training-based methods and the local precision sought by training-free methods. The authors state PConvSAE uses convolutions and partitioning to address the two limitations of MLP-SAE above, and claim this framework is the first work applying SAE to T2V concept erasure.
How does the paper address this problem?
PConvSAE separates scenes and concepts, contrastive scores lock the kernel, and dynamic masks apply CFG only in active regions.
EraseSAE works in three steps: train PConvSAE to decompose one layer's spatiotemporal activations, compare offline to lock concept kernels, then apply time-step-masked spatially modulated classifier-free guidance (Fig. 1, Section 3). The diffusion model remains frozen. The authors state this simultaneously achieves the robust, permanent erasure of training-based methods and the local precision sought by training-free methods; per Section 3.4, erasure itself happens at inference time.
Decomposition: PConvSAE
- First, layer-wise probing selects an intervention layer that both contains the target semantics and minimally alters global structure. The layer number is not given in the main text. Activations are mean-subtracted, the time dimension is folded into the batch, giving shape (B×T)×D×H×W, then 2D convolutions are used to avoid flattening.
- The latent is split into a Context branch fctx (layout, lighting, temporal dynamics) and a Concept branch fcpt (local features bound to the target concept). Concept channels are partitioned into C mutually exclusive subspaces, with Ncpt kernels per concept. The two branch encoders do not share parameters. C and Ncpt are not given in the main text.
- Sparsity uses Spatial-Aware Local Activation: channel scores take the spatial peak, Top-K channels get ReLU, and the rest of the map is zeroed; the two branches have separate sparsity budgets. K is not given in the main text. Reconstruction is the sum of the two branches' decoder convolutions plus a bias. The authors state that removing the Concept contribution and keeping Context yields the scene with the target concept removed.
- The supervision mask comes from the model's own cross-attention to the target concept text: averaged across layers, normalized, and dynamically quantile-binarized to give Mtgt and the background complement, without external annotations. Five losses are summed: Lctx makes Context reconstruct the background and suppress the target region; Lcpt makes the sum of both branches reconstruct the target region; Lleak uses L1 to constrain concept kernels to the specified range; Ltemp penalizes abrupt changes in Context across adjacent frames; Laux makes idle kernels fit residuals to mitigate dead latents. The individual λ values are not given in the main text. Training uses Adam, initial learning rate 1×10^{-4}, 30 epochs, 8 NVIDIA A100s. The authors state remaining details are in the supplementary material.
Attribution: a one-time offline log-ratio
- Each concept is attributed only once. Positive samples come from prompts containing ci, and kernels are spatially averaged within the target region mask to give μci.
- The hard negative baseline takes the elementwise maximum of the background mean and other concepts' activations. The authors state a kernel must exceed both the background and the strongest other concept to be considered dedicated to that concept (one-versus-max).
- The score is
S_{attr}=\mu_{c_i}\odot\max(0,\log\frac{\mu_{c_i}+\epsilon}{\mu_{base}+\epsilon})\odot M_{stable}. The log-ratio represents specificity relative to the hard negative baseline, multiplied by its own activation; Mstable removes transient firing. Consistency is the proportion of positive samples in which the kernel fires in the target region; kernels below τ are discarded. τ is not given in the main text. - The top-K highest-scoring kernels are intersected with the channel partition pre-assigned to that concept to obtain the locked set Ktgt. No feature search is performed at inference time.
Erasure: dynamic masking and modulated CFG
- The concept's spatial extent shifts across denoising time steps, so a single static mask would misalign. Within a key interval, each time step feeds the hidden state into the frozen PConvSAE. The interval endpoints are not given in the main text.
- The foreground mask comes from the complement of the Context activation heatmap, and the concept mask comes from the locked kernels. The two are min-max normalized, multiplied, and binarized with a dynamic threshold to give Mt. The authors state the foreground term avoids harming the background, and the concept term restricts the range to semantically active regions.
- Spatially modulated CFG is
\hat{\epsilon}_\theta(x_t)=\epsilon_\theta(x_t,c_{pos})-s\cdot(\epsilon_\theta(x_t,c_{pos})-\epsilon_\theta(x_t,c_{neg}))\odot M_t. Where the mask is near 1, the negative-prompt direction pointing toward safe alternative semantics is subtracted from the positive-prompt prediction containing the target concept; where near 0, the positive-prompt prediction is kept. s is the guidance scale, not given in the main text. - The introduction states modifying PConvSAE features within the mask. Section 3.4 and Fig. 1's inference step are the modulation above. Table 6 lists directly subtracting features and zeroing within the mask as comparisons; the main text adopts modulated CFG.
What experiments did the paper conduct?
On CogVideoX-5B, Gen nudity rate is 2.62, SSIM 74.99, and celebrity average Erase is 8.00.
Experimental Setup
- Models: CogVideoX-5B, HunyuanVideo; T2I supplemented with Flux.1 [dev].
- Nudity: Gen has 500 prompts total, 400 for training, 100 for testing. Adversarial prompts are Ring-A-Bell's K16, K38, K77. T2I uses I2P. Nudity videos are uniformly 32 frames at 8 fps. The Gen column in Table 1 does not state whether only the 100 test prompts are counted.
- Celebrities: Donald Trump, Barack Obama, Elon Musk, Queen Elizabeth, Taylor Swift, 400 prompts each, split evenly between training and testing. Table 2 does not state whether the numbers come only from the test half. The celebrity experiments do not separately specify frame counts.
- Metrics: NudeNet per-frame detection gives Nudity Rate; SSIM relative to the unmodified reference video; VBench's Object Class and Subject Consistency. Erase is the residual detection accuracy given by Giphy. Preserve is the average detection accuracy of the other four people when only one person is erased. Inference time (s/frame) is also reported.
- Baselines: On the video side, Neg Prompt, SAFREE, VideoEraser, T2VUnlearning. For I2P, UCE, MACE, EAP, EraseAnything. Ablations are all on the HunyuanVideo nudity task.
- Training: Adam, initial learning rate 1×10^{-4}, 30 epochs, 8 A100s. The main text does not report the number of repeats, detector thresholds, or whether NudeNet or Giphy agrees with human judgment.
Main Results
Swipe horizontally to read the table
Setting Original Lowest erasure value among baselines EraseSAE EraseSAE's SSIM Source CogVideoX-5B, Gen Nudity Rate 28.25 2.88 (T2VUnlearning) 2.62 74.99 Table 1 HunyuanVideo, Gen Nudity Rate 68.13 10.89 (T2VUnlearning) 7.13 65.69 Table 1 CogVideoX-5B, celebrity average Erase 63.40 25.00 (VideoEraser) 8.00 63.38 Table 2 HunyuanVideo, celebrity average Erase 67.10 47.20 (Neg Prompt and SAFREE) 19.20 77.47 Table 2 Flux.1 [dev], I2P explicit content total 605 173 (UCE) 160 Not reported Table 3 - Authors' interpretation: The authors state that the Gen exposure rates of both video models are lower than those of the other methods in the table, and attribute this to the purer monosemantic kernels. The contributions list writes, relative to the strongest baseline, erasure accuracy 34.5% higher and SSIM 8.3% higher, but does not state the model or how this is computed from the tables. The main text states SSIM is 27.97 points higher than the second best (CogVideoX-5B) and 5.02 points higher (HunyuanVideo); the second-best values in the table are Neg Prompt's 47.02 and T2VUnlearning's 60.67, respectively.
- Fidelity and time: The authors state Object Class and Subject Consistency are comparable to the unmodified model, and the inference overhead is negligible. CogVideoX-5B is 3.66 s/frame, Original is 3.61. HunyuanVideo is 6.97, Neg Prompt is 6.95; the authors state the extra computation comes from the additional negative-condition forward pass. In the same table, SAFREE and T2VUnlearning on HunyuanVideo are 3.59 and 3.60.
- Celebrity exception: Preserve is 58.60 (CogVideoX-5B) and 61.50 (HunyuanVideo). The former is lower than Neg Prompt's 59.80, the latter higher than its 60.20. The authors note that VideoEraser on CogVideoX, Donald Trump has Erase of 3.00, lower than EraseSAE's 12.00, with Preserve 52.10. In the HunyuanVideo Trump row, SAFREE is 9.50, lower than EraseSAE's 26.50; the authors do not explain that cell. VideoEraser is not reported on HunyuanVideo.
Adversarial Prompts and Image Models
- Ring-A-Bell: In Table 1, EraseSAE's Nudity Rate is the lowest in that column across both models and all three tiers. CogVideoX-5B is 2.63, 5.26, 4.74; HunyuanVideo is 4.47, 6.84, 5.13. T2VUnlearning at the same positions is 5.30, 7.60, 8.65 and 5.13, 7.82, 9.95. The authors attribute this to locking onto concept kernels rather than surface phrasing.
- Baselines above Original: On CogVideoX-5B's K38, Neg Prompt is 34.34 and Original is 20.26; on HunyuanVideo's K16, SAFREE is 36.05 and Original is 21.97. The authors do not separately explain these increases.
- I2P: EraseSAE's total is lower than the other methods in the table. Common is 102 and Female is 31, both the lowest in their columns; Male is 27, higher than UCE's 12, EAP's 13, and EraseAnything's 22. The authors state the total is the lowest and argue the framework can transfer to T2I.
Purity, Heatmaps, and Qualitative Results
- Purity: The average over five identities is P̄=0.76, and the linear SAE is 0.37. The authors state the former is more than twice the latter. The purity of class c is the proportion of the locked kernel's activation on that class out of the sum of activations across all classes, averaged over kernels; 100 samples per class. The paper does not state which generative model these numbers come from.
- Figure 3: The authors state the cross-identity heatmap is diagonally dominant and cross-activations are very small. The metric on the figure is Column-Normalized Activation Magnitude (%), the kernel axis lists the five celebrities, and shows 100 as well as several percentages between 0 and 46. The row names and row order in the extracted text do not align, so off-diagonal cells are not assigned to specific identity pairs. The paper does not state which model the heatmap belongs to.
- Fig. 2 and Fig. 4: Both are on HunyuanVideo. The authors state Neg Prompt and SAFREE still leave sensitive content or recognizable celebrity faces; T2VUnlearning erases more strongly but has visible artifacts in the background and non-target objects; EraseSAE removes the target and preserves unrelated frames. Pixel differences are not visible in plain text.
Other Ablations and Analyses
- Table 4 (loss accumulation, Nudity Rate / SSIM): Lctx alone is 24.5 / 40.12; adding Lcpt gives 10.21 / 43.33; adding Lleak gives 8.09 / 47.37; adding Ltemp gives 7.13 / 65.69. The authors state Ltemp improves SSIM by 18.32 points. Laux is in the total loss; Table 4 does not list it separately.
- Table 5: Linear SAE is 12.76 / 56.97; single-branch PConvSAE is 9.06 / 61.37; dual-branch is 7.13 / 65.69.
- Table 6: SAE-Sub is 51.30 / 62.31, which the authors state is insufficient suppression; SAE-Mask is 6.56 / 53.51, which the authors state zeroing all layers within the mask damages the scene; SM-CFG is 7.13 / 65.69. SAE-Mask's nudity rate is lower than SM-CFG's. The authors state SM-CFG is a trade-off between erasure and structure preservation (the original text writes optimal trade-off).
- Table 1's VBench: EraseSAE's Object Class is 77.80 / 80.61, Original is 79.91 / 83.88; Subject Consistency is 94.30 / 96.04, Original is 95.12 / 96.12 (both CogVideoX-5B / HunyuanVideo). On CogVideoX-5B, VideoEraser's Subject Consistency is 96.47, higher than EraseSAE's; on HunyuanVideo, Neg Prompt's Object Class is 87.59, higher than EraseSAE's and also higher than Original's.
- Table 2 average SSIM: Neg Prompt is 31.49 / 37.51, SAFREE is 30.86 / 33.14, VideoEraser is 27.35 (CogVideoX-5B only). The authors state SSIM shows erasure does not damage non-target backgrounds.
What are some points that can be further explored?
The conclusion does not state limitations or future directions.
Limitations and future directions noted by the authors
The paper does not specifically discuss limitations. Section 5's conclusion only mentions erasure effectiveness and generation quality; there is no Limitations or Future Work section, nor does it list next experiments to run.
Experimental coverage
- Edited generation models are CogVideoX-5B, HunyuanVideo, and Flux.1 [dev] (Section 4).
- Nudity task uses Gen (500 samples, 400/100), Ring-A-Bell three levels, and I2P; Section 4.1 writes the video side as 32 frames, 8 fps. Celebrity task is 5 people, 400 samples each, split in half, with Giphy as detector (Section 4.2).
- Main table baselines are in Tables 1 to 3. Ablations focus on HunyuanVideo's nudity task: loss (Table 4), SAE architecture (Table 5), inference strategy (Table 6).
- The main text mentions Adam, learning rate 1×10^{-4}, 30 epochs, and 8 A100s. Top-K, threshold τ, guidance scale s, intervention layers, and loss weights are not given; the authors say more implementation details are in the supplementary material. Those numbers are not in this main text.
- The paper does not report repetition counts, nor agreement of NudeNet or Giphy with human judgment. In Tables 1 and 2, HunyuanVideo cells for VideoEraser are "-".
Summarize the main content of the paper
EraseSAE erases locally using monosemantic features; on CogVideoX-5B, Gen nudity rate 2.62, SSIM 74.99.
EraseSAE applies SAE to concept erasure in DiT text-to-video models. The authors aim to solve: global weight changes or surface-level negative prompts do not align with fine-grained, distributed concepts, and alter unrelated spatiotemporal regions.
- Pipeline: PConvSAE splits activations at an intermediate layer into a scene branch and a concept branch, using the model's own cross-attention for partition supervision. Log-probability ratios of paired prompts lock concept kernels. At inference, masks are generated per timestep, applying negative guidance to CFG only within masks. Diffusion weights remain frozen.
- Nudity: In Table 1, CogVideoX-5B's Gen Nudity Rate is 2.62, Original is 28.25, T2VUnlearning is 2.88, SSIM is 74.99. For HunyuanVideo, exposure rate, Original, T2VUnlearning are 7.13, 68.13, 10.89, and SSIM is 65.69. Across Ring-A-Bell three levels, EraseSAE is lowest in the table, with CogVideoX-5B at 2.63, 5.26, 4.74.
- Celebrities, image, and purity: Table 2 average Erase is 8.00 and 19.20, Preserve is 58.60 and 61.50. For CogVideoX, VideoEraser on Trump is 3.00; for HunyuanVideo, SAFREE on Trump is 9.50, both lower than EraseSAE's corresponding cell. In Table 3, Flux.1 [dev] has I2P total 160, Original 605; Male is 27, not the lowest in that column. Average purity across five identities is 0.76, linear SAE is 0.37; the paper does not specify the generation model.
- Author conclusions: The authors argue intervention should target monosemantic features and claim EraseSAE achieves state-of-the-art erasure with minimal generation quality degradation. The contribution list's 34.5% and 8.3% do not specify the model. The conclusion does not separately list limitations.