Introduction
Reinforcement learning (RL) is notoriously data-hungry and often unstable. While "experience replay"—storing and reusing data collected during a single experiment—is a standard mechanism to improve stability and data efficiency, RL research typically involves hundreds of experiments (e.g., hyperparameter sweeps, different seeds). Usually, the valuable data generated from these prior runs is simply thrown away.
Existing methods to reuse this "dead" data, such as offline-to-online fine-tuning or specialized algorithms like AWAC, often introduce significant complexity. They might require multiple training stages, additional loss functions, or sensitive hyperparameter tuning. Replay across Experiments (RaE) is a simple yet powerful framework designed to reuse data from previous RL runs to "kick-start" new ones with a minimalist change to the standard workflow.
The RaE Framework
The core idea behind RaE is elegantly simple: rather than relying on complex offline-RL algorithms, researchers can boost agent performance and slash iteration times by mixing historical data with fresh experience.
The RaE approach relies on three main principles:
- Dual Buffers: The system maintains two replay buffers—one for data being collected in the current "online" experiment and one containing data from previous "offline" experiments.
- Fixed Mixing: During training, the agent samples transitions from both buffers. For most experiments, a naive 50/50 mix of offline and online data proves highly effective.
- Minimalist Integration: Unlike fine-tuning, which reuses neural network weights, RaE re-initializes the agent's weights but reloads the data. This makes it completely agnostic to changes in agent architecture or the underlying RL algorithm.
Experimental Domains
The framework was evaluated across several state-of-the-art off-policy algorithms (DMPO, D4PG, CRR, and SAC-X) on a diverse set of challenging simulated environments.
These domains span both locomotion and manipulation:
- Locomotion Soccer: A humanoid robot learning to score goals, including a difficult "Vision" variant using egocentric camera views and sparse rewards.
- Manipulation RGB Stacking: A robot arm task requiring the agent to stack colored objects based on visual inputs.
- RL Unplugged: A standard benchmark suite including tasks like "Humanoid run," "Manipulator insert peg," and "Manipulator insert ball."
Key Insights and Results
RaE consistently outperformed or matched strong baselines like fine-tuning and AWAC, reaching the performance level of a "from-scratch" agent in a fraction of the time.
- Simplicity is a Feature: RaE demonstrates that complex offline-RL math is not strictly necessary to benefit from prior data. Simply sampling from an old buffer provides a powerful exploration signal.
- "Bad" Data is Good Data: Surprisingly, even "low-return" data from early, unsuccessful training runs is highly beneficial. It helps the agent understand environment dynamics and prevents premature convergence.
- Robustness to Hyperparameters: RaE is remarkably insensitive to the exact mixing ratio. Whether using 50%, 70%, or 90% online data, performance remains stable across diverse domains.
- Quantitative Boost: In ablations on the Soccer task, using RaE with 100,000 episodes of mixed-quality prior data resulted in performance 126% higher than a baseline learned from scratch.
- The Iterative Loop: RaE can be applied repeatedly. Data from one iteration helps the next, effectively realizing a simple form of lifelong learning while reducing the "luck of the draw" variance across different random seeds.
Limitations and Future Work
While highly effective, RaE has limitations. If environment dynamics change significantly (e.g., gravity changes or robot physical proportions shift), old data might become invalid—though RaE showed surprising robustness to minor changes like adding mass to the robot's legs. Additionally, while conceptually simple, RaE requires the infrastructure to store and efficiently retrieve massive amounts of historical transition data.
Finally, if RaE becomes a standard practice, the RL community will need to carefully standardize how "prior data" is reported to ensure fair comparisons between new algorithms. Future work could explore more intelligent ways to filter or weight offline data, though the current simplicity remains RaE's greatest strength.
Summary updated