SAEmnesia: Erasing Concepts in Diffusion Models with Supervised Sparse Autoencoders

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cassano, Enrico, Renzulli, Riccardo, Nurisso, Marco, Zaffaroni, Mirko, Perotti, Alan, Grangetto, Marco
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913173201747968
author Cassano, Enrico
Renzulli, Riccardo
Nurisso, Marco
Zaffaroni, Mirko
Perotti, Alan
Grangetto, Marco
author_facet Cassano, Enrico
Renzulli, Riccardo
Nurisso, Marco
Zaffaroni, Mirko
Perotti, Alan
Grangetto, Marco
contents Concept unlearning in diffusion models is hampered by feature splitting, where concepts are distributed across many latent features, making their removal challenging and computationally expensive. We introduce SAEmnesia, a supervised sparse autoencoder framework that overcomes this by enforcing one-to-one concept-neuron mappings. By systematically labeling concepts during training, our method achieves feature centralization, binding each concept to a single, interpretable neuron. This enables highly targeted and efficient concept erasure. Compared to the state-of-the-art sparse autoencoder-based unlearning approach, SAEmnesia reduces hyperparameter search by 96.67% and achieves a 9.22% improvement on the UnlearnCanvas benchmark for objects. Our method also shows superior scalability in sequential unlearning, improving accuracy by 28.4% when removing nine objects, establishing a step forward for precise and controllable concept erasure. Moreover, SAEmnesia effectively suppresses nudity on the I2P benchmark and remains robust to adversarial attacks. Source code available at https://github.com/EIDOSLAB/SAEmnesia.
format Preprint
id arxiv_https___arxiv_org_abs_2509_21379
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SAEmnesia: Erasing Concepts in Diffusion Models with Supervised Sparse Autoencoders
Cassano, Enrico
Renzulli, Riccardo
Nurisso, Marco
Zaffaroni, Mirko
Perotti, Alan
Grangetto, Marco
Computer Vision and Pattern Recognition
Artificial Intelligence
Concept unlearning in diffusion models is hampered by feature splitting, where concepts are distributed across many latent features, making their removal challenging and computationally expensive. We introduce SAEmnesia, a supervised sparse autoencoder framework that overcomes this by enforcing one-to-one concept-neuron mappings. By systematically labeling concepts during training, our method achieves feature centralization, binding each concept to a single, interpretable neuron. This enables highly targeted and efficient concept erasure. Compared to the state-of-the-art sparse autoencoder-based unlearning approach, SAEmnesia reduces hyperparameter search by 96.67% and achieves a 9.22% improvement on the UnlearnCanvas benchmark for objects. Our method also shows superior scalability in sequential unlearning, improving accuracy by 28.4% when removing nine objects, establishing a step forward for precise and controllable concept erasure. Moreover, SAEmnesia effectively suppresses nudity on the I2P benchmark and remains robust to adversarial attacks. Source code available at https://github.com/EIDOSLAB/SAEmnesia.
title SAEmnesia: Erasing Concepts in Diffusion Models with Supervised Sparse Autoencoders
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2509.21379