Adaptive Fourier Neural Operators: Efficient Token Mixers for Transformers

By John Guibas, Morteza Mardani, Zong-Yi Li, Andrew Tao, Anima Anandkumar, Bryan Catanzaro. arXiv.org, 2021

388 citations recorded by the source corpus.

Vision transformers have delivered tremendous success in representation learning. This is primarily due to effective token mixing through self attention. However, this scales quadratically with the number of pixels, which becomes infeasible for high-resolution inputs. To cope with this challenge, we propose Adaptive Fourier Neural Operator (AFNO) as an efficient token mixer that learns to mix in the Fourier domain. AFNO is based on a principled foundation of operator learning which allows us to frame token mixing as a continuous global convolution without any dependence on the input resolution. This principle was previously used to design FNO, which solves global convolution efficiently in the Fourier domain and has shown promise in learning challenging PDEs. To handle challenges in visual representation learning such as discontinuities in images and high resolution inputs, we propose principled architectural modifications to FNO which results in memory and computational efficiency. This includes imposing a block-diagonal structure on the channel mixing weights, adaptively sharing weights across tokens, and sparsifying the frequency modes via soft-thresholding and shrinkage. The resulting model is highly parallel with a quasi-linear complexity and has linear memory in the sequence size. AFNO outperforms self-attention mechanisms for few-shot segmentation in terms of both efficiency and accuracy. For Cityscapes segmentation with the Segformer-B3 backbone, AFNO can handle a sequence size of 65k and outperforms other efficient self-attention mechanisms.

Subfields: Computer Vision and Pattern Recognition, Electrical and Electronic Engineering

View Paper: https://www.semanticscholar.org/paper/427fe0e6e2e2d6f927c62e80c75706e02c2a747f

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Dacheng Tao
  4. Xiaogang Wang
  5. Alan L. Yuille
  6. Trevor Darrell
  7. Abhinav Kumar Gupta
  8. Jitendra Malik

In Electrical and Electronic Engineering

  1. Anima Anandkumar
  2. Zong-Yi Li
  3. Shakir Mohamed
  4. Oriol Vinyals
  5. Dit-Yan Yeung
  6. Alexander Pritzel
  7. Mu Li
  8. Ferran Alet

Citations in the corpus