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

AUTOKD:自动知识蒸馏到学生建筑家庭

AUTOKD: Automatic Knowledge Distillation Into A Student Architecture Family

McGill University(麦吉尔大学);MILA(蒙特利尔学习算法研究所);Facebook Research(Facebook研究院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);University of Oxford(牛津大学)

Roy Henha Eyono, Fabio Maria Carlucci, Pedro M Esperança, Binxin Ru, Phillip Torr

摘要:

深度学习的最新成果一直在稳步提高,这在很大程度上是由于使用了更大的模型。然而,广泛的使用受到设备硬件限制的限制,导致最先进的模型与可以有效部署在小型设备上的模型之间存在巨大的性能差距。虽然知识蒸馏(KD)理论上使小的学生模型能够模仿更大的教师模型,但在实践中,选择一个好的学生架构需要相当多的人类专业知识。神经架构搜索(NAS)似乎是这个问题的自然解决方案,但大多数方法可能效率低下,因为大部分计算都花在比较从相同分布中采样的架构上,性能差异可以忽略不计。在本文中,我们建议,而不是寻找一个家庭的学生架构共享的属性是善于从给定的老师学习。我们的方法AutoKD由贝叶斯优化提供支持,探索了一个灵活的基于图的搜索空间,使我们能够自动学习最佳的学生结构分布和KD参数,同时与现有的最先进的技术相比,样本效率提高了20倍。我们在3个数据集上评估了我们的方法;特别是在大型图像上,我们达到了教师的性能,同时使用了3倍的内存和10倍的参数。最后,虽然AutoKD使用传统的KD损失,但它优于使用手工设计学生的更高级KD变体。

英文摘要:

State-of-the-art results in deep learning have been improving steadily, in good part due to the use of larger models. However, widespread use is constrained by device hardware limitations, resulting in a substantial performance gap between state-of-the-art models and those that can be effectively deployed on small devices. While Knowledge Distillation (KD) theoretically enables small student models to emulate larger teacher models, in practice selecting a good student architecture requires considerable human expertise. Neural Architecture Search (NAS) appears as a natural solution to this problem but most approaches can be inefficient, as most of the computation is spent comparing architectures sampled from the same distribution, with negligible differences in performance. In this paper, we propose to instead search for a family of student architectures sharing the property of being good at learning from a given teacher. Our approach AutoKD, powered by Bayesian Optimization, explores a flexible graph-based search space, enabling us to automatically learn the optimal student architecture distribution and KD parameters, while being 20x more sample efficient compared to existing state-of-the-art. We evaluate our method on 3 datasets; on large images specifically, we reach the teacher performance while using 3x less memory and 10x less parameters. Finally, while AutoKD uses the traditional KD loss, it outperforms more advanced KD variants using hand-designed students.

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

↑