改进知识蒸馏中的概率不平衡问题,提升小模型性能
Balance Divergence for Knowledge Distillation
- 用反向KL散度补偿教师网络的细微负向信息
- 在CIFAR-100和ImageNet上提升小模型准确率1%~3%
- 适用于各类蒸馏方法,简单易用且效果显著
知识蒸馏广泛应用于计算机视觉任务中,通过从大模型(教师)向小模型(学生)迁移知识来提升后者性能。现有方法多使用Kullback-Leibler散度模仿教师与学生输出的概率分布,但该方法可能忽略教师输出中极小概率所包含的‘暗知识’,导致学生学习不均衡。本文提出平衡散度蒸馏(Balance Divergence Distillation),引入反向KL散度进行补偿,增强对教师网络中微小概率值的建模能力,同时保留正向知识的学习能力。通过调节温度系数进一步优化知识传递平衡性。在图像分类和语义分割任务上的实验表明,该方法在CIFAR-100和ImageNet上使轻量级学生模型准确率提升1%~3%,在Cityscapes数据集上使PSP-ResNet18的mIoU提升4.55%。结果证明该方法简单有效,可无缝集成至多种知识蒸馏框架。
原文摘要 · Abstract (English)
Knowledge distillation has been widely adopted in computer vision task processing, since it can effectively enhance the performance of lightweight student networks by leveraging the knowledge transferred from cumbersome teacher networks. Most existing knowledge distillation methods utilize Kullback-Leibler divergence to mimic the logit output probabilities between the teacher network and the student network. Nonetheless, these methods may neglect the negative parts of the teacher's ''dark knowledge'' because the divergence calculations may ignore the effect of the minute probabilities from the teacher's logit output. This deficiency may lead to suboptimal performance in logit mimicry during the distillation process and result in an imbalance of information acquired by the student network. In this paper, we investigate the impact of this imbalance and propose a novel method, named Balance Divergence Distillation. By introducing a compensatory operation using reverse Kullback-Leibler divergence, our method can improve the modeling of the extremely small values in the negative from the teacher and preserve the learning capacity for the positive. Furthermore, we test the impact of different temperature coefficients adjustments, which may conducted to further balance for knowledge transferring. We evaluate the proposed method on several computer vision tasks, including image classification and semantic segmentation. The evaluation results show that our method achieves an accuracy improvement of 1%~3% for lightweight students on both CIFAR-100 and ImageNet dataset, and a 4.55% improvement in mIoU for PSP-ResNet18 on the Cityscapes dataset. The experiments show that our method is a simple yet highly effective solution that can be smoothly applied to different knowledge distillation methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。