Abstract
Reinforcement learning (RL) often struggles with "contact-rich" robotic tasks due to sparse reward signals. Dynamic Experience Replay (DER) addresses this by treating an agent's own successful attempts as high-quality demonstrations. By maintaining a "demonstration zone" within the replay buffer that is periodically refreshed with successful trajectories from a global pool, DER creates a self-improving curriculum. Our results show that DER can double training speeds for complex assembly tasks and produce policies robust enough for direct transfer to physical hardware.
Introduction
Reinforcement Learning is notoriously data-hungry, particularly in robotics tasks involving "contact-rich" environments like fitting two parts together. In these scenarios, a tiny error in position leads to a collision rather than success. Because success is rare, the reward signal is sparse, and agents spend the majority of their training time failing without learning.
While human demonstrations are often used to "jumpstart" learning, they are static and may not align with a robot's specific sensors or evolving environment. Dynamic Experience Replay (DER) bridges this gap by allowing the robot to learn from its own successful trajectories as if they were expert demonstrations.
Methods: The DER Architecture
DER is built upon the distributed Ape-X DDPG architecture, separating "explorers" (workers) from the "learner" (trainer) to allow for massive data throughput. The core innovation lies in the management of the replay buffer:
- The Demonstration Zone: Each replay buffer reserves a small portion (approximately 1%) for high-quality, successful trajectories.
- The Success Pool: As parallel worker robots explore, any successful task completion is saved into a global "Successful Transitions Pool."
- Dynamic Updating: Replay buffers periodically sample from this success pool to refresh their demonstration zones, ensuring the "expert" data remains relevant to the current policy.
To understand how DER interacts with prior knowledge, the researchers evaluated four distinct buffer configurations, ranging from no human demonstrations to providing unique demonstrations to every buffer.
Experimental Setup
The system was evaluated using two custom robotic assembly environments in the PyBullet simulation engine:
- Chamfered Peg-in-Hole: A standard benchmark for precision insertion.
- Lap-Joint: A high-difficulty task involving timber pieces with a tight 1mm tolerance.
Training was conducted in Cartesian space (13-dimensional observation, 6-dimensional action), focusing on object movement rather than joint angles to facilitate hardware transfer.
Key Results and Insights
- Accelerated Learning: In peg-in-hole tasks, DER reached target success rates nearly twice as fast as vanilla Ape-X DDPG. For the more complex lap-joint task, DER enabled the agent to consistently reach high success rates where standard methods often failed entirely.
- Self-Generated Curriculum: DER creates a self-improving loop. As the agent improves, the demonstrations it learns from become more sophisticated and representative of its own capabilities.
- Real-World Robustness: A policy trained entirely in simulation for the lap-joint task was deployed on a physical KUKA KR60 industrial arm, achieving a 100% success rate (3/3) on the first attempt without retraining.
Conclusion and Future Work
Dynamic Experience Replay effectively frames successful RL trajectories as a way to handle imbalanced datasets where success is the "under-represented class." While highly effective, some configurations—such as providing every buffer with a unique human demonstration—did not show significant boosts, a phenomenon that warrants further investigation. Future research will explore DER's compatibility with other algorithms like PPO and the impact of varying sampling rates on learning stability.
Summary updated