[Paper Review] Exploring Frequency-Inspired Optimization in Transformer for Efficient Single Image Super-Resolution
This paper proposes CRAFT, a frequency-aware Transformer architecture for single image super-resolution that enhances high-frequency details via a dedicated residual block (HFERB) while leveraging global context through a shift rectangle window attention block (SRWAB). A hybrid fusion block (HFB) uses inter-attention to refine global features with high-frequency priors, achieving state-of-the-art performance with 0.29 dB PSNR gain and 15% fewer parameters than SOTA methods.
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.
Motivation & Objective
- To investigate the role of frequency components—especially high-frequency details—in the performance of CNNs and Transformers for single image super-resolution (SISR).
- To address the limitation of Transformers in reconstructing high-frequency details, which are crucial for perceptual quality and sharpness in SISR.
- To design a hybrid architecture that synergistically combines the strengths of CNNs in high-frequency representation and Transformers in long-range dependency modeling.
- To develop an effective fusion mechanism that uses high-frequency features as a prior to refine global representations, improving restoration accuracy.
- To achieve state-of-the-art performance with reduced model complexity and inference cost.
Proposed method
- The proposed CRAFT framework uses a parallel dual-branch architecture: one branch with a High-Frequency Enhancement Residual Block (HFERB) to extract and enhance high-frequency details from low-resolution inputs.
- The other branch employs a Shift Rectangle Window Attention Block (SRWAB) to capture long-range dependencies and global representations using a modified window attention mechanism with shifted windows.
- A Hybrid Fusion Block (HFB) performs cross-attention between the SRWAB output (as query) and HFERB output (as key and value), enabling global features to be refined using high-frequency priors.
- The HFB uses channel-wise attention to reduce computational cost while effectively integrating multi-frequency features.
- The network is trained end-to-end using a combined loss of L1 and perceptual losses, with data augmentation and learning rate scheduling for stability.
- The model is evaluated on multiple benchmarks including DIV2K, Real-ESRGAN, and Manga109, with ablation studies on fusion strategy, frequency prior, and block contributions.
Experimental results
Research questions
- RQ1How do CNNs and Transformers differ in their ability to capture and reconstruct high-frequency components in single image super-resolution?
- RQ2To what extent does the absence of high-frequency information degrade the performance of Transformer-based SISR models compared to CNN-based models?
- RQ3Can high-frequency features serve as an effective prior to refine global representations in a Transformer-based SISR architecture?
- RQ4What is the optimal fusion strategy for combining high-frequency and global features in a hybrid CNN-Transformer framework?
- RQ5Can a lightweight, efficient architecture outperform existing SOTA methods in SISR while using fewer parameters and FLOPs?
Key findings
- CRAFT achieves a PSNR gain of up to 0.29 dB over state-of-the-art methods on the DIV2K dataset, demonstrating superior performance.
- The ablation study shows that swapping the query and key/value inputs in the HFB leads to a 0.51 dB drop in PSNR, confirming the importance of using global features as query and high-frequency features as key/value.
- The cascade structure variant of CRAFT results in a 0.3 dB PSNR drop compared to the original design, proving that the parallel, attention-based fusion is more effective than sequential processing.
- CRAFT reduces model complexity: it uses 753K parameters (vs. 897K for SwinIR), 26.1 GFLOPs (vs. 32.2 GFLOPs), and 79.5 MB GPU memory (vs. 141.2 MB), with inference time reduced to 42.8 ms.
- The HFB module improves performance by 0.26 dB over a concatenation-based fusion strategy, confirming the benefit of attention-based feature interaction over simple stacking.
- The HFERB branch contributes significantly to high-frequency detail recovery, as shown by the performance drop when it is removed or modified, especially in texture-rich and edge-sensitive regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.