Distilled Domain Randomization

Julien Brosseit, Benedikt Hahner, Fabio Muratore, Michael Gienger, Jan PetersarXiv 2021

Abstract

Distilled Domain Randomization (DiDoR) addresses the "reality gap" in robotics by bridging the performance divide between simulated training and real-world deployment. By training a parallelized fleet of expert "teacher" policies on diverse simulated environments and distilling their collective knowledge into a single, robust "student" policy, DiDoR achieves state-of-the-art sim-to-real transfer. This approach provides the robustness of ensemble methods without their prohibitive computational overhead, enabling high-frequency, real-time robot control.

Introduction

Deep Reinforcement Learning (RL) has shown immense potential in robotics, yet its data-intensive nature makes direct training on physical hardware slow, expensive, and potentially hazardous. Consequently, researchers rely on simulators. However, the "reality gap"—discrepancies in friction, mass, and sensor noise between simulation and reality—often causes policies to fail when deployed on real robots.

Domain Randomization (DR) is a common countermeasure, training policies across a wide range of randomized simulation parameters. While standard Uniform Domain Randomization (UDR) is effective, it frequently suffers from high gradient variance, leading to unstable training. Alternatively, ensemble methods provide robustness but are too computationally intensive for the high-frequency control loops (e.g., 500Hz) required by real-world hardware. DiDoR is proposed as a solution that maintains the efficiency of a single policy while capturing the robustness of an ensemble.

Methodology

DiDoR decouples the learning process into two distinct, manageable phases: teacher training and student distillation.

  1. Teacher Training: The algorithm samples $N$ specific simulated environments (domains). A dedicated "teacher" policy is trained for each environment. Because each teacher specializes in a single set of physics parameters, the training process is highly stable and can be easily parallelized across compute clusters.
  2. Student Distillation: A single "student" policy is trained to imitate the entire ensemble of teachers. Through on-policy distillation, the student interacts with various simulated environments and minimizes the Kullback-Leibler (KL) divergence between its action distribution and the expert actions of the teachers.
The DiDoR training pipeline: parallelized teacher training followed by on-policy student distillation.

This architecture results in a compact neural network that has absorbed the generalized robustness of the teachers, capable of executing actions fast enough for real-time deployment on physical systems.

Experimental Setup

The researchers evaluated DiDoR across two primary domains:

  • Sim-to-Sim Generalization: Tested using standard MuJoCo locomotion tasks (Hopper, Half-Cheetah, and Ant) to measure how well the student policy generalizes to unseen simulated environments.
  • Sim-to-Real Transfer: Evaluated on two underactuated control systems: the Furuta Pendulum and the Cart-pole. These platforms are challenging due to fast dynamics and non-linear friction that are difficult to model accurately in simulation.

Key Results and Discussion

In sim-to-sim benchmarks, DiDoR performed on par with or better than established baselines, including UDR and Peer-to-Peer Distillation (P2PDRL). The distillation process acts as a natural regularizer, preventing the student from overfitting to the quirks of any single simulation instance.

Sim-to-sim results comparing DiDoR against UDR, ENS, and P2PDRL across Hopper, Ant, and Half-Cheetah tasks.

In the more rigorous sim-to-real Cart-pole task, DiDoR demonstrated significantly higher success rates than UDR. While UDR often failed due to noisy training updates or a randomization range that was too narrow for real-world friction, DiDoR remained stable. Crucially, DiDoR maintained the memory footprint and execution speed of a standard single-policy agent, meeting the 2ms command cycle requirements of the Cart-pole hardware.

Conclusion and Future Work

DiDoR provides a robust, zero-shot method for transferring RL policies from simulation to reality. By leveraging specialized teachers, it overcomes the stability issues of standard domain randomization while preserving real-time performance.

Future research directions include automating the selection of domain parameter distributions to reduce reliance on human expertise, exploring alternative distillation losses beyond KL-divergence, and applying the framework to more complex multi-legged or manipulative robotic systems.

Summary updated

BibTeX
@misc{brosseit2021distilled,
  author = {Julien Brosseit and Benedikt Hahner and Fabio Muratore and Michael Gienger and Jan Peters},
  title = {{Distilled Domain Randomization}},
  year = {2021},
  eprint = {2112.03149},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.03149},
}
Figure