Introduction
Deep Reinforcement Learning (RL) agents often struggle with generalization, frequently "overfitting" to the specific parameters of their training environments. This leads to a significant "reality gap" when deploying agents from simulation to the real world, where physical properties like friction, mass, or noise may differ slightly from the training setup.
The standard approach to mitigate this is Domain Randomization (DR), which involves training the agent across a wide distribution of simulated environments. However, DR introduces a "Randomization Paradox": while moderate diversity improves generalization, excessive randomization can lead to high-variance gradient estimates and unstable training. In extreme cases, the training signal becomes too chaotic for a single "one-size-fits-all" policy to converge, causing performance to collapse.
Peer-to-Peer Distillation (P2PDRL)
To address the instabilities of wide-distribution DR, this paper proposes Peer-to-Peer Distillation Reinforcement Learning (P2PDRL). Unlike traditional distillation methods that rely on a teacher-student hierarchy or a centralized generalist model, P2PDRL utilizes a decentralized "cohort" of $K$ workers.
The Learning Objective
The P2PDRL framework operates through two simultaneous processes:
- Local Optimization: Each worker independently interacts with a randomly sampled version of the environment, optimizing its policy using Proximal Policy Optimization (PPO).
- Consensus-Based Regularization: Workers are encouraged to maintain behavioral similarity. Alongside the standard RL reward, each worker minimizes the Kullback–Leibler (KL) divergence between its action distribution and those of its peers.
By forcing peers to reach a consensus, the agents effectively filter out the high-variance noise inherent in diverse environments. This online distillation process allows workers to share knowledge by exchanging model parameters rather than raw trajectory data, ensuring communication efficiency.
Experimental Evaluation
The authors evaluated P2PDRL on five continuous control benchmarks from OpenAI Gym (MuJoCo): Walker2d, Ant, Humanoid, Hopper, and HalfCheetah. Robustness was tested by varying environmental parameters (e.g., gravity, friction, mass) controlled by a randomization scalar $\epsilon$.
Key Results and Robustness
P2PDRL demonstrated superior generalization and stability compared to standard PPO and other distillation baselines such as Distral and Divide-and-Conquer (DnC).
As shown in the comparative analysis, standard PPO performance often collapses as the level of randomization increases ($\epsilon > 0.4$). In contrast, P2PDRL remains robust even under extreme variance ($\epsilon = 0.8$), successfully discovering domain-invariant features that allow for stable convergence. Furthermore, in tasks like Ant and HalfCheetah, the peer-regularization mechanism was found to improve sample efficiency, reaching higher returns faster than non-distilled counterparts.
Conclusion
P2PDRL offers a decentralized solution to the challenges of Domain Randomization. By replacing the master-worker hierarchy with a peer-to-peer consensus mechanism, the framework achieves greater stability and generalization without the need for complex centralized training. Future work may explore the application of this architecture to discrete action spaces and investigate the optimal scaling of the distillation weight hyperparameter $\alpha$.
Summary updated