Harnessing the Power of Reinforcement Learning for Language-Model-Based Information Retriever via Query-Document Co-Augmentation

Jingming Liu, Yumeng Li, Wei Shi, Yao-Xiang Ding, Hui Su, Kun Zhou · Submission to ICLR 2026 · Withdrawn

TL;DR

Enhancing search queries or documents with LLMs in isolation often fails because the rewritten texts still suffer from vocabulary and stylistic mismatches. This paper introduces a bidirectional reinforcement learning (RL) framework that trains a single LLM to collaboratively co-augment both queries and corpus documents. By pairing a novel rollout-sampling strategy with a variance-tamed advantage calculation, the model learns a shared semantic vocabulary that significantly boosts both sparse (BM25) and dense (BGE) retrieval.

What Problem Does This Paper Address?

In information retrieval (IR) and retrieval-augmented generation (RAG), queries and documents often express the same underlying concept using completely different vocabulary and tone. While recent methods leverage large language models (LLMs) to rewrite user queries or generate synthetic document summaries, doing so unidirectionally—or training separate models for each side—fails to solve the problem: the generated queries and documents still drift into mismatched lexical distributions.

Training an LLM to augment both simultaneously via reinforcement learning introduces serious technical bottlenecks:

  1. Intractable action space: The retrieval reward depends on how an augmented query matches against every augmented document, causing the combinatorial search space of rollouts to explode exponentially.
  2. Reward normalization breakdown: Standard group-relative RL algorithms like GRPO or REINFORCE++ fail. Dividing by near-zero variance inside rollout groups amplifies random sampling noise, while batch-wide normalization causes advantage values to be dominated by query difficulty rather than rewrite quality.

Methods

To overcome these roadblocks, the authors introduce a collaborative bidirectional RL framework:

[ Composite Batch: Q + Pos Docs + Neg Docs ]
                     │
         ┌───────────┴───────────┐
         ▼                       ▼
  Query Rollouts         Document Rollouts
         │                       │
         └───────────┬───────────┘
                     ▼
          Reward Sampling & Averaging
                     ▼
        Advantage Centering (No Div-by-Std)
          + Differential Loss Scaling
  • Query-Document Composite Sampling: Batches are structured into self-contained mini-datasets comprising $q$ queries, $d_{\text{pos}}$ relevant documents, and $d_{\text{neg}}$ irrelevant documents.
  • Monte Carlo Reward Sampling: Instead of evaluating all combinations of query and document rollouts, the framework repeatedly samples one rollout per document, calculates retrieval rewards (NDCG@10) across query rollouts, and averages scores over $N$ iterations. This maintains an estimation error $\le 0.01$ with minimal compute overhead.
  • Variance-Tamed Advantage Calculation:
  • Standard group normalization ($A = \frac{r - \mu}{\sigma}$) is replaced with centering-only ($A = r - \mu$), avoiding division by small standard deviations when rewrites do not alter document rankings.
  • To prevent gradients from being overwhelmed by non-relevant passages, differential advantage scaling coefficients are applied: 1.0 for queries, 0.2 for relevant documents, and 0.1 for irrelevant documents.
  • Batch-Unbatch Pipeline: Training is integrated into distributed LLM RL frameworks (VERL) by logically unbatching text samples for parallel generation, re-batching them for ranking and reward assignment, and unbatching again for parameter updates.

Datasets

The authors evaluate on subsets of the BEIR benchmark:

  • Training & In-Domain Evaluation: NFCorpus (medical), SciFact (scientific claims), and FiQA-2018 (financial QA).
  • Out-of-Domain Generalization: Evaluated zero-shot on SCIDOCS and TREC-COVID.
  • No new datasets were introduced.

Key Insights and Ideas

  • Bidirectional training creates a shared semantic vocabulary: Simply applying independently fine-tuned query and document models at test time yields marginal improvements. Joint RL forces the model to cooperate with itself—measurably dropping the cross-entropy $H(Q, D)$ between query and document token distributions from 10.32 down to 9.50 on NFCorpus.
  • Dividing by variance can ruin RL fine-tuning: In retrieval tasks, subtle text rewrites frequently leave rankings unchanged, creating zero-variance groups. GRPO's group normalization turns this near-zero variance into full-scale gradient noise. Removing the variance denominator solves the optimization failure cleanly.
  • Offline document precomputation preserves runtime speed: Because document augmentations can be generated and indexed offline, runtime query latency remains identical to standard query rewriting.

Key Results

Experiments centered on Qwen2.5-7B show substantial gains in NDCG@10 across sparse (BM25) and dense (BGE-base-en-v1.5) setups:

  • NFCorpus Ablation (BM25):
  • Base Retriever: 0.343
  • Query-only RL + Document-only RL (combined at test time): 0.388
  • Collaborative Co-Augmentation (Ours-7B): 0.403 (outperforming Qwen2.5-72B at 0.370).
  • Dense Retrieval Gains: On TREC-COVID, Ours-7B achieves 0.807 NDCG@10 compared to the base BGE retriever's 0.672 (a 13% absolute gain) and base Qwen2.5-7B augmentation (0.776).
  • Ablation on Normalization: Group normalization (GRPO) achieves 0.376 on NFCorpus (BM25), while batch normalization (REINFORCE++) degrades to 0.364 due to query difficulty bias. The authors' centering-only formulation achieves 0.403.

Limitations and Future Work

  • Training Scalability on Large Candidate Pools: Although document augmentations are precomputed for deployment, training still requires generating multiple rollouts across sets of documents per query, making scaling to huge mini-batch document pools memory- and compute-intensive.
  • Dense Retriever Generalization Discrepancies: While cross-domain transfer was consistently positive for BM25, dense retrieval transfer was mixed (e.g., underperforming base Qwen2.5-7B on FiQA-2018), likely because dense embedding models encode domain-specific geometry that resists out-of-domain transfer.
  • Target Use Cases: The framework is currently best suited for semantically complex, specialized domains with compact-to-moderate corpus sizes.

Summary updated

BibTeX
@misc{liu2025harnessing,
  author = {Jingming Liu and Yumeng Li and Wei Shi and Yao-Xiang Ding and Hui Su and Kun Zhou},
  title = {{Harnessing the Power of Reinforcement Learning for Language-Model-Based Information Retriever via Query-Document Co-Augmentation}},
  year = {2025},
  eprint = {2506.18670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.18670},
}
Figure