KDExplainer:一个解释知识蒸馏的任务导向注意模型
KDExplainer: A Task-oriented Attention Model for Explaining Knowledge Distillation
摘要:
知识蒸馏(KD)最近已经成为学习紧凑深度神经网络(DNN)的有效方案。尽管取得了令人鼓舞的结果,解释KD行为的基本原理仍然在很大程度上研究不足。在本文中,我们介绍了一种新的面向任务的注意力模型,称为KDExplainer,揭示了香草KD的工作机制。KDSplainer的核心是一个分层混合专家模型(HME),其中多类分类被重新表述为多任务二进制分类。通过从自由形式的预训练DNN中提取知识到KDExplainer,我们观察到KD隐含地调节了不同子任务之间的知识冲突,实际上比标签平滑提供的更多。基于这些发现,我们进一步介绍了一个便携式工具,称为虚拟注意力模块(VAM),可以与各种DNN无缝集成,以提高其在KD下的性能。实验结果表明,在可以忽略不计的额外成本下,配备VAM的学生模型在不同的基准测试中始终优于非VAM模型。此外,当与其他KD方法相结合时,VAM仍然能够促进结果,即使它只是由香草KD驱动。该代码可在https://github.com/zju-vipa/KDExplainer上获得。
英文摘要:
Knowledge distillation (KD) has recently emerged as an efficacious scheme for learning compact deep neural networks (DNNs). Despite the promising results achieved, the rationale that interprets the behavior of KD has yet remained largely understudied. In this paper, we introduce a novel task-oriented attention model, termed as KDExplainer, to shed light on the working mechanism underlying the vanilla KD. At the heart of KDExplainer is a Hierarchical Mixture of Experts (HME), in which a multi-class classification is reformulated as a multi-task binary one. Through distilling knowledge from a free-form pre-trained DNN to KDExplainer, we observe that KD implicitly modulates the knowledge conflicts between different subtasks, and in reality has much more to offer than label smoothing. Based on such findings, we further introduce a portable tool, dubbed as virtual attention module (VAM), that can be seamlessly integrated with various DNNs to enhance their performance under KD. Experimental results demonstrate that with a negligible additional cost, student models equipped with VAM consistently outperform their non-VAM counterparts across different benchmarks. Furthermore, when combined with other KD methods, VAM remains competent in promoting results, even though it is only motivated by vanilla KD. The code is available at https://github.com/zju-vipa/KDExplainer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。