Here is a summary of the paper tailored for a technically literate audience.
TL;DR
Reinforcement learning (RL) agents often require millions of interactions to learn complex tasks. This paper introduces Periodic Intra-Ensemble Knowledge Distillation (PIEKD), a framework that trains an ensemble of RL agents together and periodically uses the best-performing agent to teach the others via knowledge distillation. By combining shared experiences with explicit knowledge transfer, PIEKD drastically improves sample efficiency, cutting the required training time in half for several continuous control benchmarks.
What Problem Does This Paper Address?
Training a single reinforcement learning policy from scratch is notoriously sample-inefficient, requiring massive amounts of trial and error. While ensemble methods—where multiple policies explore the environment and share a common experience replay buffer—help improve exploration and efficiency, they still leave performance on the table.
Previous research has shown that having an RL agent imitate an "expert" can drastically speed up learning. However, in most novel tasks, an expert isn't available. The authors tackle the challenge of generating an expert during the training process and effectively transferring its knowledge to the rest of the ensemble, all without destroying the behavioral diversity that makes ensembles work well in the first place.
Methods
The authors propose Periodic Intra-Ensemble Knowledge Distillation (PIEKD), building it on top of the state-of-the-art Soft Actor-Critic (SAC) algorithm. The learning framework operates in three main phases:
- Ensemble Initialization: $K$ distinct policies and value functions (critics) are randomly initialized. This random initialization naturally leads to diverse exploratory behaviors across the ensemble.
- Joint Training: At each episode, a randomly selected policy interacts with the environment. The resulting trajectory is stored in a shared replay buffer. All policies in the ensemble are then updated using this shared pool of experience via standard off-policy RL updates.
- Intra-Ensemble Knowledge Distillation: Every $I$ timesteps, the framework evaluates the recent performance of all policies and elects the best one as the "teacher." The teacher's knowledge is then distilled into the other "student" policies. Specifically, the students are trained to match the teacher's action probability distributions (using Kullback–Leibler divergence) and value estimates (using Mean Squared Error) on states sampled from the replay buffer.
Datasets
The method is evaluated on standard continuous control tasks from the OpenAI Gym MuJoCo benchmark suite. Specific environments tested include Walker2d-v2, Hopper-v2, Reacher-v2, HumanoidStandup-v2, Humanoid-v2, HalfCheetah-v2, and Ant-v2. No new datasets or benchmarks were introduced.
Key Insights and Ideas
- Distillation > Copying: Naively copying the neural network weights of the best agent to the others actually hurts performance. It destroys the ensemble's diversity, effectively reducing it to a single-policy setup. Distillation transfers the behavior without overwriting the unique underlying representations of the students.
- Distillation > Extra Updates: The performance boost isn't just because the agents are getting more gradient updates. The authors tested a baseline that simply performed extra standard RL updates instead of distillation, and PIEKD still proved superior.
- The "Teacher" Doesn't Have to be Perfect: While electing the best-performing agent as the teacher yields the best results, surprisingly, picking a random agent from the ensemble to act as the teacher still outperforms standard ensemble training. This suggests that the mere act of pulling the policies closer together (perhaps reducing off-policy error) or sharing diverse knowledge is inherently valuable.
Key Results
- 2x Faster Convergence: On most MuJoCo domains, SAC-PIEKD reaches the convergent performance of the baseline methods (Vanilla-SAC and Ensemble-SAC) in less than half the training time (environment interactions).
- A Rising Tide Lifts All Boats: It is not just the top agent that improves. The worst performing agent in the PIEKD ensemble consistently outperforms the standard baseline methods, proving that the distillation process successfully elevates the entire population.
Limitations and Future Work
The authors acknowledge a few limitations and outline promising directions for future research:
- Policy Selection: The current method randomly selects which policy interacts with the environment during joint training. A smarter, more targeted selection strategy could further accelerate learning.
- Homogeneous Architectures: All policies in the ensemble currently use the exact same neural network architecture. The authors suggest that using heterogeneous architectures could allow different agents to specialize in different skills, making the distilled knowledge even richer.
- Theoretical Understanding: The surprising effectiveness of using a random teacher warrants further investigation to fully understand the underlying mechanics of why intra-ensemble distillation works so well (e.g., whether it is primarily driven by shared diverse knowledge or a reduction in off-policy error).
Summary updated