Deep Fourier Up-Sampling

Man Zhou, Hu Yu, Jie Huang, Feng Zhao, Jinwei Gu, Chen Change Loy, Deyu Meng, Chongyi Li

Abstract

Multi-scale modeling is a cornerstone of modern computer vision, yet the up-sampling operators used to restore spatial resolution—such as bilinear interpolation and transposed convolutions—are inherently local. These operators often fail to capture the global context necessary for complex tasks like image restoration and medical segmentation. This paper introduces FourierUp, a theoretically grounded up-sampling module that operates in the frequency domain. By leveraging the global nature of the Fourier transform, FourierUp allows neural networks to maintain long-range dependencies during resolution recovery. We demonstrate that FourierUp is a versatile, "plug-and-play" component that consistently improves performance across object detection, image de-raining, and semantic segmentation.

Introduction

In architectures like U-Net or Feature Pyramid Networks (FPNs), the transition between scales is critical. Features are down-sampled to extract high-level semantics and then up-sampled to generate pixel-level predictions. However, standard up-sampling methods rely on "local similarity," assuming that a new pixel's value can be inferred from its immediate neighbors. This locality constraint limits the network's ability to model global structures, which is particularly detrimental in tasks where features are distributed across the entire image.

While the Fourier domain is famous for its global modeling capabilities via the spectral convolution theorem, up-sampling there is non-trivial. One cannot simply apply spatial interpolation techniques to a frequency map; the mathematical relationship between domains requires a more rigorous approach.

The FourierUp Framework

To overcome the limitations of spatial locality, the authors propose moving the up-sampling process into the frequency domain. The FourierUp operator follows a structured three-step pipeline:

  1. Spatial-to-Frequency Transformation: Input spatial features are converted into the frequency domain using a 2D Discrete Fourier Transform (DFT).
  2. Spectral Expansion: The frequency map's dimensions are increased according to specific mathematical rules.
  3. Frequency-to-Spatial Inversion: The expanded map is transformed back into the spatial domain via an Inverse DFT (iFFT).

Expansion Variants

The "Expansion" step is the core innovation. The authors provide mathematical proofs for three distinct variants:

  • Periodic Padding: This involves repeating the frequency spectrum. Theoretically, this corresponds to zero-inserted up-sampling in the spatial domain, effectively preserving the spectral distribution.
  • Area Interpolation/Cropping: By applying area interpolation to magnitude and phase components, the operator acts as a form of low-pass filtering. This preserves global intensity while allowing for a controlled decay of high-frequency components.
  • Corner Interpolation: This specialized mapping focuses on the "corners" of the frequency map, which house the most critical low-frequency information, ensuring that the fundamental structure of the image is maintained during scaling.

Experimental Evaluation

FourierUp was integrated into several baseline architectures and tested across a wide range of computer vision benchmarks, including PASCAL VOC for detection, Synapse for medical segmentation, and RESIDE for image dehazing.

Image Restoration

In tasks like image de-raining (Rain200H dataset), where rain streaks often span the entire frame, the global context provided by FourierUp proved invaluable. Integrating it into the PReNet baseline resulted in a Peak Signal-to-Noise Ratio (PSNR) improvement of 0.83 dB. Similarly, in image dehazing, the AODNet model saw its PSNR increase from 18.80 to 19.35.

Medical Image Segmentation

On the Synapse dataset, a U-Net equipped with FourierUp showed significant gains in boundary accuracy. The Hausdorff Distance (HD95) dropped from 39.70 to 35.86 (lower is better), indicating that the global spectral information helped the model better delineate complex anatomical structures.

Object Detection

Even in high-performing models like Faster R-CNN on PASCAL VOC, FourierUp provided a consistent boost, raising the mAP (mean Average Precision) from 79.10 to 79.15 when using the padding variant.

Discussion: Feature Disentanglement

Beyond raw metrics, FourierUp appears to aid in "feature disentanglement." Visualizations of feature maps suggest that the spectral approach allows the network to more effectively separate foreground noise (like rain streaks) from background content. This suggests that the frequency domain provides a more natural space for separating overlapping global patterns than the spatial domain.

Conclusion and Limitations

FourierUp represents a significant step toward "equitable spectral up-sampling." While it introduces a slight computational overhead due to the FFT/iFFT operations and a minor increase in parameter count, the performance gains across varied tasks justify the cost. Future work may extend this spectral approach to other restoration tasks such as de-blurring or de-noising, further exploring the potential of global frequency-domain modeling in deep learning.

Summary updated

BibTeX
@inproceedings{zhou2022deep,
  author = {Man Zhou and Hu Yu and Jie Huang and Feng Zhao and Jinwei Gu and Chen Change Loy and Deyu Meng and Chongyi Li},
  title = {{Deep Fourier Up-Sampling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure