arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09030cs.LGcs.CV
收藏

知识蒸馏中基于Logits相关性的自适应温度

Adaptive Temperature Based on Logits Correlation in Knowledge Distillation

University of Cincinnati(辛辛那提大学);Cincinnati Children’s Hospital Medical Center(辛辛那提儿童医院医疗中心)

Kazuhiro Matsuyama, Usman Anjum, Satoko Matsuyama, Tetsuo Shoda, Justin Zhan

AI总结:

本文提出一种仅基于教师模型最大logit计算自适应温度的知识蒸馏方法,降低计算开销,并在标准基准上验证其有效性,同时揭示蒸馏过程与logits相关性的联系。

摘要:

知识蒸馏是一种模仿深度学习模型性能、同时缩小另一个模型规模的技术。它利用一个模型的输出来训练另一个具有可比精度的模型。这两个不同的模型类似于人类社会中信息传递的方式,其中一个充当“教师”,另一个充当“学生”。Softmax通过将logits转换为概率分布,在比较模型生成的logits之间发挥作用。它通过一个名为温度的参数,以压缩的方式将教师的logits传递给学生。调整该变量可以增强蒸馏性能。尽管只有这个参数有助于logits的交互,但温度如何促进信息传递尚不清楚。在本文中,我们提出了一种计算温度的新方法。我们的方法仅参考教师模型生成的最大logit,与最先进的方法相比,减少了计算时间。我们的方法在标准基准数据集上的不同学生和教师模型上展示了有前景的结果。使用温度的算法可以通过插入这种动态方法获得改进。此外,蒸馏过程的近似收敛于两个模型logits之间的相关性。这强化了先前的论点,即蒸馏传递了logits的相关性。我们报告称,在测试中,这种近似算法产生的温度高于常用的静态值。

英文摘要:

Knowledge distillation is a technique to imitate a performance that a deep learning model has, but reduce the size on another model. It applies the outputs of a model to train another model having comparable accuracy. These two distinct models are similar to the way information is delivered in human society, with one acting as the "teacher" and the other as the "student". Softmax plays a role in comparing logits generated by models with each other by converting probability distributions. It delivers the logits of a teacher to a student with compression through a parameter named temperature. Tuning this variable reinforces the distillation performance. Although only this parameter helps with the interaction of logits, it is not clear how temperatures promote information transfer. In this paper, we propose a novel approach to calculate the temperature. Our method only refers to the maximum logit generated by a teacher model, which reduces computational time against state-of-the-art methods. Our method shows a promising result in different student and teacher models on a standard benchmark dataset. Algorithms using temperature can obtain the improvement by plugging in this dynamic approach. Furthermore, the approximation of the distillation process converges to a correlation of logits by both models. This reinforces the previous argument that the distillation conveys the relevance of logits. We report that this approximating algorithm yields a higher temperature compared to the commonly used static values in testing.

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

↑