arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.14416cs.LGcs.CVstat.ML
收藏

基于全核矩阵转移的改进知识蒸馏

Improved Knowledge Distillation via Full Kernel Matrix Transfer

Alibaba Group(阿里巴巴集团);University of Washington(华盛顿大学)

Qi Qian, Hao Li, Juhua Hu

摘要:

知识蒸馏是深度学习中模型压缩的一种有效方法。给定一个大型模型(即,教师模型),其目的是提高紧凑模型的性能(即,学生模型)通过传递来自教师的信息。研究了蒸馏的各种信息。近年来,许多研究者提出通过实例间的成对相似度来提取相关信息。然而,大部分的努力都致力于开发不同的相似性度量,而只有一个小的矩阵,包括一个小批量的例子是在每次迭代中转移,可以是低效的优化在整个数据集的成对相似性。在这项工作中,我们的目标是有效地转移完整的相似性矩阵。主要的挑战是来自完整矩阵的大小,它是样本数量的二次方。为了解决这个问题,我们用Nystr{<$}m方法对原始全矩阵进行分解。理论分析表明,通过选择适当的标志点,可以进一步简化传输损耗。具体地说,我们发现教师和学生之间的原始全核矩阵之间的差异可以很好地由相应的部分矩阵,其中只包括原始示例和标志点之间的相似性。与完全矩阵相比,部分矩阵的大小与样本数成线性关系,显著提高了优化效率。在基准数据集上的实验结果表明了该算法的有效性。代码可在\url{https://github.com/idstcv/KDA}上获得。

英文摘要:

Knowledge distillation is an effective way for model compression in deep learning. Given a large model (i.e., teacher model), it aims to improve the performance of a compact model (i.e., student model) by transferring the information from the teacher. Various information for distillation has been studied. Recently, a number of works propose to transfer the pairwise similarity between examples to distill relative information. However, most of efforts are devoted to developing different similarity measurements, while only a small matrix consisting of examples within a mini-batch is transferred at each iteration that can be inefficient for optimizing the pairwise similarity over the whole data set. In this work, we aim to transfer the full similarity matrix effectively. The main challenge is from the size of the full matrix that is quadratic to the number of examples. To address the challenge, we decompose the original full matrix with Nystr{ö}m method. By selecting appropriate landmark points, our theoretical analysis indicates that the loss for transfer can be further simplified. Concretely, we find that the difference between the original full kernel matrices between teacher and student can be well bounded by that of the corresponding partial matrices, which only consists of similarities between original examples and landmark points. Compared with the full matrix, the size of the partial matrix is linear in the number of examples, which improves the efficiency of optimization significantly. The empirical study on benchmark data sets demonstrates the effectiveness of the proposed algorithm. Code is available at \url{https://github.com/idstcv/KDA}.

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

↑