[论文解读] Activating More Pixels in Image Super-Resolution Transformer
该论文为图像SR引入 Hybrid Attention Transformer (HAT),通过通道注意力、基于窗口的自注意力以及一个重叠跨窗口注意力模块的组合来激活更多输入像素,并采用同任务预训练策略,达到业界最先进的结果。
Transformer-based methods have shown impressive performance in low-level vision tasks, such as image super-resolution. However, we find that these networks can only utilize a limited spatial range of input information through attribution analysis. This implies that the potential of Transformer is still not fully exploited in existing networks. In order to activate more input pixels for better reconstruction, we propose a novel Hybrid Attention Transformer (HAT). It combines both channel attention and window-based self-attention schemes, thus making use of their complementary advantages of being able to utilize global statistics and strong local fitting capability. Moreover, to better aggregate the cross-window information, we introduce an overlapping cross-attention module to enhance the interaction between neighboring window features. In the training stage, we additionally adopt a same-task pre-training strategy to exploit the potential of the model for further improvement. Extensive experiments show the effectiveness of the proposed modules, and we further scale up the model to demonstrate that the performance of this task can be greatly improved. Our overall method significantly outperforms the state-of-the-art methods by more than 1dB. Codes and models are available at https://github.com/XPixelGroup/HAT.
研究动机与目标
- 推动扩大 Transformer 基于的 SR 模型所利用的输入像素范围,超越标准的窗口注意力。
- 提出 Hybrid Attention Transformer (HAT),将通道注意力与自注意力融合,并加入重叠跨注意力以改善跨窗口交互。
- 证明更大的窗口大小和跨窗口模块能够实现更好的重建和纹理细节。
- 引入同任务预训练策略,以利用大规模数据为 SR Transformer 模型预训练。
- 表明 HAT(及其大型变体 HAT-L)在标准基准上实现了最先进的 SR 性能。
提出的方法
- 将基于通道注意力的卷积块(CAB)引入 Swin Transformer 块,以将全局信息与局部自注意力融合。
- 使用并行的 CAB 与 (S/W)MSA 路径,配以较小的缩放因子 alpha 以缓解优化冲突,随后是带残差连接的 MLP。
- 使用 Overlapping Cross-Attention Block (OCAB),其查询来自非重叠窗口,而键/值跨窗口重叠,以实现直接的跨窗口信息交换。
- 为自注意力采用较大的窗口大小(M=16),以扩展被激活像素的范围,并使用平移窗口来维持跨窗口交互。
- 引入 Overlapping Cross-Attention (OCA) 机制,其中 Q 来自非重叠窗口,K/V 来自重叠窗口,从而在偏置项的作用下实现跨窗口注意力。
- 提出同任务预训练策略,在 ImageNet 上针对相同的 SR 任务进行预训练,并在目标 DF2K 数据上微调,同时考虑合适的学习率和训练迭代次数。
实验结果
研究问题
- RQ1是否可以强制 Transformer SR 模型在重建过程中使用更多输入像素,以及扩展感受野是否会提升 SR 质量?
- RQ2将通道注意力与基于窗口的自注意力相结合并加入跨窗口注意力模块,是否能带来相对于现有 SR Transformer 的可衡量提升?
- RQ3更大的窗口大小和重叠跨注意力对质感重建和伪影减少有何影响?
- RQ4相较于多任务预训练,在 ImageNet 上同任务大规模预训练对 SR Transformer 是否有益?
- RQ5在标准基准上,HAT 及其大型变体 HAT-L 相对于最先进的 SR 方法的表现如何?
主要发现
- HAT 及其更大变体在最先进的 SR 方法上取得显著优势(在 Urban100 和 Manga109 上报告的 PSNR 提升范围为 0.3 dB 到 1.2 dB,且预训练带来巨大收益)。
- CAB 集成相对于基线带来可测量的 PSNR/SSIM 提升(如消融实验中 +0.05–0.07 dB)。
- OCAB 与 CAB 共同带来进一步提升(Urban100 上约 +0.16 dB PSNR)。
- 较大窗口大小(16x16)的自注意力提升 SR 性能,尤其中Urban100,表明激活了更多输入像素。
- 重叠跨注意力缓解了块效应并增强了跨窗口信息交换。
- 在 ImageNet 上的同任务预训练为 HAT 带来显著提升,对更大模型如 HAT-L 的提升更大,越大的预训练模型受益越多。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。