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

GLMHA:一种用于高效图像恢复和光谱重建的引导低秩多头自注意力机制

GLMHA A Guided Low-rank Multi-Head Self-Attention for Efficient Image Restoration and Spectral Reconstruction

Edith Cowan University(伊迪丝·考恩大学);The University of Melbourne(墨尔本大学)

Zaid Ilyas, Naveed Akhtar, David Suter, Syed Zulqarnain Gilani

AI总结:

本文提出GLMHA低秩多头自注意力机制,以替代CSA,在保持图像恢复与光谱重建性能的同时显著降低FLOPs和参数量。

摘要:

图像恢复和光谱重建是长期存在的计算机视觉任务。目前,CNN-Transformer混合模型在这些任务上提供了最先进的性能。这些模型架构设计中的关键共同组成部分是通道级自注意力(CSA)。我们首先表明CSA整体上是一种低秩运算。然后,我们提出了一种实例引导的低秩多头自注意力(GLMHA)来替代CSA,以在紧密保持原始模型性能的同时获得可观的计算收益。所提出的GLMHA的独特之处在于它能够为短输入序列和长输入序列都提供计算收益。具体而言,该收益体现在浮点运算次数(FLOPs)和参数量减少两个方面。这与现有的流行计算复杂度降低技术(例如Linformer、Performer和Reformer)形成对比,对于这些现有方法,FLOPs开销压倒了针对较短输入序列的高效设计技巧。此外,现有方法中参数量的减少仍未得到考虑。我们通过用GLMHA增强性能最佳的模型,对从RGB图像进行光谱重建、从快照压缩成像进行光谱重建、运动去模糊和图像去雨等任务进行了广泛评估。我们的结果表明,在紧密保持采用CSA的性能最佳模型的原始性能的同时,最多可减少7.7 Giga FLOPs的计算量,并减少370K个参数。

英文摘要:

Image restoration and spectral reconstruction are longstanding computer vision tasks. Currently, CNN-transformer hybrid models provide state-of-the-art performance for these tasks. The key common ingredient in the architectural designs of these models is Channel-wise Self-Attention (CSA). We first show that CSA is an overall low-rank operation. Then, we propose an instance-Guided Low-rank Multi-Head selfattention (GLMHA) to replace the CSA for a considerable computational gain while closely retaining the original model performance. Unique to the proposed GLMHA is its ability to provide computational gain for both short and long input sequences. In particular, the gain is in terms of both Floating Point Operations (FLOPs) and parameter count reduction. This is in contrast to the existing popular computational complexity reduction techniques, e.g., Linformer, Performer, and Reformer, for whom FLOPs overpower the efficient design tricks for the shorter input sequences. Moreover, parameter reduction remains unaccounted for in the existing methods.We perform an extensive evaluation for the tasks of spectral reconstruction from RGB images, spectral reconstruction from snapshot compressive imaging, motion deblurring, and image deraining by enhancing the best-performing models with our GLMHA. Our results show up to a 7.7 Giga FLOPs reduction with 370K fewer parameters required to closely retain the original performance of the best-performing models that employ CSA.

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

↑