Abstract
Transformer-based models have set new benchmarks in Single Image Super-Resolution (SISR) by effectively capturing long-range dependencies. However, their quadratic computational complexity remains a significant barrier to practical deployment. This paper introduces the Progressive Focused Transformer (PFT), which addresses this bottleneck through a novel Progressive Focused Attention (PFA) mechanism. Unlike traditional methods that treat attention layers as independent operations, PFT links layers in a chain, allowing the model to inherit and refine attention maps. This "progressive focusing" enables the network to skip redundant calculations on irrelevant features, leading to state-of-the-art reconstruction quality with substantially lower computational overhead.
The Efficiency Bottleneck in SISR
The primary advantage of Transformers in SISR is their ability to find similar textures or patterns across an entire image (non-local dependencies) to reconstruct fine details. However, in a standard self-attention layer, every pixel (token) must be compared with every other pixel within its window. In the context of super-resolution, many of these comparisons are unnecessary as they involve irrelevant regions that do not contribute to the reconstruction of the target pixel. These "useless" calculations not only slow down the model but can also introduce noise, potentially degrading the final image quality.
While "Sparse Attention" techniques have been proposed to prune these connections, they typically require calculating the full attention matrix before discarding low-weight tokens. PFT addresses this by asking: Can we identify and skip these irrelevant calculations before they occur?
Progressive Focused Attention (PFA)
The core innovation of PFT is the Progressive Focused Attention (PFA) mechanism. PFA treats the attention map of a preceding layer as a strong prior for the current layer, creating a focused inheritance chain.
As illustrated in the figure above, standard self-attention (a) maintains a dense and often redundant focus across layers. Sparse attention (b) prunes some connections but lacks a mechanism to refine focus over depth. In contrast, PFA (c) progressively narrows its attention, focusing on the most critical features as the data moves deeper into the network.
Key Components of PFA
- Attention Inheritance: PFT calculates a candidate attention map for the current layer and then performs a Hadamard product (element-wise multiplication) with the attention map from the previous layer. This reinforces features that are consistently deemed important while suppressing noise from irrelevant regions.
- Sparse Matrix Multiplication (SMM): By leveraging the sparsity information from the previous layer, PFT utilizes a custom CUDA kernel to perform sparse calculations. This allows the model to skip the mathematical operations for positions identified as irrelevant, directly translating to computational savings.
- Focus Ratio ($\alpha$): The model employs a "focus ratio" to create a funnel effect. As the network depth increases, the number of tokens considered for attention is gradually reduced (e.g., from 1024 down to 16). This ensures the model's "eyes" are fixed on the most critical details in the final stages of reconstruction.
Architecture and Implementation
PFT adopts a backbone similar to established models like SwinIR or HAT but replaces standard self-attention blocks with PFA blocks. To maintain local structure and ensure cross-region interaction, the architecture incorporates shifted windows and LePE (Locally-enhanced Positional Encoding).
The efficiency of PFA allows PFT to utilize significantly larger window sizes (32x32) than the typical 8x8 or 16x16 windows used in other models. This expanded receptive field enables the model to capture helpful patterns from a much broader area, which is particularly beneficial for images with repetitive structures.
Experimental Results
The PFT was trained on the DF2K dataset and evaluated across five standard benchmarks: Set5, Set14, BSD100, Urban100, and Manga109.
Quantitative Performance
PFT achieves a superior balance between reconstruction quality (measured by PSNR and SSIM) and computational efficiency. On the challenging Urban100 dataset ($\times2$ scale), PFT outperformed the previous state-of-the-art model, ATD, by 0.20dB while requiring 17.1% fewer FLOPs. The "PFT-light" variant also showed significant gains, reducing computational complexity by 20.1% compared to ATD-light while maintaining or exceeding its performance.
Qualitative Analysis
Visually, PFT excels at reconstructing repetitive fine textures, such as architectural details on skyscrapers or complex patterns in manga. While other models often produce aliasing artifacts or blurry patches in these regions, PFT's focused attention allows it to recover sharp, accurate details.
Conclusion and Future Work
The Progressive Focused Transformer demonstrates that linking attention maps across layers is a highly effective strategy for improving both the efficiency and quality of SISR. While the current implementation relies on custom CUDA kernels for optimal speed, the underlying logic of "progressive focusing" holds promise for other domains. Future research could explore applying this mechanism to high-level vision tasks like object detection or even to Natural Language Processing, where managing long-range dependencies efficiently is a persistent challenge.
Summary updated