SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.03689 · ICML · 2026

Rethinking the Reranker: Boundary-Aware Evidence Selection for Robust Retrieval-Augmented Generation

Ge Liu, Jiawei Han, Heng Wang, Heng Ji, Jiaxin Huang, Pengcheng Jiang, Jiashuo Sun, Saizhuo Wang, Ming Zhong, Jiajun Fan, Yizhu Jiao, Peiran Li, and 4 more

arXiv · PDF · Open in the Atlas

Code that ran

24 of 26 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 6 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 14 failures of our instrument; 2 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2602.03689.json · badge: /api/ran/2602.03689.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
GasolSun36/BAR-RAG community
Papers with Code archive
24 ran · 2 no recorded run
FunctionStatusWhere it lives
GeneratorRollout Ran
ran on a synthesized input · constructed an object; no result was computed
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("f2a668bef88b45e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PreparedSample Ran
ran on a synthesized input · constructed an object; no result was computed
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("433f1cac108e3a31")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SampleResult Ran
ran on a synthesized input · constructed an object; no result was computed
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("6a0889d51d7f3b3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

SelectorRollout Ran
ran on a synthesized input · constructed an object; no result was computed
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("6c2105013e64ad11")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_generator_prompt_prefix Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("0616ef45c981d85c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_generator_prompt_with_budget Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("09e3e7200f10e115")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_selector_conversation Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("a010a2ea8a5ecf9f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cite_reward_peaked Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("fde56a8a1f8a1fac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_generator_reward Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("d1600919970d1d70")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_hbs_score Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("cfe808026873ade9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_tokens Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("0335852d729ef632")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_unique_doc_cites_in_think Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("bdd51fcd3a78301f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_answer_tag Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("ac37ef9234f428e1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_selector_answer Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("102728db38c7b95b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_selector_think Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("5dc60c2aea0bb519")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_think_tag Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("5457a476740b4a4f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_doc_block Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("912b9a1b8d856a37")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_top_n_docs Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("ab9ac8a021f0a8bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_answer Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("85fc7d4bd5e8711a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_selector_output_to_doc_indices Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("c73169833a02a1de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pass_hbs_filter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("7ee1876e2e7de116")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_samples Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("7bc562289b188468")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

squad_f1_score Ran
ran, honoured the contract we drafted
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("f52624c81dd65473")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

truncate_to_tokens Ran
ran; our contract draft was wrong, not the code
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("e5bd9293acb23884")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

VLLMClient Not yet run
unverified (harvested, no recorded run)
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("a6c1044cbe0d3f31")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_batch_samples Not yet run
unverified (harvested, no recorded run)
GasolSun36/BAR-RAG/filter.py
pointer only (licence: NONE) · get_code("997b974a1cb1d2db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GasolSun36/BAR-RAG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 26 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 26 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 knowledgeintensive question answering benchmarks show that BAR-RAG consistently improves end-to-end performance under noisy retrieval, achieving an average gain of 10.3% over strong RAG and reranking baselines while substantially improving robustness. The code is avaliable at https: //github.com/GasolSun36/BAR-RAG.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2602.03689")
get_code_for_paper("2602.03689")
have("2602.03689")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2602.03689.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2602.03689.svg)](https://syntology.ai/paper/2602.03689)

Connect an agent — have() is free.