Look But Don't Touch with Sparse Autoencoders for Unlearning in Diffusion Models

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

Sparse autoencoders (SAEs) are evaluated for concept-level manipulation, specifically object erasure and steering, within diffusion models. While SAEs effectively detect and localize semantic concepts in diffusion model activations, direct intervention in their latent space often creates out-of-distribution activations, leading to severe visual artifacts. To overcome this, the research proposes using SAE activations solely as semantic detectors to pinpoint image regions containing a target object. These identified patch embeddings are then replaced with ones that lack the object. This detection-based replacement method successfully preserves the diffusion model's activation statistics, yielding significantly cleaner erasure results compared to direct latent steering. The findings highlight a critical distinction: concept detection by SAEs is powerful for interpretability, but direct manipulation for tasks like unlearning faces limitations due to features not inherently serving as reliable control knobs.

Key takeaway

For Machine Learning Engineers developing unlearning or concept steering mechanisms in diffusion models, directly manipulating sparse autoencoder latents will likely introduce visual artifacts. You should instead leverage SAEs purely as semantic detectors to identify specific image regions. Subsequently, replace those patch embeddings with object-free alternatives to achieve cleaner, more effective object erasure and preserve model activation statistics, rather than attempting direct latent space steering.

Key insights

Sparse autoencoders excel at concept detection in diffusion models, but direct latent intervention for unlearning causes artifacts; detection-based replacement is superior.

Principles

Method

Use SAE activations as semantic detectors to identify target object regions, then replace those patch embeddings with ones not containing the object to preserve activation statistics.

In practice

Topics

Best for: Research Scientist, Computer Vision Engineer, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.