Abstract
This paper introduces CoAugRetriever, a framework that leverages Reinforcement Learning (RL) to train a Large Language Model (LLM) for simultaneous query and document augmentation. Unlike traditional query-only rewriting, CoAugRetriever optimizes both sides of the retrieval process to ensure semantic alignment. By addressing the challenges of high reward variance and intractable action spaces through a novel reward sampling strategy and group-wise centering, the framework achieves significant performance gains across specialized domains like medicine, science, and finance.
Introduction
In modern Information Retrieval (IR), Large Language Models (LLMs) are frequently employed to rewrite or expand user queries to better match document text. However, fixing the query is often insufficient, especially for technical or specialized corpora where documents themselves may be poorly phrased for standard retrieval algorithms. While LLMs can augment documents (e.g., generating keywords), doing so in isolation often fails to improve results because the query-side and document-side augmentations lack semantic alignment.
The authors propose CoAugRetriever, a framework that uses RL to train an LLM to simultaneously augment both queries and documents. This "collaborative" bidirectional optimization ensures that the LLM learns to prepare document text to meet its own query-rewriting strategy halfway.
Methodology: Query-Document Co-Augmentation
The core of the proposed framework is a bidirectional RL approach designed to synchronize query and document processing.
The framework consists of several key components:
- Co-Augmentation Strategy: The LLM acts as a rewriter for queries at test-time while pre-computing lightweight augmentations for documents.
- Composite Sampling & Reward Estimation: To manage the computational cost of retrieving against an entire corpus during training, the authors use "mini-batches" of relevant and irrelevant documents. They employ a random sampling strategy to estimate the expected Normalized Discounted Cumulative Gain (NDCG) as a reward signal.
- Taming Reward Variance: Standard RL algorithms like GRPO or REINFORCE++ were found to be unstable in this setting. The authors implemented group-wise centering without normalization, combined with differential scaling, to stabilize the gradient updates and prevent "easy" queries from dominating the training process.
Experimental Results
The framework was evaluated on the BEIR benchmark, focusing on challenging domains: NFCorpus (Medical), SciFact (Scientific), and FiQA-2018 (Financial).
As shown in the results table, CoAugRetriever significantly boosts performance for both sparse (BM25) and dense (BGE) retrievers. Notably, on the NFCorpus dataset using BM25, the method improved NDCG@10 from 0.343 to 0.403. Furthermore, a trained Qwen2.5-7B model using this framework outperformed the much larger Qwen2.5-72B model (without RL training) across several benchmarks, demonstrating the efficiency of the RL-based alignment.
Key Insights
- Mandatory Collaboration: Simply adding document augmentation to a query-rewriting model without joint training often decreases performance. The LLM must learn to "cooperate with itself" to bridge the lexical gap between queries and documents.
- Semantic Alignment: Joint training reduces the cross-entropy between query and document word distributions. The model effectively learns a shared "internal language" to link disparate terms, such as connecting "carcinogens" to "radiation levels" via generated terms like "risk factors."
- Generalization: Models trained on one dataset showed strong "zero-shot" performance on others, suggesting the LLM learns a general strategy for text alignment rather than just memorizing specific domain knowledge.
Conclusion and Future Work
While CoAugRetriever demonstrates significant gains, training scalability remains a challenge due to the computational cost of generating multiple rollouts for large corpora. Future work will focus on applying this bidirectional RL approach to larger datasets and exploring its utility in other collaborative multi-agent scenarios.
Summary updated