Finding What Matters: Anchoring Context Knowledge with Evolving Indices for Iterative Retrieval

Mingyan Wu, Zhenghao Liu, Xinze Li, Yuqing Lan, Yukun Yan, Shuo Wang, Cheng Yang, Minghe Yu, Zheni Zeng, Maosong Sun

TL;DR

KAIR (Knowledge Anchoring framework for Iterative Retrieval) introduces an evolving, in-context knowledge index to anchor key information during multi-hop Retrieval-Augmented Generation (RAG). By progressively updating keywords and their logical relationships, KAIR guides Large Language Models (LLMs) through noisy, multi-step retrieval contexts. This approach significantly mitigates the "lost in the middle" phenomenon, yielding substantial performance gains on complex question-answering tasks.

What Problem Does This Paper Address?

While Retrieval-Augmented Generation (RAG) is highly effective at reducing LLM hallucinations, complex "multi-hop" questions require gathering and connecting scattered pieces of evidence across multiple retrieval steps.

As an iterative RAG system performs deeper retrieval, it inevitably introduces a massive amount of noise and irrelevant text into the context window. LLMs frequently struggle to identify and link fragmented evidence buried deep within this clutter—a vulnerability widely known as the "lost in the middle" phenomenon. Traditional solutions try to filter, rerank, or summarize the text to remove noise, but these approaches often suffer from information loss, accidentally discarding the subtle background details needed to bridge logical gaps.

Methods

The authors propose KAIR, a framework that shifts the focus from knowledge refinement (compressing text) to knowledge anchoring (structuring text navigation). KAIR retains all retrieved documents to prevent information loss but builds a dynamic, structured in-context index to act as a navigational guide.

The core workflow operates as follows:

  1. Index Representation: The index is represented directly within the context window as a list of extracted keywords and their explicit logical relationships, formatted as RDF (Resource Description Framework) triples (e.g., Coldplay -> formed in -> 1996).
  2. Stepwise Evolution: At each retrieval step $t$, the LLM reads the newly retrieved documents and incrementally updates the index based on the previous index state and reasoning trace.
  3. Sufficiency Judgment & Query Generation: The LLM reviews the updated index to evaluate whether the accumulated knowledge is sufficient to answer the original query. If it is insufficient, the model leverages the index to formulate a highly targeted sub-query for the next retrieval round.
  4. Answer Generation: Once the knowledge is deemed adequate, the LLM generates the final answer by jointly reasoning over the complete set of raw documents and the finalized anchoring index.
Figure 2: Illustration of KAIR.

Datasets

KAIR was evaluated against strong baselines using four standard multi-hop question-answering benchmarks:

  • MuSiQue: A dataset requiring deep, multi-hop compositionality.
  • HotpotQA: A benchmark demanding reasoning across multiple Wikipedia articles.
  • 2WikiMultihopQA: A dataset featuring structured multi-hop questions with evidence tracking.
  • Bamboogle: A multi-hop dataset explicitly designed to challenge search engines and LLMs.

Key Insights and Ideas

  • Anchoring over Compressing: Retaining the raw text while providing a high-density "semantic map" prevents the information loss typical of aggressive text summarization or filtering.
  • Immunization Against Position Bias: The structured index acts as a global cognitive anchor. Even if critical evidence is shifted to the middle of a massive context window, the index maintains a clear line of sight to the relevant facts, neutralizing the "lost in the middle" effect.
  • Attention Modulation: Analysis of the LLM's internal states revealed that the presence of the index directly modulates the model's attention mechanism, prompting it to allocate higher attention weights to query-relevant document tokens during final answer generation.

Key Results

  • Superior QA Accuracy: KAIR achieved an average absolute performance improvement of ~20% over Vanilla RAG and GraphRAG baselines, and ~10% over state-of-the-art iterative retrieval methods (such as IRCoT and Search-R1) across both Qwen2.5-7B and Llama3.1-8B backbones.
  • Robustness to Context Shuffling: When retrieved documents were randomly shuffled, standard iterative RAG performance fluctuated wildly based on where the golden evidence landed. KAIR stabilized performance, reducing the standard deviation ($\sigma$) of F1 scores across trials from 1.77 down to 0.96.
Figure 4: RAG Robustness with Different Retrieval Ordering Strategies. Iter-Retri denotes standard iterative retrieval. Grey line denotes w/o reordering method.
  • The Index is a Guide, Not a Replacement: Ablation studies demonstrated that trying to answer questions using only the generated index resulted in a performance drop. The index functions best not as a standalone summary, but as an anchor that helps the LLM interpret the underlying raw documents.

Limitations and Future Work

  • LLM Dependency: The quality of the index is strictly bound to the extraction and structuring capabilities of the underlying LLM. If the model fails to accurately identify entities or relationships during the early retrieval steps, the index's utility degrades.
  • Static Index Format: The current framework uses a fixed keyword-and-relationship format. The authors note that future work should explore adaptive index formats optimized for different categories of complex queries.

Summary updated

BibTeX
@misc{wu2026finding,
  author = {Mingyan Wu and Zhenghao Liu and Xinze Li and Yuqing Lan and Yukun Yan and Shuo Wang and Cheng Yang and Minghe Yu and Zheni Zeng and Maosong Sun},
  title = {{Finding What Matters: Anchoring Context Knowledge with Evolving Indices for Iterative Retrieval}},
  year = {2026},
  eprint = {2601.16462},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.16462},
}
Figure