In the field of Reinforcement Learning (RL), policy distillation has traditionally been a top-down process. Similar to a classroom setting, a high-performing "teacher" model—already trained to near-perfection—is used to supervise a "student" model. While effective, this approach faces a significant bottleneck: it requires an expensive, pre-trained teacher to begin, and the student's potential is often capped by the teacher's own limitations.
Researchers from Texas A&M University have introduced Dual Policy Distillation (DPD), a framework that reimagines this relationship. Instead of a teacher and a student, DPD utilizes two students who learn from the environment and each other simultaneously.
The DPD Framework
Dual Policy Distillation is a "student-student" framework where two RL agents learn collaboratively without a pre-trained teacher. By distilling knowledge from each other—specifically in states where one peer is performing better than the other—both agents achieve superior performance and faster convergence than they would in isolation.
The core of DPD is a strategy the authors call Disadvantageous Policy Distillation. The methodology is built on several key pillars:
- The Hypothetical Hybrid: The authors theoretically prove that for any two policies, there exists a "hybrid" policy that chooses the better action at any given state. This hybrid is guaranteed to be as good as or better than either individual policy.
- Targeted Distillation: Instead of Agent A blindly copying Agent B, Agent A only performs distillation (supervised regression) in states where Agent B is currently superior, as indicated by a higher estimated value function.
- Softened Objectives: To account for noisy value function estimates in deep RL, the authors apply an exponential weight ($exp(\alpha \cdot \text{advantage})$) to the distillation loss. This acts as a confidence score: the more one agent outperforms the other in a specific state, the more the trailing agent attempts to mimic it.
- Alternating Updates: The agents operate in the same environment but start with different initializations. In each iteration, Agent A performs its standard RL update and then distills knowledge from Agent B; Agent B then repeats the process from Agent A.
Experimental Evaluation
The framework was evaluated on four standard continuous control benchmarks from the OpenAI Gym (MuJoCo) suite: Swimmer-v2, HalfCheetah-v2, Walker2d-v2, and the highly complex Humanoid-v2. The authors tested DPD using two popular base algorithms: PPO (on-policy) and DDPG (off-policy).
Key Results and Insights
- Performance Boost: DPD consistently outperforms vanilla RL baselines. In off-policy settings (DDPG), DPD improved the maximum return by more than 15% in three out of four tasks. In the complex Humanoid task, DPD-PPO achieved a maximum return of 3885.83, significantly higher than the 3518.00 achieved by vanilla PPO.
- Complementary Perspectives: Different initializations allow agents to explore different parts of the environment. DPD enables them to share these unique "aha moments," such as one agent discovering a better balance while the other discovers a better way to move forward.
- Faster Value Growth: Empirical analysis showed that Q-values in DPD increase significantly faster than in vanilla RL, suggesting that mutual distillation helps agents identify high-reward strategies much earlier in training.
- Behavioral Convergence: Over time, the Euclidean distance between the actions of the two students decreases, indicating they eventually converge on a shared, high-quality strategy.
Discussion and Future Work
While DPD avoids the cost of a pre-trained teacher, it does require running two models simultaneously, which increases memory and compute requirements during the training phase. Additionally, the parameter $\alpha$ (controlling distillation confidence) requires careful tuning to prevent agents from over-fitting to a peer's noisy estimates.
Future research directions include extending DPD to multi-task learning, where agents could share fundamental knowledge about physics or interaction across different tasks. The authors also propose exploring "heterogeneous" DPD, where different types of algorithms (e.g., a PPO agent and a DDPG agent) learn from one another to leverage their respective algorithmic strengths.
Summary updated