mlsanityData to 7 Oct 2026

Fast Multipole Attention: A Scalable Multilevel Attention Mechanism for Text and Images

arXiv 2310.11960 ↗First posted 18 Oct 2023cs.CL cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

While Transformer networks benefit from a global receptive field, their quadratic cost relative to sequence length restricts their application to long sequences and high-resolution inputs. We introduce Fast Multipole Attention (FMA), a divide-and-conquer mechanism for self-attention inspired by the Fast Multipole Method from n-body physics. FMA reduces the time and memory complexity of self-attention from Oleft(n2right) to O(n log n) and O(n) while preserving full-context interactions. FMA contains a learned hierarchy with O(log n) levels of resolution. In this hierarchy, nearby tokens interact at full resolution, while distant tokens engage through progressively coarser, learned basis functions. We have developed both 1D and 2D implementations of FMA for language and vision tasks, respectively. On autoregressive and bidirectional language modeling benchmarks, the 1D variant either matches or outperforms leading efficient attention baselines with substantially lower memory use. With linear complexity, the 2D variant demonstrates superior performance over strong vision transformer baselines in classification and semantic segmentation tasks. Our results confirm that the multilevel attention implemented by FMA allows Transformer-based models to scale to much longer sequences and higher-resolution inputs without loss in accuracy. This provides a principled, physics-inspired approach for developing scalable neural networks suitable for language, vision, and multimodal tasks. Our code will be available at https://github.com/epoch98/FMA.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 28 of its 41 references that are in the map. First posted on arXiv 18 Oct 2023.

Builds on

28 of 41 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  10. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  11. 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
16 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2020Rethinking Attention with Performerscited by 1,584
  3. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  4. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  6. 2022A Generalist Agentcited by 802
  7. 2020Efficient Transformers: A Surveycited by 784
  8. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  9. 2019Axial Attention in Multidimensional Transformerscited by 350
  10. 2021Random Feature Attentioncited by 350
  11. 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
  12. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  13. 2020Fast Transformers with Clustered Attentioncited by 123
  14. 2021H-Transformer-1D: Fast One-Dimensional Hierarchical Attention for Sequencescited by 47
  15. 2020Cluster-Former: Clustering-based Sparse Transformer for Long-Range Dependency Encodingcited by 19
  16. 2022Multi Resolution Analysis (MRA) for Approximate Self-Attentioncited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.