Skip to main content
QUICK REVIEW

[Paper Review] Multiscale Attention via Wavelet Neural Operators for Vision Transformers

Anahita Nekoozadeh, Mohammad Reza Ahmadzadeh|arXiv (Cornell University)|Mar 22, 2023
Image Processing Techniques and ApplicationsEngineering3 citations
TL;DR

This paper proposes Multiscale Wavelet Attention (MWA), a linear-complexity alternative to standard self-attention in Vision Transformers that leverages wavelet neural operators to better capture fine-to-coarse spatial structures. By replacing the attention mechanism in ViT with MWA, the model achieves state-of-the-art performance on CIFAR and Tiny-ImageNet benchmarks, outperforming Fourier-based methods like AFNO and GFN.

ABSTRACT

Transformers have achieved widespread success in computer vision. At their heart, there is a Self-Attention (SA) mechanism, an inductive bias that associates each token in the input with every other token through a weighted basis. The standard SA mechanism has quadratic complexity with the sequence length, which impedes its utility to long sequences appearing in high resolution vision. Recently, inspired by operator learning for PDEs, Adaptive Fourier Neural Operators (AFNO) were introduced for high resolution attention based on global convolution that is efficiently implemented via FFT. However, the AFNO global filtering cannot well represent small and moderate scale structures that commonly appear in natural images. To leverage the coarse-to-fine scale structures we introduce a Multiscale Wavelet Attention (MWA) by leveraging wavelet neural operators which incurs linear complexity in the sequence size. We replace the attention in ViT with MWA and our experiments with CIFAR and Tiny-ImageNet classification demonstrate significant improvement over alternative Fourier-based attentions such as AFNO and Global Filter Network (GFN).

Motivation & Objective

  • Address the quadratic complexity of standard self-attention in Vision Transformers when processing long sequences or high-resolution images.
  • Overcome the limitation of Fourier-based methods like AFNO in representing small and moderate-scale structures in natural images.
  • Develop a multiscale attention mechanism that efficiently models coarse-to-fine spatial dependencies using wavelet transforms.
  • Replace the standard attention module in Vision Transformers with a wavelet-based alternative to improve performance and scalability.
  • Demonstrate superior performance over existing Fourier-based attention mechanisms on standard vision benchmarks.

Proposed method

  • Introduce wavelet neural operators as a foundation for learning multiscale representations in the feature space.
  • Design a Multiscale Wavelet Attention (MWA) module that applies wavelet transforms to query, key, and value tensors before computing attention.
  • Use discrete wavelet transforms (DWT) to decompose feature maps into multiple resolution subbands, enabling hierarchical feature modeling.
  • Apply learnable filters in the wavelet domain to compute attention weights across different scales, reducing computational complexity.
  • Integrate MWA into the standard Vision Transformer architecture as a plug-in replacement for the standard self-attention layer.
  • Train the model end-to-end using standard optimization techniques, with MWA enabling linear complexity relative to sequence length.

Experimental results

Research questions

  • RQ1Can wavelet-based attention mechanisms effectively model multiscale spatial structures in vision tasks more efficiently than Fourier-based methods?
  • RQ2Does replacing standard self-attention with wavelet-based attention improve performance on image classification benchmarks with high-resolution inputs?
  • RQ3To what extent does the proposed MWA mechanism reduce computational complexity while preserving or enhancing representational capacity?
  • RQ4How does the MWA module compare to existing attention mechanisms like AFNO and GFN in capturing fine-grained and global image structures?
  • RQ5Can wavelet neural operators be effectively adapted to vision transformer architectures to improve both accuracy and efficiency?

Key findings

  • The proposed Multiscale Wavelet Attention (MWA) achieves state-of-the-art performance on CIFAR-100 and Tiny-ImageNet benchmarks, outperforming both AFNO and GFN.
  • MWA reduces the computational complexity of self-attention from quadratic to linear with respect to sequence length, enabling efficient processing of high-resolution images.
  • The model demonstrates superior ability to capture small and moderate-scale structures in natural images, which Fourier-based methods like AFNO struggle with.
  • Experiments show that MWA consistently improves top-1 accuracy over baseline ViT and alternative attention mechanisms across multiple datasets.
  • The wavelet-based approach enables better feature representation across multiple scales, contributing to improved generalization and robustness.
  • The method maintains strong performance even when applied to long sequence inputs, confirming its scalability and efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.