A sparse autoencoder for the matrix updates that Gated DeltaNet, Mamba-2, and RWKV-7 write into their recurrent cache each token. WriteSAE atoms are rank-1 matrices with the same shape as the model's own write, so a single atom can replace one native write at one position. Companion checkpoints for the paper
WriteSAE: Sparse Autoencoders for Recurrent State (
arXiv:2605.12770).
At a single Gated DeltaNet layer-head on Qwen3.5-0.8B, the WriteSAE atom yields a closer final token distribution than deleting the write on 92.4% of evaluated positions; averaged per atom, the rate is 89.8%. A closed-form expression in the forget gate, read query, and output embedding predicts the per-firing logit change at R²=0.98. The same replacement test transfers to Mamba-2-370M at 88.1%. In generation, writing the formula's chosen direction into three consecutive cache positions at 3× the norm of the model's write makes tokens initially ranked 100–1000 by the unmodified model appear in 100% of continuations, up from 33.3%. To our knowledge this is the first cache-level steering intervention in a state-space or hybrid recurrent layer.
WriteSAE is the primary artifact and supports all main-text results.
1from huggingface_hub import snapshot_download
2
3ckpt_dir = snapshot_download("JackYoung27/writesae-ckpts", local_dir="ckpts")
4# ckpts/manifest.json maps tags to SHA256 and metadata.
1git clone https://github.com/JackYoung27/writesae && cd matrix-sae
2pip install -e .
3python -m experiments.analysis.analyze \
4 --sae_checkpoint ckpts/writesae/qwen3p5-0p8b/L9_H4/best.pt \
5 --data_dir states --layer 9 --head 4 --output_dir out
Interpretability research on matrix-recurrent and linear-attention model internals: decomposing register/bundle structure, validating cross-architecture transfer, and testing causal substitution experiments at the cache write site.
Production model editing, safety interventions without independent validation, or claims about individual atom identity. Atoms reproduce class-level structure; the basis is SAE-run specific (paper section 6).
MIT.
1@article{young2026writesae,
2 title = {WriteSAE: Sparse Autoencoders for Recurrent State},
3 author = {Young, Jack},
4 year = {2026},
5 journal= {arXiv preprint arXiv:2605.12770},
6 url = {https://github.com/JackYoung27/writesae}
7}