SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.03629 · September 2026

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

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

arXiv · PDF · Open in the Atlas

Code that ran

23 of 24 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 18 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.03629.json · badge: /api/ran/2609.03629.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
HiDream-ai/EraseSAE canonical (classifier label)
classifier basis: census
23 ran · 1 no recorded run
FunctionStatusWhere it lives
activation_references_for_kernels Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/inference/cli_utils.py
pointer only (licence: NONE) · get_code("b2e81a1edccffb1a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binarize_attention_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HiDream-ai/EraseSAE/model/attention_masks.py
pointer only (licence: NONE) · get_code("90dc9ff2abfdc2d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_penalty_mask Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py
pointer only (licence: NONE) · get_code("e1b1606d33030e87")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_aux_loss Ran
ran on a synthesized input
HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py
pointer only (licence: NONE) · get_code("802b53bdfe8de1fc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

capture_effective_mask Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/inference/mask_artifacts.py
pointer only (licence: NONE) · get_code("2e3b3b46446742c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

checkpoint_pointer_path Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/checkpoint_io.py
pointer only (licence: NONE) · get_code("00665b8a9cafb385")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_cross_attention_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HiDream-ai/EraseSAE/model/attention_masks.py
pointer only (licence: NONE) · get_code("83a19197727095ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_dataloader_for_layer Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/training/cog_celebs.py
pointer only (licence: NONE) · get_code("324a38e38c776a3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_dataloader_for_layer Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/training/cog_nudity.py
pointer only (licence: NONE) · get_code("0001b6cf0099e7f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_partition_schedule Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/partition_objectives.py
pointer only (licence: NONE) · get_code("831d18d1d3b9d7c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_warmup_schedule Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/celebrity_partitioned_sae.py
pointer only (licence: NONE) · get_code("42334cbdfccc3fce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_checkpoint_model_config Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/checkpoint_io.py
pointer only (licence: NONE) · get_code("e03692116e99085d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/configs/config_loader.py
pointer only (licence: NONE) · get_code("30180de1929a7196")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ordered_concepts_from_map Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/inference/cli_utils.py
pointer only (licence: NONE) · get_code("b50e656309cf3492")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_target_layers Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/training/cog_celebs.py
pointer only (licence: NONE) · get_code("999a197347fe9545")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

partition_contrastive_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HiDream-ai/EraseSAE/model/partition_objectives.py
pointer only (licence: NONE) · get_code("91b39df4bc1a1f77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

partition_leakage_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HiDream-ai/EraseSAE/model/partition_objectives.py
pointer only (licence: NONE) · get_code("b9834b84275567cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resolve_layer_checkpoint Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/model/checkpoint_io.py
pointer only (licence: NONE) · get_code("501b2ce1d7e5728c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_global_stats_collection Ran
ran, honoured the contract we drafted
HiDream-ai/EraseSAE/training/cog_celebs.py
pointer only (licence: NONE) · get_code("5c74a4b4c803a3d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_global_stats_collection Ran
ran, honoured the contract we drafted
HiDream-ai/EraseSAE/training/cog_nudity.py
pointer only (licence: NONE) · get_code("fb2776e47bf70228")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_step_mask_artifacts Ran
ran; our contract draft was wrong, not the code
HiDream-ai/EraseSAE/inference/mask_artifacts.py
pointer only (licence: NONE) · get_code("d36772ddde1f91a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

str2bool Ran
ran, violated the contract we drafted
HiDream-ai/EraseSAE/configs/config_loader.py
pointer only (licence: NONE) · get_code("dc7f0b127bbc5656")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

validated_target_kernels Ran
ran, honoured the contract we drafted
HiDream-ai/EraseSAE/inference/cli_utils.py
pointer only (licence: NONE) · get_code("0acb1ed2b9e34902")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_model_path Not yet run
unverified (harvested, no recorded run)
HiDream-ai/EraseSAE/configs/config_loader.py
pointer only (licence: NONE) · get_code("119b201cd050d212")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HiDream-ai/EraseSAE when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 24 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2609.03629")
get_code_for_paper("2609.03629")
have("2609.03629")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2609.03629.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2609.03629.svg)](https://syntology.ai/paper/2609.03629)

Connect an agent — have() is free.