NTH

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

October 12, 2026 2 min read
Watch on YouTube
The one-line take

BeFOND uses natural-gradient inference and learning to recover rare and overlapping features in neural representations more effectively and with less data.

Key results

0.827
RAVEL disentanglement

BeFOND at 524K features, compared with 0.748 for BatchTopK.

0.789
Single-feature probing accuracy

BeFOND at 524K features, compared with 0.774 for Matryoshka BatchTopK.

6M
Tokens to match Gemma Scope probing

BeFOND reaches the evaluated reference checkpoint’s probing performance after about 6M tokens; the reference used 8B.

0.8980
SynthSAEBench dictionary-recovery MCC

Mean BeFOND score in the full-width synthetic experiment.

0.9519
SynthSAEBench Rare F1

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 paper

More in Neural Networks

Browse all 25 papers →
01Neural Network

Continuous Memory Machines

Ciaran Regan, Kai Arulkumaran, Luke Darlow, Stefania Druga, Sebastian Risi, Llion Jones

Continuous Memory Machines give recurrent networks separate short- and long-term memories that can read from and reorganize one another.

Read analysis