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

探索 Transformer 中受频率启发的优化以实现高效单图像超分辨率

Exploring Frequency-Inspired Optimization in Transformer for Efficient Single Image Super-Resolution

School of Information and Communication Engineering, University of Electronic Science and Technology of China(电子科技大学信息与通信工程学院);College of Computer Science, Nankai University(南开大学计算机学院)

Ao Li, Le Zhang, Yun Liu, Ce Zhu

AI总结:

针对 Transformer 在 SISR 中高频建模不足的问题,提出融合卷积与窗口注意力的 CRAFT,并设计频率引导 PTQ,实现全精度与量化下的先进性能。

摘要:

基于 Transformer 的方法通过有效提取长程依赖,在单图像超分辨率(SISR)中展现出显著潜力。然而,当前该领域的多数研究优先设计用于捕获全局信息的 Transformer 块,却忽视了融入高频先验的重要性,而我们认为这可能是有益的。在研究中,我们开展了一系列实验,发现 Transformer 结构更擅长捕获低频信息,但与卷积结构相比,其构建高频表示的能力有限。我们提出的解决方案是 cross-refinement adaptive feature modulation transformer(CRAFT,交叉细化自适应特征调制 Transformer),融合了卷积结构与 Transformer 结构的优势。它包含三个关键组件:用于提取高频信息的 high-frequency enhancement residual block(HFERB,高频增强残差块)、用于捕获全局信息的 shift rectangle window attention block(SRWAB,移位矩形窗口注意力块),以及用于细化全局表示的 hybrid fusion block(HFB,混合融合块)。为解决 Transformer 结构固有的复杂性,我们提出一种频率引导的训练后量化(PTQ)方法,旨在提升 CRAFT 的效率。这些策略包含自适应双重裁剪和边界细化。为进一步增强所提方法的通用性,我们将 PTQ 策略扩展为适用于基于 Transformer 的 SISR 技术的通用量化方法。实验结果表明,在全精度和量化场景下,CRAFT 均优于当前最先进方法。这些结果证明了我们 PTQ 策略的有效性和通用性。源代码可在 https://github.com/AVC2-UESTC/Frequency-Inspired-Optimization-for-EfficientSR.git 获取。

英文摘要:

Transformer-based methods have exhibited remarkable potential in single image super-resolution (SISR) by effectively extracting long-range dependencies. However, most of the current research in this area has prioritized the design of transformer blocks to capture global information, while overlooking the importance of incorporating high-frequency priors, which we believe could be beneficial. In our study, we conducted a series of experiments and found that transformer structures are more adept at capturing low-frequency information, but have limited capacity in constructing high-frequency representations when compared to their convolutional counterparts. Our proposed solution, the cross-refinement adaptive feature modulation transformer (CRAFT), integrates the strengths of both convolutional and transformer structures. It comprises three key components: the high-frequency enhancement residual block (HFERB) for extracting high-frequency information, the shift rectangle window attention block (SRWAB) for capturing global information, and the hybrid fusion block (HFB) for refining the global representation. To tackle the inherent intricacies of transformer structures, we introduce a frequency-guided post-training quantization (PTQ) method aimed at enhancing CRAFT's efficiency. These strategies incorporate adaptive dual clipping and boundary refinement. To further amplify the versatility of our proposed approach, we extend our PTQ strategy to function as a general quantization method for transformer-based SISR techniques. Our experimental findings showcase CRAFT's superiority over current state-of-the-art methods, both in full-precision and quantization scenarios. These results underscore the efficacy and universality of our PTQ strategy. The source code is available at: https://github.com/AVC2-UESTC/Frequency-Inspired-Optimization-for-EfficientSR.git.

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

↑