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

一种用于视觉识别的快速知识蒸馏框架

A Fast Knowledge Distillation Framework for Visual Recognition

CMU(卡内基梅隆大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Zhiqiang Shen, Eric Xing

摘要:

虽然知识蒸馏(KD)已被认为是许多视觉任务中的有用工具,如监督分类和自监督表示学习,但普通KD框架的主要缺点是其机制,该机制消耗了通过巨型教师网络转发的大部分计算开销,使得整个学习过程效率低下且成本高昂。最近提出的解决方案ReLabel建议为整个图像创建标签映射。在训练过程中,它通过在预先生成的整个标签映射上对齐RoI来接收裁剪的区域级标签,从而无需多次通过教师即可实现高效的监督生成。然而,由于KD教师来自传统的多作物培训,在该技术中,存在各种全球标签地图和区域级标签之间的不匹配,导致性能恶化。在这项研究中,我们提出了一个快速知识蒸馏(FKD)框架,该框架复制了蒸馏训练阶段,并使用多作物KD方法生成软标签,同时训练速度比ReLabel更快,因为没有使用RoI对齐和softmax操作等后处理。当在同一图像中进行多裁剪以进行数据加载时,我们的FKD甚至比传统的图像分类框架更有效。在ImageNet-1 K上,我们使用ResNet-50获得了79.8%,比ReLabel快了约1.0%。在自监督学习任务上,我们也证明了FKD具有效率优势。我们的项目页面:http://zhiqiangshen.com/projects/FKD/index.html,源代码和模型可以在https://github.com/szq0214/FKD上找到。

英文摘要:

While Knowledge Distillation (KD) has been recognized as a useful tool in many visual tasks, such as supervised classification and self-supervised representation learning, the main drawback of a vanilla KD framework is its mechanism, which consumes the majority of the computational overhead on forwarding through the giant teacher networks, making the entire learning procedure inefficient and costly. ReLabel, a recently proposed solution, suggests creating a label map for the entire image. During training, it receives the cropped region-level label by RoI aligning on a pre-generated entire label map, allowing for efficient supervision generation without having to pass through the teachers many times. However, as the KD teachers are from conventional multi-crop training, there are various mismatches between the global label-map and region-level label in this technique, resulting in performance deterioration. In this study, we present a Fast Knowledge Distillation (FKD) framework that replicates the distillation training phase and generates soft labels using the multi-crop KD approach, while training faster than ReLabel since no post-processes such as RoI align and softmax operations are used. When conducting multi-crop in the same image for data loading, our FKD is even more efficient than the traditional image classification framework. On ImageNet-1K, we obtain 79.8% with ResNet-50, outperforming ReLabel by ~1.0% while being faster. On the self-supervised learning task, we also show that FKD has an efficiency advantage. Our project page: http://zhiqiangshen.com/projects/FKD/index.html, source code and models are available at: https://github.com/szq0214/FKD.

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

↑