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

面向知识蒸馏的频率注意力机制

Frequency Attention for Knowledge Distillation

Monash University(莫纳什大学);University of Surrey(萨里大学)

Cuong Pham, Van-Anh Nguyen, Trung Le, Dinh Phung, Gustavo Carneiro, Thanh-Toan Do

AI总结:

针对现有空间域注意力蒸馏难以捕获全局信息的问题,提出频域注意力模块,通过可学习全局滤波器在教师特征指导下调整学生特征频率,并结合知识回顾构建增强蒸馏模型,在分类和检测任务上性能优于现有方法。

摘要:

知识蒸馏是学习紧凑深度神经网络的一种极具吸引力的方法,它通过从复杂的教师模型中蒸馏知识来训练轻量级的学生模型。基于注意力的知识蒸馏是基于中间特征的知识蒸馏的一种特定形式,它利用注意力机制促使学生模型更好地模仿教师模型。然而,以往大多数基于注意力的蒸馏方法都在空间域执行注意力操作,这类操作主要影响输入图像中的局部区域。当我们需要捕获有效知识迁移所必需的更广泛上下文或全局信息时,这种方式可能不足以满足需求。在频域中,由于每个频率分量都是由空间域图像的所有像素计算得到的,因此它可以包含图像的全局信息。受频域优势的启发,我们提出了一种在频域中发挥注意力机制作用的新型模块。该模块包含一个可学习的全局滤波器,能够在教师特征的指导下调整学生特征的频率分量,从而促使学生特征呈现出与教师特征相似的模式。随后,我们利用所提出的频率注意力模块,构建了一种增强型的基于知识回顾的蒸馏模型。我们在图像分类和目标检测基准数据集上,使用多种教师与学生架构开展了大量实验,结果表明所提出的方法性能优于其他知识蒸馏方法。

英文摘要:

Knowledge distillation is an attractive approach for learning compact deep neural networks, which learns a lightweight student model by distilling knowledge from a complex teacher model. Attention-based knowledge distillation is a specific form of intermediate feature-based knowledge distillation that uses attention mechanisms to encourage the student to better mimic the teacher. However, most of the previous attention-based distillation approaches perform attention in the spatial domain, which primarily affects local regions in the input image. This may not be sufficient when we need to capture the broader context or global information necessary for effective knowledge transfer. In frequency domain, since each frequency is determined from all pixels of the image in spatial domain, it can contain global information about the image. Inspired by the benefits of the frequency domain, we propose a novel module that functions as an attention mechanism in the frequency domain. The module consists of a learnable global filter that can adjust the frequencies of student's features under the guidance of the teacher's features, which encourages the student's features to have patterns similar to the teacher's features. We then propose an enhanced knowledge review-based distillation model by leveraging the proposed frequency attention module. The extensive experiments with various teacher and student architectures on image classification and object detection benchmark datasets show that the proposed approach outperforms other knowledge distillation methods.

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

↑