arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2302.10494cs.LGcs.CV

掩码在 Vision Transformers 高效监督知识蒸馏中的作用

The Role of Masking for Efficient Supervised Knowledge Distillation of Vision Transformers

Pohang University of Science and Technology (POSTECH)(浦项科技大学(POSTECH))

Seungwoo Son, Jegwang Ryu, Namhoon Lee, Jaeho Lee

AI总结:

本文提出一种基于掩蔽输入 token 的简单框架,以降低 ViT 知识蒸馏的监督成本,通过掩蔽学生注意力最低的 patch,可节省高达 50% 的教师 FLOPs 且不损失学生准确率。

摘要:

知识蒸馏是训练轻量级视觉模型的有效方法。然而,为训练样本获取教师监督通常成本高昂,尤其是从 vision transformers (ViTs) 等大规模模型中获取。在本文中,我们开发了一个简单的框架来降低 ViT 蒸馏的监督成本:掩蔽掉输入给教师模型的一部分 token。通过掩蔽输入 token,可以跳过与被掩蔽 token 相关的计算,而无需对教师模型的参数或架构进行任何更改。我们发现,掩蔽具有最低学生注意力分数的 patch 非常有效,可节省高达 50% 的教师 FLOPs 而学生准确率没有任何下降,而其他掩蔽准则则导致次优的效率提升。通过深入分析,我们揭示了学生引导的掩蔽为学生提供了良好的课程,使教师监督在早期阶段更容易遵循,而在后期阶段更具挑战性。

英文摘要:

Knowledge distillation is an effective method for training lightweight vision models. However, acquiring teacher supervision for training samples is often costly, especially from large-scale models like vision transformers (ViTs). In this paper, we develop a simple framework to reduce the supervision cost of ViT distillation: masking out a fraction of input tokens given to the teacher. By masking input tokens, one can skip the computations associated with the masked tokens without requiring any change to teacher parameters or architecture. We find that masking patches with the lowest student attention scores is highly effective, saving up to 50% of teacher FLOPs without any drop in student accuracy, while other masking criterion leads to suboptimal efficiency gains. Through in-depth analyses, we reveal that the student-guided masking provides a good curriculum to the student, making teacher supervision easier to follow during the early stage and challenging in the later stage.

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

↑