Introduction
Multi-hop Question Answering (MHQA) represents a significant challenge for Large Language Models (LLMs), requiring the synthesis of information across multiple segments of a long document. Current approaches often struggle with two primary issues: reasoning complexity, where models fail to maintain a coherent chain of thought, and computational inefficiency, particularly the "lost in the middle" phenomenon where models ignore information in the center of long context windows. Standard attention mechanisms scale quadratically, making full-context processing prohibitively expensive for documents exceeding 10K tokens.
The Search-in-Context (SIC) Framework
To address these challenges, the authors propose Search-in-Context (SIC), a framework that reframes reasoning as an iterative search process. SIC combines the exploratory power of Monte Carlo Tree Search (MCTS) with a highly efficient dynamic Key-Value (KV) retrieval mechanism.
Monte Carlo Tree Search (MCTS)
Unlike standard linear reasoning, SIC utilizes MCTS to explore a search tree where each node represents a structured reasoning step. As shown in Figure 1, each node contains a refined query, a support passage index, a direct quote (evidence), and a hypothesis. This structure allows the model to explore multiple reasoning paths simultaneously and backtrack from incorrect branches (red nodes) to focus on promising ones (green nodes).
Dynamic KV Retrieval
Efficiency is achieved through a trainable dynamic KV retriever. The long context is partitioned into chunks, each marked with a "landmark token." The retriever uses these tokens to identify and load only the most relevant KV pairs into the active context window—typically limited to a 4K token budget. This ensures the model remains focused on pertinent information for the current reasoning hop, regardless of the total document length, effectively solving the "lost in the middle" problem.
Process-Reward Model (PRM)
Guidance within the MCTS is provided by a Process-Reward Model. The PRM evaluates both the correctness of the evidence and its contribution to the final solution. To train this model without expensive human labor, the researchers employed an automated annotation process, using a "completer" model to verify if specific reasoning paths led to correct answers, generating a 50K sample training set.
Experimental Evaluation
The researchers evaluated SIC on standard multi-hop benchmarks including HotpotQA, 2WikiMultihopQA, and MuSiQue, as well as a new "stress test" dataset, CofCA-10K, designed to test robustness against irrelevant distractors in a 10K token context.
Key Results and Insights
The experimental results demonstrate that SIC significantly outperforms existing methods in both accuracy and efficiency.
As illustrated in Figure 5, SIC (especially with retrieval) consistently achieves higher F1 scores than baselines like rStar and Self-Consistency (SC@maj) across different numbers of generated solutions. Notably, a Llama-3.1-8B model equipped with SIC achieved an F1 score of 59.87 on the MuSiQue dataset, surpassing the performance of the much larger Llama-3.1-70B model (40.75) using standard methods. This suggests that the strategic search of context is just as vital as raw model parameters.
Efficiency and Robustness
SIC maintains superior performance while operating within a 4K token active context window, even when the total document length exceeds 32K tokens. Furthermore, in the CofCA-10K dataset, SIC proved highly resilient to noise, maintaining high accuracy where other models faltered due to data contamination and irrelevant "distractor" documents.
Conclusion
Search-in-Context (SIC) provides a scalable and efficient solution for multi-hop reasoning over long documents. By combining structured search with dynamic retrieval, it overcomes the limitations of full-attention mechanisms and static retrieval. While the iterative nature of MCTS introduces some inference latency, the gains in accuracy and the ability to run high-performing reasoning on smaller models represent a significant advancement in the field.
Summary updated