Learning Frequency-aware Dynamic Network for Efficient Super-Resolution

Wenbin Xie, Dehua Song, Chang Xu, Chunjing Xu, Hui Zhang, Yunhe WangICCV 2021

Abstract

Deep learning based methods, especially convolutional neural networks (CNNs) have been successfully applied in the field of single image super-resolution (SISR). To obtain better fidelity and visual quality, most of existing networks are of heavy design with massive computation. However, the computation resources of modern mobile devices are limited, which cannot easily support the expensive cost. To this end, this paper explores a novel frequency-aware dynamic network for dividing the input into multiple parts according to its coefficients in the discrete cosine transform (DCT) domain. In practice, the high-frequency part will be processed using expensive operations and the lower-frequency part is assigned with cheap operations to relieve the computation burden. Since pixels or image patches belong to low-frequency areas contain relatively few textural details, this dynamic network will not affect the quality of resulting super-resolution images. In addition, we embed predictors into the proposed dynamic network to end-to-end fine-tune the handcrafted frequency-aware masks. Extensive experiments conducted on benchmark SISR models and datasets show that the frequency-aware dynamic network can be employed for various SISR neural architectures to obtain the better tradeoff between visual quality and computational complexity. For instance, we can reduce the FLOPs of SR models by approximate 50% while preserving state-of-the-art SISR performance.

Introduction

Single Image Super-Resolution (SISR) aims to reconstruct a high-resolution (HR) image from a single low-resolution (LR) input. While deep learning models like EDSR and RCAN have achieved remarkable performance, their high computational cost (FLOPs) limits their deployment on power-constrained mobile devices. A key observation driving this research is computational redundancy: most networks apply the same complex filters to the entire image, regardless of local complexity. Smooth regions (low-frequency) require significantly less computation than textured regions (high-frequency) to achieve high-quality upscaling. This paper argues that frequency domain information is a direct and effective proxy for determining the reconstruction difficulty of different image regions.

Frequency-aware Dynamic Network (FADN)

The proposed FADN addresses redundancy by introducing a Frequency-aware Dynamic Block (FADB). This block dynamically allocates computational resources based on the local frequency characteristics of the image.

Mask Prediction and Branching

The core of the FADB is a learnable mask predictor. It analyzes the input and generates a frequency mask that assigns each pixel or patch to one of several branches:

  1. Heavy Branch: Uses standard 3x3 convolutions for high-frequency details.
  2. Medium/Light Branches: Use cheaper operations like 1x1 or depthwise convolutions for smoother areas.

To make the discrete selection process differentiable, the authors employ the Gumbel-Softmax trick, allowing the entire network to be trained end-to-end. While the model is initially guided by handcrafted Discrete Cosine Transform (DCT) masks, the learnable predictor eventually outperforms raw DCT by accounting for the specific needs of the neural network's feature maps.

Figure 4: The pipeline for generating frequency masks from natural images using DCT domain analysis.

Training Objectives

The model is optimized using a hybrid loss function:

  • Reconstruction Loss ($L_{sr}$): Standard pixel-wise loss for image quality.
  • DCT Guidance Loss ($L_{dct}$): Uses handcrafted DCT masks as a "teacher" to guide the predictor toward understanding frequency components.
  • Sparsity Loss ($L_{spa}$): Enforces a computational budget, encouraging the model to use lighter branches where possible to meet specific FLOP targets.

Experimental Results

The FADN approach was integrated into state-of-the-art models like EDSR and RCAN and evaluated on standard benchmarks including DIV2K, Set5, and Urban100.

Efficiency and Performance

FADN achieves a superior trade-off between visual quality and efficiency. For example, FAD-EDSR reduces FLOPs by ~70% on the Set5 dataset while maintaining or even slightly improving PSNR. On mobile-class CPUs, this translates to a 1.5x to 1.6x speedup compared to the original EDSR.

Figure 2: Visual and quantitative comparison of different model variants on low, medium, and high-frequency patches. Heavier models provide significant gains primarily in high-frequency regions.

As shown in Figure 2, the "Heavy Model" (using the most expensive branch) provides the most significant PSNR improvements in high-frequency regions (e.g., bird feathers), whereas low-frequency regions (e.g., sky) show negligible differences between mini and heavy models. This validates the core hypothesis: expensive operations are only necessary for high-frequency details.

Conclusion

The Frequency-aware Dynamic Network (FADN) provides a robust framework for efficient SISR. By leveraging frequency domain information to guide dynamic computation, it significantly reduces the computational burden without sacrificing image quality. This approach is particularly effective for mobile deployment and can potentially be extended to other low-level vision tasks like image denoising or deblurring.

Summary updated

BibTeX
@inproceedings{xie2021learning,
  author = {Wenbin Xie and Dehua Song and Chang Xu and Chunjing Xu and Hui Zhang and Yunhe Wang},
  title = {{Learning Frequency-aware Dynamic Network for Efficient Super-Resolution}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=a6FJyO3CTqu_},
}
Figure