Wavelet Convolutions for Large Receptive Fields

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

Abstract

While Convolutional Neural Networks (CNNs) have long dominated computer vision, they often struggle to capture the global context that Vision Transformers (ViTs) handle naturally via self-attention. Traditional attempts to expand the receptive field of CNNs through larger kernel sizes encounter significant challenges, including over-parameterization and optimization saturation. This paper introduces WTConv, a novel convolutional layer that utilizes a wavelet-based multi-frequency response to achieve exceptionally large receptive fields. By leveraging the Discrete Wavelet Transform (DWT), WTConv allows for a logarithmic growth in parameters relative to the receptive field size, enhancing model accuracy, robustness, and shape bias.

Introduction

The primary architectural advantage of Vision Transformers over traditional CNNs is their global receptive field. While CNNs are inherently biased toward local pixel neighborhoods, ViTs can integrate information across an entire image. To bridge this gap, researchers have experimented with increasing CNN kernel sizes (e.g., from 3x3 to 31x31). However, this "brute force" scaling often leads to diminishing returns. Large kernels introduce a massive number of trainable weights, increasing the risk of overfitting and focusing the network excessively on high-frequency textures rather than global structures.

WTConv addresses these issues by treating convolution through the lens of signal processing. By decomposing inputs into multiple frequency bands using wavelets, the network can efficiently process low-frequency, global information alongside high-frequency details.

Methodology: The WTConv Layer

The core innovation of this work is the WTConv layer, designed as a drop-in replacement for standard depth-wise convolutions. The architecture relies on three key components:

1. The Wavelet Cascade

WTConv employs a multi-level Haar Wavelet Transform. In a recursive process, the input is decomposed into low-frequency approximations and high-frequency details. Each level of the cascade effectively halves the spatial resolution, which means a fixed-size kernel (e.g., 5x5) applied at a deeper level covers a significantly larger portion of the original image. Specifically, for a cascade of level $L$ and a kernel of size $k$, the effective receptive field grows exponentially as $2^L \times k$.

2. Multi-Frequency Processing

Unlike standard convolutions that treat all frequencies equally, WTConv processes different frequency bands separately. This allows the model to capture both the fine-grained textures (high frequency) and the overarching geometric shapes (low frequency) of an object.

3. Logarithmic Parameter Scaling

Because the receptive field expansion is driven by the wavelet decomposition rather than kernel size increases, the number of trainable parameters grows only linearly with the number of levels ($L$). This results in a parameter cost that is logarithmic relative to the total area of the receptive field, providing a much more efficient scaling path than traditional large-kernel methods like RepLKNet or SLaK.

Experimental Setup

The authors evaluated the efficacy of WTConv across several benchmark datasets to test general performance, localization, and generalization:

  • ImageNet-1K: Evaluated for top-1 classification accuracy.
  • ADE20K: Tested for semantic segmentation performance using the UperNet framework.
  • MS COCO: Utilized for object detection and instance segmentation via Cascade Mask R-CNN.
  • Robustness Suites: Including ImageNet-C (corruptions), ImageNet-R (renditions), ImageNet-A (adversarial), and ImageNet-Sketch.

Key Results and Discussion

Performance and Efficiency

On ImageNet-1K, a ConvNeXt-T model equipped with WTConv achieved 81.7% top-1 accuracy, a notable improvement over the 81.0% baseline. Crucially, it outperformed other large-kernel competitors while maintaining a lower parameter count. In downstream tasks, WTConv improved mIoU on ADE20K by 0.6% and showed consistent gains in Average Precision (AP) for object detection on COCO.

Shape Bias and Robustness

One of the most significant qualitative shifts observed was an 8-12% increase in shape bias. Standard CNNs are often criticized for relying on local textures (e.g., the skin of an elephant) to identify objects. WTConv encourages the model to prioritize low-frequency components, leading to a more human-like recognition of global geometry. This shift directly translates to improved robustness; on ImageNet-C, WTConv reduced the mean Corruption Error (mCE) by approximately 1.2 points, demonstrating superior resilience against noise and blur.

Limitations and Future Directions

Despite its theoretical and empirical advantages, WTConv faces practical implementation hurdles. Currently, the sequential nature of wavelet operations in standard deep learning frameworks like PyTorch leads to higher latency compared to highly optimized standard convolutions. Future work involving specialized CUDA kernels is expected to mitigate this overhead. Additionally, while this study focused on the Haar wavelet, exploring more sophisticated bases like Daubechies wavelets may further enhance feature extraction capabilities.

Conclusion

WTConv successfully demonstrates that CNNs do not need massive, over-parameterized kernels to achieve a global view. By integrating the Wavelet Transform into the convolutional block, researchers can build models that are not only more accurate but also more robust and better aligned with the structural properties of the visual world.

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