Efficient method finds features representing concepts in AI models

ESSI: Computationally Efficient Semantic Search for Sparse Autoencoder Concepts

Computer Vision and Pattern Recognition

Summary

Understanding which parts of an AI model represent certain ideas or things is usually slow and costly. The authors created ESSI, a quicker way to find these important parts by using examples labeled as showing or not showing a concept. ESSI picks a small set of features that still does a good job of identifying the concept, and then uses that to control the AI model’s behavior. Their method works well and saves time compared to older approaches.

What this means in practice

Authors

James Baker

Abstract

Sparse autoencoders (SAEs) decompose diffusion model activations into interpretable features, but steering a model with them requires identifying which features map to a given semantic concept, if any. Existing methods for this concept to feature task are expensive, relying on grid searches or repeated passes through the frozen UNet. We propose Efficient Semantic Sparse Identification (ESSI). Using segmentation masks to label SDXL activations as concept or non-concept, ESSI ranks SAE features and binary-searches for the smallest set on which a linear classifier still separates positive from negative samples while not falling below a performance threshold, then reuses that classifier to calibrate the steering strength. We evaluate the same selected features on both concept insertion and object unlearning. Compared with prior work, ESSI is as cheap or cheaper, and performs well on both insertion and removal.