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

面向图像复原模型压缩的融合多维跨网络注意力的软知识蒸馏

Soft Knowledge Distillation with Multi-Dimensional Cross-Net Attention for Image Restoration Models Compression

State Key Laboratory of Networking and Switching Technology, BUPT(网络与交换技术国家重点实验室,北京邮电大学)

Yongheng Zhang, Danfeng Yan

AI总结:

针对图像复原中Transformer模型计算复杂度高的问题,提出融合多维跨网络注意力的软知识蒸馏策略,结合高斯核特征度量与图像级对比损失,实现模型压缩的同时保留优异复原性能。

摘要:

基于Transformer的编码器-解码器模型已在图像到图像转换任务,尤其是图像复原任务中取得了显著成效。然而,这类模型计算复杂度高——体现为浮点运算量(FLOPs)和参数量居高不下——限制了其在实际场景中的应用。现有图像复原领域的知识蒸馏方法通常采用轻量型学生模型直接模仿教师模型的中间特征与重建结果,却忽略了二者之间隐含的注意力关联。为解决这一问题,我们提出一种融合多维跨网络注意力(Multi-dimensional Cross-net Attention,简称MCA)机制的软知识蒸馏(Soft Knowledge Distillation,简称SKD)策略,用于图像复原模型压缩。该机制可促进学生模型与教师模型在通道和空间两个维度上的交互,使学生模型能够隐式学习注意力矩阵。此外,我们采用高斯核函数在核空间中度量学生与教师特征之间的距离,确保特征学习稳定且高效。为进一步提升重建图像的质量,我们在图像层面采用对比学习损失,替代了常用的L1损失或KL散度损失。在图像去雨、去模糊和去噪三项任务上的实验表明,我们的SKD策略在大幅降低计算复杂度的同时,仍能保持出色的图像复原能力。

英文摘要:

Transformer-based encoder-decoder models have achieved remarkable success in image-to-image transfer tasks, particularly in image restoration. However, their high computational complexity-manifested in elevated FLOPs and parameter counts-limits their application in real-world scenarios. Existing knowledge distillation methods in image restoration typically employ lightweight student models that directly mimic the intermediate features and reconstruction results of the teacher, overlooking the implicit attention relationships between them. To address this, we propose a Soft Knowledge Distillation (SKD) strategy that incorporates a Multi-dimensional Cross-net Attention (MCA) mechanism for compressing image restoration models. This mechanism facilitates interaction between the student and teacher across both channel and spatial dimensions, enabling the student to implicitly learn the attention matrices. Additionally, we employ a Gaussian kernel function to measure the distance between student and teacher features in kernel space, ensuring stable and efficient feature learning. To further enhance the quality of reconstructed images, we replace the commonly used L1 or KL divergence loss with a contrastive learning loss at the image level. Experiments on three tasks-image deraining, deblurring, and denoising-demonstrate that our SKD strategy significantly reduces computational complexity while maintaining strong image restoration capabilities.

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

↑