arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.00793cs.CVcs.LG
收藏

深度动态神经网络中的嵌入式知识蒸馏

Embedded Knowledge Distillation in Depth-Level Dynamic Neural Network

Beihang University(北京航空航天大学);SenseTime Research(商汤科技研究院)

Qi Zhao, Shuchang Lyu, Zhiwei Zhang, Ting-Bing Xu, Guangliang Cheng

摘要:

在实际应用中,不同的计算资源设备需要不同深度的网络(例如,ResNet-18/34/50),具有高精度。现有的方法要么设计多个网络并对其进行独立的训练,要么构造深度级/宽度级动态神经网络,难以证明每个子网的精度。在这篇文章中,我们提出了一个优雅的深度级动态神经网络(DDNN)集成了类似架构的不同深度子网。为了提高子网的泛化能力,设计了嵌入式知识蒸馏(Embedded-Knowledge-Distillation,EKD)训练机制,实现教师(全网)到多个学生(子网)的知识转移。具体而言,引入KL散度约束全网和子网之间的后验类概率一致性,并对不同深度的相同分辨率特征进行自注意蒸馏,以驱动更丰富的子网特征表示。因此,我们可以同时获得多个高精度子网在DDNN通过在线知识蒸馏在每次训练迭代,而无需额外的计算成本。在CIFAR-10/100和ImageNet数据集上进行的大量实验表明,使用EKD训练的DDNN中的子网比单独训练网络的性能更好,同时保持了全网的原始性能。

英文摘要:

In real applications, different computation-resource devices need different-depth networks (e.g., ResNet-18/34/50) with high-accuracy. Usually, existing methods either design multiple networks and train them independently, or construct depth-level/width-level dynamic neural networks which is hard to prove the accuracy of each sub-net. In this article, we propose an elegant Depth-Level Dynamic Neural Network (DDNN) integrated different-depth sub-nets of similar architectures. To improve the generalization of sub-nets, we design the Embedded-Knowledge-Distillation (EKD) training mechanism for the DDNN to implement knowledge transfer from the teacher (full-net) to multiple students (sub-nets). Specifically, the Kullback-Leibler (KL) divergence is introduced to constrain the posterior class probability consistency between full-net and sub-nets, and self-attention distillation on the same resolution feature of different depth is addressed to drive more abundant feature representations of sub-nets. Thus, we can obtain multiple high-accuracy sub-nets simultaneously in a DDNN via the online knowledge distillation in each training iteration without extra computation cost. Extensive experiments on CIFAR-10/100, and ImageNet datasets demonstrate that sub-nets in DDNN with EKD training achieve better performance than individually training networks while preserving the original performance of full-nets.

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

↑