Self-Guided Test-Time Training for Long-Context LLMs

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

Large language models (LLMs) often struggle with long-context processing, experiencing accuracy degradation despite extended context windows due to difficulty identifying relevant evidence. Test-time training (TTT) offers a solution by adapting model parameters per instance. However, applying TTT to entire long contexts is expensive, and random span sampling introduces noise, potentially degrading performance (e.g., Qwen3-4B-Thinking-2507 dropped from 40.4% to 38.9% on LongBench-v2 with random spans). Self-Guided TTT (S-TTT) addresses this by having the model identify question-relevant evidence spans before adaptation. S-TTT improves accuracy for Qwen3-4B-Thinking-2507 and Llama-3.1-8B-Instruct on LongBench-v2 and LongBench-Pro, achieving up to a 15% relative improvement and becoming more cost-effective than other TTT methods at contexts longer than 64k tokens.

Key takeaway

For Machine Learning Engineers optimizing long-context LLMs, Self-Guided TTT (S-TTT) offers a superior approach to test-time adaptation. Instead of random or full-context training, your models can self-select relevant evidence spans, significantly boosting accuracy on benchmarks like LongBench-v2 and LongBench-Pro. This method is more efficient at longer contexts, making it a practical choice for improving real-world LLM applications.

Key insights

Effective long-context Test-Time Training (TTT) for LLMs hinges on the quality of selected training tokens.

Principles

Method

Self-Guided TTT (S-TTT) involves two stages: 1) LLM identifies verbatim supporting spans from context for a question. 2) Model adapts parameters via next-token prediction on these selected spans.

In practice

Topics

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.