mlsanityData to 7 Oct 2026

Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs

arXiv 2512.13898 ↗First posted 15 Dec 2025cs.LG cs.CLcited by 17

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Progress on training and architecture strategies has enabled LLMs with millions of tokens in context length. However, empirical evidence suggests that such long-context LLMs can consume far more text than they can reliably use. On the other hand, it has been shown that inference-time compute can be used to scale performance of LLMs, often by generating thinking tokens, on challenging tasks involving multi-step reasoning. Through controlled experiments on sandbox long-context tasks, we find that such inference-time strategies show rapidly diminishing returns and fail at long context. We attribute these failures to score dilution, a phenomenon inherent to static self-attention. Further, we show that current inference-time strategies cannot retrieve relevant long-context signals under certain conditions. We propose a simple method that, through targeted gradient updates on the given context, provably overcomes limitations of static self-attention. We find that this shift in how inference-time compute is spent leads to consistently large performance improvements across models and long-context benchmarks. Our method leads to large 12.6 and 14.1 percentage point improvements for Qwen3-4B on average across subsets of LongBench-v2 and ZeroScrolls benchmarks. The takeaway is practical: for long context, a small amount of context-specific training is a better use of inference compute than current inference-time scaling strategies like producing more thinking tokens.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 34 of its 41 references that are in the map. First posted on arXiv 15 Dec 2025.

Builds on

34 of 41 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Scalable Best-of-N Selection for Large Language Models via Self-Certainty25 Feb
  2. 2025Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling10 Feb
  3. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters6 Aug

Other references · 31

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2023Qwen Technical Reportcited by 3,273
  9. 2020Learning to summarize from human feedbackcited by 2,562
  10. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  12. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
19 more
  1. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  2. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  3. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  6. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  7. 2022Galactica: A Large Language Model for Sciencecited by 736
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  10. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  11. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  12. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  13. 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 292
  14. 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
  15. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
  16. 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
  17. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
  18. 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
  19. 2023Natural Language Processing in the Legal Domaincited by 38

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 17.

17 papers.

Sort:

By area:

  1. 2026DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolutioncited by 23
  2. 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Evictioncited by 10
  3. 2026Gated Differentiable Working Memory for Long-Context Language Modelingcited by 6
  4. 2026The Efficiency Frontier: A Unified Framework for Cost-Performance Optimization in LLM Context Managementcited by 6
  5. 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
  6. 2026Reinforced Fast Weights with Next-Sequence Predictioncited by 1
  7. 2026No Time Like the Present: Agentic Test-Time Training for LLM Agentscited by 1
  8. 2026Material Database Agent: A Multimodal Agentic Framework for Scientific Literature Miningcited by 0
  9. 2026FocuSFT: Bilevel Optimization for Dilution-Aware Long-Context Fine-Tuningcited by 0
  10. 2026Closing the Loop on Latent Reasoning via Test-Time Reconstructioncited by 0
  11. 2026Beyond Perplexity: A Behavioral Evaluation Framework for Deployment-Memory Claims in LLM Test-Time Trainingcited by 0
  12. 2026Self-Guided Test-Time Training for Long-Context LLMscited by 0
5 more
  1. 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attentioncited by 0
  2. 2026Unsupervised Post-Training of Foundation Models: A Surveycited by 0
  3. 2026CacheReforge: Bounded Recovery for Stale KV Caches under Evolving Adapterscited by 0
  4. 2026Using Context Is Not Enough: Test-Time Training for Personalized Reward Modelingcited by 0
  5. 2026Learning to Predict Distributions over Weight Updates for Test-Time Adaptationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Inference Time Context Sparsity: Illusion or Opportunity?
  2. 2025Rethinking the Unsolvable: When In-Context Search Meets Test-Time Scaling
  3. 2026A Decomposition Perspective to Long-context Reasoning for LLMs
  4. 2024Large Language Models Can Self-Improve in Long-context Reasoning
  5. 2025e3: Learning to Explore Enables Extrapolation of Test-Time Compute for LLMs
  6. 2025Prompting Test-Time Scaling Is A Strong LLM Reasoning Data Augmentation
  7. 2025Reasoning on a Budget: A Survey of Adaptive and Controllable Test-Time Compute in LLMs
  8. 2025Overflow Prevention Enhances Long-Context Recurrent LLMs