RAPO: Expanding Exploration for LLM Agents via Retrieval-Augmented Policy Optimization
Organizations: Fudan University · Zhejiang University · UC Davis
Abstract
Agentic Reinforcement Learning (Agentic RL) has shown remarkable potential in large language model-based (LLM) agents. These works can empower LLM agents to tackle complex tasks via multi-step, tool-integrated reasoning. However, an inherent limitation of existing Agentic RL methods is their reliance on a pure on-policy paradigm for exploration, restricting exploration to the agent's self-generated outputs and preventing the discovery of new reasoning perspectives for further improvement. While recent efforts incorporate auxiliary off-policy signals to enhance exploration, they typically utilize full off-policy trajectories for trajectory-level policy estimation, overlooking the necessity for the fine-grained, step-level exploratory dynamics within agentic rollout. In this paper, we revisit exploration in Agentic RL and propose Retrieval-Augmented Policy Optimization (RAPO), a novel RL framework that introduces retrieval to explicitly expand exploration during training. To achieve this, we decompose the Agentic RL training process into two phases: (i) Hybrid-policy Agentic Rollout, and (ii) Retrieval-aware Policy Optimization. Specifically, we propose a Hybrid-policy Agentic Rollout strategy, which allows the agents to continuously reason over the retrieved off-policy step-level traces. It dynamically extends the reasoning receptive field of agents, enabling broader exploration conditioned on external behaviors. Subsequently, we introduce the Retrieval-aware Policy Optimization mechanism, which calibrates the policy gradient estimation with retrieval reward and importance shaping, stabilizing training and prioritizing retrieval-illuminating exploration. Extensive experiments show that RAPO achieves an +5.0% average gain on fourteen datasets across three agentic reasoning tasks, while delivering 1.2x faster training efficiency.
Figures & tables
| Methods | Computational Reasoning | Knowledge-Intensive Reasoning | Avg. | |||||||||
| AIME24 | AIME25 | MATH500 | GSM8K | MATH | WebWalker | HQA | 2Wiki. | MuSiQ. | Bamb. | |||
| Tool-Integrated Reasoning Methods | ||||||||||||
| Search-o1 | 6.7 | 10.0 | 61.8 | 80.2 | 73.6 | 10.4 | 22.1 | 21.8 | 5.4 | 32.0 | 32.4 | |
| Search-R1 | 16.7 | 6.7 | 63.8 | 82.4 | 81.2 | 12.0 | 26.9 | 25.9 | 16.2 | 40.4 | 37.2 | |
| Tool-Star | 30.0 | 26.7 | 77.2 | 89.4 | 85.6 | 18.5 | 38.1 | 40.8 | 14.9 | 41.5 | 46.3 | |
| Off-policy Learning Methods | ||||||||||||
| Methods | SimpleQA | General AI Assistant | WebWalkerQA | Browse. | Avg. | |||||||
| Lv.1 | Lv.2 | Lv.3 | Overall | Easy | Med. | Hard | Overall | |||||
| Direct | Qwen2.5-32B | 7.7 | 8.8 | 7.7 | 3.0 | 7.6 | 6.2 | 9.4 | 5.8 | 7.4 | 2.2 | 6.6 |
| DeepSeek-R1-32B | 12.6 | 19.2 | 7.8 | 4.1 | 11.7 | 9.4 | 13.3 | 9.4 | 11.0 | 2.4 | 10.1 | |
| Agentic RL | GRPO | 61.5 | 17.7 | 14.9 | 4.5 | 14.7 | 8.9 | 11.4 | 11.6 | 10.9 | 2.3 | 15.1 ( ) |
| GiGPO | 61.8 | 18.3 | 17.3 | 3.2 | 13.3 | 8.0 | 10.8 | 9.9 | 11.8 | 2.7 | 14.2 ( ) | |
| Tree-GRPO | 62.4 | 19.3 | 17.5 | 5.7 | 16.8 | 9.3 | 11.8 | 11.9 | 11.2 | 2.7 | 15.3 ( ) | |
| w/o RR | |||||
|---|---|---|---|---|---|
| ( ) | ( Ours ) | ||||
| Web. | 13.8 | 16.4 ( ) | 11.4 ( ) | 12.4 ( ) | 18.0 ( ) |
| HQA | 42.5 | 44.2 ( ) | 40.5 ( ) | 42.0 ( ) | 45.8 ( ) |
| 2Wiki. | 40.6 | 46.8 ( ) | 38.6 ( ) | 39.4 ( ) | 48.9 ( ) |
| MuSiQ. | 18.2 | 19.1 ( ) | 16.4 ( ) | 17.8 ( ) | 20.5 ( ) |
| Bamb. | 40.5 | 41.5 ( ) | 39.8 ( ) | 38.1 ( ) | 45.9 ( ) |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Notations | Descriptions |
|---|---|
| On-policy reasoning trace at step | |
| Off-policy reasoning trace at step | |
| On-policy reasoning history before step | |
| Off-policy reasoning history before step | |
| Step-level entropy for trace | |
| Retrieval reward for the -th rollout within group |
| Example from HQA dataset |
|---|
| Question : What British singer-songwriter hosted the 16th Annual Young Hollywood Awards? |
| Ground Truth : Kelly Lee Osbourne |
| Model Output by RAPO-Qwen2.5-7B |
| <think> To solve this question, I first need to determine who hosted the 16th Annual Young Hollywood Awards. After identifying the host, I must verify whether the person is a British singer-songwriter. </think> |
| <search> host of the 16th Annual Young Hollywood Awards </search> |
| <result> Doc 1 (Title: "Young Hollywood Awards") The Young Hollywood Awards is an annual awards ceremony honoring emerging talent in film, music, and television. The 16th Annual Young Hollywood Awards were held in Los Angeles in 2014 and featured appearances from a variety of young actors and musicians. The ceremony was hosted by Kelly … Doc 2 (Title: "2014 Young Hollywood Awards") The 2014 ceremony, recognized as the 16th installment of the awards, took place at The Wiltern theater. Television personality and singer Kelly Osbourne served as host for the event. The show highlighted rising stars and … Doc 3 (Title: "Young Hollywood Awards") Previous hosts of the ceremony have included a mixture of actors and entertainers. For the 2014 edition, Kelly Osbourne was selected due to her strong presence in both television and music, making her … </result> |
| Example from the MuSiQ. dataset |
|---|
| Question : When was the region immediately north of the region prevailing with the disgrace of the Near East and the site of the most growth in desalination for agricultural use established? |
| Ground Truth : 1932 |
| Model Output by RAPO-Qwen2.5-7B |
| <think> The question appears to involve multiple geographic references. First, I need to identify the region described as having the “disgrace of the Near East” and being a major site of desalination growth for agriculture. After locating that region, I should determine which region lies immediately north of it, and finally find the establishment date of that northern region. </think> |
| <search> region disgrace of the Near East desalination agricultural growth </search> |
| <result> Doc 1 (Title: "Negev") The Negev is a desert region in southern Israel. Historically, parts of the desert were once described as emblematic of the “disgrace of the Near East” due to arid conditions and limited agricultural productivity. In recent decades, however, the Negev has experienced … Doc 2 (Title: "Desalination in Israel") Israel has pioneered desalination technologies to support agriculture in arid regions. Significant growth has occurred in the southern desert areas, particularly the Negev, where desalinated water has … Doc 3 (Title: "Arava Valley") The Arava Valley is another desert area known for agricultural innovation using advanced irrigation techniques, though it is less commonly referenced as the primary site of desalination growth compared … </result> |
| Example from GSM8K dataset |
|---|
| Question : Jan has three times the number of pets as Marcia. Marcia has two more pets than Cindy. If Cindy has four pets, how many total pets do the three have? |
| Ground Truth : 28 |
| Model Output by RAPO-Qwen2.5-7B |
| <think> This problem forms a dependency chain: Cindy Marcia Jan. I will compute the intermediate variables first, then aggregate them. </think> |
| <python> cindy = 4 marcia = cindy + 2 jan = 3 * marcia print(f"({marcia}, {jan})") </python> |
| <result> (6, 18) </result> |
| Example from MATH dataset |
|---|
| Question : One computer backs up data every five minutes, while another backs up every two minutes. Find the number of times in twenty-four hours that both computers back up simultaneously. Assume they do not back up at the start of the 24-hour period. |
| Ground Truth : 144 |
| Model Output by RAPO-Qwen2.5-7B |
| <think> The computers will back up together at intervals equal to the least common multiple (LCM) of 5 and 2 minutes. I will first compute the LCM to determine the synchronization interval, then calculate how many such intervals occur within 24 hours. </think> |
| <python> import math interval = math.lcm(5, 2) print(interval) </python> |
| <result> 10 </result> |
Agentic RL
Agentic reinforcement learning trains AI agents to plan, use tools, and adapt through feedback from multi-step interactions.
See all 213 papers