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

Xinyu Zhu, Zhe Xu, Xiaohan Wei, Yunchen Pu, Fei Tian, Chonglin Sun, Kaushik Rangadurai, Hua Zhi, Frank Shyu, Sandeep Pandey, Luke Simon, Yu Meng, Xi Liu

arXiv:2607.09415 · 2026-07-13 공개 · arXiv · PDF

llm long-context qwen llama longbench test-time-training context-utilization self-guided-ttt

Abstract

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.

한국어 요약

한 줄 요약

Self-Guided TTT(S-TTT)는 LLM이 자체적으로 유의미한 문맥 구간을 선별해 테스트 시점에 학습함으로써, 긴 문맥 처리 성능을 15%까지 향상시킨다.

핵심 기여도

핵심 아이디어

긴 문맥 처리에서 모델이 유의미한 정보를 식별하지 못하는 문제를 해결하기 위해, 기존의 무작위 샘플링이나 전체 문맥 학습 대신, 모델 스스로 유의미한 구간을 선별하는 방식을 제안한다. 이는 **Self-Guided TTT(S-TTT)**로, 모델이 테스트 시점에 문맥 내에서 직접 **supporting spans**를 식별한 후, 해당 구간에만 **next-token-prediction** 기반의 학습을 적용한다. 기존 TTT는 전체 문맥이나 무작위 샘플링에 기반해 학습되는데, 이는 노이즈가 많고 계산 비용이 높아 성능 향상이 제한적이었다. S-TTT는 모델이 스스로 학습 대상을 선별함으로써 **signal-to-noise ratio**를 높이고, **training-data quality**라는 핵심 병목을 해결한다.

기술적 접근법

주요 결과

의의 및 한계

S-TTT는 긴 문맥 처리에서 핵심적인 **training-data quality** 문제를 해결함으로써, 기존 TTT의 성능 한계를 극복한다. 모델이 스스로 유의미한 구간을 선별함으로써, **signal-to-noise ratio**를 높이고, **computational cost**를 줄인다. 이는 TTT의 핵심 병목이 **데이터 품질**임을 실증적으로 입증하며, 향후 TTT 연구에서 학습 대상 선별에 집중할 필요성을 강조한다. 다만, S-TTT는 모델이 정확히 유의미한 구간을 식별하지 못하는 경우 효과가 줄어들 수 있으며, 구간 선별 과정 자체의 오류에 민감할 수 있다.

실용적 활용

S-TTT는 긴 문서 분석, 법적 문서 해석, 의료 기록 추론 등 **긴 문맥 내 핵심 정보 추출**이 필요한 분야에 적용 가능하다. 특히, **LLM 기반 고객 지원 시스템**이나 **자동 문서 요약 시스템**에서 유의미한 성능 향상을 기대할 수 있다.