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

Xinghao Wang, Dong Li, Wei Yu, Yingwei Pan, Tao Gong +3 more
9/3/2026
cs.CVcs.AI

Official code: HiDream-ai/EraseSAE (2 stars, last commit 2026-09-02).

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.

View on arXivView PDF

Code Implementations(1)

[ECCV 2026] Official Implementation of EraseSAE: Sparse Autoencoder Based Concept Erasure for Text-to-Video Diffusion Models

20Shell, PythonJun 26, 20261 months ago

Similar Papers

Cite this paper

@article{wang2026erasesae,
  title  = {EraseSAE: Surgical Concept Erasure in Text-to-Video Diffusion Models via Sparse Autoencoders},
  author = {Xinghao Wang and Dong Li and Wei Yu and Yingwei Pan and Tao Gong and Qi Chu and Nenghai Yu and Ting Yao},
  year   = {2026},
  eprint = {2609.03629},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.03629v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.03629.svg)](https://codeofpaper.com/paper/2609.03629)

Discussion