← Ziding Zhang

Input normalization in BatchTopK

Equalizing input norms restored feature recovery in one synthetic setup; the mechanism and transfer to other settings remain open.

November 6, 2026 · Research note


In our synthetic test, BatchTopK recovered 3 and 0 of the 3,200 known feature directions across two training seeds. Equalizing each input’s norm raised those counts to 3,190 and 3,188. The architecture could represent the features; whether training found them depended strongly on preprocessing.

This repeats an observation from Celene Nightingale’s Sanity Checks for Sanity Checks for Sparse Autoencoders. Nightingale investigated the poor synthetic feature recovery reported by Korznikov et al., connected it to inactive latents, and reported that per-sample normalization restored recovery. Our implementation supports that narrow observation. It does not establish a new mechanism.

What the diagnostics suggest

In the original runs, plain BatchTopK had 2,997 and 2,998 latents with no positive activation across 65,536 held-out examples. The normalized runs had zero under that same diagnostic. These activity counts were not part of the independent decoder check.

Competition for the shared activation budget is a plausible explanation: latents that rarely activate receive little opportunity to improve. But normalization also changes gradient scales and how examples contribute to training. These runs do not isolate which pathway caused the recovery improvement.

The original logs also contain a field labeled “Spearman” for the relationship between input norm and active-latent count. Its implementation assigns distinct ranks to tied counts instead of averaging their ranks. We therefore omit that statistic from the evidence for the mechanism.

One normalized run initially encountered a zero-length input and became nonfinite. Both normalized runs were restarted with the denominator floor shown above, under a recorded amendment. The final table uses those restarted runs.

Limits of the comparison

Korznikov et al.’s paper asks whether reconstruction and other evaluation metrics reliably establish feature learning. A preprocessing rescue in our toy does not settle that broader question, and we did not test their real-activation results.

Our implementation also differs from the released toy code. Its launcher defaults to 500,000 steps and batches of 4,096. Its normalization uses one global scale factor. Its generator selects each feature with a Bernoulli mask; ours draws a feature count and samples indices with replacement. We inspected that code but did not execute it. Nightingale’s normalization implementation also differs from ours, so the agreement is qualitative across implementations.

Related: Where simple probes leave room to improve, adding SAE probes costs about 0.01 AUC.

Agent context: sources, method and working notes

What was trained

We generated 3,200 random unit directions in 100 dimensions. Each example sums roughly twenty selected directions with LogNormal(0, 0.25) magnitudes. The autoencoders have 3,200 latents and target twenty active latents per input.

TopK allocates the activation budget separately to each input. BatchTopK shares it across the batch. We compared TopK, plain BatchTopK and BatchTopK with per-sample norm equalization. Each variant ran for 300,000 steps with Adam at 0.001 and batches of 1,024. The two training seeds share one ground-truth dictionary; they are not two independently generated feature sets.

For the normalized variant, the code applies

normalized input = x / max(norm(x), 0.000001) × reference norm

The reference is the mean norm of 8,192 fixed samples. Thus inputs are scaled to a common reference length, rather than to length one. An earlier draft described this imprecisely as unit-length normalization.

Feature recovery

A ground-truth feature counts as recovered if some decoder direction has cosine similarity at least 0.80 with it. Each table entry is a count out of 3,200 features.

VariantSeed 0Seed 1
TopK3,1933,191
BatchTopK30
BatchTopK with norm equalization3,1903,188

The predeclared test required TopK recovery of at least 90%, then tested whether normalization failed to reach 50% or plain BatchTopK exceeded 50%. The TopK gate passed, neither failure condition occurred, and both seeds agreed. The original verdict remains that Nightingale’s observation survives in this toy.

A fresh reviewer received the six saved decoders and a description of the toy, regenerated the ground-truth dictionary, and independently recomputed recovery and median best cosine. Those results match the saved training outputs. This checks the endpoint metrics; the reviewer did not independently repeat training.

Reproduce or challenge it

The code, saved decoders and instructions support two checks: a small arithmetic check of the recorded table, and recomputation of recovery directly from the decoders. The latter needs PyTorch but no training. Numeric log extracts are labeled as extracts, with their original source hashes.

Different recovery counts from the same decoders would challenge the result directly. A matched comparison under the authors’ released protocol would test how far our explanation carries. That protocol comparison should precede claims about real model activations.

Confidence is moderate in the normalization rescue within this setup. The causal pathway and transfer to other settings remain unsettled. No training was rerun for this note.

Original training and independent decoder check: Claude Opus 5.5 in separate task contexts. Source reconciliation, arithmetic packaging and drafting: GPT-6 through Codex. I have not claimed a personal numerical check. Corrections are welcome.

Changes
  • November 17, 2026: Shortened to the result and what it means; method, verification and limits moved under Agent context.