Paper commentary
Scaling Laws for SAE Training Data
Replaying a stored activation buffer can cut SAE training storage sharply
- Problem Sparse autoencoder training stores fresh activations for every update, so storage grows with the training budget. Replay can only reuse features already in the buffer, so the buffer must cover the data.
- Method The authors separate total optimizer presentations from unique activations. They pick the smallest buffer that reaches the explained variance plateau and replay it for the rest of the budget.
- Results At the plateau, replaying the buffer cut activation storage by 8 to 64 times with negligible quality loss in their experiments.
Why activation storage grows with the budget
A sparse autoencoder run at scale can fill several terabytes with the activations it reads. Storage keeps climbing with the training budget whenever each SAE update draws fresh activations. The authors split total optimizer presentations from the unique activations held in the buffer. Their question is how large that buffer must get before replay can stand in for new samples.
An SAE can't learn a feature's direction or threshold unless its training activations ever show that feature. Replay lets the optimizer revisit features the buffer already holds, but it can't introduce a feature the buffer lacks. Unique activations measure how well the buffer covers the distribution, while presentations measure optimization effort.
Real contextual activations are correlated, so this reasoning motivates a controlled sweep rather than a guarantee. The authors don't claim a bound on sample complexity from this argument. Figure 1 contrasts the two training schedules, fresh activations and buffer replay.
When the buffer reaches the quality plateau, the authors' rule cuts activation storage by 8 to 64 times. In their experiments, that reduction comes with negligible quality loss.
How the diversity sweep is built
The sweep holds total optimizer tokens fixed and changes only how many unique activations feed them. The main grid trains BatchTopK SAEs on layer 15 of Llama-3.1 8B with target average sparsity k = 32. Each curve moves from fresh activations throughout, where U equals Ntotal, to 128 replay epochs over a small buffer. Because total presentations stay fixed, the sweep separates activation diversity from total optimization compute.
The sweep varies U by setting U/Ntotal to fractions from 1/128 up to 1. Each point on a curve uses the same number of optimization tokens but a different amount of activation diversity. Training uses the epoch count E = Ntotal / Nunique, so a smaller buffer means more passes over the same activations. The authors separate total presentations from unique activations because replay can only reuse features already in the buffer.
A feature absent from the buffer cannot be introduced by replay, so buffer coverage sets the limit.
Each SAE is judged by explained variance on one million held-out FineWeb tokens that never appeared in a buffer. Explained variance is the primary quality metric in this sweep. Because the grid is logarithmic, the authors report an interval rather than a fitted threshold.
Where explained variance levels off
At the 128M budget, EV climbs steeply as the buffer grows from 1M activations to the full 128M. The 32k dictionary moves from 0.5870 to 0.6610, so a tiny buffer costs reconstruction quality. Figure 2 shows the same shape for all four dictionaries: a sharp rise at low diversity, then a flat top. The 64k dictionary follows the same path, from 0.5860 at 1M to 0.6648 at 128M.

Figure 2 : Explained variance as a function of unique activation count under fixed total SAE training budgets. With total optimization tokens fixed in each panel, moving right increases activation diversity and decreases the number of epochs over the buffer. EV improves sharply when activation diversity is low and then saturates.
Original paper · CC BY 4.0 · Nikita Koriagin, Nikita Balagansky, Daniil Gavrilov · Scaling Laws for SAE Training Data · Original paper figure · Extracted the figure area from page 2 of the original PDF.The authors call a buffer saturated when its EV sits within 0.005 of the best observed EV on that curve. Table 1 reports the plateau EV and the saturation interval for each dictionary and budget.
Larger dictionaries reach higher plateaus but need more unique activations to get there. At 1.28B, doubling D raised the best EV by roughly 2 to 3 EV points and moved the saturation interval up by roughly 2×. At 640M, the 128k dictionary reached 0.711 EV, and at 1.28B it reached 0.720. The authors read the 0.711 as incomplete training rather than the dictionary's ceiling.
Storage savings grow with total budget once a dictionary has enough diversity to saturate. A Llama-3.1 8B residual stream in bf16 takes 8 KiB per activation. For the 128k dictionary at 1.28B, the 160M buffer needs 1.19 TiB, against the 9.54 TiB full corpus.
Does the pattern transfer across layers, models and gates?
The authors check whether the plateau holds at other depths by training BatchTopK SAEs on Llama-3.1 8B layers 5, 15 and 25. The plateau EV is 0.713 at layer 5, 0.681 at layer 15 and 0.697 at layer 25. Each layer has a different plateau, yet EV still rises with activation diversity and then flattens at all three depths. Figure 3 overlays these curves, so the saturation shape can be compared directly across layers.

