REX-RAG: Reasoning Exploration with Policy Correction in Retrieval-Augmented Generation

Wentao Jiang, Xiang Feng, Zengmao Wang, Yong Luo, Pingbo Xu +3 more
8/11/2025
cs.CL

Official code: MiliLab/REX-RAG (35 stars, last commit 2025-09-28).

Abstract

Reinforcement learning (RL) is emerging as a powerful paradigm for enabling large language models (LLMs) to perform complex reasoning tasks. Recent advances indicate that integrating RL with retrieval-augmented generation (RAG) allows LLMs to dynamically incorporate external knowledge, leading to more informed and robust decision making. However, we identify a critical challenge during policy-driven trajectory sampling: LLMs are frequently trapped in unproductive reasoning paths, which we refer to as "dead ends", committing to overconfident yet incorrect conclusions. This severely hampers exploration and undermines effective policy optimization. To address this challenge, we propose REX-RAG (Reasoning Exploration with Policy Correction in Retrieval-Augmented Generation), a novel framework that explores alternative reasoning paths while maintaining rigorous policy learning through principled distributional corrections. Our approach introduces two key innovations: (1) Mixed Sampling Strategy, which combines a novel probe sampling method with exploratory prompts to escape dead ends; and (2) Policy Correction Mechanism, which employs importance sampling to correct distribution shifts induced by mixed sampling, thereby mitigating gradient estimation bias. We evaluate it on seven question-answering benchmarks, and the experimental results show that REX-RAG achieves average performance gains of 5.1% on Qwen2.5-3B and 3.6% on Qwen2.5-7B over strong baselines, demonstrating competitive results across multiple datasets. The code is publicly available at https://github.com/MiliLab/REX-RAG.

View on arXivView PDF

Code Implementations(1)

MiliLab/REX-RAGOfficial100%

Official repo for "REX-RAG: Reasoning Exploration with Policy Correction in Retrieval-Augmented Generation"

354Shell, PythonAug 10, 20251 years ago

Similar Papers

Cite this paper

@article{jiang2025rexrag,
  title  = {REX-RAG: Reasoning Exploration with Policy Correction in Retrieval-Augmented Generation},
  author = {Wentao Jiang and Xiang Feng and Zengmao Wang and Yong Luo and Pingbo Xu and Zhe Chen and Bo Du and Jing Zhang},
  year   = {2025},
  eprint = {2508.08149},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.08149v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.08149.svg)](https://codeofpaper.com/paper/2508.08149)

Discussion