SAEmnesia: Erasing Concepts in Diffusion Models with Supervised Sparse Autoencoders
SAEmnesia introduces a supervised sparse autoencoder framework that enforces one-to-one concept-neuron mappings to achieve feature centralization, enabling highly efficient, scalable, and precise concept erasure in diffusion models while significantly reducing hyperparameter search and outperforming state-of-the-art methods on multiple benchmarks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a giant, incredibly talented artist (a Diffusion Model) who can draw anything you describe. But sometimes, this artist has a bad habit: they keep drawing things you don't want, like copyrighted characters, inappropriate content, or specific objects you've asked them to forget.
The problem is that this artist doesn't have a neat filing cabinet where "Bears" are in one drawer and "Sandwiches" are in another. Instead, the concept of a "Bear" is scattered across thousands of different mental notes, mixed up with "Cats," "Fur," and "Forest." This is called feature splitting. Trying to erase a "Bear" is like trying to remove a single thread from a tangled ball of yarn without unraveling the whole sweater. It's messy, slow, and often ruins the picture.
SAEmnesia is a new tool designed to fix this mess. Here is how it works, using simple analogies:
1. The Problem: The Tangled Yarn
In previous methods, if you wanted the artist to forget "Bears," you had to guess which thousands of mental notes to tweak. Because the notes were mixed up, you might accidentally erase "Fur" or "Animals" along with the bear, or you might have to try hundreds of different combinations to find the right ones. It's like trying to find a specific needle in a haystack by guessing which handful of hay to pull out.
2. The Solution: The "One-Concept, One-Neuron" Rule
SAEmnesia changes the training rules. Instead of letting the artist mix concepts randomly, it forces a strict one-to-one mapping.
- The Analogy: Imagine giving the artist a new rule: "Every single concept gets its own dedicated, labeled sticky note."
- How it works: The system uses a special "Supervised Sparse Autoencoder" (think of it as a smart librarian). During training, it looks at the artist's notes and says, "Okay, the concept 'Bear' goes on sticky note #11,979. The concept 'Van Gogh Style' goes on sticky note #4,200."
- The Result: Now, "Bear" isn't scattered across the whole library; it's locked in a single, specific drawer. This is called Feature Centralization.
3. The Eraser: A Precise Scalpel
Once the concepts are neatly organized on their own sticky notes, erasing them becomes incredibly easy.
- The Analogy: If you want the artist to stop drawing bears, you don't need to tear out pages of the book. You just find sticky note #11,979 and tell the artist, "Ignore this note."
- The Benefit: This makes the process 96.67% faster at finding what to erase because you aren't searching through combinations anymore. You just turn off one specific switch.
4. What the Paper Actually Found
The authors tested this on a standard test called UnlearnCanvas (a benchmark for testing how well models can forget things). Here are their specific claims:
- Better Accuracy: SAEmnesia improved the ability to erase objects by 9.22% compared to the previous best method (SAeUron).
- Sequential Learning: If you ask the model to forget 9 different things in a row (like Bears, then Cats, then Flowers), SAEmnesia got 28.4% better at remembering everything else while forgetting the new targets.
- Safety: It successfully suppressed "NSFW" (Not Safe For Work) content, specifically nudity, better than previous methods.
- Robustness: Even when someone tried to trick the system with "adversarial attacks" (trying to force the model to draw the forbidden thing anyway), SAEmnesia held up much better than the competition.
- Reversibility: Because the tool is attached to the model like a plug-in and doesn't permanently change the model's brain, you can unplug it, and the model goes back to being exactly how it was before.
Summary
Think of SAEmnesia as a precision editor for AI artists. Instead of hacking away at a messy, tangled web of ideas, it organizes the artist's mind so that every concept has its own unique address. To erase something, you just send a letter to that specific address saying, "Stop showing this." It's faster, cleaner, and more effective than trying to untangle the whole web.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.