Wavelet Convolutions for Large Receptive Fields

Shahaf E. Finder, Roy Amoyal, Eran Treister, Oren Freifeld · DOI

TL;DR

This paper introduces WTConv, a novel convolutional layer that leverages Wavelet Transforms to achieve significantly larger receptive fields in CNNs without the parameter explosion seen in traditional large-kernel approaches. WTConv offers a drop-in replacement for existing depth-wise convolutions, improving performance, robustness, and shape bias in various computer vision tasks.

What Problem Does This Paper Address?

For years, Convolutional Neural Networks (CNNs) have been the workhorse of computer vision. However, the rise of Vision Transformers (ViTs) highlighted a key advantage: their self-attention mechanisms allow for global feature mixing, enabling them to capture long-range dependencies that standard CNNs, with their inherently local receptive fields, struggle with. Researchers have tried to bridge this gap by increasing CNN kernel sizes, but this approach quickly hits a performance ceiling and leads to an explosion in trainable parameters. This paper addresses the challenge of achieving large receptive fields in CNNs efficiently, aiming to match ViTs' global context understanding without sacrificing computational efficiency or introducing excessive parameters.

Methods

The core innovation is the WTConv layer. It works by:

  1. Wavelet Decomposition: The input feature map is first decomposed into different frequency bands (low-pass and high-pass) using a Wavelet Transform (specifically, the Haar wavelet is used for its efficiency). This decomposition is applied recursively to the low-frequency component, creating multiple levels of frequency representations.
  2. Small-Kernel Convolutions: Instead of applying a single large kernel to the entire feature map, WTConv applies small-kernel (e.g., 3x3 or 5x5) depth-wise convolutions to each of these frequency bands. This allows the network to process information at different scales and frequencies.
  3. Wavelet Reconstruction: The outputs from these small-kernel convolutions are then combined and reconstructed back into the spatial domain using an Inverse Wavelet Transform.

The key advantage is that the number of trainable parameters in WTConv grows logarithmically with the desired receptive field size, a significant improvement over the quadratic growth of traditional large-kernel methods. WTConv is designed as a drop-in replacement for existing depth-wise convolutions.

Datasets

The paper uses standard datasets for evaluation:

  • ImageNet-1K: For image classification.
  • ADE20K: For semantic segmentation.
  • COCO: For object detection.
  • ImageNet-50/100/200: Subsets of ImageNet used for scalability analysis.
  • ImageNet-C, ImageNet-R, ImageNet-A, ImageNet-Sketch: Datasets used for robustness evaluation.

No new benchmarks were introduced.

Key Insights and Ideas

  • Wavelets as a Parameter-Efficient Receptive Field Extender: The most significant insight is that wavelets provide a principled way to decompose features into frequency bands, allowing small kernels to operate on these bands and effectively achieve large receptive fields without parameter bloat.
  • Multi-Frequency Response: WTConv naturally captures multi-frequency information, which is crucial for understanding image content. This contrasts with standard convolutions that tend to focus on high frequencies.
  • Shape Bias Improvement: The paper demonstrates that WTConv encourages a stronger "shape bias" in CNNs. This is desirable because human perception often relies more on shape than texture, and WTConv's emphasis on lower frequencies (which define shapes) likely contributes to this.
  • Robustness to Corruption: WTConv networks show improved robustness to various image corruptions (noise, blur, etc.), suggesting that their multi-frequency processing helps preserve essential information even under degraded conditions.

Key Results

  • ImageNet Classification: WTConvNeXt-T achieved state-of-the-art results on ImageNet-1K classification with fewer parameters than other top-scoring methods, reaching a global receptive field. For example, WTConvNeXt-S achieved 83.6% Top-1 accuracy with 54M parameters, outperforming ConvNeXt-S (83.1% with 50M parameters) and other large-kernel methods.
  • Downstream Tasks: WTConvNeXt as a backbone improved performance in semantic segmentation (ADE20K) by 0.3-0.6% mIoU and in object detection (COCO) by 0.6-0.7% in AP metrics.
  • Robustness: WTConvNeXt consistently showed better accuracy (1-2.2% gain) on various corrupted datasets (ImageNet-C, R, A, Sketch) compared to standard ConvNeXt.
  • Shape Bias: WTConv increased shape bias by 8-12% across categories.
  • Scalability: WTConv scaled better than large-kernel methods like RepLK on MobileNetV2, achieving comparable or better accuracy with fewer parameters for larger receptive fields.
  • Computational Cost: While the naive implementation showed a throughput of 66-70% of the original network, the paper argues that specialized implementations can mitigate this overhead. The FLOPs for WTConv are significantly lower than traditional large-kernel convolutions for equivalent receptive fields.

Limitations and Future Work

  • Naive Implementation Overhead: The paper acknowledges that the current naive implementation of WTConv has a running time overhead compared to standard convolutions, even though FLOPs are lower. They suggest that specialized implementations (e.g., parallel WT/convolution, in-place operations) can alleviate this.
  • Wavelet Basis Exploration: While the Haar wavelet was used for efficiency, the authors suggest that exploring other wavelet bases might further improve performance.
  • Future Work: The paper leaves further exploration of different wavelet bases and more optimized implementations for future work. They also suggest that WTConv's benefits extend beyond the tested architectures and tasks.

Summary updated

BibTeX
@inproceedings{finder2024wavelet,
  author = {Shahaf E. Finder and Roy Amoyal and Eran Treister and Oren Freifeld},
  title = {{Wavelet Convolutions for Large Receptive Fields}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72949-2\_21},
}
Figure