End-to-End Test-Time Training for Long Context
Not on the map. Why?
Abstract (arXiv)
We formulate long-context language modeling as a problem in continual learning rather than architecture design. Under this formulation, we only use a standard architecture -- a Transformer with sliding-window attention. However, our model continues learning at test time via next-token prediction on the given context, compressing the context it reads into its weights. In addition, we improve the model's initialization for learning at test time via meta-learning at training time. Overall, our method, a form of Test-Time Training (TTT), is End-to-End (E2E) both at test time (via next-token prediction) and training time (via meta-learning), in contrast to previous forms. We conduct extensive experiments with a focus on scaling properties. In particular, for 3B models trained with 164B tokens, our method (TTT-E2E) scales with context length in the same way as Transformer with full attention, while others, such as Mamba 2 and Gated DeltaNet, do not. However, similar to RNNs, TTT-E2E has constant inference latency regardless of context length, making it 2.7 times faster than full attention for 128K context. Our code is publicly available.
Key facts. Cited by 62 papers in the map (data through 14 Oct 2026). Builds on 72 of its 104 references that are in the map. First posted on arXiv 29 Dec 2025.
Builds on
72 of 104 references.
References · 72
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
38 more
- 2016Learning without Forgettingcited by 2,496
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2017Gradient Episodic Memory for Continual Learningcited by 1,898
- 2020GLU Variants Improve Transformercited by 1,804
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 872
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
- 2016Learning to learn by gradient descent by gradient descentcited by 620
- 2019Three scenarios for continual learningcited by 614
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2018Dynamic Few-Shot Visual Learning without Forgettingcited by 385
- 2014Deeply-Supervised Netscited by 367
- 2015Gradient-based Hyperparameter Optimization through Reversible Learningcited by 360
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2017"Zero-Shot" Super-Resolution using Deep Internal Learningcited by 286
- 2020Consistent Video Depth Estimationcited by 220
- 2022Test-Time Training with Masked Autoencoderscited by 212
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
- 2023Continual Pre-training of Language Modelscited by 198
- 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 198
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2022Fine-tuned Language Models are Continual Learnerscited by 156
- 2025Test-Time Training Done Rightcited by 130
- 2020Self-Supervised Policy Adaptation during Deploymentcited by 123
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
- 2021An Attention Free Transformercited by 112
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
50 most cited of 72 All 72 (JSON)
Built on by
Citing papers per year: 2026: 62.
62 papers.
Sort:
By area:
- 2026Reinforcement Learning via Self-Distillationcited by 332
- 2026Mamba-3: Improved Sequence Modeling using State Space Principlescited by 89
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 25
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanismscited by 21
- 2026RoboTTT: Context Scaling for Robot Policiescited by 19
- 2026Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environmentscited by 17
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Trainingcited by 11
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descentcited by 9
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 8
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inferencecited by 7
- 2026When Does Continual Learning Require Learningcited by 7
38 more
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2026Scaling Self-Evolving Agents via Parametric Memorycited by 5
- 2026Learning to Self-Evolvecited by 4
- 2026PACEvolve++: Improving Test-time Learning for Evolutionary Search Agentscited by 4
- 2026Memory for Large Language Modelscited by 4
- 2026Fast Spatial Memory with Elastic Test-Time Trainingcited by 3
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agentscited by 3
- 2026Modular TTT: Rethinking Test-Time Training as Composable Modulescited by 3
- 2026A Survey on Self-Improving Test-Time Intelligence: Feedback-Driven Adapting, Learning, and Scaling at Inferencecited by 3
- 2026Test-Time Learning of Causal Structure from Interventional Datacited by 2
- 2026Test-Time Training with Next-Token Predictioncited by 2
- 2026Learning What to Remember: Test-Time Training via Context Distillationcited by 2
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Can Video World Models Track Unobserved World States?cited by 2
- 2026Reinforced Fast Weights with Next-Sequence Predictioncited by 1
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representationscited by 1
- 2026Latent Personal Memory: Represent personal memory as dynamic soft promptscited by 1
- 2026Self-Guided Test-Time Training for Long-Context LLMscited by 1
- 2026Rethinking Expressivity and Efficiency in Test-Time Trainingcited by 1
- 2026Agentic-TTT: Training test-time policy for test-time trainingcited by 1
- 2026Mixture-of-Models: Unifying Heterogeneous Agents via N-Way Self-Evaluating Deliberationcited by 0
- 2026Beyond Attention: True Adaptive World Models via Spherical Kernel Operatorcited by 0
- 2026MemDLM: Memory-Enhanced DLM Trainingcited by 0
- 2026FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuningcited by 0
- 2026In-context learning to predict critical transitions in dynamical systemscited by 0
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inferencecited by 0
- 2026RW-TTT: Batched Serving for Request-Owned Test-Time Training Statecited by 0
- 2026T3R: Deeper Test-Time Adaptation for Graph Neural Networks via Gradient Rotationcited by 0
- 2026Memoir: Should a Model Write to Its Memory While It Thinks?cited by 0
- 2026Continual Learning in Transitioncited by 0
- 2026ZeroLock: Concurrent Memory-Efficient LLM Training via Modular Update Decouplingcited by 0
- 2026LeCor: Learning to Be Corrected by Meta-Learned Test-Time Training for Interactive 3D Lung-Tumour Segmentationcited by 0
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attentioncited by 0
- 2026ProTTT: Learning to Learn Semantic User Memory with Test-Time Trainingcited by 0
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregationcited by 0
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Predictioncited by 0
50 most cited of 62 All 62 (JSON)
- 2026Latent Compaction with Test-Time Training14 Oct 2026
- 2026Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules13 Oct 2026
- 2026Encoding Context into LLM Weights: What Makes It Context?13 Oct 2026
- 2026Error Correction in Trained TTT Layers12 Oct 2026
- 2026Agentic-TTT: Training test-time policy for test-time training8 Oct 2026
- 2026DeltaTTT: Layerwise Optimization for Nonlinear Recurrent Memory6 Oct 2026
- 2026Universal Test-Time Training4 Oct 2026
- 2026Self-Generated Feedback Destabilizes Test-Time Training: A Causal Decomposition of Long-Horizon Adaptation4 Oct 2026
- 2026Learning to Predict Distributions over Weight Updates for Test-Time Adaptation1 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026Adapting Linear-Time Architectures for Tabular In-Context Learning28 Sep 2026
38 more
- 2026When Should the Count Change? Learning State Maintenance for Causal Video Counting28 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregation27 Sep 2026
- 2026ProTTT: Learning to Learn Semantic User Memory with Test-Time Training26 Sep 2026
- 2026FlashBoB: I/O-Efficient Exact Backward-over-Backward for Softmax Attention21 Sep 2026
- 2026LeCor: Learning to Be Corrected by Meta-Learned Test-Time Training for Interactive 3D Lung-Tumour Segmentation8 Sep 2026
- 2026A Survey on Self-Improving Test-Time Intelligence: Feedback-Driven Adapting, Learning, and Scaling at Inference1 Sep 2026
- 2026Can Video World Models Track Unobserved World States?31 Aug 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026Rethinking Expressivity and Efficiency in Test-Time Training21 Aug 2026
- 2026ZeroLock: Concurrent Memory-Efficient LLM Training via Modular Update Decoupling8 Aug 2026
- 2026Modular TTT: Rethinking Test-Time Training as Composable Modules7 Aug 2026
- 2026Continual Learning in Transition6 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026Learning What to Remember: Test-Time Training via Context Distillation3 Aug 2026
- 2026Memory for Large Language Models28 Jul 2026
- 2026Memoir: Should a Model Write to Its Memory While It Thinks?22 Jul 2026
- 2026RoboTTT: Context Scaling for Robot Policies16 Jul 2026
- 2026Self-Guided Test-Time Training for Long-Context LLMs10 Jul 2026
- 2026When Does Continual Learning Require Learning8 Jul 2026
- 2026T3R: Deeper Test-Time Adaptation for Graph Neural Networks via Gradient Rotation29 Jun 2026
- 2026Test-Time Training with Next-Token Prediction19 Jun 2026
- 2026Latent Personal Memory: Represent personal memory as dynamic soft prompts18 Jun 2026
- 2026Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environments4 Jun 2026
- 2026Scaling Self-Evolving Agents via Parametric Memory3 Jun 2026
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agents29 May 2026
- 2026Multi-Mixer Models: Flexible Sequence Modeling with Shared Representations27 May 2026
- 2026RW-TTT: Batched Serving for Request-Owned Test-Time Training State27 May 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026IndexMem: Learned KV-Cache Eviction with Latent Memory for Long-Context LLM Inference25 May 2026
- 2026In-context learning to predict critical transitions in dynamical systems12 May 2026
- 2026FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuning11 May 2026
- 2026PACEvolve++: Improving Test-time Learning for Evolutionary Search Agents7 May 2026
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms7 May 2026
- 2026Fast Spatial Memory with Elastic Test-Time Training8 Apr 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026MemDLM: Memory-Enhanced DLM Training23 Mar 2026
- 2026Learning to Self-Evolve19 Mar 2026
50 newest of 62 All 62 (JSON)
- 2026Mamba-3: Improved Sequence Modeling using State Space Principlescited by 89
- 2026Position: Modular Memory is the Key to Continual Learning Agentscited by 8
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Rethinking Expressivity and Efficiency in Test-Time Trainingcited by 1
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregationcited by 0
- 2026DISCO: Distributed Long Context Scaling with Grounding-Reasoning Disaggregation27 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026Rethinking Expressivity and Efficiency in Test-Time Training21 Aug 2026
- 2026Mamba-3: Improved Sequence Modeling using State Space Principles16 Mar 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026Position: Modular Memory is the Key to Continual Learning Agents2 Mar 2026
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanismscited by 21
- 2026Scaling Self-Evolving Agents via Parametric Memorycited by 5
- 2026PACEvolve++: Improving Test-time Learning for Evolutionary Search Agentscited by 4
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 2
- 2026Agentic-TTT: Training test-time policy for test-time trainingcited by 1
- 2026Agentic-TTT: Training test-time policy for test-time training8 Oct 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026Scaling Self-Evolving Agents via Parametric Memory3 Jun 2026
- 2026PACEvolve++: Improving Test-time Learning for Evolutionary Search Agents7 May 2026
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms7 May 2026
- 2026Universal Test-Time Training4 Oct 2026
- 2026Mixture-of-Models: Unifying Heterogeneous Agents via N-Way Self-Evaluating Deliberation23 Jan 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2026Learning to Self-Evolvecited by 4
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026Learning to Self-Evolve19 Mar 2026
- 2026MemDLM: Memory-Enhanced DLM Trainingcited by 0
- 2026MemDLM: Memory-Enhanced DLM Training23 Mar 2026
- 2026Reinforcement Learning via Self-Distillationcited by 332
- 2026Reinforcement Learning via Self-Distillation28 Jan 2026
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 25
- 2026RoboTTT: Context Scaling for Robot Policiescited by 19
- 2026Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environmentscited by 17
- 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 13
- 2026Spatial-TTT: Streaming Visual-based Spatial Intelligence with Test-Time Trainingcited by 11
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descentcited by 9
- 2026Memory for Large Language Modelscited by 4
- 2026Fast Spatial Memory with Elastic Test-Time Trainingcited by 3
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agentscited by 3
- 2026Modular TTT: Rethinking Test-Time Training as Composable Modulescited by 3
- 2026A Survey on Self-Improving Test-Time Intelligence: Feedback-Driven Adapting, Learning, and Scaling at Inferencecited by 3
- 2026Test-Time Learning of Causal Structure from Interventional Datacited by 2
12 most cited of 40 All 40 (JSON)
- 2026Latent Compaction with Test-Time Training14 Oct 2026
- 2026Encoding Context into LLM Weights: What Makes It Context?13 Oct 2026
- 2026Error Correction in Trained TTT Layers12 Oct 2026
- 2026DeltaTTT: Layerwise Optimization for Nonlinear Recurrent Memory6 Oct 2026
- 2026Self-Generated Feedback Destabilizes Test-Time Training: A Causal Decomposition of Long-Horizon Adaptation4 Oct 2026
- 2026Learning to Predict Distributions over Weight Updates for Test-Time Adaptation1 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling29 Sep 2026
- 2026Adapting Linear-Time Architectures for Tabular In-Context Learning28 Sep 2026
- 2026When Should the Count Change? Learning State Maintenance for Causal Video Counting28 Sep 2026
- 2026GradLev: Token-Parallel Test-Time Training Via Costate Prediction28 Sep 2026
- 2026ProTTT: Learning to Learn Semantic User Memory with Test-Time Training26 Sep 2026
12 newest of 40 All 40 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Understanding the Role of Training Data in Test-Time Scaling
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learning
- 2025Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
- 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
- 2025Generalizing From Short to Long: Effective Data Synthesis for Long-Context Instruction Tuning
- 2026TEMPO: Scaling Test-time Training for Large Reasoning Models
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs
- 2025Overflow Prevention Enhances Long-Context Recurrent LLMs