Exploratory Memory-Augmented LLM Agent via Hybrid On- and Off-Policy Optimization
Organizations: Microsoft Research · KAIST
Abstract
Exploration remains the key bottleneck for large language model agents trained with reinforcement learning. While prior methods exploit pretrained knowledge, they fail in environments requiring the discovery of novel states. We propose Exploratory Memory-Augmented On- and Off-Policy Optimization (EMPO), a hybrid RL framework that leverages memory for exploration and combines on- and off-policy updates to make LLMs perform well with memory while also ensuring robustness without it. On ScienceWorld and WebShop, EMPO achieves 128.6% and 11.3% improvements over GRPO, respectively. Moreover, in out-of-distribution tests, EMPO demonstrates superior adaptability to new tasks, requiring only a few trials with memory and no parameter updates. These results highlight EMPO as a promising framework for building more exploratory and generalizable LLM-based agents.
Figures & tables
| Qwen2.5-7B-Instruct | Naive | Non-Parametric | Offline RL | Online RL | ||
| Topic | Task | Reflexion | Retrospex | GRPO | EMPO 2 | |
| Chem istry | chemistry-mix | 42.0 38.0 | 1.2 0.7 | 20.8 10.0 | 12.4 3.5 | 42.7 12.4 |
| chemistry-mix-paint-secondary-color | 33.0 47.1 | 0.0 | 27.8 6.3 | 7.1 2.8 | 33.3 0.6 | |
| chemistry-mix-paint-tertiary-color | 33.9 44.3 | 36.9 5.7 | 7.6 4.2 | 42.6 6.2 | 39.2 8.7 | |
| Classi fication | find-animal | 58.2 50.2 | 39.5 5.8 | 25.9 13.5 | 72.4 6.8 | 100.0 0.0 |
| find-living-thing | 65.1 48.1 | 36.6 6.1 | 20.6 4.8 | 68.7 7.1 | 100.0 0.0 | |
| Qwen2.5-7B-Instruct | Naive | Non-Parametric | Offline RL | Online RL | |||
|---|---|---|---|---|---|---|---|
| Reflexion | Retrospex | GRPO | GiGPO w/ std | GiGPO w/o std | EMPO 2 | ||
| Score | 26.4 | 58.1 | 73.1 4.1 | 79.3 2.8 | 84.4 2.9 | 86.2 2.6 | 88.3 2.6 |
| Succ. | 7.8 | 28.8 | 60.4 3.9 | 66.1 3.7 | 72.8 3.2 | 75.2 3.8 | 76.9 4.1 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Update Mode | Rollout Condition | Current Log Prob | Old Log Prob |
|---|---|---|---|
| Regular On-Policy | No tips | ||
| On-Policy w/ Tips | With \fcolorbox{empo2}{white}{\textcolor{empo2}{tips}}_{t} | \log\pi_{\theta}(a_{t}\mid s_{t},u,\fcolorbox{empo2}{white}{\textcolor{empo2}{tips}}_{t}) | \log\pi_{\theta_{\text{old}}}(a_{t}\mid s_{t},u,\fcolorbox{empo2}{white}{\textcolor{empo2}{tips}}_{t}) |
| Off-Policy | With \fcolorbox{empo2}{white}{\textcolor{empo2}{tips}}_{t}(\text{rollout}) | \log\pi_{\theta_{\text{old}}}(a_{t}\mid s_{t},u,\fcolorbox{empo2}{white}{\textcolor{empo2}{tips}}_{t}) |
RL for LLM Agents
Reinforcement learning for large language model agents trains models to plan, use tools, and adapt through feedback from interactive tasks.
See all 570 papers