Introduction
Modern Large Language Models (LLMs) are currently engaged in a "context window arms race," with nominal capacities expanding to 128K, 1M, or even 2M tokens. However, a significant gap exists between a model's nominal context size and its effective context window—the actual range over which it can reliably retrieve and reason across information. As context length increases, performance on complex, multi-hop tasks often degrades sharply, a phenomenon known as the "lost-in-the-middle" effect.
To address this, we introduce AgenticLU, a framework that bridges this gap by teaching models an internal "Chain-of-Clarifications" (CoC) workflow. By distilling complex, search-based reasoning into an efficient, single-pass inference model, AgenticLU enables LLMs to navigate their own long context without the need for external RAG pipelines or prohibitively expensive retraining.
The Chain-of-Clarifications (CoC) Framework
The core innovation of AgenticLU is the CoC framework, which transforms long-context understanding into a structured, multi-step agentic process. Rather than attempting to answer a complex query in a single jump, the model follows four distinct steps:
- Raise Clarification Question: The model identifies specific sub-questions or missing information required to solve the main prompt.
- Pointback to Context: The model identifies specific paragraph indices (e.g.,
<P12>) within the long context that are relevant to the sub-question. This serves as a built-in citation and grounding mechanism. - Self-Clarify: The model answers its own sub-question based solely on the identified evidence.
- Final Answer: The model synthesizes the gathered clarifications into a comprehensive final response.
This iterative process forces the model to ground its reasoning in the text, significantly reducing the likelihood of hallucinations and improving focus in noisy, high-token environments.
Self-Taught Training Methodology
To implement this framework, the authors utilized a two-stage "Self-Taught" approach designed to bake agentic reasoning directly into the model's weights:
- CoC Path Construction: During the data collection phase, the researchers employed "inference-time scaling." They performed a tree search (utilizing a branching factor of 8 and a depth of 3) to explore various reasoning paths for questions in the NarrativeQA dataset. This search identified the most successful "golden" reasoning traces.
- CoC Path Distillation: These high-quality traces were then used to fine-tune a base Llama-3.1-8B model. The training involved Supervised Fine-Tuning (SFT) followed by Direct Preference Optimization (DPO).
By distilling the results of a computationally expensive tree search into the model, AgenticLU can perform sophisticated reasoning in a single inference pass during deployment, effectively amortizing the cost of the search.
Experimental Results
AgenticLU was evaluated using the HELMET benchmark, which covers seven diverse long-context tasks, including RAG-style tasks (HotpotQA, Natural Questions) and LongQA tasks (NarrativeQA, InfiniteBench).
Accuracy and Stability
On HotpotQA at a 128K context window, AgenticLU-8B achieved an accuracy of 71.1%, a massive improvement over the base Llama-3.1-8B model's 40.0%. While base models typically show a sharp decline in accuracy as context increases from 8K to 128K, AgenticLU remains remarkably stable, effectively filtering out the "noise" of massive documents.
Efficiency and Generalization
Despite the additional reasoning steps, AgenticLU is highly practical for production. When utilizing prefix caching, the runtime overhead for the extra tokens is approximately 2%. Furthermore, the model avoids the "alignment tax" often associated with specialized fine-tuning; it maintained nearly identical scores on general benchmarks like MMLU and GSM8K, with only a negligible 0.6% drop in performance.
Discussion and Future Work
AgenticLU demonstrates that agentic workflows can be successfully internalized by LLMs to solve the long-context gap. A key finding was the "92% Rule": while 92% of questions are resolved in a single clarification round, the remaining 8% of "hard" multi-hop problems are where the agentic approach provides the most critical performance boost.
Currently, the model operates with a fixed reasoning depth. Future work will focus on dynamic regulation, enabling the model to determine its own reasoning depth based on the complexity of the query—skipping steps for simple questions and expanding them for highly complex ones. Scaling this framework to larger models (e.g., 70B+) also remains a promising avenue for further closing the effective context gap.
Summary updated