arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.06738cs.LGcs.AI
收藏

秩分解隐式神经偏置:使用FlashAttention扩展超分辨率Transformer

Rank-Factorized Implicit Neural Bias: Scaling Super-Resolution Transformer with FlashAttention

University of Seoul(首尔大学);KAIST AI(韩国科学技术院人工智能研究所)

Dongheon Lee, Seokju Yun, Jaegyun Im, Youngmin Ro

AI总结:

提出秩分解隐式神经偏置(RIB)替代相对位置偏置(RPB),通过低秩隐式神经表示和通道级拼接实现FlashAttention兼容,并引入卷积局部注意力和循环窗口策略,在Urban100×2上达到35.63 dB PSNR,训练和推理时间分别减少2.1倍和2.9倍。

摘要:

最近的超分辨率(SR)方法主要采用Transformer,因其强大的长程建模能力和卓越的表征能力。然而,大多数SR Transformer严重依赖相对位置偏置(RPB),这阻碍了它们利用硬件高效的注意力内核,如FlashAttention。这一限制在训练和推理过程中带来了巨大的计算负担,严重限制了通过扩大训练块大小或自注意力窗口来扩展SR Transformer的尝试。因此,与其他积极利用Transformer固有可扩展性的领域不同,SR Transformer仍然主要关注有效利用有限的感受野。在本文中,我们提出了秩分解隐式神经偏置(RIB),作为RPB的替代方案,使SR Transformer能够使用FlashAttention。具体来说,RIB使用低秩隐式神经表示来近似位置偏置,并以通道方式将它们与像素内容标记连接起来,将注意力分数计算中的逐元素偏置加法转化为点积运算。此外,我们引入了卷积局部注意力和循环窗口策略,以充分利用RIB和FlashAttention带来的长程交互优势。我们将窗口大小扩大到**96×96**,同时联合扩大训练块大小和数据集大小,最大化Transformer在SR任务中的优势。因此,我们的网络在Urban100×2上达到了**35.63 dB PSNR**,同时与基于RPB的SR Transformer(PFT)相比,训练和推理时间分别减少了**2.1倍**和**2.9倍**。

英文摘要:

Recent Super-Resolution~(SR) methods mainly adopt Transformers for their strong long-range modeling capability and exceptional representational capacity. However, most SR Transformers rely heavily on relative positional bias~(RPB), which prevents them from leveraging hardware-efficient attention kernels such as FlashAttention. This limitation imposes a prohibitive computational burden during both training and inference, severely restricting attempts to scale SR Transformers by enlarging the training patch size or the self-attention window. Consequently, unlike other domains that actively exploit the inherent scalability of Transformers, SR Transformers remain heavily focused on effectively utilizing limited receptive fields. In this paper, we propose Rank-factorized Implicit Neural Bias~(RIB), an alternative to RPB that enables FlashAttention in SR Transformers. Specifically, RIB approximates positional bias using low-rank implicit neural representations and concatenates them with pixel content tokens in a channel-wise manner, turning the element-wise bias addition in attention score computation into a dot-product operation. Further, we introduce a convolutional local attention and a cyclic window strategy to fully leverage the advantages of long-range interactions enabled by RIB and FlashAttention. We enlarge the window size up to \textbf{96$\times$96} while jointly scaling the training patch size and the dataset size, maximizing the benefits of Transformers in the SR task. As a result, our network achieves \textbf{35.63\,dB PSNR} on Urban100$\times$2, while reducing training and inference time by \textbf{2.1$\times$} and \textbf{2.9$\times$}, respectively, compared to the RPB-based SR Transformer~(PFT).

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

↑