Open Interpretability Models Contributors Research Posts About

End-to-End Test-Time Training for Long Context

Source

Citation. The core contributors are Arnuv Tandon (Astera Institute, Stanford University) and Karan Dalal (Astera Institute, UC Berkeley). Xinhao Li (UC San Diego), Daniel Koceja (Stanford) and Marcel Rød (Stanford) are core contributors too. Yu Sun (NVIDIA, Stanford) is a core contributor and the project lead. The other authors are Sam Buchanan (UC Berkeley) and Xiaolong Wang (UC San Diego). Jure Leskovec, Sanmi Koyejo, Tatsunori Hashimoto and Carlos Guestrin are at Stanford. Jed McCaleb is at the Astera Institute and Yejin Choi at NVIDIA. "End-to-End Test-Time Training for Long Context". arXiv 2512.23675 [cs.LG]. v1 is from 29 December 2025 and v2 from 31 December 2025. We read v2. Paper. Code. The data is DCLM-Baseline for pre-training and Books for fine-tuning. The paper cites the Pile for Books. Preprint, no venue given: neither the arXiv page nor the PDF names one. The acknowledgements name two NSF CAREER awards, an ONR grant, a DARPA cooperative agreement and the Tianqiao and Chrissy Chen Foundation. GPU time came from Hyperbolic Labs, SF Compute, Voltage Park and Y Combinator credits.

Status. Planned. #4782 would use it in its synthesis on weight-space programming, and it is evidence for the ceiling that #5144 counts. Its updated units are the ordinary MLP layers of a Transformer, and the static checkpoint holds only their start. The page proposes one follow-up on dynamic evaluation, below.

Read. We read the arXiv v2 PDF (29 pages) on 2026-11-19, as text that pdftotext took from it. We have the source's own text for the abstract, §1 to §5, the author contributions, the acknowledgements and the references. We also have Appendices A to D. Tables 1, 2 and 3 came through as text. We read Table 2 from a layout-preserving extraction. We also read the arXiv abstract page for the version history. We did not see the figures as images. Figures 1, 2 and 4 to 9 are plots, and only their axis ticks and captions came through. So the page gives no number read from a plot. Table 2's caption says that the best results are in bold, and we could not see the bold. A model (Claude Opus 5.5) did the reading.

Summary

Claim. Long-context language modelling can be a continual-learning problem, not an architecture problem. A Transformer with sliding-window attention keeps training at test time, by next-token prediction on the context. Meta-learning at training time prepares its start weights for that. At 3B parameters and 164B tokens, the method scales with context length like full attention. Its inference latency stays constant, as in an RNN.

Method.

Findings, as the source reports them.

Setting Result
Abstract, 3B models, 164B tokens, 128K context, prefill on an H100 TTT-E2E is 2.7× faster than full attention
Table 1, 760M on DCLM, 8K context, loss SWA 2.827, TTT-KVB 2.818, TTT-KVB simplified 2.819, TTT-E2E all layers MH 2.806, TTT-E2E 2.805
Table 1 caption The authors treat a difference of 0.001 as below statistical significance
§2.4.4, 760M, TTT-E2E against TTT-E2E all layers MH Hidden state 88M against 18M, prefill latency 0.0086 against 0.017 s per 1K tokens
§3.2, 760M, k = 8K on DCLM, so SWA is full attention TTT-E2E lowers the test loss by 0.018
§3.2, b = 8K, the same as no test-time training Loss 2.825 (TTT-E2E), 2.826 (TTT-KVB), 2.827 (full attention)
§3.2.1, 760M with 24 layers, layers updated 1 or 3 layers do not scale with context like full attention. 6 or 12 do, and 12 is close to 6
§3.3, scaling with compute Trend similar to full attention above about 760M parameters and about 48B tokens
§3.3, anecdote, 3B The Llama 3 tokenizer in place of Llama 2 improved the advantage over full attention by about 0.01
Table 2, S-NIAH-1 / 2 / 3 at 128K, 3B Full attention 0.99 / 0.86 / 0.64, TTT-E2E 0.06 / 0.05 / 0.03
Table 2, S-NIAH-1 at 8K, 3B Full attention 1.00, TTT-E2E 1.00
§3.6, decoding 8K tokens after 8K of Books, Qwen-3-8B as judge TTT-E2E has a lower Qwen loss than full attention. The authors inspected about 20 samples
§3.7, training latency on an H200 1.2× faster than full attention at 128K, 3.4× slower at 8K
Appendix C, 760M Gated DeltaNet with QK norm Loss 2.814 → 2.809 at 8K, and 2.691 → 2.683 at 32K

Where the claims go beyond the evidence

Use in this repo