TL;DR
Reinforcement learning for LLM agents typically retrieves past experiences only once at the start of a task, which fails when environments change dynamically over multiple turns. SLEA-RL introduces step-level experience retrieval and credit assignment, matching strategies to the agent's exact current observation. This approach significantly accelerates convergence and improves performance across long-horizon agent benchmarks like ALFWorld and WebShop.
What Problem Does This Paper Address?
Multi-turn tool-use tasks (such as web navigation, embodied planning, or interactive search) require LLM agents to make sequential decisions in a constantly changing environment. Existing experience-augmented RL methods rely on task-level retrieval—fetching a static set of past experiences based solely on the initial prompt and holding them constant. As the episode progresses, this context becomes stale and increasingly mismatched with the current state.
Furthermore, these environments usually provide only sparse, outcome-level rewards at the very end of an episode. This makes credit assignment incredibly difficult: how does the agent know which of its dozens of intermediate actions actually caused the final success or failure?
Methods
SLEA-RL (Step-Level Experience-Augmented Reinforcement Learning) integrates dynamic experience retrieval directly into the RL training loop (built on top of Group Relative Policy Optimization, or GRPO) via three core components:
- Step-Level Observation Clustering: To avoid scanning the entire library at every step, SLEA-RL clusters structurally equivalent environmental states using string/sequence similarity. This enables fast, cluster-indexed experience lookup.
- Self-Evolving Experience Library: The library is split into a strategy zone ($E^+$, for successful patterns) and a warning zone ($E^-$, for mistakes). After each epoch, an auxiliary LLM extracts insights from the best and worst trajectories. A score-based admission policy ensures higher-quality experiences continuously replace older ones without requiring gradient updates to the library itself.
- Step-Level Credit Assignment: To tackle sparse rewards, SLEA-RL calculates fine-grained advantages by grouping and normalizing discounted returns within each observation cluster across different trajectories. The final optimization objective combines this step-level advantage with standard episode-level advantage.
Additionally, it uses Format-Preserving Prompt Augmentation, placing retrieved experiences in the system role and observations in the user role to prevent formatting corruption and malformed actions.
Datasets
The authors evaluate SLEA-RL on:
- ALFWorld: An embodied text-based simulator requiring multi-step household task completion (e.g., locating, heating, and placing objects).
- WebShop: A complex web-shopping environment with over 1.1M products and 12K natural language instructions.
- Search-Augmented QA: Seven benchmarks split into single-hop (NQ, TriviaQA, PopQA) and multi-hop (HotpotQA, 2Wiki, MuSiQue, Bamboogle) question answering.
Key Insights and Ideas
- Experience is State-Dependent: A strategy that helps an agent navigate to a product category is useless when comparing items at checkout 20 steps later. Retrieval must evolve dynamically alongside the environment state.
- Decoupling Memory from Gradients: Rather than updating memory weights via backpropagation (which can cause memory quality to collapse if the policy degrades), SLEA-RL evolves its library semantically using discrete text summaries and score-based filtering.
- Clustering Solves the Sparse Reward Problem: By grouping identical or highly similar states across different rollouts, the algorithm can directly contrast the outcomes of different actions taken at that exact decision point.
Key Results
- State-of-the-Art Performance: SLEA-RL consistently outperforms strong RL baselines (GRPO, GiGPO) and task-level experience methods (SkillRL). On ALFWorld, it achieves a 93.5% success rate (vs. GiGPO's 90.8%), with massive jumps on harder subtasks like Heat (+10.1%) and Pick2 (+11.2%).
- WebShop Mastery: It reaches a 76.3% success rate on WebShop, outperforming GiGPO (72.8%) and standard GRPO (66.1%).
- Faster, Cleaner Convergence: As shown in the training dynamics, SLEA-RL converges significantly faster and reduces average episode lengths much quicker than baselines, proving that step-level guidance prevents agents from wandering into useless exploration loops.
Limitations and Future Work
- Computational Overhead: Performing retrieval and prompt augmentation at every single step increases both training and inference latency compared to vanilla RL.
- LLM Extraction Bottleneck: The framework relies heavily on the quality of the auxiliary LLM used to distill trajectories into text strategies; poor summaries can introduce noisy or suboptimal guidance.
- System Complexity: Managing a live, self-evolving text database alongside an RL training loop introduces significant engineering and synchronization complexity.
Future work will focus on improving the efficiency and robustness of the experience extraction and retrieval processes.
Summary updated