Manuscript Offprint
arXiv:2610.07389Inference and learning in sparse autoencoders as natural gradient flow
Open access. PaperVantage converted this article to text, so layout and figures may differ from the 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.
1 INTRODUCTION
Sparse autoencoders (SAEs) infer sparse representations of data in terms of a learned, overcomplete dictionary of features. Their roots lie in sparse coding (Olshausen & Field, 1996; Lewicki & Sejnowski, 2000), motivated by the organization of sensory representations in biological systems (Olshausen & Field, 1997; 2004). SAEs have since become central in interpreting neural network representations (reviewed in Klindt et al., 2026), especially those of language models (Yun et al., 2021; Bricken et al., 2023; Cunningham et al., 2024; Templeton et al., 2024; Gao et al., 2025).
Despite these successes, SAEs face challenges in both inference and dictionary learning. Standard SAEs use a trained neural network to perform one-pass inference—known as amortized inference—which can struggle to disentangle overlapping features in superposition (O'Neill et al., 2025). But improving inference alone is insufficient. In controlled experiments, Barin-Pacela et al. (2026) identified dictionary learning as the bottleneck: replacing an SAE's encoder with iterative inference on the same learned dictionary failed to close the feature-recovery gap. These problems are coupled during training: the dictionary determines which explanations of the data are available, while inferred feature activations shape the learning signal used to update the dictionary. Therefore, inference errors can compromise dictionary learning, and a poor dictionary can limit what inference can recover.
Unlike standard SAEs, classical sparse coding methods typically perform inference through iterative, per-sample optimization (Rozell et al., 2008; Gregor & LeCun, 2010). More recently in this lineage, Vafaii et al. (2025) introduced the Free-energy Online Natural-gradient Dynamics (FOND) framework, which formulates inference as natural-gradient flow on variational free energy. FOND's guiding principle is to respect the intrinsic geometry of the statistical manifold: updates are measured by their effect on the represented probability distribution through the Fisher information metric (Amari, 1998; Martens, 2020; Khan & Rue, 2023). However, FOND did not address learning through the same
SAEBench with Gemma-2-2B, layer 12 residual
Amortized inference: BatchTopK Matryoshka JumpReLU (Gemma Scope) Iterative variational inference: Mean-field + Adam BeFOND (ours)
a Training dynamics (524k models)
b Final performance

Tokens processed
Dictionary width
C Training dynamics (524k models)
d Final performance
Tokens processed
Dictionary width
Figure 1: Feature quality and sample efficiency on Gemma-2-2B activations. a,c: Training dynamics at 524k width. b,d: Final performance across dictionary widths. Details in section 5.
geometric principle. Its generative model parameters were learned by backpropagating through the inference trajectory, with the associated computational and memory costs.
Here, we extend this principle to learning. Just as inference follows natural-gradient flow on free energy with respect to variational parameters, we define learning as natural-gradient flow on the same objective with respect to generative parameters. Both processes thus respect the statistical geometry of the distributions they update. We instantiate this extended FOND framework as BeFOND: an encoder-free iterative SAE with Bernoulli latents, a factorized prior, and a linear Gaussian decoder. We derive closed-form expressions for its inference and learning dynamics, allowing the dictionary to be learned without backpropagating through the inference trajectory.
On the inference side, BeFOND implements explaining away through recurrent interactions between overlapping features, enabling lateral competition leading to sparse, disentangled representations. We isolate the contribution of these interactions and show that they become increasingly important as feature superposition increases. On the learning side, we show how infrequent activation slows Euclidean dictionary learning. We prove that Fisher preconditioning removes this frequency dependence, giving rare and common features the same local learning rate. Motivated by this result, we hypothesize that Fisher preconditioning would improve rare-feature recovery in BeFOND. Empirically, BeFOND learns more accurate dictionaries and detects rare features with few misses or false positives, while using substantially fewer training samples than SAE baselines and Euclidean ablations.
We evaluate BeFOND on synthetic data with known ground-truth features using SynthSAEBench (Chanin & Garriga-Alonso, 2026), and on language-model representations using SAEBench (Karvonen et al., 2025). Baselines include amortized SAEs—BatchTopK (Bussmann et al., 2024), Matryoshka BatchTopK (Bussmann et al., 2025), and JumpReLU (Rajamanoharan et al., 2024b)—and an iterative mean-field variational baseline with Adam decoder learning (Kingma & Ba, 2015).
On Gemma-2-2B layer-12 activations, BeFOND outperforms all evaluated baselines on both sparse probing (Kantamneni et al., 2025) and RAVEL disentanglement (Huang et al., 2024). BeFOND's performance continues to improve as we increase dictionary width from 16k to 524k latents, whereas the baselines plateau (Fig. 1b,d). These gains also emerge with substantially less training data: at a dictionary width of 524k, BeFOND matches the evaluated Gemma Scope JumpReLU checkpoints (Lieberum et al., 2024) in sparse probing after just ~6M training tokens, compared with the 8B tokens used to train those checkpoints, achieving over 1,000× reduction in training tokens (Fig. 1a).
Summary of our contributions and paper outline:
(1) We review necessary background (section 2). We then extend FOND (Vafaii et al., 2025) to unify inference and learning as natural-gradient flows on variational free energy, instantiate it as Bernoulli-distributed BeFOND, and derive its dynamics in closed-form (section 3 and section B).
(2) We analyze BeFOND’s recurrent “explaining away” (section 4.1) and use ablations to establish its contribution to feature recovery under increasing superposition (section C.3.1).
(3) We characterize how Fisher preconditioning in BeFOND’s learning rule compensates for feature rarity (section 4.2), and test its consequences for dictionary learning through theoretical analysis (theorem 4.2), synthetic experiments, and optimizer ablations (sections C.3.2, C.4 and C.5).
(4) We evaluate BeFOND on language-model representations, examining feature quality, sample efficiency, and scaling with dictionary width (section 5).
Sparse coding. Classical sparse coding (Olshausen & Field, 1996; 1997; Lewicki & Sejnowski, 2000; Aharon et al., 2006; Rozell et al., 2008; Gregor & LeCun, 2010; Mairal et al., 2010) models each observation as a linear combination of dictionary atoms with sparse coefficients :
The dictionary has atoms as its columns.
We consider overcomplete dictionaries, whose atoms outnumber the input dimensions , and therefore cannot all be mutually orthogonal, making some overlap between atoms unavoidable.
Learning estimates the dictionary from data, while inference finds sparse codes that explain each input. These processes are coupled because inference uses the current dictionary, and dictionary updates depend on the inferred codes. In the overcomplete setting, superposition—overlap between atoms—makes sparse code inference particularly challenging (see section A.1).
Amortized versus iterative inference. Standard SAEs learn an encoder that predicts a sparse code in one forward pass. These include ReLU (Bricken et al., 2023; Cunningham et al., 2024; Templeton et al., 2024), JumpReLU (Rajamanoharan et al., 2024b), gated (Rajamanoharan et al., 2024a), TopK (Makhzani & Frey, 2014; Gao et al., 2025), BatchTopK (Bussmann et al., 2024), and Matryoshka BatchTopK (Bussmann et al., 2025) SAEs. Training this mapping across samples amortizes inference, replacing a separate test-time optimization for each input.
Iterative sparse coding instead refines the code for each observation (Rozell et al., 2008; Beck & Teboulle, 2009; Fang et al., 2022). In continuous time, this takes the schematic form, . Iterative inference has yielded mixed results on language-model representations (Chanin, 2025; Sun et al., 2026). See section A.2 for further discussion.
Variational inference and free energy. A generative model combines a prior with a likelihood:
Bayes’ rule gives . Computing the evidence requires summing or integrating over latent configurations, which is generally intractable for large overcomplete models.
Variational inference (section A.3; Jordan et al., 1999; Blei et al., 2017) turns this problem into optimization: choose an approximate posterior and optimize its parameters . For example, can be Gaussian means and variances, or Bernoulli logits. Define the variational free energy:
Free energy is the same quantity as the negative evidence lower bound, . Its terms balance explaining the observation against departing from the prior. The connection between free-energy minimization and posterior inference follows from the following identity:
This shows that, with and fixed, reducing reduces the KL divergence to the true posterior because the evidence is independent of (section A.3). An amortized encoder can predict , as in VAEs (Kingma & Welling, 2014), or inference can optimize it separately for each input:
Holding and fixed, write the objective as . Starting from some initialization , gradient descent with step size gives:
This update measures movement using Euclidean distance in parameter space (section A.4). However, equal-sized parameter changes can produce different changes in beliefs , and reparameterizing the same distributions can change the descent trajectory. Measuring movement between distributions instead leads to the geometry of their statistical manifold (Amari & Nagaoka, 2000).
From gradient descent to natural gradients. Swapping the Euclidean geometry of gradient descent with the Fisher metric gives the natural-gradient update:
where is the Fisher information matrix of the variational family:
The Fisher matrix measures local statistical distinguishability, so the update accounts for how parameter changes affect the represented distribution (Amari, 1998; Amari & Nagaoka, 2000; Amari, 2016). Natural gradients have a long history in variational inference, underpinning stochastic variational inference (Hoffman et al., 2013), the Bayesian learning rule (Khan & Rue, 2023), and Bayesian Online Natural Gradient (Jones et al., 2024). Closed-form natural gradients need not be available, and computing the Fisher and applying its inverse can be expensive, motivating approximations (Martens & Grosse, 2015; Martens, 2020). Natural Reweighted Wake–Sleep uses natural gradients for generative and recognition networks (Várady et al., 2022), and recent work preconditions TopK SAE decoder updates using a damped empirical code Gram matrix (Picozzi, 2026). Both approaches retain learned encoders, whereas BeFOND directly optimizes variational posterior parameters for each input through recurrent inference.
Building on this geometric perspective, Vafaii et al. (2025) introduced FOND by prescribing natural-gradient flow on F with respect to u. A forward Euler discretization yields eq. (7).
In the appendix, we motivate natural gradients using the standard trust region argument (section A.4; Martens, 2020; Conn et al., 2000; Ollivier et al., 2017), as well as a broader “physics of adaptation” perspective (section A.5), inspired by the principle of general covariance (Einstein, 1916).
3 FOND UNIFIES INFERENCE AND LEARNING AS NATURAL GRADIENT FLOW
FOND (Vafaii et al., 2025) formulated inference as natural gradient descent on variational free energy (eq. (7)). But it stopped short of prescribing learning dynamics through the same principle.
The geometric argument applies equally to learning: just as changes the approximate posterior , the generative parameters change the joint distribution . This motivates extending FOND by defining learning as natural-gradient flow on the same free energy with respect to .
Thus, inference and learning are both treated as dynamical processes within a unified framework:
| FOND: Free-energy Online Natural-gradient Dynamics |
|---|
| Flexible choices: Choose a generative model , an inference model , and calculate the variational free energy .FOND's prescription: Define inference and learning as natural gradient flows on :Inference: , Learning: . |
3.1 BeFOND: A BERNOULLI-DISTRIBUTED ITERATIVE SPARSE CODING MODEL
We instantiate our extended FOND by following its three steps: choose the distributions, compute the free energy, and derive the dynamics.
Distribution specifications. A generative model requires a prior and a conditional likelihood (eq. (2)). We choose a factorized Bernoulli prior and a linear Gaussian decoder, together with a factorized Bernoulli variational posterior:
| Likelihood | Prior | Posterior |
|---|---|---|
| (9) | (10) | (11) |
Here , and is the logistic sigmoid. The generative parameters are , and the variational parameters are the posterior logits.
Free energy. Define as the mean reconstruction residual, as the precision-weighted Gram matrix, and as the posterior covariance. We weight the prior KL by , with recovering the usual variational free energy. Because of the linear Gaussian assumption (eq. (9)), the log-likelihood expectation can be evaluated exactly (section B.1):
Dynamics. Applying FOND's natural-gradient prescription, and , with the Fisher metrics of the variational posterior and generative joint distribution, yields the following closed-form inference and learning dynamics (section B.2.1):
(16)
Here set the learning timescales, and prior learning is expressed in mean coordinates . The posterior and prior second moments are:
(17) and V is diagonal, with , the expected squared reconstruction error in each observed dimension. Learning holds the inferred posterior fixed. For minibatches, we average , E, V, and r before applying the learning rules. These equations keep the prior fixed during inference. Our implementation uses a rolling-reference variant (section B.1.1).
Time discretization. Turning continuous flows into an implementable algorithm requires time discretization, which can affect stability. We use exponential integration for both inference (ETD1; Cox & Matthews, 2002; Hochbruck & Ostermann, 2010) and learning (including matrix-free decoder updates; Al-Mohy & Higham (2011); Trefethen (2019)) to preserve linear relaxation within each step. See section B.6 for derivations and Alg. 1 for the full discretized algorithm.
4 THEORETICAL ANALYSES, SYNTHETIC EXPERIMENTS, AND ABLATIONS
We study inference and learning using theory and synthetic data with known features and activations. Ablations test lateral interactions and compare separately tuned natural and Euclidean recipes.
4.1 INFERENCE: BeFOND'S RECURRENT TERM ENABLES EXPLAINING AWAY
Superposition mixes evidence from overlapping features (Elhage et al., 2022; Klindt et al., 2026), making inference of sparse codes difficult (section A.1). Here, we show how BeFOND's iterative inference mitigates this interference through a mechanism known as explaining away. As an example, wet grass could be explained by rain or a sprinkler. Observing a wet roof supports rain without changing the sprinkler's direct evidence from the grass. As rain explains more of the wetness, the sprinkler becomes less likely. This reduction in belief in one explanation through evidence for another is known as explaining away (Murphy, 2012). The challenge is that the influence of one piece of evidence depends on the others. An encoder that compresses the input to one fixed projection cannot generally capture the full dependence, as the following proposition establishes.
Proposition 4.1 (A limitation of single-layer inference). Suppose the data are generated by the Bernoulli–Gaussian model:
where for every , and the noise is independent of .
Suppose a dictionary atom is neither orthogonal nor parallel to another atom . Then there exist no weights , bias , and scalar function such that:
For almost every dictionary with , no latent falls under the exception, so for generic dictionaries a feature's exact posterior probability cannot be computed from one fixed input projection followed by a scalar nonlinearity. The proof shows that overlapping, nonparallel atoms make the posterior log-odds gradient change direction with the input, which is impossible for a function of one fixed projection (section C.2.1). This result generalizes O'Neill et al. (2025) and covers ReLU (Bricken et al., 2023; Cunningham et al., 2024), JumpReLU (including Gemma Scope) (Rajamanoharan et al., 2024b; Lieberum et al., 2024), weight-sharing gated (Rajamanoharan et al., 2024a), and fixed-threshold BatchTopK and Matryoshka BatchTopK SAEs (Bussmann et al., 2024; 2025), all of which compute each latent from a single projection of the input (section C.2.1). TopK SAEs fall outside this class, since whether a latent fires depends on every other pre-activation.
BeFOND’s inference dynamics (eq. (13)) couple explanations through the off-diagonal entries of : positively overlapping features suppress one another’s activation drive. A wet roof strengthens rain, which explains the lawn’s wetness and suppresses the sprinkler. Repeated updates make this competition depend on the full observation (Fig. 2).
Section C.2.2 gives an approximate-inference counterpart to theorem 4.1 and sufficient conditions under which BeFOND can achieve strictly lower expected posterior KL than the best possible single-projection amortized encoder. We now empirically quantify the effects of explaining away.

Lawn wetness
Figure 2: Heatmaps show sprinkler probabilities under exact inference, converged BeFOND with a fixed prior, and a numerically optimized single-projection encoder. The marked observations have identical lawn wetness but different roof evidence: neutral (white, halfway dry / wet) or wet (blue). Fixed-prior inference and encoder fitting are detailed in section C.2.3.
Explaining away under superposition. SynthSAEBench (Chanin & Garriga-Alonso, 2026) makes this problem measurable by providing synthetic data with known atoms and activations, together with feature correlations. Superposition is measured as the mean maximum (mm) absolute cosine similarity:
where are the ground-truth feature directions.
Larger means that each feature has, on average, a more strongly overlapping alternative. Reducing the input dimension at fixed feature count increases this overlap, modeling the interference created when many features share a real network’s activation space.
As overlap increases, a strong detection score becomes less diagnostic of a feature’s presence: another feature may explain the same evidence. Explaining away addresses this ambiguity by discounting evidence already accounted for by competing causes.
We measure dictionary recovery using the mean correlation coefficient (MCC), which quantifies alignment between learned and ground-truth feature directions. BeFOND achieves the highest MCC throughout the sweep, declining only modestly as superposition increases, while maintaining zero dead latents (Fig. 3).
Ablating lateral interactions. In section C.3.1, we investigate the impact of ablating lateral interactions on dictionary recovery. Figure 6 shows that removing lateral interactions reduces dictionary recovery as feature overlap increases. Restoring suppressive interactions substantially improves recovery, whereas excitatory-only inference activates nearly the entire dictionary without comparable recovery.

Figure 3: BeFOND maintains the highest recovery, and without dead latents ( ). Means and 95% confidence intervals over 3 seeds. Exact values are reported in section C.3.1 and Table 4.
4.2 LEARNING: BeFOND'S NATURAL GRADIENT FLOW IMPROVES RARE FEATURE LEARNING
Features extracted from language models vary widely in activation frequency (Gao et al., 2025), and larger SAE dictionaries recover increasingly rare concepts (Bricken et al., 2023; Templeton et al., 2024). Scaling dictionary width therefore places greater demands on learning from rare examples: additional neurons must capture infrequent features to expand the model's coverage.
Learning an infrequently active feature. For an isolated feature active with probability , averaging over inputs scales the decoder gradient by . The same decoder error therefore produces a smaller update for a rarer feature. Matched Fisher preconditioning divides out this frequency factor.
Theorem 4.2 (Exact rarity compensation). For , fix a training minibatch and hold its inferred distributions and prior references fixed. Let minimize . If the averaged second moments satisfy , then:
Euclidean gradient:
Natural gradient:
where and .
Natural flow reduces every decoder error by over an interval . For the same fractional error reduction, Euclidean flow takes times as long in its slowest eigendirection as in its fastest, where is the minibatch-averaged posterior activation probability.
The rate difference becomes more pronounced as the frequency range widens. If , with and , the slowest Euclidean direction takes at least times as long as the fastest to achieve the same fractional error reduction. Under the theorem's matched-moment assumptions, natural flow gives every direction the same rate. For the proof and the extension to unequal prior and posterior second moments, see section C.4. Section C.4.2 shows that, with known codes and frozen Adam normalization, an optimizer used by many common SAE baselines (Bussmann et al., 2024; Rajamanoharan et al., 2024b), Zipfian feature frequencies leave a local condition number of at least , whereas matched Fisher preconditioning reduces it to one.
Recovering rare features. The full-width SynthSAEBench setting (Chanin & Garriga-Alonso, 2026) tests whether decoder capacity recovers the rare tail, with 16,384 learned latents for 16,384 generating features. This supplies one decoder slot per true feature, so complete recovery requires representing rare features alongside common ones. MCC measures recovery of the feature directions, while Rare F1 measures detection of the 25% least frequent generating features, averaging their activation F1 scores. BeFOND leads all metrics, exceeding the evaluated baselines (Fig. 4; Table 5).
Ablating inference and learning geometry. The natural-inference/natural-learning recipe reaches stronger recovery with fewer decoder updates than the separately tuned Euclidean variants (Fig. 7; section C.3.2). Section C.5.2 reports learning curves against the other baselines, and Table 5 reports dead-latent counts alongside recovery.
5 EVALUATING BeFOND ON LANGUAGE-MODEL ACTIVATIONS
We evaluate whether BeFOND’s inference and learning benefits studied in section 4 translate to improved feature quality in language-model representations. We focus on three questions: (1) whether BeFOND outperforms widely used SAE baselines on Gemma 2B scale activations, (2) whether these benefits increase with dictionary width, and (3) how early they emerge during training.
Experimental setup. We evaluate feature quality under a 50M-token training budget, alongside released Gemma Scope JumpReLU checkpoints trained on 4B tokens at 16k width and 8B tokens at widths 32k–524k (Lieberum et al., 2024; Rajamanoharan et al., 2024b). Our primary comparison trains BeFOND, BatchTopK (Bussmann et al., 2024), Matryoshka BatchTopK (Bussmann et al., 2025), and a mean-field variational baseline with Adam decoder learning (Kingma & Ba, 2015).
(a) MCC

(b) Macro F1
(c) Rare F1
Figure 4: BeFOND outperforms all evaluated baselines on dictionary recover (MCC) and feature detection (Macro F1, Rare F1) in SynthSAEBench ( , ). Rare F1 covers the least frequent quarter of features. Bars show means over 3 initialization seeds with 95% confidence intervals, evaluated on held-out samples. Table 5 gives individual-seed results.
These models use whitened Gemma-2-2B (Gemma Team, 2024) layer-12 residual-stream activations (d = 2,304) extracted from Pile Uncopyrighted (monology, 2023), with dictionary widths from 16,384 to 524,288 latents. We report means and sample standard deviations over three BeFOND training seeds and five baseline training seeds, using T = 10 inference steps for BeFOND and T = 20 for mean-field at evaluation. Amortized baselines use the selected target sparsities in Table 6. Gemma Scope checkpoints retain their original preprocessing. Section D provides further details.
Evaluation metrics. Reconstruction quality alone does not establish whether an SAE has learned useful features (Gao et al., 2025; Karvonen et al., 2025). We therefore evaluate two complementary capabilities using SAEBench (Karvonen et al., 2025).
Sparse probing (Kantamneni et al., 2025) tests concept detection using a logistic probe restricted to k = 1 or k = 5 selected SAE features. We average task-level accuracy, ROC-AUC, and F1 across 113 classification tasks. Accuracy measures correct predictions, ROC-AUC measures the ranking of positive versus negative examples, and F1 summarizes the balance between precision and recall.
RAVEL (Resolving Attribute–Value Entanglements in Language Models; Huang et al., 2024) tests selective intervention on represented attributes. Its cause score measures successful changes to a target attribute, while isolation measures preservation of other attributes, and disentanglement is the mean of these two scores.
Higher scores are better for all reported metrics. We report full numerical results in Table 6.
Scaling with dictionary width. BeFOND achieves the highest mean RAVEL disentanglement at every tested width, including comparisons with the evaluated Gemma Scope checkpoints (Fig. 1d). At 524k latents, its score is , compared with for BatchTopK, the strongest amortized baseline trained on 50M tokens (Table 6). This 7.9 percentage-point advantage reflects improvements in both cause and isolation: BeFOND scores 0.800 and 0.854, respectively, versus 0.719 and 0.776 for BatchTopK.
Single-feature probing also favors BeFOND at large widths. At 524k, its accuracy is , versus for Matryoshka BatchTopK, an improvement of 1.5 percentage points. Across widths from 16k to 524k, BeFOND's single-feature accuracy increases from 0.771 to 0.789, and its RAVEL score increases from 0.786 to 0.827 (Fig. 1b,d). Over the same range, BatchTopK and Matryoshka each improve by approximately 0.6 percentage points in single-feature accuracy. Thus, increasing dictionary width produces larger gains for BeFOND than for either amortized baseline.
Differences between methods are smaller in five-feature probing accuracy, and the AUC and F1 rankings vary across widths (Table 9).
High feature quality emerges early in training. At 524k latents, BeFOND reaches the evaluated Gemma Scope single-feature probing score by ~6M training tokens (Fig. 1a). The corresponding Gemma Scope checkpoints were trained on 8B tokens, a training-budget ratio of over 1,000×. By 50M tokens, BeFOND exceeds their single-feature accuracy (0.789 versus 0.7735) and RAVEL disentanglement (0.827 versus 0.7555), using 160× fewer training tokens.
Comparison with iterative mean-field inference. The mean-field baseline performs iterative variational inference and learns its decoder using Adam. At 524k, it reaches single-feature accuracy of and RAVEL disentanglement of , significantly underperforming BeFOND on both metrics (Table 6).
6 CONCLUSION AND DISCUSSION
We formulate inference and dictionary learning as natural-gradient flows on a shared variational free energy (the FOND framework). Our theory establishes limitations of single-projection encoders and shows how Fisher preconditioning compensates for infrequent activation under frozen, matched moments. We introduce BeFOND, which improves synthetic feature recovery and supports increasing feature quality at larger dictionary widths on Gemma.
Limitations. Repeated inference steps and numerical decoder updates increase BeFOND's computational cost (sections B.8 and D.3). Future work will focus on improving computational efficiency, speeding up inference convergence by adding momentum, and extending the factorized variational family with pairwise interactions to represent dependencies between latent features.
On Gemma-2-2B layer-12 activations, BeFOND improves concept detection and selective intervention. Its gains increase with dictionary width while the evaluated baselines largely plateau. Together with recurrent explaining away and improved rare-feature recovery, these results show the practical value of taking the statistical geometry of inference and learning seriously.
The broader lesson is how adaptation dynamics should be derived:
Physics of Adaptation: deriving covariant adaptation dynamics
Inference and learning dynamics should respect the intrinsic geometry and symmetries of the underlying model (section A.5).
CODE AND DATA
Our code, data, and model checkpoints are available here:
https://github.com/hadivafaii/BeFOND
AI USE STATEMENT
We used generative AI tools to assist with mathematical derivations, software implementation and debugging, experimental analysis and visualization, literature searches, and manuscript drafting and editing. The authors are responsible for the final text, results, and claims.
REFERENCES
M. Aharon, M. Elad, and A. Bruckstein. rmK-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation. IEEE Transactions on Signal Processing, 54(11):4311–4322, 2006. doi: 10.1109/tsp.2006.881199. URL https://doi.org/10.1109/tsp.2006.881199.
Awad H. Al-Mohy and Nicholas J. Higham. Computing the Action of the Matrix Exponential, with an Application to Exponential Integrators. SIAM Journal on Scientific Computing, 33(2):488–511, 2011. doi: 10.1137/100788860. URL https://doi.org/10.1137/100788860.
Alexander Alemi, Ben Poole, Ian Fischer, Joshua Dillon, Rif A. Saurous, and Kevin Murphy. Fixing a Broken ELBO. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 159–168. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/alemi18a.html.
Shun-ichi Amari. Natural Gradient Works Efficiently in Learning. Neural Computation, 10(2):251–276, 1998. doi: 10.1162/089976698300017746. URL https://doi.org/10.1162/089976698300017746.
Shun-ichi Amari. Information Geometry and Its Applications. Springer Japan, 2016. ISBN 9784431559771. doi: 10.1007/978-4-431-55978-8. URL https://doi.org/10.1007/978-4-431-55978-8.
Shun-ichi Amari and Hiroshi Nagaoka. Methods of Information Geometry, volume 191 of Translations of Mathematical Monographs. American Mathematical Society, 2000. ISBN 9780821805312. doi:10.1090/mmono/191. URL https://doi.org/10.1090/mmono/191.
David Attwell and Simon B. Laughlin. An Energy Budget for Signaling in the Grey Matter of the Brain. Journal of Cerebral Blood Flow & Metabolism, 21(10):1133–1145, 2001. doi: 10.1097/00004647-200110000-00001. URL https://doi.org/10.1097/00004647-200110000-00001.
Andrea Auconi and Sosuke Ito. Information-Geometric Signatures of Nonconservative Driving, 2026. URL https://arxiv.org/abs/2605.03757.
Lukas Balles and Philipp Hennig. Dissecting Adam: The sign, magnitude and variance of stochastic gradients. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 404–413. PMLR, 2018. URL https://proceedings.mlr.press/v80/balles18a.html.
Vitória Barin-Pacela, Shruti Joshi, Isabela Camacho, Simon Lacoste-Julien, and David Klindt. Stop Probing, Start Coding: Why Linear Probes and Sparse Autoencoders Fail at Compositional Generalisation, 2026. URL https://arxiv.org/abs/2603.28744.
Amir Beck and Marc Teboulle. A Fast Iterative Shrinkage-Thresholding Algorithm for Linear Inverse Problems. SIAM Journal on Imaging Sciences, 2(1):183–202, 2009. doi: 10.1137/080716542. URL https://doi.org/10.1137/080716542.
P. G. Bissiri, C. C. Holmes, and S. G. Walker. A General Framework for Updating Belief Distributions. Journal of the Royal Statistical Society Series B: Statistical Methodology, 78(5):1103–1130, 2016. doi: 10.1111/rssb.12158. URL https://doi.org/10.1111/rssb.12158.
David M. Blei, Alp Kucukelbir, and Jon D. McAuliffe. Variational Inference: A Review for Statisticians. Journal of the American Statistical Association, 112(518):859–877, 2017. doi:10.1080/01621459.2017.1285773. URL https://doi.org/10.1080/01621459.2017.1285773.
Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004. URL https://web.stanford.edu/~boyd/cvxbook/.
Trenton Bricken, Adly Templeton, Joshua Batson, Brian Chen, Adam Jermyn, Tom Conerly, Nicholas L Turner, Cem Anil, Carson Denison, Amanda Askell, Robert Lasenby, Yifan Wu, Shauna Kravec, Nicholas Schiefer, Tim Maxwell, Nicholas Joseph, Alex Tamkin, Karina Nguyen, Brayden McLean, Josiah E Burke, Tristan Hume, Shan Carter, Tom Henighan, and Chris Olah. Towards Monosemanticity: Decomposing Language Models With Dictionary Learning. Transformer Circuits Thread, 2023. URL https://transformer-circuits.pub/2023/monosemantic-features/.
Bart Bussmann, Patrick Leask, and Neel Nanda. BatchTopK Sparse Autoencoders, 2024. URL https://arxiv.org/abs/2412.06410.
Bart Bussmann, Noa Nabeshima, Adam Karvonen, and Neel Nanda. Learning Multi-Level Features with Matryoshka Sparse Autoencoders. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 6077–6101. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/bussmann25a.html.
Augustin-Louis Cauchy. Méthode générale pour la résolution des systèmes d'équations simultanées. Comptes rendus hebdomadaires des séances de l'Académie des sciences, 1847. URL https://www.probabilityandfinance.com/pulskamp/Cauchy/Orbits/1847%20CR%20536(383).pdf.
David Chanin. Training Matching Pursuit SAEs on LLMs. LessWrong, December 2025. URL https://www.lesswrong.com/posts/rE43EfHigXcjTmomJ/training-matching-pursuit-saes-on-llms.
David Chanin and Adrià Garriga-Alonso. SynthSAEBench: Evaluating Sparse Autoencoders on Scalable Realistic Synthetic Data, 2026. URL https://arxiv.org/abs/2602.14687.
chanind-goodfire. SynthSAEBench Full-Width SAE Sweep. Hugging Face model and training-recipe release, 2026. URL https://huggingface.co/chanind-goodfire/synthsaebench-full-width-sweep.
Andrew R. Conn, Nicholas I. M. Gould, and Philippe L. Toint. Trust Region Methods. Society for Industrial and Applied Mathematics, 2000. doi: 10.1137/1.9780898719857.
Valérie Costa, Thomas Fel, Ekdeep S Lubana, Bahareh Tolooshams, and Demba Ba. From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuit. In Advances in Neural Information Processing Systems 38, pp. 38625–38668. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2025. doi: 10.52202/085713-1154. URL https://doi.org/10.52202/085713-1154.
S.M. Cox and P.C. Matthews. Exponential Time Differencing for Stiff Systems. Journal of Computational Physics, 176(2):430–455, 2002. doi: 10.1006/jcph.2002.6995. URL https://doi.org/10.1006/jcph.2002.6995.
Hoagy Cunningham, Aidan Ewart, Logan Riggs, Robert Huben, and Lee Sharkey. Sparse Autoencoders Find Highly Interpretable Features in Language Models. In International Conference on Learning Representations, volume 2024, pp. 7827–7845, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/1falab11f4bd5f94b2ec20e794dbfa3b-Paper-Conference.pdf.
I. Daubechies, M. Defrise, and C. De Mol. An iterative thresholding algorithm for linear inverse problems with a sparsity constraint. Communications on Pure and Applied Mathematics, 57(11):1413–1457, 2004. doi: 10.1002/cpa.20042. URL https://doi.org/10.1002/cpa.20042.
James G. Dowty. Chentsov's theorem for exponential families. Information Geometry, 1:117–135, 2018. doi: 10.1007/s41884-018-0006-4. URL https://doi.org/10.1007/s41884-018-0006-4.
Albert Einstein. Die grundlage der allgemeinen relativitätstheorie. Annalen der Physik, 354(7): 769–822, 1916. doi: 10.1002/andp.19163540702.
Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. Toy models of superposition. Transformer Circuits Thread, 2022. URL https://transformer-circuits.pub/2022/toy_model/index.html.
Michael Y.-S. Fang, Mayur Mudigonda, Ryan Zarcone, Amir Khosrowshahi, and Bruno A. Olshausen. Learning and Inference in Sparse Coding Models With Langevin Dynamics. Neural Computation, 34(8):1676–1700, 2022. doi: 10.1162/neco_a_01505. URL https://doi.org/10.1162/neco_a_01505.
Leo Gao, Tom Dupre la Tour, Henk Tillman, Gabriel Goh, Rajan Troll, Alec Radford, Ilya Sutskever, Jan Leike, and Jeffrey Wu. Scaling and evaluating sparse autoencoders. In International Conference on Learning Representations, volume 2025, pp. 26721–26754, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/42ef3308c230942d223c411adf182c88-Paper-Conference.pdf.
Gemma Team. Gemma 2: Improving Open Language Models at a Practical Size. arXiv preprint arXiv:2408.00118, 2024. URL https://arxiv.org/abs/2408.00118.
Karol Gregor and Yann LeCun. Learning fast approximations of sparse coding. In Proceedings of the 27th International Conference on Machine Learning, pp. 399–406, 2010. URL https://icml.cc/Conferences/2010/papers/449.pdf.
William W. Hager. Updating the Inverse of a Matrix. SIAM Review, 31(2):221–239, 1989. URL https://people.clas.ufl.edu/hager/files/update-1.pdf.
Arthur Hobson. A new theorem of information theory. Journal of Statistical Physics, 1(3):383–391, 1969. doi: 10.1007/bf01106578. URL https://doi.org/10.1007/bf01106578.
Marlis Hochbruck and Alexander Ostermann. Exponential integrators. Acta Numerica, 19:209–286, 2010. doi: 10.1017/s0962492910000048. URL https://doi.org/10.1017/s0962492910000048.
Matthew D. Hoffman, David M. Blei, Chong Wang, and John Paisley. Stochastic Variational Inference. Journal of Machine Learning Research, 14(40):1303–1347, 2013. URL http://jmlr.org/papers/v14/hoffman13a.html.
Jing Huang, Zhengxuan Wu, Christopher Potts, Mor Geva, and Atticus Geiger. RAVEL: Evaluating Interpretability Methods on Disentangling Language Model Representations. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 8669–8687, Bangkok, Thailand, Aug 2024. Association for Computational Linguistics. doi:10.18653/v1/2024.acl-long.470. URL https://aclanthology.org/2024.acl-long.470/.
Adam Jermyn and Adly Templeton. Ghost Grads: An Improvement on Resampling. Transformer Circuits Thread, January 2024. URL https://transformer-circuits.pub/2024/jan-update/index.html#dict-learning-resampling. Circuits Updates, January 2024.
Matt Jones, Peter Chang, and Kevin Murphy. Bayesian Online Natural Gradient (BONG). In Advances in Neural Information Processing Systems 37, pp. 131104–131153. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2024. doi: 10.52202/079017-4167. URL https://doi.org/10.52202/079017-4167.
Michael I. Jordan, Zoubin Ghahramani, Tommi S. Jaakkola, and Lawrence K. Saul. An Introduction to Variational Methods for Graphical Models. Machine Learning, 37(2):183–233, 1999. doi:10.1023/a:1007665907178. URL https://doi.org/10.1023/a:1007665907178.
Subhash Kantamneni, Joshua Engels, Senthooran Rajamanoharan, Max Tegmark, and Neel Nanda. Are Sparse Autoencoders Useful? A Case Study in Sparse Probing. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 29018–29049. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/kantamneni25a.html.
Adam Karvonen, Can Rager, Johnny Lin, Curt Tigges, Joseph Isaac Bloom, David Chanin, Yeu-Tong Lau, Eoin Farrell, Callum Stuart Mcdougall, Kola Ayonrinde, Demian Till, Matthew Wearden, Arthur Conmy, Samuel Marks, and Neel Nanda. SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretability. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 29223–29264. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/karvonen25a.html.
Mohammad Emtiyaz Khan and Håvard Rue. The Bayesian Learning Rule. Journal of Machine Learning Research, 24(281):1–46, 2023. URL http://jmlr.org/papers/v24/22-0291.html.
Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1412.6980.
Diederik P. Kingma and Max Welling. Auto-Encoding Variational Bayes. In International Conference on Learning Representations, 2014. URL https://arxiv.org/abs/1312.6114.
David Klindt, Charles O'Neill, Patrik Reizinger, Harald Maurer, and Nina Miolane. A unifying framework from neural superposition to sparse interpretable codes. Nature Machine Intelligence, 8(7):1025–1037, 2026. doi: 10.1038/s42256-026-01259-z. URL https://www.nature.com/articles/s42256-026-01259-z.
L.D. Landau and E.M. Lifshitz. The Classical Theory of Fields, volume 2 of Course of Theoretical Physics. Pergamon Press, 4th edition, 1975. URL https://perso.crans.org/sylvainrey/Biblio%20Physique/Physique/%C3%89lectromagn%C3%A9tisme/%5BLandau%2C%20Lifshitz%5D%2002%20The%20Classical%20Theory%20of%20Fields.pdf.
Michael S. Lewicki and Terrence J. Sejnowski. Learning Overcomplete Representations. Neural Computation, 12(2):337–365, 2000. doi: 10.1162/089976600300015826. URL https://doi.org/10.1162/089976600300015826.
Tom Lieberum, Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Nicolas Sonnerat, Vikrant Varma, Janos Kramar, Anca Dragan, Rohin Shah, and Neel Nanda. Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pp. 278–300. Association for Computational Linguistics, 2024. doi: 10.18653/v1/2024.blackboxnlp-1.19. URL https://doi.org/10.18653/v1/2024.blackboxnlp-1.19.
Haihao Lu, Robert M. Freund, and Yurii Nesterov. Relatively Smooth Convex Optimization by First-Order Methods, and Applications. SIAM Journal on Optimization, 28(1):333–354, 2018. doi:10.1137/16m1099546. URL https://doi.org/10.1137/16m1099546.
Julien Mairal, Francis Bach, Jean Ponce, and Guillermo Sapiro. Online Learning for Matrix Factorization and Sparse Coding. Journal of Machine Learning Research, 11(2):19–60, 2010. URL http://jmlr.org/papers/v11/mairal10a.html.
Alireza Makhzani and Brendan Frey. k-Sparse Autoencoders. In International Conference on Learning Representations, 2014. URL https://arxiv.org/abs/1312.5663.
S.G. Mallat and Zhifeng Zhang. Matching pursuits with time-frequency dictionaries. IEEE Transactions on Signal Processing, 41(12):3397–3415, 1993. doi: 10.1109/78.258082. URL https://doi.org/10.1109/78.258082.
James Martens. New Insights and Perspectives on the Natural Gradient Method. Journal of Machine Learning Research, 21(146):1–76, 2020. URL http://jmlr.org/papers/v21/17-678.html.
James Martens and Roger Grosse. Optimizing Neural Networks with Kronecker-factored Approximate Curvature. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 2408–2417, Lille, France, 07–09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/martens15.html.
monology. Pile Uncopyrighted. Hugging Face dataset, 2023. URL https://huggingface.co/datasets/monology/pile-uncopyrighted.
Kevin P Murphy. Machine Learning: A Probabilistic Perspective. MIT Press, 2012. URL https://probml.github.io/pml-book/book0.html.
Radford M. Neal and Geoffrey E. Hinton. A View of the EM Algorithm that Justifies Incremental, Sparse, and Other Variants. In Michael I. Jordan (ed.), Learning in Graphical Models, pp. 355–368. Springer Netherlands, 1998. ISBN 9789401061049. doi: 10.1007/978-94-011-5014-9_12. URL https://doi.org/10.1007/978-94-011-5014-9_12.
Yann Ollivier, Ludovic Arnold, Anne Auger, and Nikolaus Hansen. Information-geometric optimization algorithms: A unifying picture via invariance principles. Journal of Machine Learning Research, 18(18):1–65, 2017. URL https://jmlr.org/papers/v18/14-467.html.
Bruno A. Olshausen and David J. Field. Emergence of simple-cell receptive field properties by learning a sparse code for natural images. Nature, 381(6583):607–609, 1996. doi: 10.1038/381607a0. URL https://doi.org/10.1038/381607a0.
Bruno A. Olshausen and David J. Field. Sparse coding with an overcomplete basis set: A strategy employed by V1? Vision Research, 37(23):3311–3325, 1997. doi: 10.1016/s0042-6989(97)00169-7. URL https://doi.org/10.1016/s0042-6989(97)00169-7.
Bruno A Olshausen and David J Field. Sparse coding of sensory inputs. Current Opinion in Neurobiology, 14(4):481–487, 2004. doi: 10.1016/j.conb.2004.07.007. URL https://doi.org/10.1016/j.conb.2004.07.007.
Charles O'Neill, Alim Gumran, and David Klindt. Compute Optimal Inference and Provable Amortisation Gap in Sparse Autoencoders. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 46877–46896. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/o-neill25a.html.
Dario Picozzi. The information geometry of large language models is shared, learned, and controllable, 2026. URL https://arxiv.org/abs/2609.11063.
Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Tom Lieberum, Vikrant Varma, János Kramár, Rohin Shah, and Neel Nanda. Improving Sparse Decomposition of Language Model Activations with Gated Sparse Autoencoders. In Advances in Neural Information Processing Systems, volume 37, pp. 775–818. Curran Associates, Inc., 2024a. doi: 10.52202/079017-0024. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/01772a8b0420baec00c4d59fe2fbace6-Paper-Conference.pdf.
Senthooran Rajamanoharan, Tom Lieberum, Nicolas Sonnerat, Arthur Conmy, Vikrant Varma, János Kramár, and Neel Nanda. Jumping Ahead: Improving Reconstruction Fidelity with JumpReLU Sparse Autoencoders, 2024b. URL https://arxiv.org/abs/2407.14435.
Vidhya Rangaraju, Marcel Lauterbach, and Erin M. Schuman. Spatially Stable Mitochondrial Compartments Fuel Local Translation during Plasticity. Cell, 176(1–2):73–84.e15, 2019. doi:10.1016/j.cell.2018.12.013. URL https://doi.org/10.1016/j.cell.2018.12.013.
Christopher J. Rozell, Don H. Johnson, Richard G. Baraniuk, and Bruno A. Olshausen. Sparse Coding via Thresholding and Local Competition in Neural Circuits. Neural Computation, 20(10):2526–2563, 2008. doi: 10.1162/neco.2008.03-07-486. URL https://doi.org/10.1162/neco.2008.03-07-486.
Yousef Saad. Iterative Methods for Sparse Linear Systems. Society for Industrial and Applied Mathematics, 2 edition, 2003. URL https://www-users.cse.umn.edu/~saad/IterMethBook_2ndEd.pdf.
Simo Särkkä and Lennart Svensson. Bayesian Filtering and Smoothing. Cambridge University Press, 2 edition, 2023. doi: 10.1017/9781108917407. URL https://doi.org/10.1017/9781108917407.
Wenjie Sun, Di Wang, and Lijie Hu. The Price of Amortized inference in Sparse Autoencoders. In International Conference on Learning Representations, volume 2026, pp. 72686–72710, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/76358e88c3ebd38ba58af9d0d84b71e4-Paper-Conference.pdf.
Adly Templeton, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, Alex Tamkin, Esin Durmus, Tristan Hume, Francesco Mosconi, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, and Tom Henighan. Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet. Transformer Circuits Thread, 2024. URL https://transformer-circuits.pub/2024/scaling-monosemanticity/.
Lloyd N. Trefethen. Approximation Theory and Approximation Practice, Extended Edition. Society for Industrial and Applied Mathematics, 2019. URL https://people.maths.ox.ac.uk/trefethen/ATAP/.
Hadi Vafaii, Dekel Galor, and Jacob Yates. Brain-like Variational Inference. In Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 163700–163778. Curran Associates, Inc., 2025. doi: 10.52202/085713-5465. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/efa0939caa8a906fd0a61a9c60e46e8b-Paper-Conference.pdf.
Csongor Várady, Riccardo Volpi, Luigi Malagò, and Nihat Ay. Natural Reweighted Wake–Sleep. Neural Networks, 155:574–591, 2022. doi: 10.1016/j.neunet.2022.09.006. URL https://doi.org/10.1016/j.neunet.2022.09.006.
Martin J. Wainwright and Michael I. Jordan. Graphical Models, Exponential Families, and Variational Inference. Foundations and Trends® in Machine Learning, 1(1-2):1–305, 2008. doi: 10.1561/2200000001. URL https://doi.org/10.1561/2200000001.
Zeyu Yun, Yubei Chen, Bruno Olshausen, and Yann LeCun. Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factors. In Proceedings of Deep Learning Inside Out (DeeLIO): The 2nd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pp. 1–10, Online, jun 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.deelio-1.1. URL https://aclanthology.org/2021.deelio-1.1/.
Arnold Zellner. Optimal Information Processing and Bayes's Theorem. The American Statistician, 42(4):278–280, 1988. doi: 10.1080/00031305.1988.10475585. URL https://doi.org/10.1080/00031305.1988.10475585.
Arnold Zellner. Information processing and Bayesian analysis. Journal of Econometrics, 107(1-2): 41–50, 2002. doi: 10.1016/s0304-4076(01)00112-9. URL https://doi.org/10.1016/s0304-4076(01)00112-9.
APPENDIX: INFERENCE AND LEARNING IN SPARSE AUTOENCODERS AS NATURAL GRADIENT FLOW
A Extended background 18
A.1 Superposition and inference 18
A.2 Iterative sparse encoders. 18
A.3 Variational inference and the free energy objective 19
A.4 Trust regions and natural-gradient inference 20
A.5 “Physics of Adaptation”: deriving covariant inference and learning rules 23
B Extended FOND model and dynamics 29
B.1 Model and objective 29
B.2 Natural-gradient dynamics 32
B.3 Decoder bias 34
B.4 Bernoulli uncertainty and sparse coding 34
B.5 Activation threshold under a rolling prior 34
B.6 Numerical integration and matrix-free updates 34
B.7 Algorithm 35
B.8 Computational complexity 36
C Extended theoretical analyses, synthetic experiments, and ablations 37
C.1 Experimental setup 37
C.2 Inference proofs 38
C.3 Inference and learning ablations 42
C.4 Exact and approximate rarity compensation 45
C.5 Learning and rare-feature recovery 48
D Extended Gemma experiments 52
D.1 Experimental setup 52
D.2 Results 53
D.3 Wall-clock training times on H200 GPUs 54
A EXTENDED BACKGROUND
A.1 SUPERPOSITION AND INFERENCE
Inferring a sparse code can be difficult even with a perfectly learned dictionary. To isolate the inference problem, consider the noiseless generative process , where the ground truth dictionary has unit-norm columns, and suppose we have learned the true dictionary . Projecting the observation onto each dictionary atom gives:
The projection combines the feature’s own activity with contributions from other active features, weighted by their overlap with its dictionary atom. Even when only one feature j is active, an inactive feature i can receive a nonzero projection. When several features are active, their contributions can reinforce or cancel one another, making projection scores less reliable indicators of individual feature activity (Elhage et al., 2022).
For an orthonormal dictionary, all interference terms vanish, and inference reduces to a single projection: . However, an overcomplete dictionary ( ) cannot have mutually orthogonal columns, so this interference cannot be eliminated for all feature pairs.
Therefore, inference should distinguish a feature’s own contribution from evidence attributable to other active features. This motivates explaining away: support for a candidate feature decreases when other features already explain the evidence that initially supported it (Murphy, 2012). Such interactions allow inference to account for overlap between dictionary atoms rather than interpreting each projection independently (Rozell et al., 2008).
A.2 ITERATIVE SPARSE ENCODERS
Iterative encoders refine sparse representations through successive updates rather than a single feedforward prediction. ISTA, FISTA, and soft-thresholding LCA optimize -regularized reconstruction (Daubechies et al., 2004; Beck & Teboulle, 2009; Rozell et al., 2008), with LCA implementing lateral competition. LISTA learns a finite-step approximation (Gregor & LeCun, 2010), while matching pursuit (MP) greedily selects atoms to explain the remaining residual (Mallat & Zhang, 1993).
With a fixed pretrained dictionary, better inference remains limited by the learned feature directions. Additional ISTA refinement improves reconstruction with little change in BatchTopK probe scores; non-amortized ISTA worsens splitting for Gemma TopK and increases dead latents for Pythia Standard SAEs (Sun et al., 2026). FISTA applied to fixed SAE dictionaries also fails to close the feature-recovery gap in controlled experiments, implicating the learned dictionary as a bottleneck (Barin-Pacela et al., 2026). On Pythia-160M, however, Sun et al. report improved targeted-probe selectivity and generally higher generative intervention scores with semi- and non-amortized inference (Sun et al., 2026, Appendix C).
Approaches that also learn the dictionary have shown promising results: MP-SAE captures hierarchical features through residual-guided selection and supports different inference-time sparsity levels (Costa et al., 2025), while LocA-SAE seeks similar feature-quality benefits through grouped amortized encoders rather than explicit iterative refinement (Sun et al., 2026). But better reconstruction has not consistently translated into better interpretability tools. On Gemma-2-2B, MP-SAEs improve reconstruction but underperform the tested feed-forward baselines on sparse probing, with substantially longer training. The evaluator therefore recommends against them as a first choice for practical interpretability (Chanin, 2025). LocA-SAE eliminates dead latents on Gemma but scores below the Standard SAE on the same proxy probes, so improved utilization need not yield more predictive features (Sun et al., 2026). Across these evaluations, reconstruction, probing, and intervention metrics need not improve together, and the practical benefit of iterative refinement in these prior work remains task-dependent.
A.3 VARIATIONAL INFERENCE AND THE FREE ENERGY OBJECTIVE
We provide a pedagogical introduction to variational inference and derive the free energy objective. In this derivation, we distinguish two KL divergences: one measures how well we approximate the true posterior, while the other measures departure from the prior. They play different roles in the same exact identity.
Finally, we explain why minimizing free energy improves inference using a few lines of algebra.
Variational posterior inference. Consider an observation and -dimensional latent variables . For Bernoulli latents, . A generative model specifies a prior and a likelihood , whose product is the joint distribution. Bayes' rule gives:
The denominator is the model evidence: the probability density of the observation after summing over all latent explanations. This sum contains terms, making direct evaluation generally infeasible for large . The “true posterior” here means the exact posterior under the chosen generative model.
Variational inference is a powerful approximation method that replaces this computation with an optimization problem (Jordan et al., 1999; Blei et al., 2017). In variational inference, we introduce a tractable approximate posterior and adjust its variational parameters to minimize
This KL divergence is nonnegative and vanishes exactly when the two distributions agree (Blei et al., 2017). But its value still depends on the intractable posterior, so we can’t directly compute and optimize it. The next step isolates that dependence, leaving an objective we can optimize without evaluating the evidence.
Free-energy derivation. Fix and throughout the derivation. To keep the algebra readable, write and suppress the parameter subscript on . All expectations below are over . For finite Bernoulli logits and a positive Gaussian covariance, the distributions are strictly positive, so the following ratios are well defined.
Since is normalized, . Multiply the log evidence by this sum, apply Bayes' rule, and insert :
(22)
All we did was multiply by one twice, then rearrange logarithms. We didn’t have to invoke Jensen’s inequality as it is typically done. Instead, we have an exact decomposition of the log evidence. Nonnegativity of the final KL gives the evidence lower bound, ELBO ≤ log p(x). Its negative is the variational free energy, (Neal & Hinton, 1998; Kingma & Welling, 2014).
Posterior and prior KL divergences. Expanding inside the ELBO reveals a second KL (Kingma & Welling, 2014). With , we have:
The inference KL compares the approximate posterior with the true posterior, . This is the original objective in eq. (21). The prior KL, by contrast, compares the approximate posterior with , before conditioning on the observation. It is a component of free energy, and can be interpreted as a coding rate: the cost of representing the input-dependent distribution relative to the prior (Alemi et al., 2018). We use natural logarithms, so this cost is measured in nats.
These quantities need not decrease together. If inference starts at the prior, the prior KL is initially zero. Explaining an informative observation generally requires moving away from that prior, increasing the coding rate while reducing the inference KL. Free energy balances this cost against the improvement in expected log likelihood. Minimizing the prior KL alone would simply return the prior and ignore the observation.
Free energy and posterior approximation. Rearranging the first line of eq. (23) yields
The evidence depends on the generative model and observation, but not on the variational parameters. Therefore, with x and fixed, every decrease in F is an equal decrease in the inference KL (Blei et al., 2017). Equivalently, we have:
This is the sense in which free energy minimization improves inference. It holds regardless of whether the variational parameters are produced by an amortized encoder or refined iteratively. The bound becomes tight, , only when the approximate posterior equals the true posterior. A restricted variational family may not contain that posterior (Wainwright & Jordan, 2008; Blei et al., 2017); for example, a factorized Bernoulli distribution cannot represent all the dependencies induced by overlapping dictionary atoms. Optimization can reduce the KL without eliminating this approximation gap.
A.4 TRUST REGIONS AND NATURAL-GRADIENT INFERENCE
Inference moves the approximate posterior to reduce free energy. But specifying the objective is only part of specifying the dynamics. We also need to decide how far beliefs should move at each step, and what counts as a small change. This choice of distance is what takes us from ordinary gradient descent to the Fisher geometry used by FOND (Vafaii et al., 2025).
Throughout this derivation, we hold the observation , generative parameters , and prior reference fixed. We write the objective as and suppress conditioning on in .
From a gradient to a step. At the current iterate , define . For a small displacement , the gradient predicts the change in free energy:
There is a catch: if , the linear term keeps decreasing as we move farther along . Taken literally, it would tell us to take an infinitely large step. Yet, the prediction in eq. (26) is only useful nearby. We can keep the step finite by attaching a quadratic cost to movement:
The last equality follows by differentiating with respect to and setting . This is ordinary gradient descent: a balance between the predicted improvement and the cost of moving away from the current iterate (Martens, 2020). Increasing makes movement cheaper, allowing a longer step. The quadratic term belongs to the update rule; the approximation to itself remains first order.
Trust-region formulation. We can express the same tradeoff as a movement budget (Boyd & Vandenberghe, 2004, Sec. 9.4). Allow a step only within a ball around the current iterate, and choose the one that most reduces the linearized objective:
The radius sets how far we are willing to trust the local prediction. For and , the optimum uses the full budget, giving . It agrees with eq. (27) when . Thus, a fixed step size lets a large gradient spend more of the movement budget, while a fixed enforces the same radius at each step.
Changing the geometry of the step. Euclidean distance measures every direction with the same ruler. More generally, a positive-definite matrix assigns the squared length to a displacement. We evaluate this metric at the current iterate and hold it fixed while choosing the step. Replacing the Euclidean penalty gives:
The corresponding constraint, , has solution
The ball has become an ellipsoid. Along an eigenvector with a large metric eigenvalue, movement costs more, so the same gradient component produces a smaller update. This is why “steepest descent” needs a geometry: the best direction depends on how we measure the cost of getting there (Amari, 1998; Boyd & Vandenberghe, 2004).
Measuring changes in beliefs. So far, we have measured movement in parameter space. But u is a description of a belief, and equal parameter changes can mean very different belief changes. For example, a small change in a Bernoulli logit shifts the activation probability most strongly near 1/2, and much less near 0 or 1. A unit of logit displacement therefore has no fixed meaning as a change in belief. We should price the step by how much it changes the distribution it represents.
KL divergence gives us such a measure:
Hobson (1969) characterized KL as an information measure for finite-outcome belief revision; section A.5 develops this motivation further. Here, it measures the change between successive approximate posteriors. The prior KL in free energy has a different job: it helps define the objective by comparing the posterior with its prior reference (section A.3). The stepwise KL tells us how much we change our mind in one update. Many small updates can still carry beliefs far from the prior.
From local KL divergence to the Fisher metric. For a smooth family with common positive support and sufficient regularity to differentiate under the expectation, define the score . Normalization gives . When the two distributions coincide, the KL divergence and its first derivative vanish. Its leading contribution is therefore quadratic, and its Hessian is the Fisher information:
The Fisher metric measures how sensitive the distribution is to movement in each direction. A large Fisher length means the step makes the old and new beliefs easier to distinguish, spending more of the same KL budget. Reversing the KL arguments gives the same quadratic term (Martens, 2020): KL is asymmetric beyond this local approximation, but both orientations supply the same local ruler.
There is also a statistical reason to favor this ruler. A sufficient statistic retains all the information about the parameter; replacing the full observation by that statistic should preserve statistical lengths. For regular minimal exponential families, Dowty's Chentsov-type theorem makes this requirement precise. Together with the appropriate scaling for independent replication and additional compatibility and continuity assumptions, preservation by canonical sufficient statistics characterizes the Fisher metric up to a positive constant (Dowty, 2018).
The natural-gradient update. Set in eq. (29). To leading order, the movement cost is now the KL divergence divided by . Balancing this cost against the predicted decrease in free energy yields:
This is natural-gradient descent wherever the Fisher is nonsingular (Amari, 1998; Martens, 2020). Constraining and using its quadratic approximation gives the same direction, with the budget-dependent normalization in eq. (30).
For the continuous flow , the rate of change of free energy is:
Wherever the gradient is nonzero, free energy strictly decreases along the flow. After discretization, the step size still matters: a large jump can leave the region where the local prediction is accurate, so an arbitrary finite update need not decrease .
A Gaussian inference example. To see what changing the ruler buys us, consider a Gaussian target posterior and a variational family , with fixed . In this illustration, denotes the posterior mean, rather than the Bernoulli logits used in BeFOND. For the ordinary variational free energy ( ), eq. (24) gives:
The score is , giving . Hence:
Suppose the target posterior is very certain along one direction, but uncertain along another. Along an eigenvector of S with eigenvalue , a Euclidean step multiplies the mean error by . The narrow, certain direction forces a small to avoid overshooting; with that same step size, the broad direction barely moves. Convergence in all directions requires .
The natural-gradient step instead removes the precision factor : every component of the mean error contracts by . It corrects the same fraction of the remaining error in each direction, with convergence for . For this mean-only quadratic problem, reaches the target mean in one step.
Reparameterization invariance. The belief itself should not care whether we describe it by a probability, a logit, or some other smooth coordinate. Let be a smooth invertible reparameterization, with Jacobian . The chain rule and the score definition give:
(38)
The gradient and metric change together, so the natural-gradient velocity obeys , exactly as a velocity should. Wherever the flow is well defined, both coordinate systems describe the same evolution of distributions (Amari, 1998; Martens, 2020). This is the optimization counterpart of the covariance principle developed in section A.5.
This invariance is a property of the continuous dynamics. A finite Euler step preserves it exactly under affine coordinate changes, but generally only to first order under nonlinear ones (Martens, 2020). The geometry fixes the direction of motion, and discretization determines how faithfully our finite steps follow it.
A.5 “PHYSICS OF ADAPTATION”: DERIVING COVARIANT INFERENCE AND LEARNING RULES
In this section, we take a physics-inspired approach to dynamics and motivate the use of natural gradients through this angle. Specifically, we argue that the dynamics of inference and learning can be derived from stationary-action principles (Landau & Lifshitz, 1975), supplemented by dissipative forces. We emphasize how the underlying geometry of the system must constrain our choice of the kinetic Lagrangian. For beliefs existing on statistical manifolds, we will introduce the kinetic energy of beliefs as a natural choice, and use it to derive natural gradient descent in the overdamped (massless) limit of belief dynamics.
The principle of stationary action. Physics is fundamentally about dynamics. The most successful theories in physics—including Newtonian mechanics, special and general relativity, electromagnetism, and quantum field theory—share two core attributes. They all: (1) identify some dynamical objects of interest, and (2) derive their dynamics via the principle of stationary action:
Principle of stationary action: The closest physics has come to a theory of everything
Physical systems evolve to extremize action S (time integral of the Lagrangian L):
Euler–Lagrange equations. Extremizing the action leads directly to the Euler–Lagrange equations:
Here, is position, is velocity, and is the Lagrangian. In classical mechanics, the Lagrangian is simply kinetic minus potential energy, , and the kinetic energy is given by , where is the rest mass.
As an illustrative example, apply eq. (40) to :
(41)
Defining force and acceleration , we recover Newton's second law, .
Generalized Euler–Lagrange equations. Equation (40) describes the dynamics when all forces are represented in the Lagrangian. To include dissipation and other non-conservative forces not represented in L, we add a generalized force vector Q. This gives:
Defining the canonical momentum , the generalized Euler-Lagrange equation is:
Adaptation dynamics. The dynamics of various physical systems can be derived from eq. (43), by making different choices for the Lagrangian L and the non-conservative forces Q. We argue that the dynamics of adaptation is no different. We treat the belief state as the position of a fictitious particle moving in a potential , which we identify as the loss function. The same picture applies to the generative parameters during learning with potential .
FOND unifies both processes as variational free energy minimization, giving as one shared potential energy: inference changes with held fixed, while learning changes with held fixed. This leaves two modeling choices open: the kinetic part of the Lagrangian , and the dissipation force . Different choices lead to different inference and learning dynamics and, after discretization, different optimization algorithms, as we demonstrate below.
The principle of general covariance. With the potential energy fixed by the loss, let us turn to the kinetic part of the Lagrangian. How should we choose it? Should we just do a bunch of trial and error? Or is there a principled way to approach this? Physics gives us a basic requirement:
The principle of general covariance
“The general laws of nature are to be expressed by equations which hold good for all systems of co-ordinates, that is, are co-variant with respect to any substitutions whatever (generally co-variant).” — Einstein (1916)
Imagine tossing a ball across a room. If two people track its motion—one standing upright and one tilted sideways—they will record different numbers for its horizontal and vertical motion. Yet, both of them watch the ball land in the exact same spot. The ball has no idea about the observers watching it; it follows a physical path that does not change simply because different observers choose to describe it in different ways.
More concretely, consider Newton’s second law, . When you change your coordinate system, the actual numerical values of force and acceleration change, but the mathematical form of the law does not: becomes because both sides “co-vary” in lockstep under the transformation. In this sense, Newton’s law describes a “co-variant” dynamical rule under Galilean transformations. If rotating or shifting our reference frame altered where the ball landed, the equation wouldn’t be describing the ball at all—it would merely be describing our choice of coordinates.
Descartes, geometry, and algebra. This idea is not new. It goes back to Descartes' link between geometry and algebra: choose a coordinate system, and a point becomes a tuple of numbers. We have done this so often that it is easy to forget what comes with it: redundancy in the description. The origin, the orientation of the axes, and the units are all choices of the modeler. The same physical trajectory admits many different numerical descriptions. Covariance requires the equations to transform consistently between them, so that they all predict the same physical motion.
The principle of general covariance for inference and learning. Once again, we argue that the dynamics of adaptation are no different. A Bernoulli belief can be described by its activation probability or by its logit. These describe exactly the same distribution. Why should the learner's response to evidence change just because we switched between these two descriptions? We require the continuous dynamics of inference and learning to describe the same evolution of distributions under smooth, invertible reparameterizations (Amari, 1998; Martens, 2020).
There is also a concrete computational reason for this requirement. Take a scalar belief parameter u and write it instead as . If we apply ordinary Euclidean gradient descent in v, the gradient becomes ten times smaller, and converting the step back to u introduces another factor of ten.
Therefore, with the same learning rate, the update in u becomes smaller. Same belief, same evidence, same objective, but a different pace of adaptation, just because we changed the units.
We can fix this scalar example by re-tuning the learning rate. But when different coordinates are rescaled differently, a single learning rate cannot generally restore all their relative update speeds. Such artificial conditioning can force small steps for stability in some directions while leaving others barely moving (Martens, 2020). With a limited inference or training budget, this can determine which beliefs or features we have time to learn. We may then spend extra computation, and extra stochastic training samples, compensating for arbitrary scales chosen by the engineer.
A coordinate choice should not get to decide how well we can adapt. Therefore, we draw inspiration from Einstein (1916) and postulate the same thing for physics of adaptation:
The principle of general covariance, applied to inference and learning
The physics of adaptation must not depend on your choice of coordinate system.
To implement this principle, we need a measure of motion that remain invariant under coordinate transformations. This is what motivates the kinetic energy of beliefs below.
The kinetic energy of beliefs. We can arrive at a suitable kinetic term from two directions. The first is geometric. Suppose some parameters live on a manifold with Riemannian metric . What is the simplest scalar, quadratic in velocity, that measures how fast they move? The metric gives us the squared speed, so for the kinetic energy, the natural choice is:
Here, , and is a scalar that sets the relative scale of kinetic and potential energy. This expression is nonnegative, vanishes at rest, and treats motion in either direction equally. Crucially, it is invariant under a change of coordinates: the velocity and metric transform together, leaving their contraction unchanged. In Euclidean space, , and we recover the familiar .
This gives us the correct form of a kinetic energy on Riemannian manifolds, but we still need to choose the geometry of belief space.
The second route starts with a more physical question: what does it cost to change one's mind?
Zellner (1988) derived Bayes' rule as an optimal information processor, with no information lost between its inputs and outputs. Later, Zellner (2002) showed that introducing costs of changing beliefs can alter the optimal update, producing dynamic partial adjustment rather than an immediate revision. This is the distinction we need: specifying the posterior we ought to reach does not tell us how a physical learner gets there, or what the journey costs. We take the next step by giving beliefs a kinetic term, representing their resistance to change as inertia.
For a brain, this cost has a concrete physical basis. Brains are made of matter, and changing their state takes energy. Fast changes in neural activity involve ion flows across cell membranes, and restoring the ion gradients costs ATP (Attwell & Laughlin, 2001). Slower changes in synaptic strength can involve protein synthesis and physical remodeling of dendritic spines, supported by local metabolic resources (Rangaraju et al., 2019). Inference and learning take place through these physical processes. Why should the beliefs they implement be free to move?
To quantify this motion, let represent the learner's current belief. How much information separates it from the belief a short time later? Hobson (1969) asked how to measure the information in a message that changes probabilities from to . He made a list of intuitive requirements: the measure should be continuous, independent of how outcomes are labeled, zero when nothing changes, and larger when a message rules out more equally likely possibilities. It should also obey a composition rule: describing an outcome in stages should give the same information as describing it all at once. For finite outcome spaces, these requirements uniquely select , up to a positive constant. Its continuous counterpart retains coordinate invariance because the density Jacobians cancel in the ratio.
Following (Hobson, 1969), we measure the information in a local belief change by:
For a regular, smooth family with common support, the KL divergence and its first derivative vanish when the two distributions coincide. Its leading contribution is therefore quadratic, with the Fisher information as its Hessian (Amari & Nagaoka, 2000; Amari, 2016):
(46)
Along a smooth trajectory, . Dividing the local information gain by and taking the limit gives what we call the kinetic energy of beliefs:
The two arguments yield the same quadratic form (eqs. (44) and (47)). From the geometry argument, we derived a squared speed, and information processing supplied the Fisher metric that measures it. This speed tracks changes in the distribution itself, so it is invariant to rescaling the parameters. Doubling it quadruples , just as doubling a classical particle's speed quadruples .
At this stage, has units of information per time squared. Multiplying by m gives the kinetic term in eq. (44), with acting as a position-dependent mass matrix. We interpret m as setting the price of belief motion relative to reducing the loss. For a biological learner, this suggests a metabolic interpretation: moving beliefs faster requires more physical resources. Whether the brain’s ATP expenditure follows this precise quadratic form, and whether it shares the Fisher metric’s directional dependence, are open questions. We adopt this as a speculative interpretation of the kinetic term. The geometric derivation (eq. (44)) stands on its own.
Before we move on, we briefly mention a direct connection to recent stochastic thermodynamics. Auconi & Ito (2026) study the intrinsic speed of an evolving distribution, whose square is the temporal Fisher information, . For Markov jump and Fokker–Planck dynamics near a steady state, they relate to the second time derivative of the KL divergence toward that state, and use their difference to bound steady-state entropy production. Thus, the same geometric measure of motion appears in physical constraints on dissipation.
Finally, this construction (eqs. (44) and (47)) applies to both sides of FOND: inference uses the Fisher metric of the variational posterior, , while learning uses that of the generative joint distribution, . With the kinetic term chosen, we can now turn to the remaining ingredient: dissipation.
Dissipative equations of motion for beliefs. We now have both parts of the Lagrangian, . Below, we will address the last missing piece: dissipation force Q.
But first, we make the Lagrangian and the canonical momentum explicit. Let denote the entries of and those of its inverse, with repeated indices summed. During each inference or learning phase, we hold the other parameter block fixed and take V and G to have no explicit time dependence. The Lagrangian and canonical momentum are then:
(48)
For dissipation, a reasonable standard choice is linear damping proportional to canonical momentum, , where is a constant damping time. This is isotropic with respect to the belief-space metric: every direction has the same damping rate when measured in that geometry. It introduces no preferred direction beyond the metric we already chose. Other dissipation laws are possible, but we use this one as a simple, covariant starting point.
This force follows from the quadratic Rayleigh dissipation function:
(49)
It removes energy at a rate . Thus, the learner can lose momentum and settle, rather than oscillating or orbiting indefinitely under conservative forces.
Substituting L and into the generalized Euler–Lagrange equation (eq. (43)) gives:
where . Using and the inverse-metric identity , we obtain the full, dissipative equations of motion:
The geometric corrections arise because the metric changes as the learner moves. They are needed for the inertial dynamics to transform consistently between coordinate systems (i.e., to remain covariant). Equivalently, writing the equations in terms of velocity gives:
where are the Christoffel symbols of the metric. The acceleration and geometric correction together describe acceleration on the statistical manifold.
The overdamped (massless) limit. To recover first-order adaptation dynamics, we assume that momentum relaxes much faster than beliefs change. We make this precise by taking:
The last condition matters: inertia vanishes while friction remains finite. Heuristically, we can think of this as a “massless” learner. Imagine pushing a feather through thick honey. Its motion responds almost immediately to the balance between your push and the viscous drag, with very little coasting from its own momentum. The same intuition applies here: beliefs keep moving under the task force, but retain negligible momentum on the timescale of adaptation.
Consider the slower dynamics after the initial rapid relaxation of momentum, in a smooth region where the metric is nonsingular and the velocity, acceleration, and metric derivatives remain bounded as decreases. Then , so both and the geometric correction in eq. (51) are . The damping term, however, approaches and remains finite. The surviving force balance is:
Natural-gradient dynamics and FOND's dual flows. Solving this balance for velocity gives:
This is natural-gradient flow. The inverse metric appears because friction converts force into velocity through the geometry of belief space. The geometric corrections have vanished with inertia, but the geometry itself remains. Setting and applying this result separately to inference and learning gives the two FOND natural-gradient flows:
\left{\begin{array}{l}\dot{\boldsymbol{u}}=-\frac{1}{\zeta_{u}}\mathbf{G}_{u}(\boldsymbol{u})^{-1}\nabla_{\boldsymbol{u}}\mathcal{F}(\boldsymbol{u},\boldsymbol{\theta}),\\\dot{\boldsymbol{\theta}}=-\frac{1}{\zeta_{\theta}}\mathbf{G}_{\theta}(\boldsymbol{\theta})^{-1}\nabla_{\boldsymbol{\theta}}\mathcal{F}(\boldsymbol{u},\boldsymbol{\theta}).\end{array}\right. \tag{56}Here, set the pace of the respective processes and can be absorbed into their inference and learning timescales. Each flow uses its own Fisher metric, with the other parameter block held fixed.
Deriving the Bayesian learning rule (BLR, Khan & Rue, 2023). An Euler discretization of eq. (55), with , gives the familiar update:
This is just natural gradient descent, and replacing the gradient by a minibatch estimate gives its stochastic version.
For exponential-family variational beliefs, writing eq. (57) in natural parameters and setting recovers the Bayesian learning rule (BLR) of Khan & Rue (2023). By varying the candidate distributions and the approximations to their natural gradients, BLR unified learning rules ranging from SGD and Newton's method to Kalman filtering. Here, we have derived the BLR from the physics of adaptation: it emerges as the overdamped limit of covariant belief dynamics.
Table 1 summarizes how the same update gives familiar learning rules under different choices of metric and loss.
Table 1: Special cases of eq. (57) under different choices of metric and loss . The BLR row uses exponential-family variational beliefs in natural parameters.
| Algorithm | Metric G | Loss |
|---|---|---|
| Gradient Descent (GD, Cauchy, 1847) | Generic task loss | |
| Natural Gradient Descent (NGD, Amari, 1998) | Fisher–Rao | Generic task loss |
| Bayesian Learning Rule (BLR, Khan & Rue, 2023) | Fisher–Rao | (free energy) |
Summary. Let us take stock of what we have done. We started from a physics-centered view of “dynamics is everything,” and demonstrated how dynamics can be derived from applying the principle of stationary action plus dissipation. We then identified the loss as a potential, required adaptation to be independent of arbitrary coordinates (principle of general covariance), and used local information gain to construct the kinetic energy of beliefs. A standard choice of friction then gave us the full dissipative equations of motion, including inertia and geometric corrections. Natural-gradient inference and learning followed in the overdamped (massless) limit, where that inertia is negligible.
Physics of adaptation as a broad framework for deriving inference and learning dynamics. We could have motivated the same practical update through a KL trust region (section A.4), or appealed directly to Amari’s natural gradient (Amari, 1998). Those arguments are enough to justify the rule. We hope this route also reveals the richer framework underneath it: beliefs moving through a statistical manifold, driven by a task and constrained by the physical cost of adaptation. Future work should consider deriving other dynamics within that same framework by keeping inertia, changing the dissipation law, or considering more generalized belief states with different, perhaps adaptive, geometries that evolve in time in response to experience.
B EXTENDED FOND MODEL AND DYNAMICS
B.1 MODEL AND OBJECTIVE
Bernoulli instantiation of FOND. Recovering a feature dictionary requires two coupled operations: infer which features explain each observation, and use those explanations to improve the dictionary. FOND derives the first operation as recurrent natural-gradient descent on variational free energy (Vafaii et al., 2025). Its original Poisson instantiation learns the decoder by backpropagating through the inference trajectory. Here we extend the natural-gradient prescription to learning itself. Inference changes the approximate posterior , and learning changes the generative distribution . The two natural-gradient flows use their respective Fisher metrics to measure local changes in these distributions (Amari, 1998; Martens, 2020). Section A.4 develops this geometric motivation.
Bernoulli features and a Gaussian decoder. In BeFOND, each latent indicates whether a feature is present, and its decoder atom specifies that feature's contribution to the observation. The posterior mean therefore expresses confidence in feature presence. For binary latents and an -dimensional observation, the local inference model is
where is diagonal and positive. Equivalently, with : the noise describes variation not explained by the selected atoms, while the atom itself sets the amplitude and direction of a present feature. The learned initial prior supplies the first reference, and the rolling rule in section B.1.1 updates that reference as inference proceeds. A learned decoder bias accounts for a nonzero observation mean by replacing with . Section B.3 gives its update and inference-response correction.
Conditioning on the observation couples otherwise independent latent features: the likelihood contains cross-terms , where . When atoms overlap, the evidence for one feature depends on which others explain the input. Factorizing restricts the represented posterior dependencies, but each optimized mean can still depend on the other means through the shared reconstruction (section B.2).
The Poisson and Bernoulli choices both admit analytic moments and Fisher metrics (Wainwright & Jordan, 2008). In canonical coordinates,
The variance in the last column enters both the expected reconstruction loss and the geometry of inference. This is the connection that allows the distributional assumptions to determine the dynamics.
Free-energy decomposition. Section A.3 derives the fixed-prior ELBO identity. Here we evaluate its two terms for the Bernoulli–Gaussian model, holding the current reference fixed. A distribution over codes assigns probability to several possible reconstructions. Write and . Since and , expanding the square gives:
where and . The cross-term vanishes because the centered code has zero mean. For the KL term, factorization turns the log ratio of products into a sum:
A decoder that reconstructs x from r can therefore still have a large expected error if the individual latent configurations produce different observations. Including this uncertainty cost and the KL penalty gives
(62)
with . The log determinant normalizes the Gaussian likelihood, and weights departure from the current prior reference. At and a fixed generative prior, this is the negative evidence lower bound. The Bernoulli uncertainty term also cancels the quadratic self-interaction in each coordinate, leaving reconstruction affine in when the other means are fixed (section B.4). Overlapping atoms still couple different coordinates, so a factorized posterior does not imply independent inference updates.
The moments needed for inference and learning are available without sampling latent codes:
(63)
Here E and are the posterior and prior second moments, and is the posterior-expected squared residual in observed dimension m.
Bernoulli inference in BeFOND. For our factorized Bernoulli posterior, u contains logits and . The score is , so
For a fixed small logit displacement, the distribution changes less when a Bernoulli probability is near zero or one. In probability coordinates, the same infinitesimal length is : a fixed probability displacement is more costly near the boundary. For finite logits, all these variances are positive. Applying the inverse Fisher cancels the variance factor in the Euclidean logit gradient, yielding the inference dynamics derived in section B.2. The update therefore accounts for how much a parameter movement changes the inferred beliefs.
Natural-gradient inference and learning. For Bernoulli logits, the Fisher is . The same factor multiplies the ordinary logit gradient, so applying removes this attenuation from the inference drive. The remaining terms combine evidence from the input, recurrent interactions through the dictionary, and relaxation toward the reference. Section B.2 derives these terms and their cancellation explicitly.
Learning then holds the inferred moments fixed. The decoder gradient compares the observed input-latent moment with the model prediction . Its Fisher uses the prior second moment, , giving a correction by rather than the posterior's diagonal Fisher. This correction is what can compensate for weak learning signals in rarely active directions. Exact compensation requires matching the minibatch-averaged second moments (section C.4). The covariance update tracks expected squared residuals, while the learned initial prior tracks detached posterior means across inputs. These decoder, covariance, and initial-prior updates use the inferred statistics directly, without backpropagating through the inference trajectory. Their explicit flows and derivations appear in sections B.2 and B.2.1. The decoder evolves in learning time over an interval , and denotes the separate inference integration interval.
B.1.1 ONLINE PRIOR AND WORKING MEMORY
Consider observing a scene whose underlying features persist. After the first observation, the inferred distribution contains information about that particular scene that the population prior did not contain. The next update should start from this informed belief. FOND's rolling rule makes it the new prior reference (Vafaii et al., 2025): the KL penalty now measures departure from the current prediction, while the likelihood supplies evidence for revising it. The learned initial prior starts the sequence, and the rolling reference carries its evolving, input-specific belief forward. Figure 5 shows this predict-update sequence and its fixed-input specialization. Section B.5 derives its activation threshold, and section C.3.3 reports the rolling-prior experiments varying and the initial-prior cap.
GENERATIVE MODEL PARAMETERS
ROLLING UPDATE

Fixed input
Figure 5: Online inference with a rolling prior. The learned initial prior initializes the first belief. Under identity state dynamics, prediction carries each posterior into the next reference (green arrows). The observation model is shown by black arrows and inference by red dashed arrows. The fixed-input case presents the same observation at each step.
Prior prediction. Let be the inferred distribution after observation . To form the next reference, a state-transition model predicts which latent configurations remain plausible. For a transition kernel , prediction averages over the preceding belief (Särkkä & Svensson, 2023, Chapter 6):
If the latent state persists without process noise, then , so prediction simply copies the belief:
The identity transition means that the causes persist, not that we know which causes are present. Copying therefore retains both its feature preferences and its uncertainty. With no new likelihood contribution, the belief is preserved unchanged. This is the working memory supplied by the rolling reference. A new independent input starts again from the learned initial prior.
Posterior update. The observation can support the prediction or require it to change. Expected reconstruction error rewards explanations of the current input, while the KL penalty controls departure from the prediction. For a Bernoulli reference with means and logits , the local objective is
The decoder and reference remain fixed during this local update. At , minimizing over unrestricted distributions gives the Bayesian posterior for the reference and observation. For general , it gives a distribution proportional to (Bissiri et al., 2016). The factorized Bernoulli family gives tractable expectations and local updates while retaining marginal uncertainty and approximating posterior dependencies.
Recurrent belief revision. Write the negative mean-coordinate reconstruction gradient as . Including the Bernoulli uncertainty term, its ith coordinate is
The first term supplies evidence for feature i, while the last adjusts it for other active explanations. When , increasing belief in feature j reduces the drive for i. Repeated updates thus let explanations revise one another even though q is factorized.
Applying the posterior Fisher inverse gives:
Initialize at the predictive logits. The KL force is initially zero, so evidence can change the belief before the fixed reference exerts a restoring force. One ETD1 step with interval h integrates this relaxation while freezing the reconstruction drive (section B.6):
The resulting posterior becomes the reference for the next outer step. The next update therefore retains the inferred changes instead of pulling them back toward the original population prior. If several inner steps are taken, their reference stays fixed and the restoring force generally becomes nonzero. The parameter controls resistance to local belief change, and h controls how far the local flow is integrated.
Evidence accumulation and sparsity. Rolling also changes the influence of the initial prior as a sequence proceeds. To see this, suppose the initial prior and likelihood are positive and each local objective is minimized exactly over unrestricted distributions. Repeated substitution of the posterior for the next reference gives
Each observation contributes a likelihood factor, while the initial prior enters once. For a fixed repeated input, the likelihood power is : the initial prior becomes weaker relative to reconstruction evidence. Replaying one stored observation supplies no new measurement, so this computation is not ordinary conditioning on one observation. Finite mean-field ETD1 steps approximate the local updates and need not attain this unrestricted endpoint.
This explains why a sparse initial prior need not enforce the same sparsity throughout a rollout. Its low probabilities set a high initial activation threshold, but the rolling reference can retain increases supported by reconstruction evidence. A cap on mean initial-prior activity therefore constrains the starting belief, not final posterior activity.
B.2 NATURAL-GRADIENT DYNAMICS
For the free energy in Section B.1, inference changes the posterior while holding the model fixed. Learning then changes the model with the inferred statistics fixed:
Here . The initial prior tracks detached posterior means, and the rolling reference is refreshed within inference (section B.1.1). For minibatches, average , E, , and V before applying the updates. Derivations appear in Section B.2.1.
Fisher preconditioning for inference. For the Bernoulli posterior, . Independence under gives
(77)
Multiplication by cancels and yields eq. (72) whenever . Ordinary logit-gradient descent instead multiplies the same drive by , making it small near either boundary. The natural flow removes this factor from the logit update, while the probability still changes according to . This distinction matters when interpreting the revival of a nearly inactive latent.
Decoder Fisher information. Let denote the minibatch average. The Gaussian decoder score is . Averaging its outer product over the complete-data model, with the chosen prior references held fixed, gives
where both second moments are averaged across the minibatch before the Fisher action. Vectorization of decoder entries is implicit. The resulting matrix-form flow is eq. (73), with replaced by its minibatch average. This is the complete-data model Fisher, rather than the observed-data Fisher or an outer product of empirical loss gradients (Amari, 1998; Martens, 2020).
The distinction between and is essential: the former supplies the metric, and the latter the curvature of the frozen reconstruction objective. Averaging per-example inverses would give a different update. Likewise, matching average firing rates alone does not match second moments. For example, a shared factorized prior with mean has off-diagonal moments , whereas the averaged posterior has . Their difference is the across-input covariance of the inferred means. Section C.4 states the exact matching condition and the unequal-moment extension.
B.2.1 MODEL UPDATES
Proof of Equations (72) and (75). For Bernoulli inference, differentiating eq. (62) gives
The posterior Fisher C cancels the logit Jacobian, yielding eq. (72). For the decoder, the complete-data Fisher block is , which cancels the precision in the gradient and gives eq. (73).
For each diagonal variance and each initial-prior probability,
(79)
Preconditioning proves eqs. (74) and (75). With frozen targets, integration yields:
□
Decoder-bias correction
Proof of Equation (81). Hold the incoming reference and covariance fixed during one unclamped inference step. Only the feedforward drive depends on the bias, so
Applying the chain rule at the updated posterior gives
Multiplication by the inverse bias Fisher block and minibatch averaging gives eq. (81).
B.3 DECODER BIAS
A learned bias gives , and inference uses . With a fixed posterior, the bias fits the mean residual. Differentiating through one unclamped ETD1 inference step adds a response term:
The incoming reference is fixed, and C and are evaluated after that step. This expression assumes one shared covariance across the batch. Section B.2.1 derives the correction. The full-width synthetic experiment freezes the bias.
B.4 BERNOULLI UNCERTAINTY AND SPARSE CODING
The Bernoulli posterior variance is , which vanishes at 0 and 1 and is maximal at 1/2. In isolation, its cost favors confident absence or presence. In the full expected reconstruction loss, it cancels the quadratic self-term:
Consequently, with the other coordinates fixed, reconstruction is affine in and the KL term is strictly convex for . The full objective has an interior coordinate optimum at finite evidence.
B.5 ACTIVATION THRESHOLD UNDER A ROLLING PRIOR
Section B.1.1 motivates the rolling rule. Here we make its sparsity effect explicit. Starting one ETD1 step at the reference, the gain in eq. (70) tends to as . Since exactly when , for we obtain
The right side is positive for a reference probability below 1/2 and grows as that probability decreases. It sets the reconstruction evidence needed to activate the feature, after accounting for the other features' contributions on the left. Updating the reference changes this threshold at the next outer step. The prior cap and inference depth can therefore affect posterior sparsity through different parts of the rollout (section C.3.3).
B.6 NUMERICAL INTEGRATION AND MATRIX-FREE UPDATES
Stiffness and exponential integration. Natural gradients specify the continuous-time evolution of beliefs and model parameters, but implementing these dynamics requires a numerical update. A difficulty with explicit Euler is that stable continuous dynamics can become unstable after discretization. For the simple relaxation , Euler multiplies by , whereas exact integration multiplies it by . Euler therefore requires for decay. When fast relaxation accompanies slower dynamics, this stability restriction can force small steps even when the solution changes slowly. Exponential integrators address this source of stiffness by integrating the linear component exactly (Cox & Matthews, 2002; Hochbruck & Ostermann, 2010).
Inference integration. Write eq. (72) as , where contains the reconstruction and Bernoulli uncertainty terms. Holding the reference fixed and freezing during one interval gives the first-order exponential time-differencing update (ETD1; Cox & Matthews, 2002; Hochbruck & Ostermann, 2010):
The reference relaxation is thus preserved exactly. Here ETD1 follows the same natural-gradient direction as Euler, with effective step , bounded by . Starting from the reference removes the middle term. Section B.1.1 describes how that reference is passed between inference steps. At , ETD1 solves the subproblem with the reconstruction drive held fixed. We apply a finite number of recurrent inference steps before each decoder update.
Frozen-statistics learning. The same principle applies to learning. With minibatch statistics, prior references, and covariance fixed, and , the decoder flow has the exact solution (section C.4)
Euler must accommodate the fastest relaxation mode, but exponential integration instead applies each mode's exact decay over the chosen interval. When , every mode contracts by the same factor, recovering exact rarity compensation.
The configured decoder solver, matrix_free_phil_auto, evaluates a matrix-function action on the decoder residual. Let , with Fisher damping , and . The corresponding frozen update is:
(86)
where brackets denote minibatch averages and is the entire matrix function used in exponential integration (Hochbruck & Ostermann, 2010). For , this recovers the exact frozen-statistics solution above. The residual form avoids explicitly computing or subtracting a near-identity exponential from the identity. The implementation applies this function without constructing a dense matrix. For a matrix whose rows are minibatch posterior means,
and the same representation applies to .
Low-rank solves use the Woodbury identity (Hager, 1989) when the rank is at most 1,024. Larger ranks use Jacobi-preconditioned conjugate gradients (Saad, 2003). Thus the minibatch rank and conditioning also affect cost (section B.8).
The solver combines scaled Taylor evaluation (Al-Mohy & Higham, 2011) with Chebyshev polynomial approximation (Trefethen, 2019). It selects Taylor evaluation when the predicted work is within 32 operator applications, and otherwise uses a Chebyshev recurrence with degree chosen from the coefficient tail. Each operator application requires a posterior-moment product and a solve with the damped prior moment, so the polynomial degree and linear-solve iterations contribute to decoder-update cost. The selected synthetic recipes and audited whitened Gemma configurations request Chebyshev tolerance and maximum degree 2,048 (512 for the raw 16K Gemma run). These control the matrix-function approximation.
The variance and initial-prior flows likewise integrate to exponential averages of their frozen targets (section B.2.1). These updates exploit solvable components of the derived dynamics while leaving approximation to the remaining nonlinear terms and numerical matrix-function evaluation. Parameter floors, a mean initial-prior cap, and decoder constraints are applied as specified by each recipe. All inferred statistics are detached during learning, so the decoder update does not backpropagate through the inference trajectory.
B.7 ALGORITHM
Algorithm 1 gives the Bernoulli inference and moment updates. During inference, the generative parameters remain fixed. Learning uses the inferred minibatch moments.
Algorithm 1 FOND with a rolling inference reference
Require: Decoder , diagonal covariance , initial prior , inference depths, , integration parameter , and learning schedules.
1: for each training minibatch do 2: Center observations by the decoder bias, if learned. 3: , independently for each observation. 4: for each outer step up to the sampled training horizon do 5: , . 6: . 7: for each inner inference step do 8: , . 9: . 10: . 11: end for 12: if this is the final outer step then 13: , , . 14: . 15: . 16: . 17: Update enabled variance and bias parameters by eqs. (80) and (81), then apply the stated decoder constraints. 18: end if 19: end for 20: if an initial-prior update is scheduled then 21: Infer on the prior-update batch, then detach it. 22: . 23: Apply the specified prior floor and mean-probability cap. 24: end if 25: end for
The decoder line is the frozen-moment matrix-exponential update. Implementations can apply its matrix functions without forming dense inverses. ETD1 uses gain at . Evaluation resets the initial prior for each input and performs inference without learning.
B.8 COMPUTATIONAL COMPLEXITY
Let be minibatch size, input dimension, dictionary width, and the total number of inner inference steps for an input. A dense SAE encoder costs ; its training step has the same order, with a larger constant for decoding and backpropagation. BeFOND applies the lateral operator as (with diagonal observation precision inserted when used), so it does not form a dense Gram matrix. Its costs are:
where includes the moment products and linear solves used by the decoder update, and is the amortized cost of the separate initial-prior fits.
Solver work depends on minibatch rank, conditioning, and numerical tolerance. Section B.6 describes the matrix-free evaluation. No gradient is propagated through the T inference steps, avoiding storage of that trajectory for backpropagation.
If a conventional SAE update uses units of dense matrix-multiplication work, its cost is . With , BeFOND's inference contribution has that same order. Our current implementation takes approximately as long as BatchTopK for the measured training prefix (section D.3).
C EXTENDED THEORETICAL ANALYSES, SYNTHETIC EXPERIMENTS, AND ABLATIONS
C.1 EXPERIMENTAL SETUP
C.1.1 DATASETS
SynthSAEBench. We measure dictionary and support recovery using the known generating features of SynthSAEBench (Chanin & Garriga-Alonso, 2026). The full-width experiment uses and . The superposition experiment fixes , , and varies from 256 to 1,536. Inputs are unwhitened, with parent scaling disabled (scale_children_by_parent=false). Feature probabilities follow a Zipf law with exponent 0.5 over [0.0005, 0.4]. The generator uses 128 roots, branching factor 4, depth 3, and probability compensation.
C.1.2 TRAINING
BeFOND alternates inference and learning as in Alg. 1. Table 2 groups the synthetic settings. Prior-update examples are counted separately from decoder-update examples. Geometry arms are separately tuned. Their early checkpoints include recipe-matched reproductions.
Table 2: SynthSAEBench training settings. Decoder and prior examples are counted separately. Full-width runs use , ; superposition runs use .
| Experiment | Settings |
|---|---|
| BeFOND best / continuous | Seed 0; batch 2,048; 88,779 updates; 181.82M decoder and 18.18M prior examples; linear LR , no warmup; |
| Inference / decoder | Bernoulli; ETD1 ; one inner step; uniform training depth 1–10, test depth 200. Prior Fisher, current moments, no damping; ; bias and variance fixed |
| Initialization / constraints | Gaussian scale 0.1443375673; prior logits -4.7538364662; soft decoder norm 3.5 with coefficient 100; prior mean cap and floor |
| Prior / matrix functions | Prior update every 10 batches on 2,048 separate examples; depth , KL threshold 0.01, rejection threshold 1, window 10. Taylor limit 32 applications; Chebyshev tolerance , maximum degree 2,048 |
| Original baselines | BatchTopK/JumpReLU/Matryoshka: target , batch 1,024, LR , 200M decoder examples. MP/ReLU-L1: target , 200,000,512 decoder plus 19M monitoring examples. MF: 20 inference steps in training and testing, batch 1,024, 195,313 updates (200,000,512 examples), cosine schedule with dictionary / other-parameter LR 0.001/0.003, damping 1 on the first step then 0.2, decoder norm cap 4 |
| Modified baselines | Target for BatchTopK/JumpReLU/Matryoshka; MinFire or resampling and learning-rate decay |
| Training streams | Model seed 0; BeFOND data seed 1; plain amortized baseline data seed 100101; native MP/ReLU-L1 use the global PyTorch and NumPy streams initialized with seed 0, without a separate training-stream seed; MF uses data seed 0 |
| Geometry comparison | Batch 2,048; 100,000 updates; 150,000-step cosine schedule stopped at 100,000; bias and variance fixed. Tuples below are (, norm, prior cap, peak LR) |
| N/E; E/E; N/N | (1.125, 2.5, 0.001, 0.1); (0.8, 3.5, 0.01, 0.1); (1.125, 3.5, 0.0002, 0.006). Natural inference: ETD1 ; Euclidean inference: Euler |
| Superposition / lateral | Baseline comparison: initialization seeds 0, 1, 2. Lateral ablations: seed 0. Batch 1,024. Recipe differences are specified in Section C.3.1 |
C.1.3 EVALUATION
Synthetic recovery. MCC is dictionary mean correlation coefficient, feature-macro F1 uses positive-cosine one-to-one matching to the generating dictionary. and rare F1 averages over its least frequent quartile. A latent is dead when it is inactive on every test example. Activity is for Bernoulli BeFOND/MF and positive native output for the SAE baselines. Mean counts active latents per example. Tests use examples with seed 49100, including the MF reevaluation reported in Table 5. The independent frequency reference uses examples with seed 315031. BeFOND/MF use 200/20 test inference steps. Geometry validation uses 32,768 examples, seed 813011, and 100 inference steps.
C.1.4 IMPLEMENTATION
Training horizon. Each optimizer step draws one inference horizon for the whole minibatch, resets the posterior, runs that many outer steps, and updates the decoder only at the final step. The exponential sampler assigns:
where is solved numerically so the truncated discrete distribution has the configured mean.
Probabilities use FP64. Brent’s root solver uses tolerance . At mean 1 the distribution is a point mass at 1, and at mean , it is uniform. Sampling uses NumPy’s default_rng seeded by the model seed and zero-based optimizer step, identically on every device and after resumption. The draw does not advance the data or latent-sampling generators.
K1 uses a fixed horizon of one and one inner step. Its initial-prior fit and test inference can still use longer horizons. Uniform sampling on 1–10 has mean 5.5, , and 95th percentile 10. Exponential sampling on 1–50 with the same mean has and 95th percentile 15.
Synthetic baseline implementations use SAE Lens 6.51.0 (BatchTopK/JumpReLU/Matryoshka) or 6.37.0 (native MP/ReLU-L1).
C.2 INFERENCE PROOFS
C.2.1 SINGLE-LAYER INFERENCE
Proposition C.1 (Two-atom case). Let with independently, with , and let , where independently of . If the dictionary atoms are linearly independent and , then no encoder , for any scalar function , can equal for every input .
Assume independent Bernoulli latents with interior prior probabilities and unit observation covariance. Set:
Proof of Theorem C.1. Marginalizing gives
(90)
When , the bracket is nonconstant. Linear independence of the atoms therefore makes the gradient direction vary with . A posterior of the form is constant along every direction orthogonal to , so its log-odds gradient must be parallel to everywhere. This is a contradiction, even if is not assumed differentiable.
Multiple atoms. By assumption, some atom , is neither orthogonal to nor a multiple of .
Proof of Theorem 4.1. Suppose for every , and write . As in the proof of theorem C.1, is then parallel to everywhere. Differenti-ation of the finite partition functions gives:
Along , with orthogonal to no atom, the fields of all other bits diverge while their couplings remain bounded. Each bit becomes certain independently of . Hence, and . Therefore, , and everywhere for every .
Let contain the atoms parallel to the chosen atom , writing . Choose with , and choose orthogonal to no atom outside . Such a exists because only finitely many proper hyperplanes are excluded. Along , all bits outside freeze, leaving finite conditional partition functions with . Thus
As moves from to , every bit in switches according to the sign of . Since ,
Therefore is nonzero somewhere, contradicting for a single-projection encoder.
Orthogonality and parallelism of two atoms are polynomial conditions on that fail for almost every dictionary when , so for almost every dictionary with no latent falls under the exception. If no two atoms are parallel, exceptions must be orthogonal to every other atom. For , at most atoms can have that property. Whitening extends both results to any fixed positive-definite , with .
C.2.2 ITERATIVE INFERENCE VERSUS SINGLE PROJECTION ENCODERS
Proposition C.2 (Fixed-prior inference versus single-projection encoders). Consider the Bernoulli–Gaussian model of theorem 4.1 with unit observation covariance. Let
and suppose that
and that some pair of atoms is neither orthogonal nor parallel. Let A contain all encoders
with arbitrary weights, biases, and measurable , and let
Let be the factorized posterior with means
where follows eq. (13) with and the prior fixed at the generating one,
Then the optimal factorized posterior
is unique and
Consequently, for all sufficiently large finite t,
Proof. Zero atoms decouple, since their rows of vanish, so we drop them. Write and for the negative Bernoulli entropy. For a factorized with means , using , the divergence equals, up to a term independent of ,
Its Hessian diag is smallest at , where it equals , so with . Hence has a unique minimizer , which defines and satisfies .
Convergence. With and , eq. (13) reads , a smooth, globally Lipschitz flow in . Let , the Bregman divergence of . Then by convexity, while . Hence
for every . Since , this gives at rate .
is not a single-projection function.
Choose with and not parallel. Implicit differentiation of gives with , and . Both are bounded. Along a ray with orthogonal to no atom, forces every coordinate to saturate, so and . Now let and take a ray with orthogonal to no atom outside . The coordinates outside saturate, while converges to the minimizer of the reduced problem, which is strongly convex because . With , the limiting equations give , and since for ,
The coefficient is nonzero, so this limit is not parallel to . The gradient of therefore has no fixed direction, and neither nor is a function of a single projection.
Positive approximation gap. Let over measurable . If , take in , with unit (absorbing scale into . Constant functions can take any direction) and, along a subsequence, . Since is continuous and positive, the convergence also holds in . Each is invariant along , so for every test function and . Taking for and passing to the limit gives , so the smooth function is constant along , contradicting the previous paragraph. Hence .
Gap in expected divergence. For with means , 4m-strong convexity and the optimality of give
Together with , this proves the claim.
The fixed-reference specialization of Alg. 1 discretizes this flow. With and the reference at the prior, its inner step is , that is, mirror descent with mirror map . Since , the same conclusion holds after finitely many inner steps, at a geometric rate, whenever (Lu et al., 2018). This discrete guarantee requires both and the stated step-size bound.
The condition is exactly the condition for the mean-field objective to be strongly convex, so it has a single optimum that BeFOND approaches. A width-independent sufficient condition follows for atoms of equal norm under unit covariance: , with equality when , so it reduces to in units of the noise standard deviation. For stronger coupling the objective can have several local minima, one per competing explanation, and the proposition does not apply.
Rolling-reference inference (section B.1.1) allows the inference budget to be allocated across reference updates. It includes fixed-reference inference by assigning the entire budget to the first inner block and returning its output before refreshing the reference. With a general positive-definite , whitening gives the same statement with and . The strong-convexity condition and discrete step-size bound use this , while the sufficient norm bound applies to whitened atoms .
C.2.3 RAIN-SPRINKLER EXAMPLE
Fig. 2 illustrates the two-atom case with independent rain and sprinkler latents, each with prior probability 0.1. The coordinates of are lawn and roof wetness, with:
Rain contributes to both coordinates, while the sprinkler contributes only to lawn wetness. The atoms are neither orthogonal nor parallel, so theorem 4.1 applies after whitening. Moreover, , satisfying theorem C.2.
The exact posterior is computed by enumerating the four latent configurations.
Fixed-prior inference. The BeFOND panel shows the unique optimal factorized Bernoulli posterior. We solve the stationary equations from theorem C.2 by fixed-point iteration, initialized at , with and the generating prior held fixed. The update map has contraction factor . Iteration continues until the fixed-point residual divided by is below . The panel shows the converged solution of eq. (13) with the decoder and reference fixed.
Single-projection encoder. We numerically fit to minimize the same model-averaged reverse KL to the exact posterior. Each unit direction is parameterized by an angle. A angular grid over supplies five starting points for local refinement. For each direction pair, the scalar response functions are solved from the conditional stationarity equations of this KL objective and represented by piecewise-linear probabilities. Final fits use 2,001 grid points per function, extending eight noise standard deviations beyond the projected component means, with constant extrapolation. Conditional expectations during fitting use 160-point Gauss–Hermite quadrature. The fitted rain and sprinkler directions are and , respectively.
We evaluate both methods using 160-point Gauss–Hermite quadrature per input coordinate and mixture component. Averaging over gives 0.008508 nats for converged fixed-prior BeFOND and 0.021554 nats for the fitted single-projection encoder.
The white point has roof wetness 1.5, halfway between the dry and wet conditional means, and therefore equal roof likelihoods with and without rain. Raising roof wetness to 3 while holding lawn wetness fixed strengthens rain and suppresses the sprinkler. Table 3 reports the exact and factorized probabilities at these points.
Table 3: Posterior activation probabilities at the marked observations in Figure 2, rounded to six decimal places. Neutral and wet correspond to and , respectively.
| Method | Neutral roof | Wet roof | ||
|---|---|---|---|---|
| Rain | Sprinkler | Rain | Sprinkler | |
| Exact posterior | 0.292138 | 0.292138 | 0.960707 | 0.033017 |
| BeFOND | 0.228996 | 0.228996 | 0.974111 | 0.019506 |
| Single-projection encoder | 0.217514 | 0.139225 | 0.958493 | 0.064003 |
C.3 INFERENCE AND LEARNING ABLATIONS
C.3.1 INFERENCE ABLATION: LATERAL INTERACTIONS
Figures 3 and 6 use K = 4,096. The baseline comparison uses initialization seeds 0, 1, and 2, with individual results in Table 4. The lateral ablations use seed 0. Metric definitions are in Section C.1.3. The lateral ablations use matched learning rates, , and decoder norms. Their full BeFOND control differs from the selected BeFOND recipe in the baseline comparison at d = 512, 384, 256: the ablations use (LR, ) = (0.001, 1), (0.001, 1), (0.001, 2), whereas the baseline comparison uses (0.0003, 0.5), (0.0003, 1), (0.0003, 1.5). Excitatory-only runs at d = 1,024 and 1,536 stopped early. At d = 256, suppressive interactions raise MCC from 0.2810 to 0.6862 within the matched ablation recipes. Excitatory-only inference activates almost all 4,096 latents but reaches MCC 0.2825. Suppressive-only inference has one dead latent at d = 1,536 and zero at the other dimensions. Both full and zero-off-diagonal inference have zero throughout.
(a)

(b)

Superposition ( )
Figure 6: Lateral suppression supports feature recovery under superposition. Hollow markers denote early-stopped excitatory runs (K = 4,096).
C.3.2 LEARNING ABLATION: INFERENCE AND LEARNING GEOMETRY
The Euclidean ablations also reveal a substantial gain in training efficiency (Fig. 7). Natural inference and learning (N/N) reach MCC 0.500 and Rare F1 0.280 after just 1,000 updates, exceeding both Euclidean variants after 100,000 updates on their respectively tuned runs.
Table 4: Individual-seed results for Figure 3 (, ). MCC values retain the recorded precision. Dead latents are counted on held-out examples using each model's native activity rule ( for BeFOND and Mean-field + Adam).
| Method | d | MCC | Dead latents | ||||
|---|---|---|---|---|---|---|---|
| Seed 0 | Seed 1 | Seed 2 | 0 | 1 | 2 | ||
| BatchTopK | 1536 | 0.6447949409484863 | 0.6418958902359009 | 0.6367465853691101 | 178 | 217 | 206 |
| 1024 | 0.7172077894210815 | 0.7101552486419678 | 0.715070366859436 | 78 | 80 | 66 | |
| 768 | 0.7237797379493713 | 0.7247610688209534 | 0.7268125414848328 | 49 | 47 | 39 | |
| 512 | 0.6935576796531677 | 0.6925675868988037 | 0.6897946000099182 | 37 | 38 | 55 | |
| 384 | 0.6238665580749512 | 0.6256771087646484 | 0.6227874159812927 | 56 | 82 | 58 | |
| 256 | 0.4887199401855469 | 0.48809993267059326 | 0.4880616068840027 | 152 | 176 | 157 | |
| JumpReLU | 1536 | 0.7402234673500061 | 0.7397291660308838 | 0.7378072738647461 | 0 | 0 | 0 |
| 1024 | 0.741813063621521 | 0.739402711391449 | 0.7388435006141663 | 3 | 2 | 2 | |
| 768 | 0.7435916662216187 | 0.7454241514205933 | 0.7452358603477478 | 2 | 0 | 1 | |
| 512 | 0.7406731843948364 | 0.7403227090835571 | 0.7406840324401855 | 3 | 2 | 1 | |
| 384 | 0.7123968005180359 | 0.7126669883728027 | 0.712004542350769 | 78 | 90 | 96 | |
| 256 | 0.5576815605163574 | 0.55924391746521 | 0.5596640110015869 | 1249 | 1232 | 1224 | |
| Matryoshka | 1536 | 0.6665480136871338 | 0.6840691566467285 | 0.6623464822769165 | 266 | 223 | 279 |
| 1024 | 0.7525583505630493 | 0.7481846213340759 | 0.7474654912948608 | 88 | 86 | 85 | |
| 768 | 0.7555773258209229 | 0.7561160326004028 | 0.7561805248260498 | 54 | 51 | 49 | |
| 512 | 0.6980507969856262 | 0.6989551186561584 | 0.6928752660751343 | 54 | 87 | 84 | |
| 384 | 0.6256262063980103 | 0.6234501600265503 | 0.6201913356781006 | 93 | 87 | 85 | |
| 256 | 0.5091139078140259 | 0.5098989605903625 | 0.5087519288063049 | 170 | 153 | 144 | |
| Matching Pursuit | 1536 | 0.7041427493095398 | 0.7060015201568604 | 0.7078589200973511 | 0 | 0 | 0 |
| 1024 | 0.7029024362564087 | 0.7033072113990784 | 0.6972198486328125 | 0 | 0 | 0 | |
| 768 | 0.7092912197113037 | 0.7096635699272156 | 0.705768346786499 | 0 | 0 | 0 | |
| 512 | 0.7090048789978027 | 0.7061803340911865 | 0.7071677446365356 | 0 | 0 | 0 | |
| 384 | 0.6933020353317261 | 0.6994995474815369 | 0.6963708400726318 | 0 | 0 | 0 | |
| 256 | 0.6802412867546082 | 0.679160475730896 | 0.6853885054588318 | 0 | 0 | 0 | |
| ReLU-L1 | 1536 | 0.597491443157196 | 0.5992552042007446 | 0.598943829536438 | 0 | 0 | 0 |
| 1024 | 0.59971684217453 | 0.6019572019577026 | 0.6006413698196411 | 0 | 0 | 0 | |
| 768 | 0.6030566692352295 | 0.6011125445365906 | 0.6026996374130249 | 0 | 0 | 0 | |
| 512 | 0.5990475416183472 | 0.5983516573905945 | 0.5974198579788208 | 0 | 0 | 0 | |
| 384 | 0.5921348333358765 | 0.5912116765975952 | 0.590924084186554 | 0 | 0 | 0 | |
| 256 | 0.5765519738197327 | 0.5788543224334717 | 0.5773016214370728 | 0 | 0 | 0 | |
| Mean-field + Adam | 1536 | 0.6974799036979675 | 0.7041385769844055 | 0.584987998008728 | 0 | 0 | 291 |
| 1024 | 0.7075880169868469 | 0.7071225643157959 | 0.7132526636123657 | 3 | 9 | 2 | |
| 768 | 0.7050071358680725 | 0.7113231420516968 | 0.7108327746391296 | 8 | 12 | 11 | |
| 512 | 0.719290018081665 | 0.7244423627853394 | 0.7237823009490967 | 10 | 3 | 7 | |
| 384 | 0.7211331129074097 | 0.7238309979438782 | 0.7178806662559509 | 14 | 5 | 20 | |
| 256 | 0.46739497780799866 | 0.4664973020553589 | 0.47486913204193115 | 1645 | 1655 | 1664 | |
| BeFOND | 1536 | 0.8128377795219421 | 0.8148884773254395 | 0.8158183097839355 | 0 | 0 | 0 |
| 1024 | 0.8047415018081665 | 0.8055942058563232 | 0.8029000759124756 | 0 | 0 | 0 | |
| 768 | 0.8140117526054382 | 0.8091920614242554 | 0.8121296167373657 | 0 | 0 | 0 | |
| 512 | 0.812289297580719 | 0.8088412880897522 | 0.8094125986099243 | 0 | 0 | 0 | |
| 384 | 0.799635648727417 | 0.8007169365882874 | 0.7975541353225708 | 0 | 0 | 0 | |
| 256 | 0.7783401012420654 | 0.7805794477462769 | 0.7804576754570007 | 0 | 0 | 0 | |
N/E E/E N/N
(a) MCC

(b) Macro F1

Samples (M)
(c) Rare F1
Figure 7: The natural-inference/natural-learning recipe reaches higher recovery with fewer samples. Panels show MCC, Macro F1, and Rare F1 on SynthSAEBench ( , ). N/E denotes inference/learning geometry: natural (N) or Euclidean (E). Recipes are tuned separately (section C.1.2).
The natural-inference/natural-learning recipe reaches stronger recovery in fewer decoder updates. Each geometry uses a separately tuned recipe, with settings given in Table 2. Section C.4 derives equal contraction for frozen, matched second moments and extends the result to unequal moments.
C.3.3 ROLLING PRIOR
Fig. 8 varies and the cap on the mean initial prior in 72 completed fits: six values of each hyperparameter and seeds 0 and 1. Increasing reduces final activity in this sweep, but also reduces recovery at the larger values. Several looser caps produce overlapping curves because the learned prior lies below those caps. The initial-prior cap constrains the starting activity, while the rolling-reference dynamics determine activity later in the rollout.
Mean initial-prior cap
0.0001 0.001 0.01
0.0003 0.003 0.03


Figure 8: Sparsity and recovery versus on SynthSAEBench ( , , ). Colors indicate the mean initial-prior cap, lines show the mean over two seeds, and shading shows their range. Each fit uses 12,000 updates and is evaluated on 8,192 examples after 5,000 inference steps.
All fits use raw, unwhitened inputs, batch size 1,024, a learning rate decaying from 0.001 to , one inner ETD1 step with , and an exponential training horizon with mean 5.5 capped at 50. The decoder dictionary starts at norm 2 and is clipped at norm 4. The decoder covariance is fixed, decoder bias is learned, and Fisher damping is . Initial-prior fits use 100 inference steps on 1,024 examples every 500 updates, with no positive prior floor. Total exposure is 12.3M main plus 24,576 prior examples per fit.
C.4 EXACT AND APPROXIMATE RARITY COMPENSATION
Fix a training minibatch and hold its inferred distributions, prior references, and covariance fixed during the decoder update. Throughout this subsection, and denote the minibatch averages of the posterior and prior second moments in eq. (63), and denotes the resulting minibatch-averaged free energy. In Fisher-preconditioned decoder updates, the matrix gradient is implicitly vectorized columnwise before multiplication by , and the result is reshaped to the decoder matrix.
Proof of Theorem 4.2. For the unit-covariance likelihood in the theorem, the decoder-dependent terms are
The posterior and prior references are fixed, so the KL term is constant in . Expanding the quadratic gives
(92)
Hence the minimizer is unique, , and .
For a model draw , the decoder score is
The conditional residual has second moment I. Averaging the vectorized score's outer product over these model draws and the fixed prior references therefore gives . Its inverse acts on a matrix gradient by right multiplication with . Thus, when ,
Euclidean:
Natural:
Integrating the natural flow yields
The matching condition is for the minibatch-averaged second moments.
To compare relaxation times, let . Since , its eigenvectors form an orthonormal basis and . Along the Euclidean trajectory,
Its modal relaxation times are , so the ratio of the slowest to the fastest is . Natural flow instead has relaxation time in every direction. Since for Bernoulli latents,
The Rayleigh quotient bounds each diagonal entry between the smallest and largest eigenvalues, giving
For one feature with known activity, , recovering the Euclidean rate and natural rate used in the scalar example.
Corollary C.3 (Power-law feature frequencies). Under theorem 4.2, suppose the averaged posterior activation probabilities satisfy for , with and . The ratio of the slowest to the fastest Euclidean relaxation time is at least ; whereas, for the matched natural-gradient flow it is one.
Proof. The largest and smallest frequencies are and . Substituting their ratio into the theorem gives . eq. (93) gives the common natural-gradient relaxation time.
With the inferred codes fixed and the averaged second moments matched, natural-gradient flow has the same local contraction rate in every decoder direction.
General observation covariance. For fixed , the corresponding gradient, Hessian, and decoder Fisher are
(94)
The optimum is unchanged. Euclidean flow now obeys ; its Hessian has condition number because the Kronecker eigenvalues are products. Natural preconditioning cancels the observation precision and gives
The coefficients are fixed during the update, hence
When , this again reduces to eq. (93), independently of the fixed observation covariance. The following extension treats unequal moments.
Proposition C.4 (Rarity compensation with unequal moments). Under the same frozen-substep assumptions, let , , and , without requiring . The decoder error obeys eq. (95). Define
Then, for ,
In particular, if
then
Proof. eq. (95) follows from the quadratic decoder gradient derived above. Multiplying its error dynamics on the right by gives:
The matrix in the final parentheses is symmetric positive definite, so its decay exponential has spectral norm . Applying proves eq. (96). Under the stated moment bounds, this matrix has eigenvalues in , hence , which proves eq. (97).
C.4.1 ACTIVITY-NORMALIZED INFERENCE
Theorem C.5 (Activity-normalized inference). Fix the observation, decoder, covariance, and current prior reference during inference. For the factorized Bernoulli posterior, let . At the same posterior state, the unit-rate Euclidean and natural-gradient flows in membrane-potential (logit) coordinates satisfy
Thus natural-gradient inference removes the multiplicative Bernoulli variance factor from each membrane-potential update.
Proof of Theorem C.5. For factorized Bernoulli latents, , so
The score is . Independence therefore gives the posterior Fisher . The chain rule yields . Natural preconditioning cancels this factor:
When the inference drive favors activation, this cancellation removes an additional suppression of weakly active latents’ logit updates. When the inference drive favors activation, this cancellation removes the variance factor from weakly active latents’ logit updates. Activation probabilities evolve according to .
C.4.2 LOCAL CONDITIONING UNDER ADAM NORMALIZATION
Adam normalizes updates using coordinatewise estimates of gradient second moments (Kingma & Ba, 2015; Balles & Hennig, 2018). The following calculation isolates the effect of this normalization on decoder conditioning.
Proposition C.6 (Local conditioning under frozen Adam normalization). Let , where the known codes have independent coordinates with , and is independent of . For the unconstrained population loss
consider gradients averaged over B independent samples. Freeze the Adam denominator at the square root of its expected second-moment target at , with stabilizer . The resulting diagonal preconditioner is
Writing , its condition number satisfies
Thus , with and , gives . Matched complete-data Fisher preconditioning instead gives and condition number one.
Proof. The Hessian is , and . At the optimum, a single-sample gradient is , with mean zero and vectorized second moment . Independence gives second moment for the averaged gradient, yielding above. Each diagonal entry of is
, repeated times. Rayleigh quotients give . Since increases with , the first bound follows. For and , the ratio is . Substitution gives the width bound. The complete-data Fisher equals for this model, proving the final claim.
This local conditioning analysis uses known latent codes and fixes Adam’s gradient second-moment estimate at its expected value at the decoder optimum, before taking the square root to form the normalization. Adam’s normalization depends on gradient variance (Balles & Hennig, 2018), while the model Fisher measures distributional sensitivity (Martens, 2020). Section B.8 discusses the computational cost of the implemented Fisher updates.
C.5 LEARNING AND RARE-FEATURE RECOVERY
C.5.1 RESAMPLING AND AUXILIARY-LOSS VARIANTS
Resampling and auxiliary losses aim to revive inactive features (Bricken et al., 2023; Jermyn & Templeton, 2024). Fig. 9 and Table 5 compare the original baselines with modified recipes using MinFire (BatchTopK), resampling (JumpReLU and Matryoshka), learning-rate decay, and returned sparsity. These modifications substantially improve baseline recovery, but BeFOND retains the highest MCC, Macro F1, and Rare F1. The comparison evaluates complete recipes with different target sparsities. Measured is reported in the table.
The modified recipes follow the released full-width sweep (chanind-goodfire, 2026), using seed 0, 200M samples, batch size 1,024, Adam with learning rate and moments (0.9, 0.999), BF16 autocast, gradient-norm clipping at 1, and learning-rate decay during the final 20% of training. Target is 45 for BatchTopK, 40 for JumpReLU, and 35 for Matryoshka.
MinFire (the sweep implementation's MinFireGate in gates.py) reserves each latent's strongest positive activation before filling the remaining batch-wide TopK budget. The selected BatchTopK recipe applies this gate every batch for the first 90% of training, then uses ordinary BatchTopK. JumpReLU uses an input straight-through estimator and a base coefficient of 0.1 with an adaptive multiplier. JumpReLU and Matryoshka resample every 2,500 updates during the first 80% of training, with inactivity windows of 1,000 and 100 updates, respectively. Resampled decoder atoms follow reconstruction-residual directions, and their optimizer moments are reset. BatchTopK and Matryoshka retain auxiliary-loss coefficient 1. Matryoshka uses prefixes 128, 512, 2,048, and 16,384 with per-level auxiliary losses.
Gemma Scope uses reconstruction and sparsity losses, without a separate dead-latent auxiliary loss, alongside straight-through estimators, tied initialization, learning-rate and sparsity warmup, and decoder normalization (Lieberum et al., 2024, Sections 2.2 and 3.2).
(a)

(b)
Original Modified

(c)

BeFOND
Figure 9: BeFOND retains the highest MCC, Macro F1, and Rare F1 after baseline modifications aimed at preventing inactive features. Hatched bars denote modified recipes ( , , seed 0); numerical results appear in Table 5.
Table 5: Full-width SynthSAEBench results (, ). Individual rows report initialization seeds 0–2; mean rows give pointwise 95% Student-t confidence intervals for the three recovery metrics, as in Figure 4. Each evaluation uses held-out examples. and dead counts in mean rows are arithmetic means. The lower block retains the modified recipes (+) and continuous-run checkpoint, each at seed 0. The BeFOND runs use 181.82M decoder-update plus 18.18M prior examples.
| Method | Seed | MCC | Macro F1 | Rare F1 | Dead | |
|---|---|---|---|---|---|---|
| BatchTopK | 0 | 0.534523 | 0.445173 | 0.299436 | 34.833798 | 1,577 |
| 1 | 0.535311 | 0.444452 | 0.299666 | 35.031285 | 1,733 | |
| 2 | 0.537442 | 0.446642 | 0.296203 | 34.948331 | 1,707 | |
| Mean | 0.5358 0.0038 | 0.4454 0.0028 | 0.2984 0.0048 | 34.94 | 1672.33 | |
| JumpReLU | 0 | 0.483953 | 0.326567 | 0.190439 | 45.148172 | 8,069 |
| 1 | 0.481728 | 0.326672 | 0.184864 | 44.826161 | 8,090 | |
| 2 | 0.482102 | 0.325518 | 0.184310 | 45.098772 | 8,117 | |
| Mean | 0.4826 0.0030 | 0.3263 0.0016 | 0.1865 0.0084 | 45.02 | 8092.00 | |
| Matryoshka | 0 | 0.590345 | 0.556314 | 0.433018 | 19.978349 | 4,923 |
| 1 | 0.574629 | 0.530946 | 0.366127 | 19.991146 | 5,505 | |
| 2 | 0.583862 | 0.552021 | 0.415913 | 19.989287 | 5,049 | |
| Mean | 0.5829 0.0196 | 0.5464 0.0337 | 0.4050 0.0863 | 19.99 | 5159.00 | |
| Matching Pursuit | 0 | 0.812752 | 0.782551 | 0.822595 | 29.646241 | 2 |
| 1 | 0.811610 | 0.781264 | 0.821854 | 29.648383 | 1 | |
| 2 | 0.815241 | 0.784698 | 0.827665 | 29.688899 | 3 | |
| Mean | 0.8132 0.0046 | 0.7828 0.0043 | 0.8240 0.0079 | 29.66 | 2.00 | |
| ReLU-L1 | 0 | 0.651464 | 0.641205 | 0.522534 | 35.089073 | 174 |
| 1 | 0.650650 | 0.640259 | 0.524647 | 34.972258 | 135 | |
| 2 | 0.650945 | 0.641409 | 0.524073 | 34.976428 | 137 | |
| Mean | 0.6510 0.0010 | 0.6410 0.0015 | 0.5238 0.0027 | 35.01 | 148.67 | |
| Mean-field + Adam | 0 | 0.779715 | 0.841050 | 0.704307 | 45.107146 | 514 |
| 1 | 0.783435 | 0.846995 | 0.743286 | 48.116016 | 640 | |
| 2 | 0.790151 | 0.855224 | 0.729628 | 68.019993 | 556 | |
| Mean | 0.7844 0.0131 | 0.8478 0.0177 | 0.7257 0.0491 | 53.75 | 570.00 | |
| BeFOND | 0 | 0.898559 | 0.970345 | 0.955392 | 36.033549 | 1 |
| 1 | 0.898064 | 0.970567 | 0.949700 | 35.679190 | 0 | |
| 2 | 0.897350 | 0.969745 | 0.950726 | 35.485085 | 0 | |
| Mean | 0.8980 0.0015 | 0.9702 0.0011 | 0.9519 0.0075 | 35.73 | 0.33 | |
| Additional seed-0 checkpoints | ||||||
| BatchTopK+ | 0 | 0.8123 | 0.6826 | 0.5851 | 45.01 | 504 |
| JumpReLU+ | 0 | 0.8612 | 0.8487 | 0.7288 | 39.96 | 367 |
| Matryoshka+ | 0 | 0.8405 | 0.8348 | 0.8457 | 34.95 | 495 |
| BeFOND | 0 | 0.8974 | 0.9701 | 0.9482 | 35.70 | 0 |
Recovery across feature frequencies. Fig. 10 resolves the comparison into frequency quintiles. The BeFOND checkpoint is the best run in Table 5 (MCC 0.8986), and the original and modified baseline checkpoints are those in Fig. 9. Improvements from the modified recipes extend into the rare tail, while BeFOND retains higher coverage and F1 in every quintile. Coverage measures dictionary alignment. F1 measures detection of the matched feature's activity, so the two need not coincide.

Ground-truth feature-frequency quintile
Figure 10: Recovery across feature-frequency quintiles ( , , seed 0). Dashed lines show original baselines, and “+” denotes their modified recipes. Coverage is the fraction of features matched above cosine 0.8. Quintiles use each run’s 500K-example frequency reference. F1 uses 1M held-out examples. Random draws differ between some runs.
These fifths differ from Rare F1’s least-frequent quarter.
Dictionary capacity. Table 5 combines recovery, sparsity, and dead-latent counts. Main-text Fig. 4 reports three-seed means: MCC 0.8980 and Rare F1 0.9519, with 0.33 dead latents on average. Its seed-0 run reaches MCC 0.8986 and Rare F1 0.9554, with one dead latent. The separate continuous run below reaches MCC 0.8974 and Rare F1 0.9482, with zero. MP has two dead latents but lower recovery, so keeping latents active is not sufficient for accurate feature recovery.
C.5.2 TRAINING SAMPLE EFFICIENCY
Fig. 11 reports MCC, Macro F1, and Rare F1 throughout training in the full-width setting. Its BeFOND curve follows one continuous run, whose endpoint is identified separately in Table 5.

Figure 12: Performance as a function of inference depth. Sparse probing top-1 accuracy (left), top-5 accuracy (middle), and RAVEL disentanglement (right) for BeFOND on Gemma-2-2B layer-12 activations, evaluated over inference steps at dictionary widths of 16k, 65k, 131k, and 524k. All evaluations use checkpoint 12,207, corresponding to 49,999,872 training tokens. Lines show means and shaded regions indicate sample standard deviation across three training seeds. Sparse probing peaks within the first few steps, whereas RAVEL generally benefits from longer inference.
BatchTopK Matryoshka ReLU-L1
JumpReLU Matching Pursuit BeFOND
(a) MCC
(b) Macro F1

(c) Rare F1
Samples (M; piecewise linear)
Figure 11: Feature recovery throughout training on unwhitened SynthSAEBench (d = 768; 16,384 learned and ground-truth features), using plain baseline recipes and seed 0. (a) Dictionary mean correlation coefficient (MCC). (b) Macro F1 over ground-truth features after positive-cosine one-to-one matching. (c) Rare F1 over the least frequent quartile, defined by a shared independent 500K-example frequency reference (seed 315031). Every checkpoint is evaluated on 1M held-out examples (seed 49100). BeFOND uses 200 inference steps with activity p > 0.5; baselines use positive native activations. The x-axis counts decoder-update examples and is piecewise linear: 1M examples at 0–10M, 5M at 10–50M, and 25M beyond 50M occupy equal horizontal distances. Cross-region slopes therefore do not have a common per-sample interpretation. Baseline points through 10M, after 10M through 50M, and beyond 50M come from separate matching-recipe runs with their original full-budget learning-rate schedules; they do not form a single continuous trajectory. Overlapping checkpoints are selected by these fixed windows, not by score. BeFOND uses one continuous run. Samples are rounded up to full batches. Baselines finish at approximately 200M decoder-update examples and BeFOND at 181.82M plus 18.18M separate prior-update examples, which are excluded from the x-axis. Baseline auxiliary exposure is not counted on this axis. Final measured values are BatchTopK: 34.83, JumpReLU: 45.15, Matryoshka: 19.98, Matching Pursuit: 29.65, ReLU-L1: 35.09, BeFOND: 35.70. One seed is shown; no uncertainty intervals are estimated.
Table 6: SAEBench results on whitened Gemma-2-2B layer-12 activations after 49,999,872 training tokens. Entries are mean ± sample standard deviation over three training seeds for BeFOND and five for each baseline. For SAE baselines, we selected target values by mean top-1 accuracy, and then used it for all probing columns, and the model selected by mean disentanglement supplies all RAVEL columns. Parentheses give both values when they differ. Sparse probing measures how well or features predict concepts, averaged equally across 113 tasks: accuracy is the fraction of correct predictions; AUC measures how well positives rank above negatives across thresholds; F1 balances precision (correctness of positive predictions) and recall (coverage of positives). RAVEL measures whether interventions change a targeted attribute (cause) while preserving other attributes (isolation), and disentanglement is their mean. Higher is better throughout. Within each width and metric, bold marks the highest mean, selected before rounding.
| Model | Sparse probing | RAVEL | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Disentanglement ↑ | Cause ↑ | Isolation ↑ | |||||||
| Acc. ↑ | AUC ↑ | F1 ↑ | Acc. ↑ | AUC ↑ | F1 ↑ | ||||
| Dictionary width: 16k | |||||||||
| BatchTopK(target ) | .767±.002 | .798±.003 | .761±.004 | .814±.002 | .862±.002 | .812±.002 | .729±.005 | .692±.019 | .767±.017 |
| Matryoshka BatchTopK( probing; 400 RAVEL) | .768±.003 | .794±.003 | .762±.002 | .810±.002 | .858±.002 | .808±.002 | .731±.003 | .695±.013 | .767±.015 |
| Mean-field + Adam( inference steps) | .761±.003 | .761±.003 | .749±.004 | .801±.002 | .842±.001 | .798±.002 | .696±.003 | .639±.006 | .753±.006 |
| BeFOND( inference steps) | .771±.004 | .781±.004 | .765±.005 | .812±.002 | .856±.001 | .811±.002 | .786±.002 | .759±.002 | .813±.003 |
| Dictionary width: 65k | |||||||||
| BatchTopK( probing; 800 RAVEL) | .770±.003 | .800±.002 | .765±.003 | .814±.003 | .862±.002 | .812±.003 | .745±.005 | .712±.006 | .777±.008 |
| Matryoshka BatchTopK(target ) | .772±.001 | .801±.001 | .766±.002 | .811±.001 | .858±.001 | .809±.002 | .737±.004 | .704±.007 | .771±.006 |
| Mean-field + Adam( inference steps) | .757±.002 | .757±.002 | .744±.002 | .794±.001 | .832±.001 | .790±.002 | .733±.003 | .697±.007 | .769±.006 |
| BeFOND( inference steps) | .776±.004 | .794±.004 | .769±.006 | .812±.002 | .856±.001 | .811±.002 | .814±.000 | .789±.001 | .840±.001 |
| Dictionary width: 131k | |||||||||
| BatchTopK(target ) | .773±.002 | .804±.002 | .768±.003 | .814±.002 | .862±.001 | .813±.002 | .751±.003 | .720±.008 | .782±.013 |
| Matryoshka BatchTopK( probing; 400 RAVEL) | .773±.004 | .799±.004 | .768±.004 | .814±.001 | .860±.002 | .812±.001 | .739±.002 | .713±.008 | .764±.006 |
| Mean-field + Adam( inference steps) | .754±.003 | .754±.003 | .740±.005 | .791±.002 | .830±.003 | .787±.002 | .734±.005 | .694±.007 | .774±.004 |
| BeFOND( inference steps) | .785±.002 | .802±.003 | .778±.003 | .816±.001 | .857±.002 | .814±.002 | .816±.001 | .790±.002 | .842±.003 |
| Dictionary width: 524k | |||||||||
| BatchTopK(target ) | .773±.004 | .803±.004 | .768±.006 | .814±.003 | .860±.002 | .813±.003 | .748±.004 | .719±.010 | .776±.010 |
| Matryoshka BatchTopK( probing; 400 RAVEL) | .774±.002 | .799±.002 | .768±.002 | .813±.001 | .859±.001 | .812±.000 | .743±.003 | .708±.013 | .778±.009 |
| Mean-field + Adam( inference steps) | .751±.007 | .751±.007 | .735±.009 | .786±.009 | .825±.010 | .782±.009 | .685±.029 | .622±.047 | .748±.013 |
| BeFOND( inference steps) | .789±.002 | .805±.004 | .784±.004 | .817±.001 | .859±.001 | .816±.001 | .827±.001 | .800±.001 | .854±.002 |
D EXTENDED GEMMA EXPERIMENTS
D.1 EXPERIMENTAL SETUP
Dataset. We extract layer-12 post-residual activations from Gemma-2-2B (Gemma Team, 2024) (). Documents from Pile Uncopyrighted (monology, 2023) are tokenized separately with BOS and truncated to 1,024 tokens. BOS and padding positions are excluded. Validation, calibration, and training use disjoint document ranges. Raw and whitened activations are evaluated separately. Validation and calibration each use 65,536 tokens, with up to 500M training tokens. Extraction uses BF16, batch 4, and no document packing. Whitening statistics were fitted on 500M training tokens.
Training. Table 7 summarizes the training and evaluation settings. The selected BeFOND results in Table 6 use seeds 0–2 and checkpoint 12,207, corresponding to 49,999,872 decoder-training tokens. Evaluation uses ten outer inference steps with one inner step per reference update. The readout retains posterior means above 0.5 and sets the remainder to zero, followed by decoder-norm rescaling.
At widths 16K, 65K, and 131K, the recipes use , ETD1 step , reference retention 0.999, and decoder-norm targets 4, 1.5, and 0.75, respectively. At 524K they use , , full reference retention, and norm target 0.5. All use a global batch of 4,096 and a linear learning-rate schedule with peak and minimum . Warmup occupies of training at 16K–131K and at 524K.
Table 7: Gemma training and evaluation settings. Preprocessing, checkpoint, inference depth, and readout identify an evaluation configuration.
| Method / metric | Settings |
|---|---|
| BeFOND | Widths 16,384–524,288; exponentially sampled training depth (mean 16, cap 100; Appendix C.1); FP32 inference/parameters; prior Fisher with current moments and no damping; ; decoder solver matrix_free_phi_auto |
| Mean-field + Adam | Whitened inputs, 50M tokens, 20 inference steps, readout . After 2,000 updates, clip the dictionary gradient at three times its running-mean norm and skip batches whose negative ELBO exceeds five times its running mean, capped at approximately 20% of recent batches |
| BatchTopK / Matryoshka | Whitened inputs; batch 4,096; 12,207 updates (49,999,872 tokens); constant LR ; FP32 SAEs, BF16 Gemma; SAELens 6.51.1. ZCA fitted on 500M training tokens. Target values in Table 8 were selected on a separate pilot |
| Baseline initialization / losses | Decoder norm initialized to 0.1; decoder bias subtracted before encoding; activations rescaled by decoder norm; auxiliary-loss coefficient 1; threshold EMA rate 0.01 |
| Matryoshka levels | 4,096, 16,384, and the full width (16,384 appears once for the smallest model); Matryoshka auxiliary loss enabled |
| Gemma Scope | Release google/gemma-scope-2b-pt-res, checkpoint paths layer_12/width_{w}/average_10_{s}, with (w,s) given by each row of Table 9. Training: 4B tokens at 16K, 8B at 32K–524K, and 16B at 1M (Lieberum et al., 2024) |
| Sparse probing | 113 tasks; final non-padding token; context 1,024; 1/2/5 selected features; L1 logistic regression; equal task averaging |
| Probe selection | Rank absolute normalized class-mean difference; 10 inverse-penalty values from to ; validation ROC-AUC; refit on training data |
| RAVEL | Average cause and isolation over attributes within each entity, then equally over entities; disentanglement is their mean. Aggregation requires completed results for every configured entity |
Evaluation. Sparse probing reports mean test accuracy across 113 tasks, using the best 1 or 5 features selected on training data. RAVEL reports cause, isolation, and their mean (Huang et al., 2024). Table 7 specifies the evaluation settings (Karvonen et al., 2025).
Implementation. The Gemma reference environment uses Python 3.11.14, PyTorch 2.7.1+cu126, TransformerLens 2.16.1, Transformers 4.57.3, and SAE Lens 6.24.6.
D.2 RESULTS
The whitened baseline comparison reports sparse probing and RAVEL in Table 8, and Table 9 reports the Gemma Scope checkpoints.
Table 8: SAEBench results for SAEs trained on 50M tokens of whitened Gemma-2-2B layer-12 activations. Entries report mean sample standard deviation over five training seeds (1–5), evaluated at the final checkpoint (49,999,872 tokens). Sparse-probing metrics are macro-averaged over 113 tasks; RAVEL overall is the disentanglement score. All scores are fractions, and higher is better. denotes target training sparsity, fixed using a separate seed-0 pilot. Bold indicates the highest mean across values within each width–architecture group, selected before rounding.
| Width Target | Sparse probing (Kantamneni et al., 2025) | RAVEL (Huang et al., 2024) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Overall ↑ | Cause ↑ | Isolation ↑ | ||||||||
| Acc. ↑ | AUC ↑ | F1 ↑ | Acc. ↑ | AUC ↑ | F1 ↑ | |||||
| BatchTopK (16k) | ||||||||||
| 16k | 200 | .765±.004 | .791±.004 | .758±.005 | .810±.002 | .859±.002 | .808±.003 | .717±.009 | .698±.018 | .736±.021 |
| 16k | 400 | .767±.002 | .798±.003 | .761±.004 | .814±.002 | .862±.002 | .812±.002 | .729±.005 | .692±.019 | .767±.017 |
| Matryoshka BatchTopK (16k) | ||||||||||
| 16k | 200 | .768±.003 | .794±.003 | .762±.002 | .810±.002 | .858±.002 | .808±.002 | .718±.004 | .688±.018 | .747±.013 |
| 16k | 400 | .767±.001 | .797±.001 | .761±.002 | .809±.002 | .857±.001 | .808±.002 | .731±.003 | .695±.013 | .767±.015 |
| BatchTopK (65k) | ||||||||||
| 65k | 400 | .770±.003 | .800±.002 | .765±.003 | .814±.003 | .862±.002 | .812±.003 | .740±.003 | .700±.015 | .781±.012 |
| 65k | 800 | .768±.002 | .803±.002 | .764±.002 | .813±.001 | .860±.001 | .812±.001 | .745±.005 | .712±.006 | .777±.008 |
| Matryoshka BatchTopK (65k) | ||||||||||
| 65k | 200 | .772±.002 | .798±.002 | .766±.002 | .813±.001 | .861±.002 | .811±.001 | .734±.009 | .707±.015 | .761±.010 |
| 65k | 400 | .772±.001 | .801±.001 | .766±.002 | .811±.001 | .858±.001 | .809±.002 | .737±.004 | .704±.007 | .771±.006 |
| BatchTopK (131k) | ||||||||||
| 131k | 600 | .773±.002 | .804±.002 | .768±.003 | .814±.002 | .862±.001 | .813±.002 | .751±.003 | .720±.008 | .782±.013 |
| 131k | 800 | .770±.003 | .803±.003 | .765±.003 | .814±.002 | .859±.002 | .812±.002 | .746±.004 | .720±.011 | .771±.005 |
| Matryoshka BatchTopK (131k) | ||||||||||
| 131k | 200 | .773±.004 | .799±.004 | .768±.004 | .814±.001 | .860±.002 | .812±.001 | .739±.008 | .723±.019 | .754±.006 |
| 131k | 400 | .773±.001 | .801±.001 | .767±.002 | .812±.001 | .858±.001 | .810±.002 | .739±.002 | .713±.008 | .764±.006 |
| BatchTopK (524k) | ||||||||||
| 524k | 600 | .772±.004 | .801±.004 | .766±.004 | .813±.002 | .861±.002 | .812±.003 | .747±.006 | .719±.011 | .775±.007 |
| 524k | 800 | .773±.004 | .803±.004 | .768±.006 | .814±.003 | .860±.002 | .813±.003 | .748±.004 | .719±.010 | .776±.010 |
| Matryoshka BatchTopK (524k) | ||||||||||
| 524k | 200 | .774±.002 | .799±.002 | .768±.002 | .813±.001 | .859±.001 | .812±.000 | .734±.005 | .705±.011 | .764±.011 |
| 524k | 400 | .771±.002 | .800±.002 | .767±.003 | .810±.001 | .858±.001 | .809±.002 | .743±.003 | .708±.013 | .778±.009 |
D.3 WALL-CLOCK TRAINING TIMES ON H200 GPUs
Table 10 compares wall-clock training times on eight NVIDIA H200 GPUs, with one model measured at a time and seed 0 throughout. Each measurement covers the first 999,424 main-training tokens of the original 50M-token schedule. Global batch size is 4,096 for BeFOND, BatchTopK, and Matryoshka, and 2,048 for MF20+clip.
Inputs are loaded, shuffled, whitened, and placed in GPU memory before timing. Initialization and CUDA/JIT warmup are excluded, and the complete initial training state is restored after warmup. The timed interval includes inference, losses, parameter updates, normalization, required communication, and BeFOND's prior updates with convergence checks. Evaluation, checkpoint writing, and logging are excluded. PyTorch timings use the maximum CUDA-synchronized elapsed time across ranks, while JAX waits for all output shards on all devices.
BeFOND retains its original stochastic training horizons, capped at 100 with one inner step, and warms the complete measured prefix to cover adaptive solver paths. MF uses 20 inference steps. Its clipping and loss-based skipping begin after 2,000 updates and are inactive during this prefix. Model tensors are FP32, with native FP64 intermediates retained in BeFOND's moment reductions and Woodbury calculations. BeFOND and the amortized baselines use PyTorch, while MF uses JAX. The distributed baseline implementations preserve the global TopK budget and synchronize gradients, thresholds, and dead-feature histories.
BeFOND takes approximately as long as BatchTopK across these widths.
Table 9: SAEBench evaluations of released Gemma Scope layer-12 checkpoints (Lieberum et al., 2024; Karvonen et al., 2025), organized by dictionary width and average sparsity .
| Width | Sparse probing | RAVEL | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| k=1 | k=2 | k=5 | Disent-angle ↑ | Cause ↑ | Isolation ↑ | ||||||||
| Acc. ↑ | AUC ↑ | F1 ↑ | Acc. ↑ | AUC ↑ | F1 ↑ | Acc. ↑ | AUC ↑ | F1 ↑ | |||||
| 16k | 22 | 0.7337 | 0.7476 | 0.7159 | 0.7529 | 0.7861 | 0.7441 | 0.7771 | 0.8243 | 0.7717 | 0.5989 | 0.5121 | 0.6857 |
| 16k | 41 | 0.7519 | 0.7710 | 0.7366 | 0.7686 | 0.8056 | 0.7601 | 0.7893 | 0.8370 | 0.7835 | 0.6644 | 0.6163 | 0.7126 |
| 16k | 82 | 0.7627 | 0.7857 | 0.7545 | 0.7821 | 0.8207 | 0.7768 | 0.8047 | 0.8523 | 0.8016 | 0.6960 | 0.6489 | 0.7431 |
| 16k | 176 | 0.7679 | 0.7938 | 0.7602 | 0.7890 | 0.8262 | 0.7851 | 0.8129 | 0.8587 | 0.8119 | 0.7206 | 0.6508 | 0.7904 |
| 16k | 445 | 0.7725 | 0.8033 | 0.7687 | 0.7942 | 0.8363 | 0.7921 | 0.8171 | 0.8632 | 0.8162 | 0.7488 | 0.7205 | 0.7771 |
| 32k | 12 | 0.7179 | 0.7264 | 0.6960 | 0.7350 | 0.7665 | 0.7181 | 0.7570 | 0.8046 | 0.7489 | 0.6050 | 0.5461 | 0.6639 |
| 32k | 22 | 0.7379 | 0.7498 | 0.7221 | 0.7535 | 0.7824 | 0.7418 | 0.7758 | 0.8187 | 0.7711 | 0.6416 | 0.6251 | 0.6582 |
| 32k | 40 | 0.7520 | 0.7695 | 0.7422 | 0.7662 | 0.7995 | 0.7590 | 0.7872 | 0.8327 | 0.7842 | 0.6755 | 0.6200 | 0.7311 |
| 32k | 76 | 0.7607 | 0.7815 | 0.7534 | 0.7761 | 0.8138 | 0.7721 | 0.7990 | 0.8466 | 0.7958 | 0.7075 | 0.6714 | 0.7436 |
| 32k | 155 | 0.7675 | 0.7907 | 0.7609 | 0.7865 | 0.8255 | 0.7833 | 0.8054 | 0.8528 | 0.8025 | 0.7249 | 0.6881 | 0.7616 |
| 32k | 360 | 0.7749 | 0.8049 | 0.7713 | 0.7897 | 0.8306 | 0.7866 | 0.8140 | 0.8601 | 0.8129 | 0.7450 | 0.7105 | 0.7794 |
| 65k | 21 | 0.7361 | 0.7459 | 0.7139 | 0.7507 | 0.7785 | 0.7359 | 0.7743 | 0.8186 | 0.7686 | 0.6469 | 0.6053 | 0.6885 |
| 65k | 38 | 0.7501 | 0.7656 | 0.7399 | 0.7660 | 0.7962 | 0.7589 | 0.7874 | 0.8290 | 0.7834 | 0.6767 | 0.6345 | 0.7188 |
| 65k | 72 | 0.7647 | 0.7816 | 0.7552 | 0.7810 | 0.8128 | 0.7751 | 0.7987 | 0.8451 | 0.7965 | 0.7041 | 0.6596 | 0.7487 |
| 65k | 141 | 0.7717 | 0.7930 | 0.7653 | 0.7858 | 0.8231 | 0.7814 | 0.8087 | 0.8541 | 0.8069 | 0.7346 | 0.7158 | 0.7535 |
| 65k | 297 | 0.7788 | 0.8032 | 0.7731 | 0.7947 | 0.8343 | 0.7925 | 0.8178 | 0.8611 | 0.8169 | 0.7487 | 0.7016 | 0.7959 |
| 131k | 12 | 0.7108 | 0.7198 | 0.6870 | 0.7311 | 0.7585 | 0.7146 | 0.7525 | 0.7952 | 0.7443 | 0.6004 | 0.5764 | 0.6245 |
| 131k | 20 | 0.7279 | 0.7362 | 0.7074 | 0.7483 | 0.7752 | 0.7335 | 0.7698 | 0.8132 | 0.7621 | 0.6408 | 0.5950 | 0.6866 |
| 131k | 36 | 0.7379 | 0.7513 | 0.7222 | 0.7565 | 0.7843 | 0.7471 | 0.7810 | 0.8226 | 0.7767 | 0.6828 | 0.6451 | 0.7205 |
| 131k | 67 | 0.7554 | 0.7713 | 0.7444 | 0.7693 | 0.8019 | 0.7622 | 0.7913 | 0.8347 | 0.7876 | 0.7083 | 0.6734 | 0.7432 |
| 131k | 129 | 0.7677 | 0.7865 | 0.7608 | 0.7837 | 0.8173 | 0.7794 | 0.8027 | 0.8475 | 0.8011 | 0.7265 | 0.6561 | 0.7969 |
| 131k | 264 | 0.7814 | 0.8033 | 0.7773 | 0.7941 | 0.8290 | 0.7914 | 0.8138 | 0.8575 | 0.8125 | 0.7486 | 0.7281 | 0.7691 |
| 262k | 11 | 0.7068 | 0.7168 | 0.6786 | 0.7232 | 0.7503 | 0.7054 | 0.7430 | 0.7872 | 0.7310 | 0.6166 | 0.5987 | 0.6345 |
| 262k | 21 | 0.7240 | 0.7355 | 0.7037 | 0.7443 | 0.7732 | 0.7318 | 0.7657 | 0.8078 | 0.7607 | 0.6355 | 0.6169 | 0.6540 |
| 262k | 36 | 0.7375 | 0.7533 | 0.7252 | 0.7573 | 0.7879 | 0.7479 | 0.7772 | 0.8195 | 0.7723 | 0.6795 | 0.6567 | 0.7023 |
| 262k | 67 | 0.7510 | 0.7684 | 0.7427 | 0.7666 | 0.7960 | 0.7596 | 0.7911 | 0.8325 | 0.7883 | 0.7039 | 0.6652 | 0.7426 |
| 262k | 121 | 0.7656 | 0.7854 | 0.7572 | 0.7818 | 0.8155 | 0.7772 | 0.8029 | 0.8480 | 0.8008 | 0.7158 | 0.6737 | 0.7579 |
| 262k | 243 | 0.7733 | 0.7951 | 0.7655 | 0.7928 | 0.8291 | 0.7906 | 0.8119 | 0.8561 | 0.8105 | 0.7523 | 0.7219 | 0.7827 |
| 524k | 22 | 0.7129 | 0.7276 | 0.6976 | 0.7218 | 0.7529 | 0.7104 | 0.7453 | 0.7893 | 0.7384 | 0.6138 | 0.5800 | 0.6475 |
| 524k | 29 | 0.7258 | 0.7421 | 0.7139 | 0.7400 | 0.7725 | 0.7297 | 0.7629 | 0.8076 | 0.7573 | 0.6451 | 0.6002 | 0.6900 |
| 524k | 46 | 0.7387 | 0.7552 | 0.7264 | 0.7535 | 0.7872 | 0.7457 | 0.7770 | 0.8211 | 0.7731 | 0.6803 | 0.6602 | 0.7005 |
| 524k | 65 | 0.7523 | 0.7688 | 0.7412 | 0.7663 | 0.7981 | 0.7589 | 0.7879 | 0.8303 | 0.7856 | 0.6958 | 0.6583 | 0.7332 |
| 524k | 115 | 0.7637 | 0.7815 | 0.7550 | 0.7791 | 0.8110 | 0.7734 | 0.8004 | 0.8419 | 0.7981 | 0.7251 | 0.6760 | 0.7741 |
| 524k | 227 | 0.7735 | 0.7955 | 0.7682 | 0.7927 | 0.8268 | 0.7890 | 0.8106 | 0.8520 | 0.8094 | 0.7555 | 0.7330 | 0.7781 |
| 1m | 19 | 0.7028 | 0.7182 | 0.6875 | 0.7165 | 0.7497 | 0.7081 | 0.7396 | 0.7847 | 0.7350 | 0.5910 | 0.5570 | 0.6250 |
| 1m | 26 | 0.7234 | 0.7388 | 0.7047 | 0.7357 | 0.7693 | 0.7273 | 0.7587 | 0.8084 | 0.7523 | 0.6371 | 0.6120 | 0.6622 |
| 1m | 58 | 0.7354 | 0.7548 | 0.7239 | 0.7550 | 0.7876 | 0.7499 | 0.7755 | 0.8193 | 0.7737 | 0.6722 | 0.6560 | 0.6884 |
| 1m | 73 | 0.7526 | 0.7714 | 0.7435 | 0.7671 | 0.8013 | 0.7633 | 0.7887 | 0.8295 | 0.7866 | 0.6933 | 0.6533 | 0.7334 |
| 1m | 107 | 0.7633 | 0.7797 | 0.7545 | 0.7737 | 0.8030 | 0.7684 | 0.7959 | 0.8385 | 0.7937 | 0.7201 | 0.6857 | 0.7545 |
| 1m | 207 | 0.7788 | 0.7983 | 0.7726 | 0.7919 | 0.8264 | 0.7881 | 0.8095 | 0.8514 | 0.8081 | 0.7420 | 0.6860 | 0.7979 |
Table 10: Elapsed training time in seconds for 999,424 training tokens on eight NVIDIA H200 GPUs (lower is better). Each model is measured once at seed 0. Timings include BeFOND's prior updates and exclude evaluation, initialization, warmup, data preparation, checkpointing, and logging. Matryoshka denotes Matryoshka BatchTopK. Mean-field + Adam uses 20 inference steps, gradient clipping, and batch skipping.
| Width K | BeFOND | BatchTopK | Matryoshka | Mean-field + Adam |
|---|---|---|---|---|
| 16,384 | 33.125 | 2.719 | 2.991 | 2.714 |
| 65,536 | 118.959 | 9.202 | 10.737 | 10.157 |
| 131,072 | 234.665 | 17.935 | 20.075 | 19.914 |
| 524,288 | 989.321 | 70.121 | 77.382 | 78.331 |