Skip to main content
QUICK REVIEW

[论文解读] Learning Student-Friendly Teacher Networks for Knowledge Distillation

Dae Young Park, Moon-Hyun Cha|arXiv (Cornell University)|Feb 12, 2021
Domain Adaptation and Few-Shot LearningComputer Science参考文献 43被引用 45
一句话总结

提出一种两阶段培训教师网络以便于学生学习的方案,联合训练学生分支与教师,提升在不同架构和 KD 方法上的蒸馏性能。

ABSTRACT

We propose a novel knowledge distillation approach to facilitate the transfer of dark knowledge from a teacher to a student. Contrary to most of the existing methods that rely on effective training of student models given pretrained teachers, we aim to learn the teacher models that are friendly to students and, consequently, more appropriate for knowledge transfer. In other words, at the time of optimizing a teacher model, the proposed algorithm learns the student branches jointly to obtain student-friendly representations. Since the main goal of our approach lies in training teacher models and the subsequent knowledge distillation procedure is straightforward, most of the existing knowledge distillation methods can adopt this technique to improve the performance of diverse student models in terms of accuracy and convergence speed. The proposed algorithm demonstrates outstanding accuracy in several well-known knowledge distillation techniques with various combinations of teacher and student models even in the case that their architectures are heterogeneous and there is no prior knowledge about student models at the time of training teacher networks.

研究动机与目标

  • 通过让教师易于向学生转移知识来提升知识蒸馏,而非依赖预训练教师。
  • 引入 Saintudent-Friendly Teacher Network (SFTN) 框架,与辅助学生分支一起训练教师。
  • 证明 SFTN 能在多个数据集(CIFAR-100、ImageNet)和蒸馏算法下提升准确性与收敛性。
  • 展示 SFTN 在异构教师–学生对和不同架构中的通用性。
  • 强调实际考虑因素,如超参数效应及与预训练教师的结合使用。

提出的方法

  • 将教师和学生网络模块化为块,并通过变换层将学生分支附加到教师端。
  • 共同训练教师和学生分支,最小化以下组合损失:基于地面真值的教师损失、学生输出与教师输出之间的 KL 散度,以及学生分支的交叉熵损失。
  • 在逻辑层级进行蒸馏,其中每个学生分支通过一个特征变换 T 将对应的教师块镜像,以对齐维度。
  • 蒸馏阶段随后应用标准 KD,使用学习到的教师 logits q_T 和变换后的学生 logits q_R^i。
  • 优化总的 SFTN 损失:L_SFTN = lambda_T L_T + lambda_R^KL L_R^KL + lambda_R^CE L_R^CE,KL 期间使用 softmax 平滑的温度参数。

实验结果

研究问题

  • RQ1用与学生分支共同训练教师是否比预训练教师更易转移至学生的表示?
  • RQ2SFTN 是否能在不同的 KD 算法和架构上提升蒸馏性能,包括异构的教师–学生对?
  • RQ3超参数(softmax 温度、KL 权重)如何影响在 SFTN 下知识转移的有效性?
  • RQ4在使用预训练教师以降低训练成本时,SFTN 是否仍然有效?
  • RQ5SFTN 将蒸馏带来的好处扩展到培训期间未看见的具有不同容量或架构的学生模型上有多大程度?

主要发现

  • SFTN 提升了在 CIFAR-100 和 ImageNet 上多数 KD 基线的学生准确性。
  • 在 CIFAR-100 上,与标准教师相比的平均提升约为 1.58 个百分点。
  • 即使教师准确度未达到最大化,SFTN 也能带来显著收益,并在异构教师–学生对中持续受益。
  • ImageNet 实验显示 SFTN 始终优于标准教师,最佳学生的 top-1 比标准教师高约 0.5 个百分点。
  • SFTN 在各种 KD 算法(如 KD、FitNet、AT、SP、CRD、SSKD、OH)和架构中仍然有效。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。