Self-Guided Test-Time Training for Long-Context LLMs
Not on the map. Why?
Abstract (arXiv)
Long-context processing has become increasingly important for large language models (LLMs), but simply extending the context window does not guarantee effective utilization of long inputs. As input length grows, accuracy often degrades, indicating that models still struggle to identify and use the evidence most relevant to a question. A promising way to improve long-context utilization is test-time training (TTT), which treats the test context as a training example for instance-specific parameter adaptation. However, applying TTT to the entire long context is prohibitively expensive, while adapting on randomly sampled spans introduces severe noise. Because most spans in a long context are irrelevant to the specific question, training on them may even degrade the base model's performance. Our preliminary study shows that TTT is highly sensitive to training-span quality: on LongBench-v2, TTT on randomly sampled spans hurts performance, whereas TTT on oracle spans substantially improves it. Motivated by this, we propose a simple method, Self-Guided TTT (S-TTT): before adaptation, the model identifies the evidence spans it should learn from, and the standard language-modeling training objective is applied only to those selected spans. On two challenging long-context reasoning benchmarks, LongBench-v2 and LongBench-Pro, S-TTT improves accuracy for both Qwen3-4B-Thinking-2507 and Llama-3.1-8B-Instruct, achieving up to a 15% relative improvement.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 28 references that are in the map. First posted on arXiv 10 Jul 2026.
Builds on
26 of 28 references.
References · 26
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
14 more
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
- 2025Test-Time Training Done Rightcited by 121
- 2024The Surprising Effectiveness of Test-Time Training for Few-Shot Learningcited by 88
- 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 82
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2025Query-Focused Retrieval Heads Improve Long-Context Reasoning and Re-rankingcited by 30
- 2025Let's (not) just put things in Context: Test-Time Training for Long-Context LLMscited by 17
- 2026LongBench Pro: A More Realistic and Comprehensive Bilingual Long-Context Evaluation Benchmarkcited by 17
- 2026In-Place Test-Time Trainingcited by 15
- 2025PERK: Long-Context Reasoning as Test-Time Learningcited by 4
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
Built on by
Not cited yet.