[Paper Review] Policy Distillation
This paper introduces policy distillation, a method that transfers policies from deep Q-networks (DQN) to smaller, more efficient student networks without performance loss. It enables model compression, multi-task policy consolidation, and online distillation, achieving superior performance over single-task teachers and jointly trained DQN agents in Atari environments.
Policies for complex visual tasks have been successfully learned with deep reinforcement learning, using an approach called deep Q-networks (DQN), but relatively large (task-specific) networks and extensive training are needed to achieve good performance. In this work, we present a novel method called policy distillation that can be used to extract the policy of a reinforcement learning agent and train a new network that performs at the expert level while being dramatically smaller and more efficient. Furthermore, the same method can be used to consolidate multiple task-specific policies into a single policy. We demonstrate these claims using the Atari domain and show that the multi-task distilled agent outperforms the single-task teachers as well as a jointly-trained DQN agent.
Motivation & Objective
- To address the high computational cost and large model size of deep reinforcement learning agents trained via DQN.
- To enable knowledge transfer from large, task-specific DQN agents to smaller, more efficient student networks through distillation.
- To consolidate multiple single-task DQN policies into a single multi-task policy that outperforms individual teachers.
- To explore online distillation for stabilizing DQN training by continuously tracking the best-performing policy during learning.
Proposed method
- Train a student network to mimic the action-value output distribution of a pre-trained DQN teacher using soft labels.
- Use a temperature-scaled softmax to soften the action-value distribution, enabling better knowledge transfer.
- Apply a knowledge distillation loss that weighs action classification by the action gap, similar to the CAPI framework.
- Train the student network using supervised regression on trajectories generated by the teacher policy.
- Implement online distillation by periodically updating the student with the current best-performing DQN policy during training.
- Use a multi-controller architecture with shared convolutional features and task-specific heads to enable multi-game generalization.
Experimental results
Research questions
- RQ1Can policy distillation effectively compress DQN policies into smaller, efficient models without performance degradation?
- RQ2Can multiple single-task DQN policies be distilled into a single multi-task policy that generalizes better than individual teachers?
- RQ3Does online distillation stabilize DQN training by tracking the best-performing policy in real time?
- RQ4How does distillation perform when the teacher policy evolves significantly during training?
- RQ5Which loss function design yields the best performance in distillation for reinforcement learning—especially in non-probabilistic, real-valued action-value settings?
Key findings
- Policy distillation compresses DQN models by up to 15 times in size with no performance degradation on single-game Atari tasks.
- The distilled multi-task agent achieved 89.3% of the geometric mean performance of 10 single-task DQN teachers, outperforming the teachers on several games including Q*bert and Seaquest.
- In a three-game multi-task setting, the distilled agent (Multi-Dist-KL) achieved 116.9% of the performance of single-task DQN teachers, significantly outperforming the jointly trained multi-task DQN agent (83.5%).
- Online distillation resulted in a student agent that matched or exceeded the performance of the DQN teacher while showing significantly reduced training variance.
- The use of a soft-max loss weighted by the action gap (as in CAPI) yielded the best results, demonstrating that careful loss design is critical in RL distillation.
- Distillation in RL is effective even without iterative interaction or control over the data distribution, confirming its role as a general regularization technique.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.