Feature distillation is an effective way to improve the performance for a smaller student model, which has fewer parameters and lower computation cost compared to the larger teacher model. Unfortunately, there is a common obstacle - the gap in semantic feature structure between the intermediate features of teacher and student. The classic scheme prefers to transform intermediate features by adding the adaptation module, such as naive convolutional, attention-based or more complicated one. However, this introduces two problems: a) The adaptation module brings more parameters into training. b) The adaptation module with random initialization or special transformation isn't friendly for distilling a pre-trained student. In this paper, we present Matching Guided Distillation (MGD) as an efficient and parameter-free manner to solve these problems. The key idea of MGD is to pose matching the teacher channels with students' as an assignment problem. We compare three solutions of the assignment problem to reduce channels from teacher features with partial distillation loss. The overall training takes a coordinate-descent approach between two optimization objects - assignments update and parameters update. Since MGD only contains normalization or pooling operations with negligible computation cost, it is flexible to plug into network with other distillation methods.
翻译:微量蒸馏是改善小型学生模式绩效的有效方法,该模式的参数较少,计算成本也比较大的教师模式低。不幸的是,有一个常见的障碍――教师和学生中间特征之间在语义特征结构上的差距。经典方案倾向于通过添加适应模块来改变中间特征,如天真的演进、关注或更复杂的模块。然而,这带来了两个问题:(a)适应模块为培训带来了更多的参数。b)随机初始化或特殊转换的适应模块对培养受过培训的学生不友好。在本文中,我们提出匹配制导蒸馏(MGD)作为解决这些问题的高效和无参数的方式。MGD的关键想法是将教师的渠道与学生的分派问题相匹配。我们比较分配问题的三种解决方案是为了减少教师特征的渠道和部分蒸馏损失。总体培训在两种优化对象-任务更新和参数更新之间采用协调白化方法。由于MGD仅包含可忽略的计算成本的正常化或集中操作,因此它灵活地将连接成网络。