Papers › REARANK: Reasoning Re-ranking Agent via Reinforcement Learning

REARANK: Reasoning Re-ranking Agent via Reinforcement Learning

26 May 2025arXiv:2505.20046archive 2025-07-28

Le Zhang, Bo wang, Xipeng Qiu, Siva Reddy, Aishwarya Agrawal

We present REARANK, a large language model (LLM)-based listwise reasoning reranking agent. REARANK explicitly reasons before reranking, significantly improving both performance and interpretability. Leveraging reinforcement learning and data augmentation, REARANK achieves substantial improvements over baseline models across popular information retrieval benchmarks, notably requiring only 179 annotated samples. Built on top of Qwen2.5-7B, our REARANK-7B demonstrates performance comparable to GPT-4 on both in-domain and out-of-domain benchmarks and even surpasses GPT-4 on reasoning-intensive BRIGHT benchmarks. These results underscore the effectiveness of our approach and highlight how reinforcement learning can enhance LLM reasoning capabilities in reranking.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.20046")

Code

Syntology Ran 6 of 18 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lezhang7/rearank officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 6 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
4ran
12unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lezhang7/rearank. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_ce_dpo_loss_rm lezhang7/rearank/verl/recipe/prime/prime_core_algos.py official repository ran Apache-2.0 (permissive) · f220595adfc5e83c · report
get_prefix_prompt lezhang7/rearank/rank_gpt.py official repository ran Apache-2.0 (permissive) · 64789829d440d8a9 · report
remove_duplicate lezhang7/rearank/trec_eval.py official repository ran fingerprinted Apache-2.0 (permissive) · 4fc539f7640d8633 · report
reward_func lezhang7/rearank/verl/recipe/r1/reward_score.py official repository ran Apache-2.0 (permissive) · c30b2a96103abd2c · report
union_tensor_dict lezhang7/rearank/verl/verl/protocol.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 21331a58f93375e4 · report
unpad_dataproto lezhang7/rearank/verl/verl/protocol.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 25f0ea3f460f6ce1 · report
compute_detach_dpo_loss_rm lezhang7/rearank/verl/recipe/prime/prime_core_algos.py official repository unverified Apache-2.0 (permissive) · e696489c417f49c0 · report
get_generation_config lezhang7/rearank/verl/verl/utils/model.py official repository unverified Apache-2.0 (permissive) · 68aa34a57b353cae · report
get_huggingface_actor_config lezhang7/rearank/verl/verl/utils/model.py official repository unverified Apache-2.0 (permissive) · 9411d1fb7e4f68e5 · report
get_post_prompt lezhang7/rearank/rank_gpt.py official repository unverified Apache-2.0 (permissive) · 5d2b6f9db0e135ca · report
get_qrels_file lezhang7/rearank/trec_eval.py official repository unverified Apache-2.0 (permissive) · d2098f88a360e095 · report
get_results_file lezhang7/rearank/utils.py official repository unverified Apache-2.0 (permissive) · e7e1dbf9aa7c650e · report
get_weight_loader lezhang7/rearank/verl/verl/models/weight_loader_registry.py official repository unverified Apache-2.0 (permissive) · acf240079d434746 · report
get_weight_saver lezhang7/rearank/verl/verl/models/weight_loader_registry.py official repository unverified Apache-2.0 (permissive) · d1e077d222a806ec · report
read_bright_qrels lezhang7/rearank/utils.py official repository unverified Apache-2.0 (permissive) · fa5e6d965b07a405 · report
read_bright_topics lezhang7/rearank/utils.py official repository unverified Apache-2.0 (permissive) · 870dc1e2ca0db4e8 · report
run_retriever lezhang7/rearank/rank_gpt.py official repository unverified Apache-2.0 (permissive) · 1dd27e699c846444 · report
squeeze lezhang7/rearank/verl/verl/utils/model.py official repository unverified Apache-2.0 (permissive) · 3b15e2ac7497c441 · report

Tasks

Data AugmentationInformation RetrievalLanguage ModelingLanguage ModellingLarge Language ModelRe-RankingReinforcement LearningRerankingRetrievalreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections