Inference and learning in sparse autoencoders as natural gradient flow
AuthorsHadi Vafaii, Tejas Rao, David Chanin, Thomas Fel, Jacob L. Yates, Bruno Olshausen, David Klindt, Dileep George, Miguel Lázaro-Gredilla
AffiliationsAstera Institute UC Berkeley UCL Goodfire AI CSHL
BeFOND uses natural-gradient inference and learning to recover rare and overlapping features in neural representations more effectively and with less data.
Key results
BeFOND at 524K features, compared with 0.748 for BatchTopK.
BeFOND at 524K features, compared with 0.774 for Matryoshka BatchTopK.
BeFOND reaches the evaluated reference checkpoint’s probing performance after about 6M tokens; the reference used 8B.
Mean BeFOND score in the full-width synthetic experiment.
Mean BeFOND score for detecting the least-frequent quarter of synthetic features.
What the paper found
This paper introduces BeFOND, an encoder-free sparse autoencoder that unifies feature inference and dictionary learning as natural-gradient flows on one variational free-energy objective. With Bernoulli latents and a linear Gaussian decoder, it derives closed-form updates without backpropagating through the inference trajectory. Its recurrent explaining-away interactions let overlapping features suppress competing explanations, while Fisher preconditioning compensates for slow dictionary learning of rare features when posterior and prior second moments match. On Gemma-2-2B layer-12 activations, using a 524K-feature dictionary and 50M training tokens, BeFOND reaches 0.827 RAVEL disentanglement versus 0.748 for BatchTopK, and 0.789 single-feature probing accuracy versus 0.774 for Matryoshka BatchTopK. It matches the evaluated Gemma Scope checkpoint’s probing performance after about 6M tokens, compared with 8B tokens for that reference—a greater-than-1,000-fold reduction. On SynthSAEBench, it also achieves 0.8980 dictionary-recovery MCC and 0.9519 Rare F1. The trade-off is computational cost: on NVIDIA H200 GPUs, the measured implementation takes about 12–14 times longer than BatchTopK. These results suggest that better inference and learning dynamics can improve feature recovery, rare-concept detection, and selective interventions, while making large dictionaries more useful.
Original abstract
Sparse autoencoders are widely used to uncover interpretable features in neural networks, yet reliable recovery remains difficult when features overlap or activate infrequently. These challenges involve both inferring which features explain an input and learning the dictionary that represents them. Here, we unify inference and dictionary learning as natural-gradient flows on a shared variational free energy. We instantiate this framework as BeFOND, an encoder-free sparse coding model with closed-form inference and learning dynamics. We show how recurrent explaining away reduces interference between overlapping features, while Fisher preconditioning can compensate for the slow learning of rare features. On synthetic data, BeFOND improves dictionary recovery and rare-feature detection, with a growing advantage over amortized baselines as superposition increases. On language-model activations, it improves single-feature concept detection and selective intervention, outperforming pretrained reference SAEs with substantially less training data. Its feature quality continues to improve with dictionary width, whereas the evaluated baselines largely plateau. Together, these results show how improving inference and learning within a unified probabilistic framework can make better use of data and dictionary capacity to interpret and intervene on neural representations.
Read the original paperMore in Neural Networks
Browse all 28 papers →Curriculum unlearning in humans and neural networks
Jirko Rubruck, Alice Zhang, Andrew Saxe, Christopher Summerfield
Simple-to-complex curricula may work by helping humans and neural networks unlearn overly simple rules and build richer representations.
Do vision models know that three is three?
Ankit Sonthalia, Arnas Uselis, Seong Joon Oh
Vision models often learn a concept change clearly within one visual setting, but may represent that same change differently in another.
Meta Models: Models that Model Learning
Peihang Li, Ziming Liu
Instead of running a model-training experiment first, the authors use prior runs to predict how the next one will learn.