TL;DR
Complementary RL introduces a framework where an LLM policy actor and an experience extractor co-evolve within the reinforcement learning loop. By optimizing the experience extractor based on how effectively its distilled textual knowledge helps the actor succeed, the system prevents the "stale experience" problem common in static memory banks. This approach significantly boosts sample efficiency and task performance across complex, open-ended environments.
What Problem Does This Paper Address?
Reinforcement Learning (RL) is a powerful paradigm for training LLM agents, but it suffers from severe sample inefficiency due to sparse outcome rewards (e.g., a simple binary success/failure signal at the end of a long trajectory). While giving agents access to an "experience bank" of past trajectories helps, existing methods treat this memory as a static resource or use fixed, non-adaptive extractors.
As the agent's policy improves during training, static experiences become misaligned with its new capabilities—leading to stale, counterproductive guidance. The authors address this distributional misalignment by asking: Can we design an RL framework in which the policy actor and its experience extractor form a closed, co-evolutionary loop, each continuously shaping the other toward better performance?
Methods
Inspired by Complementary Learning Systems (CLS) in neuroscience (the interplay between the slow, structured neocortex and the fast, episode-specific hippocampus), the authors propose Complementary Reinforcement Learning (Complementary RL). The framework splits the agent architecture into two jointly optimized models:
- Policy Actor ($\pi_\theta$): Interacts with the environment and is optimized via a modified Group Relative Policy Optimization (GRPO) objective. To prevent the actor from becoming overly reliant on external guidance, the authors introduce Condition-Split GRPO. This partitions rollouts evenly into experience-guided and experience-free subgroups, calculating and normalizing advantages within each subgroup to maintain stable training signals.
- Experience Extractor ($\pi_\phi$): Distills raw trajectories into structured textual knowledge (successful strategies, failure patterns, and decision rules). It is optimized via the CISPO objective, receiving positive or negative rewards based on whether its distilled experience actually led to the actor's success in subsequent episodes.
To make this scalable, they decouple rollout collection from experience distillation using an asynchronous training framework managed by a centralized MemoryManager ($\mathcal{H}$). This manager coordinates:
- Experience Consolidation: A background track that processes completed trajectories, applies writer locks to prevent state conflicts, and performs a chunk-wise Periodic Merge to eliminate redundant or conflicting entries.
- Experience Retrieval: Uses query batching and parallel search workers under reader locks. It also introduces a Search-and-Ask tool, allowing the actor to actively query the memory bank mid-episode at critical decision points.
Datasets
The framework was evaluated across four diverse, open-ended environments:
- MiniHack: Grid-based game environments (specifically Room, Maze, KeyRoom, and River) requiring navigation, tool use, and survival under a fog-of-war observation model.
- WebShop: A simulated e-commerce environment where agents must navigate a realistic web interface to search and purchase products matching user specifications.
- ALFWorld: A text-based embodied AI environment where agents complete household tasks through natural language commands.
- SWE-Bench (Verified): A real-world software engineering benchmark where agents resolve GitHub issues by modifying codebases and running unit tests.
Key Insights and Ideas
- The Decay of Static Memory: A pilot study demonstrated that while offline or static online experience gives an initial performance boost, its benefit decays progressively over training. A static memory bank cannot track the shifting state-action distribution of a learning actor, causing the guidance to become counterproductive.
- The Danger of Naive Advantage Mixing: Simply mixing experience-guided and experience-free rollouts in standard GRPO causes training to collapse. Because the reward scales and variances differ drastically between the two conditions, advantage estimates become heavily biased. Condition-wise normalization is essential to preserve signal integrity.
- Active Mid-Episode Querying: Rather than just retrieving experience at the start of a task, allowing the actor to use a "Search-and-Ask" tool mid-episode enriches the training signal and provides highly targeted guidance when the agent hits a roadblock.
Key Results
- Consistent Performance Boosts: Complementary RL consistently outperformed standard RL baselines across all single-task environments, achieving a 1.3× performance margin in highly strategic environments like MiniHack Room and ALFWorld, and a +3.0% gain on the challenging SWE-Bench.
- Action Efficiency: The co-evolved experience guided the actor to make better decisions faster, requiring 1.5× fewer actions in MiniHack Room and 2× fewer actions in ALFWorld compared to the baseline.
- Multi-Task Scalability: In multi-task training mixtures, Complementary RL achieved a +6.6% average improvement on a 3-task mixture and +8.1% on a 6-task mixture, proving robust against cross-task experience contamination.
Limitations and Future Work
- Self-Distillation Instability: The authors attempted to integrate self-distillation to help the actor internalize experience-guided behaviors directly into its parameters via next-token prediction loss. While it initially improved performance, it caused training to collapse later on, indicating a need for better hyperparameter tuning or periodic application.
- Actor-Critic Latency: An explored "Actor-Critic" communication mechanism (where the actor reflects on and critiques/refines retrieved experiences before acting) improved early-stage success rates but introduced significant latency overhead by blocking rollout collection. The authors recommend it only when final performance is prioritized over training throughput.
Summary updated