Direct Retrieval-augmented Optimization: Synergizing Knowledge Selection and Language Models

Zhengliang Shi, Lingyong Yan, Weiwei Sun, Yue Feng, Zhumin Chen, Xinyu Ma, Shuaiqiang Wang, Dawei Yin, Maarten de Rijke, Zhaochun Ren

TL;DR

Direct Retrieval-augmented Optimization (DRO) is a new framework that treats document selection as a latent variable to enable true end-to-end training of RAG systems. By jointly optimizing a generative "selector" and an LLM "generator" through a variational approach, DRO achieves 5–15% improvements in accuracy across complex reasoning tasks.

What Problem Does This Paper Address?

Most Retrieval-Augmented Generation (RAG) systems are "disjointed." Typically, a retriever is trained to find relevant documents based on semantic similarity, while a generator (LLM) is trained to produce answers from those documents.

The authors identify a major gap: these two components are rarely optimized together. Even when they are, researchers often make a "point-wise independence" assumption—treating each document as if its utility is independent of the others. In the real world, especially for multi-hop Question Answering (QA), you need a specific set or permutation of documents to work together to provide a complete answer. Current methods struggle to optimize this complex "list-wise" selection process.

Methods

The core of the paper is the DRO framework, which uses an Expectation-Maximization (EM) style loop to bridge the gap between selection and generation.

  1. Generative Knowledge Selection: Instead of a standard ranker, DRO uses a generative model that outputs document identifiers in an auto-regressive sequence (e.g., [Doc 1] > [Doc 3] > [Doc 2]). This allows the model to capture dependencies between documents.
  2. The E-Step (Estimation): The framework treats the document permutation as a latent variable. Since calculating every possible permutation is impossible, they use importance sampling. They sample permutations from the selector and calculate "importance weights" based on how well the generator can produce the correct answer using those specific documents.
  3. The M-Step (Maximization): They jointly update the parameters of both the selector and the generator. The selector learns to favor permutations that lead to better answers (acting like a "reward" in RL), while the generator learns to better utilize the documents provided.
  4. Reinforcement Learning Analogy: The authors provide a theoretical proof showing that DRO is mathematically analogous to policy-gradient methods in RL. The generator's performance serves as the "reward signal" that reinforces the selector's choices.

Datasets

The authors evaluated DRO on five diverse benchmarks, focusing heavily on multi-hop reasoning:

  • Natural Questions (NQ): Standard open-domain QA.
  • HotpotQA, MuSiQue, and 2WikiMultiHopQA: Complex datasets requiring the model to aggregate information across multiple documents.
  • Wizard-of-Wikipedia (WoW): Knowledge-grounded dialogue.

Key Insights and Ideas

  • Synergy is Key: The "aha moment" is that the selector and generator shouldn't just be "compatible"; they should co-evolve. When the generator gets better at using specific types of evidence, the selector learns to find more of that evidence.
  • Permutations over Points: By treating the order and combination of documents as a single latent variable, the model naturally learns which documents "complement" each other, rather than just which ones are individually "relevant."
  • Stability through Importance Sampling: Training joint RAG systems is notoriously unstable. The authors show that using importance sampling with normalized weights significantly reduces variance and ensures the model converges smoothly.
  • Efficiency in Scaling: Interestingly, the authors found that you don't need a massive model for the selector. A 3B-parameter selector paired with an 8B generator offered a "sweet spot" of high performance and lower computational cost.

Key Results

  • State-of-the-Art Performance: DRO-Llama-3-8B outperformed the best baselines (including specialized models like RetRobust and RAAT) with 5%–15% improvements in Exact Match (EM) and F1 scores.
  • Better Retrieval: The selection model alone achieved a 17.78% average precision improvement in identifying target documents compared to off-the-shelf retrievers.
  • Ablation Success: Removing either the joint training of the selector or the generator led to significant performance drops, proving that the "synergy" is doing the heavy lifting.
  • Convergence: The model typically reaches peak performance within just 2–3 training iterations, demonstrating high training efficiency.

Limitations and Future Work

  • Computational Overhead: While efficient, the importance sampling strategy still requires sampling multiple document permutations ($m=8$ in their experiments) for every query during training, which increases the initial training cost compared to simple supervised fine-tuning.
  • Fixed Retrieval Pool: DRO currently optimizes the selection from a retrieved pool (re-ranking) and the generation. It does not yet update the underlying dense vector index (the "recall" stage) in real-time.
  • Future Directions: The authors plan to extend DRO to multi-modal RAG (images + text) and explore adding a "query re-writer" into the joint optimization loop to further refine the initial retrieval step.

Summary updated

BibTeX
@article{shi2026direct,
  author = {Zhengliang Shi and Lingyong Yan and Weiwei Sun and Yue Feng and Zhumin Chen and Xinyu Ma and Shuaiqiang Wang and Dawei Yin and Maarten de Rijke and Zhaochun Ren},
  title = {{Direct Retrieval-augmented Optimization: Synergizing Knowledge Selection and Language Models}},
  journal = {ACM Transactions on Information Systems},
  year = {2026},
  doi = {10.1145/3795527},
}
Figure