{"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-2602-03689","title":"Rethinking the Reranker: Boundary-Aware Evidence Selection for Robust Retrieval-Augmented Generation","arxiv_id":"2602.03689","date":"2026-02-03","proceeding":"ICML","authors":["Jiashuo Sun","Pengcheng Jiang","Saizhuo Wang","Jiajun Fan","Heng Wang","Siru Ouyang","Ming Zhong","Yizhu Jiao","Chengsong Huang","Xueqiang Xu","Pengrui Han","Peiran Li","Jiaxin Huang","Ge Liu","Heng Ji","Jiawei Han"],"abstract":"Retrieval-Augmented Generation (RAG) systems remain brittle under realistic retrieval noise, even when the required evidence appears in the top-K results. A key reason is that retrievers and rerankers optimize solely for relevance, often selecting either trivial, answer-revealing passages or evidence that lacks the critical information required to answer the question, without considering whether the evidence is suitable for the generator. We propose BAR-RAG, which reframes the reranker as a boundary-aware evidence selector that targets the generator's Goldilocks Zone -- evidence that is neither trivially easy nor fundamentally unanswerable for the generator, but is challenging yet sufficient for inference and thus provides the strongest learning signal. BAR-RAG trains the selector with reinforcement learning using generator feedback, and adopts a two-stage pipeline that fine-tunes the generator under the induced evidence distribution to mitigate the distribution mismatch between training and inference. Experiments on knowledge-intensive question answering benchmarks show that BAR-RAG consistently improves end-to-end performance under noisy retrieval, achieving an average gain of 10.3 percent over strong RAG and reranking baselines while substantially improving robustness. Code is publicly avaliable at https://github.com/GasolSun36/BAR-RAG.","url_abs":"https://arxiv.org/abs/2602.03689","url_pdf":"https://arxiv.org/pdf/2602.03689","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=2602.03689","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.03689"}},"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/GasolSun36/BAR-RAG","reach":null}],"summary":{"ran":4,"ran_draft_wrong":13,"ran_honours":6,"ran_fixture":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":26,"ran":24,"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":26,"samples":[{"code_sha256_prefix":"f2a668bef88b45e3","entry":"GeneratorRollout","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f2a668bef88b45e3"}},{"code_sha256_prefix":"433f1cac108e3a31","entry":"PreparedSample","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"433f1cac108e3a31"}},{"code_sha256_prefix":"6a0889d51d7f3b3e","entry":"SampleResult","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6a0889d51d7f3b3e"}},{"code_sha256_prefix":"6c2105013e64ad11","entry":"SelectorRollout","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6c2105013e64ad11"}},{"code_sha256_prefix":"0616ef45c981d85c","entry":"build_generator_prompt_prefix","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0616ef45c981d85c"}},{"code_sha256_prefix":"09e3e7200f10e115","entry":"build_generator_prompt_with_budget","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09e3e7200f10e115"}},{"code_sha256_prefix":"a010a2ea8a5ecf9f","entry":"build_selector_conversation","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a010a2ea8a5ecf9f"}},{"code_sha256_prefix":"fde56a8a1f8a1fac","entry":"cite_reward_peaked","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fde56a8a1f8a1fac"}},{"code_sha256_prefix":"d1600919970d1d70","entry":"compute_generator_reward","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d1600919970d1d70"}},{"code_sha256_prefix":"cfe808026873ade9","entry":"compute_hbs_score","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cfe808026873ade9"}},{"code_sha256_prefix":"0335852d729ef632","entry":"count_tokens","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0335852d729ef632"}},{"code_sha256_prefix":"bdd51fcd3a78301f","entry":"count_unique_doc_cites_in_think","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bdd51fcd3a78301f"}},{"code_sha256_prefix":"ac37ef9234f428e1","entry":"extract_answer_tag","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac37ef9234f428e1"}},{"code_sha256_prefix":"102728db38c7b95b","entry":"extract_selector_answer","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"102728db38c7b95b"}},{"code_sha256_prefix":"5dc60c2aea0bb519","entry":"extract_selector_think","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5dc60c2aea0bb519"}},{"code_sha256_prefix":"5457a476740b4a4f","entry":"extract_think_tag","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5457a476740b4a4f"}},{"code_sha256_prefix":"912b9a1b8d856a37","entry":"format_doc_block","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"912b9a1b8d856a37"}},{"code_sha256_prefix":"ab9ac8a021f0a8bf","entry":"format_top_n_docs","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab9ac8a021f0a8bf"}},{"code_sha256_prefix":"85fc7d4bd5e8711a","entry":"normalize_answer","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"85fc7d4bd5e8711a"}},{"code_sha256_prefix":"c73169833a02a1de","entry":"parse_selector_output_to_doc_indices","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c73169833a02a1de"}},{"code_sha256_prefix":"7ee1876e2e7de116","entry":"pass_hbs_filter","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7ee1876e2e7de116"}},{"code_sha256_prefix":"7bc562289b188468","entry":"prepare_samples","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7bc562289b188468"}},{"code_sha256_prefix":"f52624c81dd65473","entry":"squad_f1_score","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f52624c81dd65473"}},{"code_sha256_prefix":"e5bd9293acb23884","entry":"truncate_to_tokens","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e5bd9293acb23884"}},{"code_sha256_prefix":"a6c1044cbe0d3f31","entry":"VLLMClient","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a6c1044cbe0d3f31"}},{"code_sha256_prefix":"997b974a1cb1d2db","entry":"process_batch_samples","repo":"GasolSun36/BAR-RAG","repo_kind":"found_in_text","path":"filter.py","file_url":"https://github.com/GasolSun36/BAR-RAG/blob/HEAD/filter.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"997b974a1cb1d2db"}}]},"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}