arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.00520cs.CV
收藏

NormKD:用于知识蒸馏的归一化 Logits

NormKD: Normalized Logits for Knowledge Distillation

Zhejiang University(浙江大学);Fabu(法布)

Zhihao Chi, Tu Zheng, Hengjia Li, Zheng Yang, Boxi Wu, Binbin Lin, Deng Cai

AI总结:

本文提出 NormKD 方法,根据样本 logit 分布特征为其定制温度超参数,克服单一温度无法充分蒸馏各样本知识的问题,以极低额外成本显著提升图像分类性能并优于传统方法。

摘要:

近年来,基于 logit 的知识蒸馏获得的关注较少,因为基于特征的方法在大多数情况下表现更好。尽管如此,当我们重新研究温度(一个用于软化 logit 输出的关键超参数)时,我们发现它仍有未被挖掘的潜力。对于大多数先前的工作,在整个蒸馏过程中它被设为固定值。然而,由于来自不同样本的 logit 分布差异很大,仅靠单一温度将它们软化到同等程度是不可行的,这可能使先前的工作对每个样本的知识传递不够充分。在本文中,我们重新研究了超参数温度,并发现当它是单一值时,无法充分蒸馏每个样本的知识。为解决此问题,我们提出了归一化知识蒸馏(NormKD),旨在根据样本 logit 分布的特征为每个样本定制温度。与原始 KD 相比,NormKD 几乎没有额外的计算或存储成本,但在 CIRAR-100 和 ImageNet 图像分类上表现显著更好。此外,NormKD 可轻松应用于其他基于 logit 的方法,并取得更接近甚至优于基于特征方法的性能。

英文摘要:

Logit based knowledge distillation gets less attention in recent years since feature based methods perform better in most cases. Nevertheless, we find it still has untapped potential when we re-investigate the temperature, which is a crucial hyper-parameter to soften the logit outputs. For most of the previous works, it was set as a fixed value for the entire distillation procedure. However, as the logits from different samples are distributed quite variously, it is not feasible to soften all of them to an equal degree by just a single temperature, which may make the previous work transfer the knowledge of each sample inadequately. In this paper, we restudy the hyper-parameter temperature and figure out its incapability to distill the knowledge from each sample sufficiently when it is a single value. To address this issue, we propose Normalized Knowledge Distillation (NormKD), with the purpose of customizing the temperature for each sample according to the characteristic of the sample's logit distribution. Compared to the vanilla KD, NormKD barely has extra computation or storage cost but performs significantly better on CIRAR-100 and ImageNet for image classification. Furthermore, NormKD can be easily applied to the other logit based methods and achieve better performance which can be closer to or even better than the feature based method.

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

↑