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

基于响应的网络压缩中的精馏质量控制

Controlling the Quality of Distillation in Response-Based Network Compression

Indiana University Bloomington(印第安纳大学伯明顿分校)

Vibhas Vats, David Crandall

摘要:

基于蒸馏的压缩网络的性能取决于蒸馏的质量。一个大的网络(教师)到一个较小的网络(学生)的次优蒸馏的原因在很大程度上归因于给定的教师-学生对的学习能力的差距。虽然很难提取教师的所有知识,但可以在很大程度上控制提取的质量以获得更好的性能。我们的实验表明,蒸馏的质量在很大程度上取决于教师的反应,这反过来又是严重影响其响应中的相似性信息的存在的质量。一个受过良好训练的大容量教师在学习细粒度的分类鉴别属性的过程中丢失了类之间的相似性信息。相似性信息的缺乏导致蒸馏过程从一个示例-多类学习减少到一个示例-一类学习,从而抑制了来自教师的多样化知识的流动。在隐含的只有灌输的知识才能被提炼的假设下,我们不再只关注知识的提炼过程,而是审视知识的灌输过程。我们认为,对于一个给定的师生对,蒸馏的质量可以提高通过找到批量大小和时代的数量之间的甜蜜点,同时培训教师。我们讨论了找到这个最佳点以更好地蒸馏的步骤。我们还提出了蒸馏假设来区分知识蒸馏和正则化效应之间的蒸馏过程的行为。我们在三个不同的数据集上进行了所有的实验。

英文摘要:

The performance of a distillation-based compressed network is governed by the quality of distillation. The reason for the suboptimal distillation of a large network (teacher) to a smaller network (student) is largely attributed to the gap in the learning capacities of given teacher-student pair. While it is hard to distill all the knowledge of a teacher, the quality of distillation can be controlled to a large extent to achieve better performance. Our experiments show that the quality of distillation is largely governed by the quality of teacher's response, which in turn is heavily affected by the presence of similarity information in its response. A well-trained large capacity teacher loses similarity information between classes in the process of learning fine-grained discriminative properties for classification. The absence of similarity information causes the distillation process to be reduced from one example-many class learning to one example-one class learning, thereby throttling the flow of diverse knowledge from the teacher. With the implicit assumption that only the instilled knowledge can be distilled, instead of focusing only on the knowledge distilling process, we scrutinize the knowledge inculcation process. We argue that for a given teacher-student pair, the quality of distillation can be improved by finding the sweet spot between batch size and number of epochs while training the teacher. We discuss the steps to find this sweet spot for better distillation. We also propose the distillation hypothesis to differentiate the behavior of the distillation process between knowledge distillation and regularization effect. We conduct all our experiments on three different datasets.

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

↑