Abstract
Modern information retrieval (IR) systems rely on a two-stage process: initial retrieval followed by high-precision reranking. While Large Language Models (LLMs) excel at reranking, they often function as "black boxes" requiring massive datasets or expensive proprietary models. We present REARANK, a 7B-parameter agent that utilizes reinforcement learning (RL) to explicitly reason about document relevance. By employing a novel data augmentation strategy and Grouped Policy Optimization (GRPO), REARANK achieves GPT-4 level performance on complex retrieval benchmarks using only 179 annotated queries. Our results demonstrate that RL-driven reasoning significantly enhances the efficiency and interpretability of compact, locally deployable reranking models.
Introduction
The reranking stage of information retrieval is critical for accuracy but faces significant deployment hurdles. State-of-the-art rerankers typically fall into two categories: zero-shot proprietary models like GPT-4, which are costly and opaque, or models fine-tuned via Supervised Fine-Tuning (SFT) on hundreds of thousands of annotated examples. Furthermore, existing models rarely explain their ranking logic, missing the opportunity to leverage "test-time compute" through Chain-of-Thought (CoT) reasoning.
REARANK addresses these challenges by integrating explicit reasoning into the reranking process. Built on Qwen2.5-7B, the agent is trained to generate a <think> block for passage analysis before producing the final <answer> ranking. This approach not only improves performance but also provides an interpretable trace of the model's decision-making process.
Methodology
REARANK implements a listwise reranking strategy optimized through reinforcement learning.
Listwise Reinforcement Learning
The model is trained using Grouped Policy Optimization (GRPO). Unlike standard SFT, the RL framework rewards the model based on the alignment of its output with the ground-truth ranking, measured by Normalized NDCG@10. This objective encourages the model to develop strategic reasoning patterns rather than just mimicking training labels.
Data Augmentation via Initial State Expansion
To overcome the limitation of small annotated datasets, we utilize "Initial State Expansion." Starting with only 179 queries from MSMARCO-V2, we randomly sample different subsets of 20 passages for each query 50 times. This process generates 12,000 unique training scenarios, providing sufficient diversity for the RL algorithm to learn robust, generalized ranking policies from a minimal seed dataset.
Inference Strategy
To handle context window constraints, REARANK employs a sliding window approach. It processes the top 100 documents in batches of 20, iteratively "bubbling" the most relevant documents to the top of the list.
Evaluation
We evaluated REARANK across several dimensions:
- In-Domain: TREC-DL19 and TREC-DL20.
- Out-of-Domain: The BEIR suite.
- Reasoning-Intensive: The BRIGHT benchmark, designed to test deep logical understanding in retrieval.
- Generalization: Math datasets (AIME 2024, AMC) to test the transferability of learned reasoning skills.
Results and Analysis
REARANK-7B demonstrates remarkable performance, surpassing GPT-4 on the reasoning-heavy BRIGHT benchmark (17.7 vs 16.8 nDCG@10). It also shows significant gains over its base model, Qwen2.5-7B, improving by up to 7.2 points on TREC-DL and 4.5 points on BEIR.
The Impact of RL on Reasoning
A key finding is that RL training is essential for unlocking effective reasoning. While simple prompting provides marginal gains, RL teaches the model to concisely compare passages and extract critical terms. Qualitative analysis shows that post-RL reasoning traces are significantly more detailed and focused on relevance keywords compared to pre-RL outputs.
Sample Efficiency and Transferability
REARANK achieves these results with a fraction of the data used by competitors. For instance, it outperforms Rank-R1-7B despite using 400x less training data (179 vs. 72,000 queries). Furthermore, the reasoning skills developed during IR training appear to generalize; REARANK showed improved performance on complex math problems (AIME 2024), suggesting that RL for retrieval enhances general cognitive planning.
Conclusion and Future Work
REARANK proves that compact models can achieve state-of-the-art retrieval performance through RL-driven reasoning and efficient data augmentation. However, limitations remain. The model's performance is currently capped by the quality of the initial Stage 1 retrieval (e.g., BM25). Additionally, while the reasoning traces are helpful, further work is needed to ensure their absolute faithfulness and prevent potential hallucinations. Future research will focus on integrating the retriever and reranker more tightly to overcome the initial retrieval bottleneck.
Summary updated