Figure 3 : Validation across layers and models ( D= 32k , N= 1.28B ). Llama-3.1 8B layer sweeps use BatchTopK SAEs, and sweeps across Qwen3 model sizes use TopK SAEs. All curves show the same saturation pattern as diversity increases despite changes in layer, model size, and SAE activation function.
Original paper · CC BY 4.0For the Qwen3 models, the authors switch from BatchTopK to standard TopK to reduce the cost of the sweep. Because the base model and the activation function both change, this comparison measures their combined effect. Plateau EV runs from 0.743 for Qwen3-8B to 0.796 for Qwen3-1.7B. All three model sizes show saturation as activation diversity grows, using activations from comparable middle layers.
Figure 3 shows all six curves together, with the three Llama layers on BatchTopK and the three Qwen sizes on TopK.
At Llama-3.1 8B layer 15 with D = 32k and Ntotal = 640M, BatchTopK, TopK and JumpReLU all reach saturation at 40M unique activations. BatchTopK reaches 0.680 and TopK reaches 0.681 at matched k = 32. Because the sparsity differs, that gap can't be credited to the gate alone. The result shows the saturation pattern carries across gates, but they didn't rank the gates at a common sparsity.
Do SAEBench metrics follow the EV choice
The authors checked whether a buffer picked by explained variance also looks sound on SAEBench metrics. They evaluated 24 BatchTopK checkpoints at layer 15 with a 640M budget on SAEBench. There were eight buffer sizes for each of D in {16k, 32k, 64k}. Dotted vertical lines in Figure 4 mark the EV-chosen buffer for each dictionary, so the metrics can be read against that point.

Figure 4 : SAEBench metrics versus the number of unique activations for the BatchTopK sweep at layer 15 with a budget of 640M tokens. Dotted vertical lines mark the buffer chosen from the EV plateau for each dictionary. Reconstruction MSE follows the EV plateau, and AutoInterp remains high beyond this buffer scale. Feature absorption measures disentanglement. Sparse probing changes little with buffer size. None of the evaluated downstream metrics drops sharply at the recommended buffer size. Lower MSE and absorption fraction are better. Higher AutoInterp and sparse probing accuracy are better.
Original paper · CC BY 4.0Reconstruction MSE improves rapidly at low diversity and sits near its best value at the EV-chosen buffer. MSE is a reconstruction check, and EV rescales that same reconstruction error on a fixed evaluation set.
Sparse probing accuracy stays nearly flat, so buffer size barely moves it. Feature absorption doesn't improve monotonically with diversity, because the 32k and 64k curves rise. Absorption fraction is better when lower, so this rise counts against those dictionaries. The authors read this as a sign that reconstruction and disentanglement need separate evaluation.
The authors tie the EV choice to a practical claim: reconstruction and interpretability hold up at the recommended buffer. Table 7 lists AutoInterp thresholds at 40M, 160M, and 160M for the three widths, so the optima sit elsewhere on the grid. Changes beyond the recommendation are small in both absolute and relative terms. They didn't test SAEBench beyond the BatchTopK sweep at layer 15.
Math and code domain sweeps
The authors swapped the activation source to math and Python code to test whether saturation depends on the text domain. Each domain's reference is its own 640M run without replay, so the tolerance is measured against that run.
FineMath-3plus first meets the 0.005 tolerance at 80M unique activations, relative to its run without replay. That buffer gives an 8× storage reduction. Stack-Edu Python meets the same tolerance at 40M unique activations, a 16× reduction. The held-out FineMath EV climbs from 0.6312 at 10M to 0.6673 at 640M.
Tightening the tolerance to 0.0025 moves the Python buffer from 40M to 80M, which halves its storage savings. Loosening the tolerance to 0.010 moves the Python buffer to 20M, a 32× reduction. FineMath keeps the 80M buffer under the stricter 0.0025 tolerance because of the spacing between tested counts. The authors used the 640M sweeps to confirm the default recommendations across widths in Appendix E.
Saturation persists in both domains, but the tested counts can't pin a continuous threshold. They didn't establish transfer of the FineWeb coefficients to math or code.
Fitting the effective activation count law
The effective count starts from the repetition count R = Ntotal/U − 1, which tells how often each buffer activation gets replayed on average. Neff equals U times one plus R* times one minus e to the minus R over R*, where R* is the fitted characteristic repetition scale. When R is much smaller than R*, Neff stays close to Ntotal, so replay adds almost as much as fresh data.
When R is much larger than R*, Neff is capped at a constant multiple of U, so further replay adds little.
The joint law writes EV as E∞ minus A times D to the minus alpha, minus B times Neff to the minus beta. The first penalty captures finite dictionary capacity, and it shrinks as the dictionary grows. The second penalty captures limited effective data, and larger buffers reduce it because they need fewer repetitions. The authors let the repetition scale depend on width through R*(D) = cD^−γ, and the fitted γ is 0.526.
Doubling the width multiplies R* by about 0.69, so wider dictionaries tolerate fewer replay passes before diversity limits them.
The authors fit 96 observations from the main grid and compare a constant R* with an R*(D) that depends on dictionary size. After removing the fitted capacity term, the data points follow one power-law curve against Neff in Figure 5. The fitted ceiling E∞ is 0.760, which exceeds the best EV on the main grid, 0.7197.

Figure 5 : Capacity-corrected EV ( EV +AD −α) versus effective activation count Neff under the extended R∗(D) model. Data points from all four dictionary sizes and three total budgets collapse onto a single power-law curve, supporting the functional form within the fitted regime.
Original paper · CC BY 4.0In the other six, the fitted interval sits one grid step larger, which leads to a larger buffer recommendation.
How well the law predicts held-out cases
The law faces cases it never saw, starting with the 640M budget, which the fit left out. In the other six, the fitted interval sits one grid step larger, which gives a larger buffer recommendation.
The 128k dictionary is held out, and the law predicts its EV from the three smaller dictionaries. The extrapolation works at 1.28B tokens, where that dictionary is sufficiently trained. At smaller budgets the extrapolation gets less accurate, because its best observed EV hasn't reached the asymptotic plateau. A fit to smaller dictionaries with sufficient training doesn't capture this undertrained regime.
For other layers and models, the authors keep the nonlinear shape fixed and refit only the level parameters. Because every check uses one dictionary width, transfer of width exponents stays untested.
Choosing a buffer size in practice
The recipe starts from a dictionary size and a total budget, then takes the smallest buffer on the plateau as Ubuf. Training then runs for Ntotal/Ubuf replay epochs, so the number of epochs is set by the chosen buffer. The storage reduction equals the same ratio, Ntotal/Ubuf, because the storage ratio equals the number of passes. The saturation interval comes from a pilot sweep or the fitted law, and its lower endpoint is the buffer that gets used.
Table 8 lists the recommended buffers, and every configuration in the grid gives at least an 8× reduction. The 128k dictionary at 1.28B tokens still needs a 160M buffer, which is 1.19 TiB. That buffer is an 8× reduction from the 9.54 TiB full corpus. The figures assume a Llama-3.1 8B residual stream in bf16, with 8 KiB per activation.
Savings grow with the budget once a dictionary has enough activation diversity to saturate. Extra budget mostly adds replay for smaller dictionaries, because they reach the plateau early. Larger dictionaries at small budgets can stay limited by capacity or optimization, so their savings grow more slowly. The compute ratio approaches the storage ratio only when activation generation dominates the cost.
The authors didn't measure end-to-end runtime, so the compute comparison stays an idealized estimate.
Where the evidence stops
The main grid stays on FineWeb and Llama-3.1 8B at fixed sparsity, so the coefficients aren't yet shown beyond that setting. The domain and layer sweeps test qualitative transfer, but the generality of the coefficients remains unresolved. The layer and model sweeps keep the nonlinear shape fixed and refit only the level parameters. Because every check uses one dictionary width, transfer of width exponents to new domains isn't established.
Extrapolating to the held-out 128k dictionary works at 1.28B tokens, where that dictionary is sufficiently trained. At smaller budgets its best observed EV hasn't reached the asymptotic plateau, so the extrapolation becomes less accurate. Fitting on the 128M and 1.28B budgets predicts the intermediate 640M budget with test RMSE 3.1×10−3 EV.
Gate comparisons cover one width, and SAEBench covers only the BatchTopK sweep at layer 15.
The authors didn't test objectives across tokens or broader modalities. End-to-end runtime wasn't measured, so the compute ratio remains an idealized estimate. That ratio approaches the storage ratio only when activation generation dominates the cost.
Those directions would address the sparsity and refresh questions left open by the fixed-sparsity grid.
Paper info
- Authors
- Nikita Koriagin, Nikita Balagansky, Daniil Gavrilov
- Venue
- arXiv · Preprint
- First published
- 2026-11-5
- Added
- 2026-11-6
- Updated
- 2026-11-5
- Version
- v1
- arXiv
- 2611.07756
- Category
- cs.LG · cs.AI · cs.CL
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Activation storage is often a bottleneck in sparse autoencoder (SAE) training. We study how many unique activations an SAE needs when its total training budget is fixed. Quality improves rapidly as the buffer grows, then reaches a plateau where replaying the buffer is nearly as effective as using fresh activations throughout training. Beyond this point, additional unique activations bring little benefit to reconstruction or interpretability, so the buffer need not grow with the training budget. We describe this tradeoff between diversity and repetition with a scaling law for limited data. We validate it across dictionary sizes and token budgets, early, middle, and late layers of Llama-3.1, Qwen3 model sizes, and BatchTopK, TopK, and JumpReLU SAEs. Sweeps using mathematical text and Python code test the effect of changing the activation source. Evaluation covers explained variance (EV), reconstruction MSE, feature absorption, automated interpretability, and sparse probing. These results give a practical training rule: choose the smallest buffer that reaches the quality plateau and replay it for the remaining budget. In our experiments, this reduces activation storage by $8\text{--}64\times$ with negligible quality loss.
Quote from the paper
Nikita Koriagin, Nikita Balagansky, Daniil Gavrilov (2026). Scaling Laws for SAE Training Data. arXiv:2611.07756v1. https://arxiv.org/abs/2611.07756v1
BibTeX
@misc{koriagin2026scaling,
title = {{Scaling Laws for SAE Training Data}},
author = {Nikita Koriagin and Nikita Balagansky and Daniil Gavrilov},
year = {2026},
eprint = {2611.07756},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.07756v1}
}