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

FreeKD:基于语义频率提示的知识蒸馏

FreeKD: Knowledge Distillation via Semantic Frequency Prompt

National Key Laboratory for Multimedia Information Processing(多媒体信息处理国家重点实验室);School of Computer Science, Peking University(北京大学计算机学院);The University of Sydney(悉尼大学);Zhejiang University(浙江大学)

Yuan Zhang, Tao Huang, Jiaming Liu, Tao Jiang, Kuan Cheng, Shanghang Zhang

AI总结:

FreeKD通过频率提示和像素级频率掩码,在频率域进行知识蒸馏,提升密集预测任务中学生模型的精度与鲁棒性。

摘要:

知识蒸馏(KD)已成功应用于各种任务,主流方法通常通过空间模仿损失来提升学生模型。然而,教师模型在空间域中引入的连续下采样是一种损坏,阻碍了学生分析需要模仿哪些特定信息,从而导致精度下降。为了更好地理解损坏特征图的潜在模式,我们将注意力转向频率域。在频率蒸馏过程中,我们遇到了一个新挑战:低频带传达一般但极少的上下文,而高频带信息更丰富但也引入噪声。并非频率带内的每个像素都对性能有同等贡献。为了解决上述问题:(1)我们提出了插入教师模型的频率提示(Frequency Prompt),在微调期间吸收语义频率上下文。(2)在蒸馏期间,通过频率提示生成像素级频率掩码,以定位不同频带中的感兴趣像素(PoIs)。此外,我们为密集预测任务采用了位置感知的关系频率损失,为学生模型提供高阶空间增强。我们将我们的频率知识蒸馏方法称为FreeKD,它确定了频率蒸馏的最佳定位和范围。大量实验表明,FreeKD不仅在密集预测任务上持续优于基于空间的蒸馏方法(例如,FreeKD在COCO2017上为RepPoints-R50带来3.8 AP的提升,在Cityscapes上为PSPNet-R18带来4.55 mIoU的提升),而且为学生模型传递了更强的鲁棒性。值得注意的是,我们还验证了我们的方法在大规模视觉模型(如DINO和SAM)上的泛化能力。

英文摘要:

Knowledge distillation (KD) has been applied to various tasks successfully, and mainstream methods typically boost the student model via spatial imitation losses. However, the consecutive downsamplings induced in the spatial domain of teacher model is a type of corruption, hindering the student from analyzing what specific information needs to be imitated, which results in accuracy degradation. To better understand the underlying pattern of corrupted feature maps, we shift our attention to the frequency domain. During frequency distillation, we encounter a new challenge: the low-frequency bands convey general but minimal context, while the high are more informative but also introduce noise. Not each pixel within the frequency bands contributes equally to the performance. To address the above problem: (1) We propose the Frequency Prompt plugged into the teacher model, absorbing the semantic frequency context during finetuning. (2) During the distillation period, a pixel-wise frequency mask is generated via Frequency Prompt, to localize those pixel of interests (PoIs) in various frequency bands. Additionally, we employ a position-aware relational frequency loss for dense prediction tasks, delivering a high-order spatial enhancement to the student model. We dub our Frequency Knowledge Distillation method as FreeKD, which determines the optimal localization and extent for the frequency distillation. Extensive experiments demonstrate that FreeKD not only outperforms spatial-based distillation methods consistently on dense prediction tasks (e.g., FreeKD brings 3.8 AP gains for RepPoints-R50 on COCO2017 and 4.55 mIoU gains for PSPNet-R18 on Cityscapes), but also conveys more robustness to the student. Notably, we also validate the generalization of our approach on large-scale vision models (e.g., DINO and SAM).

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

↑