Papers › EraseSAE: Surgical Concept Erasure in Text-to-Video Diffusion Models via Sparse Autoencoders

EraseSAE: Surgical Concept Erasure in Text-to-Video Diffusion Models via Sparse Autoencoders

3 Sep 2026arXiv:2609.03629added by Syntology

Xinghao Wang, Dong Li, Wei Yu, Yingwei Pan, Tao Gong, Qi Chu, Nenghai Yu, Ting Yao

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Recent advances in text-to-video (T2V) diffusion models have demonstrated remarkable generative capabilities, yet their reliance on loosely curated training data raises pressing safety and copyright concerns. Concept erasure offers a principled remedy by removing unwanted semantics from pretrained models while preserving remaining concepts. However, existing approaches typically operate at a coarse granularity misaligned with the fine-grained, distributed nature of concept representations, leading to incomplete removal or degraded generation quality. We argue that surgical erasure fundamentally requires intervention at the level of monosemantic features, where each unit encodes a single interpretable concept. To this end, we propose EraseSAE, a novel framework that leverages sparse autoencoders to achieve surgical concept erasure in DiT-based T2V diffusion models via a principled decompose-attribute-erase pipeline. We first introduce the Partitioned Convolutional Sparse Autoencoder, which decomposes dense spatiotemporal activations into disentangled, interpretable sparse features while preserving spatiotemporal coherence. A contrastive attribution mechanism then contrasts activations from paired prompts to isolate concept-specific feature kernels. At inference, timestep-resolved spatiotemporal masks derived from the identified kernels confine erasure to regions where the target concept is active, leaving unrelated content intact. Extensive experiments across diverse diffusion models and concept erasure tasks demonstrate that EraseSAE achieves precise and robust concept removal with minimal quality degradation, substantially outperforming state-of-the-art methods. The code is available at https://github.com/HiDream-ai/EraseSAE.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2609.03629")

Code

Syntology Ran 0 of 24 code samples harvested from 1 repository linked to this paper; 24 have no recorded run.

By repository: found in paper text by Syntology: 24 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

HiDream-ai/EraseSAE found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 0 ran; 0 honoured the contract we drafted; 24 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

24unverified

Licence: 24 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from HiDream-ai/EraseSAE. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

activation_references_for_kernels HiDream-ai/EraseSAE/inference/cli_utils.py found in paper text by Syntology unverified no licence file found · pointer only · b2e81a1edccffb1a · report
binarize_attention_mask HiDream-ai/EraseSAE/model/attention_masks.py found in paper text by Syntology unverified no licence file found · pointer only · 90dc9ff2abfdc2d3 · report
build_penalty_mask HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py found in paper text by Syntology unverified no licence file found · pointer only · e1b1606d33030e87 · report
calculate_aux_loss HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py found in paper text by Syntology unverified no licence file found · pointer only · 802b53bdfe8de1fc · report
capture_effective_mask HiDream-ai/EraseSAE/inference/mask_artifacts.py found in paper text by Syntology unverified no licence file found · pointer only · 2e3b3b46446742c4 · report
checkpoint_pointer_path HiDream-ai/EraseSAE/model/checkpoint_io.py found in paper text by Syntology unverified no licence file found · pointer only · 00665b8a9cafb385 · report
compute_cross_attention_mask HiDream-ai/EraseSAE/model/attention_masks.py found in paper text by Syntology unverified no licence file found · pointer only · 83a19197727095ac · report
create_dataloader_for_layer HiDream-ai/EraseSAE/training/cog_celebs.py found in paper text by Syntology unverified no licence file found · pointer only · 324a38e38c776a3d · report
create_dataloader_for_layer HiDream-ai/EraseSAE/training/cog_nudity.py found in paper text by Syntology unverified no licence file found · pointer only · 0001b6cf0099e7f8 · report
get_model_path HiDream-ai/EraseSAE/configs/config_loader.py found in paper text by Syntology unverified no licence file found · pointer only · 119b201cd050d212 · report
get_partition_schedule HiDream-ai/EraseSAE/model/partition_objectives.py found in paper text by Syntology unverified no licence file found · pointer only · 831d18d1d3b9d7c8 · report
get_warmup_schedule HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py found in paper text by Syntology unverified no licence file found · pointer only · 42334cbdfccc3fce · report
load_checkpoint_model_config HiDream-ai/EraseSAE/model/checkpoint_io.py found in paper text by Syntology unverified no licence file found · pointer only · e03692116e99085d · report
load_json HiDream-ai/EraseSAE/configs/config_loader.py found in paper text by Syntology unverified no licence file found · pointer only · 30180de1929a7196 · report
ordered_concepts_from_map HiDream-ai/EraseSAE/inference/cli_utils.py found in paper text by Syntology unverified no licence file found · pointer only · b50e656309cf3492 · report
parse_target_layers HiDream-ai/EraseSAE/training/cog_celebs.py found in paper text by Syntology unverified no licence file found · pointer only · 999a197347fe9545 · report
partition_contrastive_loss HiDream-ai/EraseSAE/model/partition_objectives.py found in paper text by Syntology unverified no licence file found · pointer only · 91b39df4bc1a1f77 · report
partition_leakage_loss HiDream-ai/EraseSAE/model/partition_objectives.py found in paper text by Syntology unverified no licence file found · pointer only · b9834b84275567cf · report
resolve_layer_checkpoint HiDream-ai/EraseSAE/model/checkpoint_io.py found in paper text by Syntology unverified no licence file found · pointer only · 501b2ce1d7e5728c · report
run_global_stats_collection HiDream-ai/EraseSAE/training/cog_celebs.py found in paper text by Syntology unverified no licence file found · pointer only · 5c74a4b4c803a3d2 · report
run_global_stats_collection HiDream-ai/EraseSAE/training/cog_nudity.py found in paper text by Syntology unverified no licence file found · pointer only · fb2776e47bf70228 · report
save_step_mask_artifacts HiDream-ai/EraseSAE/inference/mask_artifacts.py found in paper text by Syntology unverified no licence file found · pointer only · d36772ddde1f91a1 · report
str2bool HiDream-ai/EraseSAE/configs/config_loader.py found in paper text by Syntology unverified no licence file found · pointer only · dc7f0b127bbc5656 · report
validated_target_kernels HiDream-ai/EraseSAE/inference/cli_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 0acb1ed2b9e34902 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2609.03629, was issued in September 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections