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

基于秩增强线性注意力的快速准确图像恢复与生成

Fast and Accurate Image Restoration and Generation with Rank Enhanced Linear Attention

University of Chinese Academy of Sciences(中国科学院大学)

Yuang Ai

AI总结:

研究旨在解决Transformer自注意力二次复杂度问题,提出秩增强线性注意力(RELA)及高效视觉Transformer(LAformer),通过集成深度卷积丰富特征表示,经实验验证LAformer在图像恢复和生成任务中性能优且计算高效。

摘要:

基于Transformer的模型在图像恢复(IR)任务中取得了显著进展。然而,Transformer中自注意力的二次复杂度阻碍了其在高分辨率图像上的应用。现有方法通过稀疏或基于窗口的注意力来缓解此问题,但固有地限制了全局上下文建模。线性注意力作为softmax注意力的一种变体,在保持线性复杂度的同时,在全局上下文建模方面显示出潜力。尽管具有效率优势,但普通线性注意力在IR中性能显著下降,主要是由于其注意力图的低秩性质。为此,我们提出了秩增强线性注意力(RELA),通过集成轻量级深度卷积来丰富特征表示。在此基础上,我们提出了一种高效有效的视觉Transformer,即LAformer。LAformer消除了诸如softmax和窗口移位等硬件效率低下的操作,能够高效处理高分辨率图像。在7个IR任务和21个基准上的大量实验表明,LAformer优于现有方法并具有显著的计算优势。此外,我们将LAformer扩展到基于扩散和基于流的视觉生成,展示了其作为DiT和SiT的有竞争力替代方案的强大潜力。代码和模型可在指定网址获取。

英文摘要:

Transformer-based models have made remarkable progress in image restoration (IR) tasks. However, the quadratic complexity of self-attention in Transformer hinders its applicability to high-resolution images. Existing methods mitigate this issue with sparse or window-based attention, yet inherently limit global context modeling. Linear attention, a variant of softmax attention, demonstrates promise in global context modeling while maintaining linear complexity, offering a potential solution to the above challenge. Despite its efficiency benefits, vanilla linear attention suffers from a significant performance drop in IR, largely due to the low-rank nature of its attention map. To counter this, we propose Rank Enhanced Linear Attention (RELA), a simple yet effective method that enriches feature representations by integrating a lightweight depthwise convolution. Building upon RELA, we propose an efficient and effective Vision Transformer, named LAformer. LAformer eliminates hardware-inefficient operations such as softmax and window shifting, enabling efficient processing of high-resolution images. Extensive experiments across 7 IR tasks and 21 benchmarks demonstrate that LAformer outperforms SOTA methods and offers significant computational advantages. Furthermore, we extend LAformer to diffusion-based and flow-based visual generation, showcasing its strong potential as a competitive alternative to DiT and SiT. Code and models are available at https://github.com/shallowdream204/LAformer.

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

↑