TL;DR
Continual Domain Randomization (CDR) bridges the "sim2real" gap in robotics by breaking down complex, multi-parameter domain randomizations into a manageable sequence of simpler training steps. By integrating continual learning techniques like Elastic Weight Consolidation, CDR prevents the robot from forgetting how to handle earlier environment variations, resulting in robust real-world performance without the training friction of full, simultaneous randomization.
What Problem Does This Paper Address?
Deep Reinforcement Learning (DRL) is notoriously sample-inefficient and unsafe for direct training on physical robots. While physics simulators provide a safe, infinite data sandbox, policies trained in ideal simulations often fail on real hardware due to the "reality gap."
Domain Randomization (DR) is the go-to strategy to fix this: it randomizes simulation parameters (like friction, mass, or latency) so the agent learns a policy robust enough to handle real-world variations. However, randomizing dozens of parameters simultaneously dramatically increases task complexity and state uncertainty, often leading to sub-optimal policies or outright training failure. Conversely, sequentially training on one randomized parameter at a time causes "catastrophic forgetting"—the robot optimizes for the newest environment condition while completely forgetting how to handle the previous ones.
Methods
The authors introduce Continual Domain Randomization (CDR), which treats sequential domain randomization as a continual learning problem.
The training pipeline unfolds as follows:
- Ideal Initialization: The agent is first trained in an idealized simulation where all randomizations are disabled, making the base task easy to master.
- Sequential Randomization: The agent is then sequentially exposed to simulations where only a subset of randomization parameters is active at any given time.
- Regularization via EWC: To prevent the agent from forgetting previous environment dynamics, the authors adapt Elastic Weight Consolidation (EWC) to the Proximal Policy Optimization (PPO) algorithm. EWC uses the empirical Fisher Information Matrix (FIM) to calculate which network weights are critical for past tasks and penalizes changes to them. Crucially, they only regularize the actor network, leaving the critic unconstrained.
The paper evaluates two variants of this approach:
- CDR-$\lambda$: Uses standard EWC, which saves a separate network snapshot and Fisher matrix for every single randomization parameter set.
- CDR-$\mathcal{O}\lambda$: Uses online EWC, which maintains a single running estimate of the network parameters and Fisher information, preventing memory requirements from scaling linearly with the number of parameters.
Datasets
The method was validated using two simulated robotic manipulation tasks built on a Unity-based platform, which were subsequently deployed on physical hardware:
- Reacher Task: A 2-joint controlled robotic arm tasked with reaching a target.
- Grasper Task: A kinematically redundant 7-joint KUKA LBR iiwa 14 robotic arm equipped with a Robotiq 3-Finger Adaptive Robotic Gripper tasked with picking up a 50mm cube.
The simulation parameters randomized during training included Latency (L) (observation delays), Torque (T) (joint stiffness/damping), and Noise (N) (sensor inaccuracies).
Key Insights and Ideas
- The Order of Randomization Matters: In sequential training, starting with parameters that introduce low state uncertainty (like torque variations) allows the policy to improve much faster than starting with high-uncertainty parameters (like sensor noise).
- Standard EWC Can Over-Constrain: Standard EWC (CDR-$\lambda$) accumulates separate penalty terms for each individual parameter set. This can overly restrict the network's capacity, slowing down adaptation to new randomizations.
- Online EWC Strikes the Best Balance: By consolidating constraints into a single running matrix, CDR-$\mathcal{O}\lambda$ adapts faster and achieves a final performance close to or better than full simultaneous randomization.
- Overconfidence vs. Smoothness: Standard sequential fine-tuning without regularization yields high rewards in simulation but creates overconfident, highly jittery policies that perform poorly and unsafely on real hardware.
Key Results
- Reacher Task: On the real robot, CDR-$\mathcal{O}\lambda$ achieved the highest episodic rewards, outperforming both full simultaneous randomization and standard fine-tuning. It also matched full randomization in producing smooth, non-jittery trajectories (low continuity cost).
- Grasper Task: For the highly complex grasping task, standard fine-tuning performance fluctuated wildly depending on the order of randomizations. In contrast, the CDR methods were highly stable and significantly less sensitive to task ordering, successfully transferring to the real robot with high grasp success rates.
Limitations and Future Work
A core limitation of the current CDR approach is parameter factorization. By randomizing parameters sequentially, the model might fail to capture complex, non-linear interactions that occur when multiple parameters vary at the same time.
Additionally, CDR does not inherently determine the ranges for the randomization parameters—setting these bounds too wide can still cause training to fail.
The authors suggest that future work should explore grouping interacting parameters together into distinct sequential "tasks" and combining CDR with automated or active domain randomization methods to dynamically discover optimal parameter bounds. They also plan to extend this framework to vision-based control tasks.
Summary updated