[Paper Review] Do Not Blindly Imitate the Teacher: Using Perturbed Loss for Knowledge Distillation
This paper proposes PTLoss, a novel knowledge distillation loss that improves student model performance by perturbing the standard KL divergence loss using a Maclaurin series expansion, thereby implicitly creating a proxy teacher with a distribution closer to the ground truth. The method achieves state-of-the-art distillation performance across five datasets by systematically optimizing perturbation coefficients to minimize distributional deviation from the true labels.
Knowledge distillation is a popular technique to transfer knowledge from large teacher models to a small student model. Typically, the student learns to imitate the teacher by minimizing the KL divergence of its output distribution with the teacher's output distribution. In this work, we argue that such a learning objective is sub-optimal because there exists a discrepancy between the teacher's output distribution and the ground truth label distribution. Therefore, forcing the student to blindly imitate the unreliable teacher output distribution leads to inferior performance. To this end, we propose a novel knowledge distillation objective PTLoss by first representing the vanilla KL-based distillation loss function via a Maclaurin series and then perturbing the leading-order terms in this series. This perturbed loss implicitly transforms the original teacher into a proxy teacher with a distribution closer to the ground truth distribution. We establish the theoretical connection between this "distribution closeness" and the student model generalizability, which enables us to select the PTLoss's perturbation coefficients in a principled way. Extensive experiments on five datasets demonstrate PTLoss can significantly improve the distillation effectiveness for teachers of various scales.
Motivation & Objective
- To address the suboptimal performance of knowledge distillation when the teacher model's output distribution deviates from the ground truth.
- To overcome the limitation of standard KL loss, which blindly forces the student to imitate potentially biased teacher outputs.
- To develop a principled method for selecting perturbation coefficients in the distillation objective to reduce distillation risk.
- To theoretically and empirically justify that perturbing the loss function leads to a more accurate proxy teacher distribution.
- To demonstrate that PTLoss generalizes and improves upon existing techniques like temperature scaling and label smoothing.
Proposed method
- Represent the standard KL-based distillation loss as a Maclaurin series expansion to enable analytical manipulation.
- Perturb the leading-order terms of the Maclaurin series to create a modified, more flexible loss function—PTLoss.
- Define a 'proxy teacher' distribution as the implicit output distribution induced by the perturbed loss, which is closer to the ground truth than the original teacher.
- Optimize the perturbation coefficients by minimizing the empirical deviation between the proxy teacher and the true label distribution on a validation set.
- Establish a theoretical connection between the PTLoss and reduced distillation risk, showing improved generalization bounds.
- Demonstrate that PTLoss subsumes existing methods like temperature scaling and label smoothing as special cases.
Experimental results
Research questions
- RQ1Can perturbing the standard KL loss function lead to a more accurate proxy teacher distribution that reduces distillation error?
- RQ2How can perturbation coefficients in the loss function be systematically selected to minimize the discrepancy between the proxy teacher and the ground truth?
- RQ3Does PTLoss outperform standard knowledge distillation and existing loss-modification techniques in terms of student model generalization?
- RQ4What is the theoretical justification for why PTLoss reduces distillation risk compared to vanilla KL loss?
- RQ5Can PTLoss be generalized to subsume other loss functions like temperature scaling and label smoothing?
Key findings
- PTLoss significantly improves student model accuracy across five diverse datasets, including ImageNet, CIFAR-100, and ANLI, outperforming standard KL loss and prior state-of-the-art methods.
- On the ANLI benchmark, PTLoss achieved a 2.1% absolute improvement in accuracy over standard KL loss when using a T5-large teacher.
- On CIFAR-100, PTLoss outperformed baseline methods such as Tf-KD_self, even though those were specifically designed for vision tasks.
- The method demonstrated consistent gains across teacher models of varying sizes, indicating robustness to teacher capacity.
- Theoretical analysis confirms that PTLoss reduces the distillation risk bound by minimizing the deviation between the proxy teacher and the true label distribution.
- Empirical validation shows that PTLoss can be interpreted as a generalization of temperature scaling and label smoothing, with finer control over the distillation objective.
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.