arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.15112cs.LG
收藏

向老师学习得更少或更多:利用三角几何关系进行知识蒸馏

Less or More From Teacher: Exploiting Trilateral Geometry For Knowledge Distillation

McGill University(麦吉尔大学);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);City University of Hong Kong(香港城市大学);Concordia University(康考迪亚大学);Western University(西安大略大学)

Chengming Hu, Haolun Wu, Xuan Li, Chen Ma, Xi Chen, Jun Yan, Boyu Wang, Xue Liu

AI总结:

本文提出一种自适应样本级知识融合比例方法,通过构建学生预测、教师预测与真实标签间的样本内三角几何关系及跨样本全局关系,利用双层优化学习融合比例,在图像分类、攻击检测和点击率预测任务上取得一致提升。

摘要:

知识蒸馏旨在利用来自大型教师网络的软监督和来自真实标签的硬监督来训练紧凑的学生网络。然而,确定平衡这些监督信号的最佳知识融合比例仍然具有挑战性。先前的方法通常采用固定或基于启发式的融合比例,这往往难以达到适当的平衡。在本研究中,我们提出了一种新颖的自适应方法来学习样本级知识融合比例,该方法利用了教师和学生的正确性,以及学生在每个样本上对教师的模仿程度。我们的方法自然地引出了学生预测($S$)、教师预测($T$)和真实标签($G$)之间的样本内三角几何关系。为了抵消异常值的影响,我们进一步扩展到样本间关系,将教师对同一类别内样本的全局平均预测 $\ar{T}$ 纳入考虑。然后,一个简单的神经网络以双层优化的方式学习从样本内和样本间关系到自适应样本级知识融合比例的隐式映射。我们的方法为知识蒸馏提供了一个简单、实用且适应性强的解决方案,可应用于各种架构和模型规模。大量实验表明,在图像分类、攻击检测和点击率预测任务上,该方法相比其他损失重加权方法均取得了一致的改进。

英文摘要:

Knowledge distillation aims to train a compact student network using soft supervision from a larger teacher network and hard supervision from ground truths. However, determining an optimal knowledge fusion ratio that balances these supervisory signals remains challenging. Prior methods generally resort to a constant or heuristic-based fusion ratio, which often falls short of a proper balance. In this study, we introduce a novel adaptive method for learning a sample-wise knowledge fusion ratio, exploiting both the correctness of teacher and student, as well as how well the student mimics the teacher on each sample. Our method naturally leads to the intra-sample trilateral geometric relations among the student prediction ($S$), teacher prediction ($T$), and ground truth ($G$). To counterbalance the impact of outliers, we further extend to the inter-sample relations, incorporating the teacher's global average prediction $\bar{T}$ for samples within the same class. A simple neural network then learns the implicit mapping from the intra- and inter-sample relations to an adaptive, sample-wise knowledge fusion ratio in a bilevel-optimization manner. Our approach provides a simple, practical, and adaptable solution for knowledge distillation that can be employed across various architectures and model sizes. Extensive experiments demonstrate consistent improvements over other loss re-weighting methods on image classification, attack detection, and click-through rate prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