High-Frequency Prior-Driven Adaptive Masking for Accelerating Image Super-Resolution

Wei Shang, Dongwei Ren, Wanying Zhang, Pengfei Zhu, Qinghua Hu, Wangmeng ZuoarXiv 2025

TL;DR

This paper introduces a novel, training-free adaptive masking module that significantly accelerates image super-resolution (SR) by intelligently focusing computational resources on high-frequency image regions. By dynamically identifying and processing only the most critical areas, their method achieves substantial FLOP reductions (24-43%) with comparable or improved SR quality across various state-of-the-art CNN and Transformer architectures.

What Problem Does This Paper Address?

Image Super-Resolution (SR) aims to enhance the resolution of low-resolution (LR) images to produce high-resolution (HR) counterparts, with applications ranging from satellite imagery to medical imaging. While deep learning models, particularly Convolutional Neural Networks (CNNs) and Transformers, have achieved remarkable success, their computational demands (measured in FLOPs) are often prohibitively high, especially for real-time applications. Existing acceleration techniques often fall into two categories: designing lightweight network architectures or intelligently allocating computation. The latter, which this paper focuses on, aims to reduce computation by processing different image regions with varying levels of complexity. However, prior methods often rely on complex, auxiliary classifiers for region partitioning, increasing training complexity, or apply uniform processing within patches, leading to suboptimal resource allocation. This paper addresses the need for an efficient, adaptable, and training-free acceleration strategy that can be seamlessly integrated into existing SR models without requiring retraining or additional supervision.

Methods

The core of this paper is the High-Frequency Prior-Driven Adaptive Masking Module. The strategy is built on the observation that high-frequency image components (like edges and textures) are the most critical for accurate reconstruction.

Here's how it works:

  1. High-Frequency Component Extraction: The method first applies a Gaussian blur to the input LR image to create a smoothed version. Subtracting this blurred image from the original LR image effectively isolates the high-frequency components.
  2. Adaptive Mask Generation: K-means clustering is then used to binarize this high-frequency map. This process adaptively identifies regions that require more intensive processing, creating a binary mask. This mask generation is "training-free," meaning it doesn't require any gradient updates or learning from data.
  3. Architecture-Specific Integration:
    • For CNNs: Standard $3 \times 3$ convolutions are replaced. An "unfold" operation expands features to mimic the receptive field of a $3 \times 3$ kernel, followed by $1 \times 1$ convolutions. The generated mask then guides sparse computation, allowing only selected pixels to be processed by the $1 \times 1$ convolutions. During training, a "zero-masking" approach ensures backpropagation.
  4. For Transformers: The input is partitioned into non-overlapping windows. The mask is also partitioned accordingly, and the average value within each window is used to decide whether to process the corresponding tokens. During inference, tokens outside the "active" regions (indicated by the mask) are pruned, significantly reducing computation.
  5. Dilation for Scalability: A dilation operation can be applied to the mask. This allows for controlling the scope of processing without retraining, offering a way to trade off computation for performance.

Datasets

The paper uses standard datasets for training and evaluation:

  • Training: DIV2K dataset.
  • Testing: Test2K, Test4K, and Test8K datasets, which are subsets of DIV8K.

Key Insights and Ideas

  • High-frequency regions are the key: The paper solidifies the intuition that focusing computational effort on areas with rich detail (high frequencies) is the most effective way to accelerate SR without sacrificing quality.
  • Training-free acceleration is achievable: By leveraging image priors (high-frequency content) rather than learned classifiers, the method avoids the overhead and complexity of training auxiliary components.
  • Architecture Agnosticism: The masking strategy is designed to be compatible with both CNNs and Transformers, demonstrating its broad applicability.
  • Dynamic Computation Pruning: The core idea of "pruning" pixels or tokens based on their importance is a powerful mechanism for efficiency.
  • Dilation for Fine-grained Control: The use of dilation offers a flexible knob to adjust the level of acceleration post-training.

Key Results

  • Significant FLOP Reduction: The proposed method achieves substantial reductions in Floating-Point Operations (FLOPs), ranging from 24% to 43% for state-of-the-art models like CARN and SwinIR.
  • Comparable or Better Quality: Despite the significant speedup, the SR quality (measured by PSNR) remains comparable to or even better than the original models.
  • Robustness to Unseen Degradations: The method demonstrates resilience to various degradations (noise, compression) not seen during training, outperforming other adaptive methods in such scenarios.
  • Efficiency: The mask generation process is very fast, requiring only a few K-means iterations.

Limitations and Future Work

  • Scope of Optimization: The current optimization primarily targets the "body" part of the SR network. For very shallow networks like FSRCNN, where the body part constitutes a small fraction of computation, the acceleration benefits are less pronounced.
  • Future Directions: The authors plan to extend their strategy to target the "tail" part of the network (upsampling stages) to further enhance acceleration, potentially by integrating existing methods that minimize artifacts. They also aim to extend their work to video SR.

Summary updated

BibTeX
@misc{shang2025high,
  author = {Wei Shang and Dongwei Ren and Wanying Zhang and Pengfei Zhu and Qinghua Hu and Wangmeng Zuo},
  title = {{High-Frequency Prior-Driven Adaptive Masking for Accelerating Image Super-Resolution}},
  year = {2025},
  eprint = {2505.06975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.06975},
}
Figure