# Input normalization in BatchTopK: saved evidence

Prepared by GPT-6 (OpenAI Codex; exact variant unavailable), November 6, 2026.
Original training and independent decoder check: Claude Opus 5.5 in separate task contexts.

## Check the recorded table

Download and extract the [complete evidence bundle](bundle.zip), then run `python3 -I arithmetic.py` in that directory. Python 3.9 or later and its standard library suffice. The script verifies hashes and compares the numeric extracts with the saved independent review. It does not load the decoders or rerun training. The ZIP contains the twenty component files listed below, including this README and the manifest; the manifest hashes component files and does not hash itself or its enclosing archive.

Expected recovered-feature counts, out of 3,200 for each seed:

| Variant | Seed 0 | Seed 1 |
| --- | ---: | ---: |
| TopK | 3,193 | 3,191 |
| BatchTopK | 3 | 0 |
| BatchTopK with norm equalization | 3,190 | 3,188 |

- [arithmetic.py](arithmetic.py): standard-library table and integrity check.
- [manifest.json](manifest.json): file hashes, historical source mapping and extraction rules.
- [final-results.json](final-results.json): numeric extracts from the six final results, with selected training parameters; not the original files.
- [training-curves.json](training-curves.json): complete numeric log rows from the six completed runs; extracted without their final runtime arguments.
- [aborted-curves.json](aborted-curves.json): numeric log rows from both aborted normalized runs. Nonfinite numbers are represented by the strings `NaN`, `Infinity` or `-Infinity` so the file is valid JSON.
- [review-results.json](review-results.json): original independent decoder-check results, unchanged.
- [review-output.txt](review-output.txt): original reviewer stdout, unchanged.
- [recover.py](recover.py): original independent decoder-check implementation, unchanged.
- [plan.md](plan.md): original frozen plan, unchanged.
- [amendment.md](amendment.md): original zero-norm repair amendment, unchanged.
- [trainer.py](trainer.py): original trainer used for TopK and plain BatchTopK, unchanged.
- [trainer-v2.py](trainer-v2.py): trainer used for the restarted normalized pair, unchanged.
- [extract.py](extract.py): exact packaging transformation for the numeric extracts. It requires the original private run directory; the published extracts suffice for the two checks described here.

The six original decoders are unchanged float32 tensors, each with shape 3,200 × 100. Together they occupy about 7.7 MB:

- [topk_s0_Wdec.pt](topk_s0_Wdec.pt)
- [topk_s1_Wdec.pt](topk_s1_Wdec.pt)
- [batchtopk_s0_Wdec.pt](batchtopk_s0_Wdec.pt)
- [batchtopk_s1_Wdec.pt](batchtopk_s1_Wdec.pt)
- [batchtopk_norm_s0_Wdec.pt](batchtopk_norm_s0_Wdec.pt)
- [batchtopk_norm_s1_Wdec.pt](batchtopk_norm_s1_Wdec.pt)

## Recompute from the decoders

This is the historical independent check, not another training run. It requires PyTorch. The original complete software environment lock is not preserved, so a new replay should record its Python/PyTorch versions. From the downloaded directory, create an output directory and run:

```sh
mkdir -p decoder-check
OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 python3 -I recover.py . decoder-check
```

The unchanged script loads tensor files with `weights_only=True`, regenerates 3,200 normalized Gaussian directions in 100 dimensions using PyTorch CPU seed 12345, normalizes each decoder row, and computes each true feature's maximum cosine. It also checks a random-decoder reference at seed 999. Compare `decoder-check/results.json` with `review-results.json`; recovery is reported at thresholds 0.80 and 0.90. The recorded independent acceptance tolerance was 0.005 for R80, while the historical results matched to four decimals.

The script reports both PyTorch's lower-middle median and the average of the two middle values. The article's main table does not depend on that median convention. No new decoder computation was run while preparing this package; the coordinator executed only `arithmetic.py` and the extraction/integrity checks.

## Training and extraction details

All six completed runs used 300,000 steps, batch 1,024, Adam at 0.001, k=20 and the same ground-truth seed. Training seed 0 or 1 changed initialization and the sample stream. Inputs combine a Binomial count of feature contributions, capped at 48, whose indices are drawn with replacement. Magnitudes use LogNormal(0,0.25). This is not the authors' independent Bernoulli-mask generator.

For the normalized runs, `xin = x / max(norm(x), 1e-6) * ref`; `ref` is the mean norm of 8,192 reference samples. The trainer equalizes length to that reference, not to one. Both normalized runs were restarted after a zero-length sample made one original run nonfinite. The amendment and aborted curves preserve that history. Their failure does not change the final frozen thresholds.

The files `final-results.json`, `training-curves.json` and `aborted-curves.json` are new packaging artifacts, explicitly mapped to original hashes in the manifest. They omit local checkpoint/output paths and process records. `extract.py` selects numeric final fields and named training parameters, retains every saved numeric log row, and encodes nonfinite entries as strings. The six model decoders, two trainers, original plans and reviewer artifacts are byte-for-byte copies.

The original held-out activity diagnostic tests 64 batches of 1,024 examples. The training inactivity diagnostic uses a different 1,000-step window. Neither activity measure, nor training curves, was independently recomputed. The old norm/L0 “Spearman” field uses distinct ranks for tied integer values; it is excluded from the final-results extract and the article. The original trainers preserve that implementation for inspection.

## Interpretation and sources

The predeclared TopK recovery gate passed and neither kill branch fired; the frozen result stays SURVIVES in this toy. This is a recovery intervention in one dictionary draw and two training seeds. It does not isolate causal mediation, reproduce the public authors' exact training protocol, or test variable-frequency features, other SAE architectures or real activations.

Prior observation: Celene Nightingale, [Sanity Checks for Sanity Checks for Sparse Autoencoders](https://www.lesswrong.com/posts/EC5H7xakTgxxNXm5g/sanity-checks-for-sanity-checks-for-sparse-autoencoders). Source study: Korznikov et al., [Sanity Checks for Sparse Autoencoders: Do SAEs Beat Random Baselines?](https://arxiv.org/html/2602.14111v2). The authors' [released code](https://github.com/AntonKorznikov/sanity-checks-saes/tree/20da45c549743bd42ceb1134fdd3e9eab7488d62/toy_sae) was read, not executed, during reconciliation. This directory distributes our own agent-written code and synthetic outputs, not their code or LLM weights.
