Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

ReContext: Recursive Evidence Replay as LLM Harness for Long-Context Reasoning

About

Understanding and reasoning over long contexts has become a key requirement for deploying large language models (LLMs) in realistic applications. Although recent LLMs support increasingly long context windows, they often fail to use relevant evidence that is already present in the input, revealing a gap between context access and effective context utilization. In this work, we propose Recursive Evidence Replay as LLM Harness for Long-Context Reasoning (RECONTEXT), a training-free inference method for improving long-context reasoning. RECONTEXT uses model-internal relevance signals to construct a query-conditioned evidence pool and replays it before final generation while preserving the full original context. This recursive selection process separates evidence organization from answer generation without training, external memory, or context pruning. We also provide a theoretical analysis based on associative memory, which characterizes the context as a memory store, the question as a retrieval cue, attention as cue-trace association, and replay as trace reactivation. Experiments on eight long-context datasets with 128K context length show that RECONTEXT consistently improves evidence utilization across Qwen3-4B, Qwen3-8B, and Llama3-8B, achieving the best average rank on all three backbones. Code is available at https://github.com/Yanjun-Zhao/ReContext.

Yanjun Zhao, Ruizhong Qiu, Tianxin Wei, Yuanchen Bei, Zhining Liu, Lingjie Chen, Ismini Lourentzou, Hanghang Tong, Jingrui He• 2026

Related benchmarks

TaskDatasetResultRank
Long-context Question AnsweringNQ 128K
Accuracy19
18
Long-context Question AnsweringTriviaQA 128K
Accuracy70
18
Long-context Question AnsweringHotpotQA 128K
Accuracy25
18
Long-context Question AnsweringPopQA 128K
Accuracy23
18
Long-context Question AnsweringNarrQA 128K
Accuracy21
18
Long-context Question AnsweringInfQA 128K
Accuracy25
18
Long-context Question AnsweringClip 128K
Accuracy52
18
Long-context Multiple Choice Question AnsweringInfMC 128K
Accuracy64
18
Showing 8 of 8 rows

Other info

Follow for update