mlsanityData to 14 Oct 2026

SMYRF: Efficient Attention using Asymmetric Clustering

arXiv 2010.05315 ↗First posted 11 Oct 2020cs.LGcited by 43

Not on the map. Why?

Abstract (arXiv)

We propose a novel type of balanced clustering algorithm to approximate attention. Attention complexity is reduced from O(N2) to O(N log N), where N is the sequence length. Our algorithm, SMYRF, uses Locality Sensitive Hashing (LSH) in a novel way by defining new Asymmetric transformations and an adaptive scheme that produces balanced clusters. The biggest advantage of SMYRF is that it can be used as a drop-in replacement for dense attention layers without any retraining. On the contrary, prior fast attention methods impose constraints (e.g. queries and keys share the same vector representations) and require re-training from scratch. We apply our method to pre-trained state-of-the-art Natural Language Processing and Computer Vision models and we report significant memory and speed benefits. Notably, SMYRF-BERT outperforms (slightly) BERT on GLUE, while using 50% less memory. We also show that SMYRF can be used interchangeably with dense attention before and after training. Finally, we use SMYRF to train GANs with attention in high resolutions. Using a single TPU, we were able to scale attention to 128x128=16k and 256x256=65k tokens on BigGAN on CelebA-HQ.

Key facts. Cited by 43 papers in the map (data through 14 Oct 2026). First posted on arXiv 11 Oct 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 5; 2022: 10; 2023: 14; 2024: 6; 2025: 5; 2026: 3.

43 papers.

Sort:

By area:

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  3. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  4. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
  5. 2023Token Fusion: Bridging the Gap between Token Pruning and Token Mergingcited by 125
  6. 2023Fast Attention Requires Bounded Entriescited by 102
  7. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  8. 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
  9. 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
  10. 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 51
  11. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  12. 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
31 more
  1. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  2. 2021Container: Context Aggregation Networkcited by 37
  3. 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
  4. 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
  5. 2024Accelerating Transformers with Spectrum-Preserving Token Mergingcited by 35
  6. 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuningcited by 33
  7. 2024Graph Transformers: A Surveycited by 32
  8. 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
  9. 2022Vicinity Vision Transformercited by 22
  10. 2022EcoFormer: Energy-Saving Attention with Linear Complexitycited by 21
  11. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  12. 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
  13. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  14. 2021Predicting Attention Sparsity in Transformerscited by 13
  15. 2024What Can We Learn from State Space Models for Machine Learning on Graphs?cited by 13
  16. 2024Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physicscited by 12
  17. 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 12
  18. 2023AiluRus: A Scalable ViT Framework for Dense Predictioncited by 10
  19. 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
  20. 2021Solving Inverse Problems with NerfGANscited by 7
  21. 2023TRAMS: Training-free Memory Selection for Long-range Language Modelingcited by 5
  22. 2025MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attentioncited by 5
  23. 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Costcited by 4
  24. 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
  25. 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
  26. 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
  27. 2026Partition the Support, Reconstruct the Residual: Training-Free Sparse Attention for Video Generation and World Modelscited by 1
  28. 2023An Evaluation of Memory Optimization Methods for Training Neural Networkscited by 0
  29. 2024CAST: Clustering Self-Attention using Surrogate Tokens for Efficient Transformerscited by 0
  30. 2025On the Approximation of Phylogenetic Distance Functions by Artificial Neural Networkscited by 0
  31. 2026Approaching I/O-optimality for Approximate Attentioncited by 0