Introduction
Single Image Super-Resolution (SISR) is the process of recovering high-resolution (HR) details from a single low-resolution (LR) input. In recent years, Transformer-based architectures have become the standard for this task due to their ability to capture "non-local dependencies"—identifying patterns across distant parts of an image to reconstruct specific pixels. However, these models suffer from a "dense attention" problem: they calculate similarity scores between every pair of tokens in a window, which is computationally expensive and often redundant.
The Progressive Focused Transformer (PFT) addresses this inefficiency by introducing a mechanism to "inherit" attention focus across layers. By identifying and pruning irrelevant tokens before performing heavy calculations, PFT achieves state-of-the-art reconstruction quality while significantly reducing the computational load.
Methodology: Progressive Focused Attention
The core innovation of the PFT is the Progressive Focused Attention (PFA) mechanism. This approach is built on the observation that attention maps across cascaded layers are highly correlated; if an early layer identifies a region as important, subsequent layers are likely to agree.
1. Attention Inheritance
Instead of treating each layer's attention map as an independent calculation, PFA links them. The model performs a Hadamard product (element-wise multiplication) between the current layer's calculated similarities and the attention map from the previous layer. This allows the model to "inherit" knowledge of which regions are irrelevant, suppressing those weights further in the current layer.
2. Sparse Matrix Multiplication (SMM)
To ensure that theoretical computational savings translate into real-world performance, the authors developed custom CUDA kernels for Sparse Matrix Multiplication. Because the inherited attention map identifies unimportant positions in advance, the model can skip similarity calculations for those tokens entirely, accelerating inference speed on compatible hardware.
3. The Focus Ratio (α)
PFT utilizes a "focus ratio" to gradually narrow its search space. As data moves deeper into the network, the number of tokens the model pays attention to decreases exponentially. This allows the network to use large windows (e.g., 32×32) to capture broad context in early stages, then zoom in on the most critical features in deeper layers for refined reconstruction.
Experimental Setup and Results
The model was trained on the DF2K dataset (DIV2K and Flickr2K) and evaluated on five standard benchmarks: Set5, Set14, BSD100, Urban100, and Manga109.
Quantitative Performance
PFT achieved the highest PSNR/SSIM scores across nearly all benchmarks. On the Urban100 (×4) task—a dataset known for repetitive urban structures where Transformers typically excel—PFT outperformed the previous state-of-the-art (ATD) model while requiring significantly fewer FLOPs.
Efficiency Gains
- Classical PFT: Achieved a 17.1% reduction in computational load (FLOPs) compared to the ATD model.
- Lightweight PFT (PFT-light): Reduced complexity by 20.1% compared to ATD-light while maintaining superior accuracy.
Qualitative Improvements
Beyond metrics, PFT shows a marked improvement in visual quality. It is particularly effective at recovering sharp edges and fine textures, such as the grids on skyscrapers or the stripes on a zebra. By suppressing irrelevant features, the progressive filtering mechanism acts as a denoiser, focusing the model's capacity on the most critical similar features and reducing "checkerboard" distortions.
Conclusion and Future Work
The Progressive Focused Transformer demonstrates that attention redundancy can be exploited to create more efficient and effective vision models. By inheriting focus across layers, PFT reduces the waste inherent in dense attention mechanisms. While currently optimized for high-end GPUs via custom CUDA kernels, the authors suggest that this "Progressive Focused" philosophy could be applied to other high-level vision tasks and even Natural Language Processing (NLP) to mitigate the bottlenecks of long-sequence attention.
Summary updated