{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2601-16462","title":"Finding What Matters: Anchoring Context Knowledge with Evolving Indices for Iterative Retrieval","arxiv_id":"2601.16462","date":"2026-01-23","proceeding":null,"authors":["Mingyan Wu","Zhenghao Liu","Xinze Li","Yuqing Lan","Yukun Yan","Shuo Wang","Cheng Yang","Minghe Yu","Zheni Zeng","Maosong Sun"],"abstract":"Retrieval-Augmented Generation (RAG) has become a dominant paradigm for mitigating hallucinations in Large Language Models (LLMs) by incorporating external knowledge. However, existing RAG systems often struggle to effectively integrate and reason over key evidence scattered across noisy retrieved documents, particularly in multi-hop scenarios. In this paper, we propose KAIR, a Knowledge Anchoring framework for Iterative Retrieval that anchors knowledge within retrieved knowledge to guide LLMs to locate the key information. During iterative retrieval, KAIR progressively updates the knowledge index to anchor salient evidence from retrieved documents. The evolving index serves as a navigational anchoring index that enables the LLM to assess knowledge sufficiency and formulate subsequent retrieval queries. Finally, KAIR generates answers by jointly leveraging the retrieved documents and the finalized anchoring index. Experiments on four multi-hop question answering benchmarks demonstrate that KAIR consistently outperforms strong RAG baselines. Further analysis shows that KAIR effectively anchors key knowledge and alleviates the context noise during iterative retrieval, improving the LLM's ability to associate and reason over dispersed evidence across retrieved documents. All code and data are available at https://github.com/NEUIR/KAIR.","url_abs":"https://arxiv.org/abs/2601.16462","url_pdf":"https://arxiv.org/pdf/2601.16462","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2601.16462","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.16462"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/NEUIR/KAIR","reach":null}],"summary":{"ran_draft_wrong":5,"unverified":10},"by_repo_kind":{"found_in_text":{"samples":15,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"4b620cc018f632bb","entry":"extract_index_tag","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4b620cc018f632bb"}},{"code_sha256_prefix":"b599a750dbef7e3e","entry":"extract_judgement_tag","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b599a750dbef7e3e"}},{"code_sha256_prefix":"aaa54adb200ada0f","entry":"extract_question_tag","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aaa54adb200ada0f"}},{"code_sha256_prefix":"e0b68be4c85e7c8e","entry":"get_context","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0b68be4c85e7c8e"}},{"code_sha256_prefix":"81c191763e2461ce","entry":"passage_deduplication","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"81c191763e2461ce"}},{"code_sha256_prefix":"6daee07ee80c04c0","entry":"KAIR","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6daee07ee80c04c0"}},{"code_sha256_prefix":"1c8cd8a7e983cc7b","entry":"call_llm_template","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1c8cd8a7e983cc7b"}},{"code_sha256_prefix":"3848e79c8bb04f74","entry":"gen_answer","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3848e79c8bb04f74"}},{"code_sha256_prefix":"e09a43193202e348","entry":"gen_finalanswer","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e09a43193202e348"}},{"code_sha256_prefix":"c651a7f370e1f934","entry":"gen_indexanswer","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c651a7f370e1f934"}},{"code_sha256_prefix":"b2a9693f538ccbfb","entry":"gen_passageanswer","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b2a9693f538ccbfb"}},{"code_sha256_prefix":"51e719888e62f3ab","entry":"init_reasoning","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"51e719888e62f3ab"}},{"code_sha256_prefix":"341f7ea59da01b89","entry":"init_reasoning_plus","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"341f7ea59da01b89"}},{"code_sha256_prefix":"4f5e6f55db6baabb","entry":"step_reasoning","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4f5e6f55db6baabb"}},{"code_sha256_prefix":"02f2972d57004c68","entry":"step_reasoning_plus","repo":"NEUIR/KAIR","repo_kind":"found_in_text","path":"src/KAIR.py","file_url":"https://github.com/NEUIR/KAIR/blob/HEAD/src/KAIR.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"02f2972d57004c68"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}