TL;DR
Dual Policy Distillation (DPD) is a collaborative learning framework that allows two reinforcement learning (RL) agents to train simultaneously from scratch and improve by "teaching" each other. By selectively distilling knowledge only when a peer performs better at a specific state—a strategy called disadvantageous distillation—DPD achieves superior performance compared to standard single-agent training without requiring expensive, pre-trained expert models.
What Problem Does This Paper Address?
Deep Reinforcement Learning (DRL) is notoriously sample-inefficient, often requiring millions of interactions with an environment to reach high performance. Policy distillation was introduced to mitigate this by transferring knowledge from a high-performing "teacher" model to a "student" model.
However, traditional distillation has two major bottlenecks:
- Cost: Obtaining a high-quality teacher model is computationally expensive and often requires training an expert from scratch first.
- Performance Ceiling: The student's performance is typically capped by the quality of the teacher; if the teacher is sub-optimal, the student will be too.
The authors of DPD ask: Can we achieve the benefits of distillation without a pre-trained expert? They look to "collaborative learning" in psychology—where peers learn together—to develop a framework where two imperfect agents help each other overcome their individual blind spots.
Methods
The DPD framework involves two learners (Learner 1 and Learner 2) operating in the same environment but starting with different initializations.
Key Innovations:
- Dual Objectives: In every iteration, each learner updates two objectives: a standard RL objective (to maximize environmental reward) and a distillation objective (to regress toward the peer's policy).
- Disadvantageous Distillation Strategy: This is the core theoretical contribution. Instead of blindly mimicking a peer, an agent only distills knowledge at states where the peer has a higher estimated value (advantage). This "selective listening" ensures that agents only adopt behaviors that are likely to lead to improvement.
- Softened Weighted Objectives: To account for noisy value function estimations common in deep RL, the authors use a weighted distillation loss. They introduce a confidence parameter ($\alpha$) that scales the distillation based on the magnitude of the peer's advantage.
The framework is algorithm-agnostic and was tested with both PPO (on-policy) and DDPG (off-policy) agents.
Datasets
The authors evaluated DPD on four standard continuous control benchmarks from the OpenAI Gym (MuJoCo) suite:
- Swimmer-v2
- HalfCheetah-v2
- Walker2d-v2
- Humanoid-v2
These tasks are widely used in the RL community to test an algorithm's ability to handle high-dimensional state and action spaces.
Key Insights and Ideas
- The Hypothetical Hybrid Policy: The authors theoretically prove that a "hybrid" policy—one that always picks the best action between two peers—is guaranteed to be at least as good as, and often better than, either individual policy. Distillation is the mechanism that pushes both agents toward this superior hybrid.
- Complementary Exploration: Because the two agents start with different initializations, they naturally explore different regions of the state space. DPD allows them to share these "discoveries" efficiently.
- Balancing Exploration and Exploitation: The RL objective encourages individual exploration, while the distillation objective encourages exploitation of the peer's successful strategies.
- Convergence through Distillation: Empirical analysis shows that while the agents start differently, the distillation process causes their policies to slowly converge over time, leading to more stable and similar action outputs in later training stages.
Key Results
DPD consistently outperformed vanilla PPO and DDPG baselines across all tested environments.
- Performance Gains: When comparing DPD to DDPG at the same total number of environment timesteps, DPD showed a maximum return improvement of more than 15% in three out of four tasks.
- Efficiency: Even when given the same total computational budget (i.e., comparing one DPD run of two agents to a single baseline agent run for twice as long), DPD achieved higher average and maximum returns.
- Faster Value Growth: Analysis of Q-values (state-action values) showed that DPD agents' value estimations increased faster than those of vanilla DDPG agents, indicating a more rapid path toward the optimal policy.
Limitations and Future Work
While DPD shows significant promise, the authors note a few areas for further exploration:
- Hyperparameter Sensitivity: The confidence parameter $\alpha$ is crucial and currently requires empirical tuning for different environments.
- Multi-Task Scaling: The current work focuses on two agents in one environment. Future research could investigate if this scales to multiple agents or across different but related tasks.
- Heterogeneous Agents: The authors suggest exploring whether combining different types of RL algorithms (e.g., one PPO agent and one DDPG agent) within the DPD framework could yield even better results by leveraging their unique algorithmic strengths.
Summary updated