SMYRF: Efficient Attention using Asymmetric Clustering
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
Citing papers per year: 2021: 5; 2022: 10; 2023: 14; 2024: 6; 2025: 5; 2026: 3.
43 papers.
Sort:
By area:
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2023Token Fusion: Bridging the Gap between Token Pruning and Token Mergingcited by 125
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 51
- 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
31 more
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
- 2021Container: Context Aggregation Networkcited by 37
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
- 2024Accelerating Transformers with Spectrum-Preserving Token Mergingcited by 35
- 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuningcited by 33
- 2024Graph Transformers: A Surveycited by 32
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2022Vicinity Vision Transformercited by 22
- 2022EcoFormer: Energy-Saving Attention with Linear Complexitycited by 21
- 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2021Predicting Attention Sparsity in Transformerscited by 13
- 2024What Can We Learn from State Space Models for Machine Learning on Graphs?cited by 13
- 2024Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physicscited by 12
- 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 12
- 2023AiluRus: A Scalable ViT Framework for Dense Predictioncited by 10
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2021Solving Inverse Problems with NerfGANscited by 7
- 2023TRAMS: Training-free Memory Selection for Long-range Language Modelingcited by 5
- 2025MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attentioncited by 5
- 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Costcited by 4
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
- 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
- 2026Partition the Support, Reconstruct the Residual: Training-Free Sparse Attention for Video Generation and World Modelscited by 1
- 2023An Evaluation of Memory Optimization Methods for Training Neural Networkscited by 0
- 2024CAST: Clustering Self-Attention using Surrogate Tokens for Efficient Transformerscited by 0
- 2025On the Approximation of Phylogenetic Distance Functions by Artificial Neural Networkscited by 0
- 2026Approaching I/O-optimality for Approximate Attentioncited by 0
- 2026Partition the Support, Reconstruct the Residual: Training-Free Sparse Attention for Video Generation and World Models19 Aug 2026
- 2026Approaching I/O-optimality for Approximate Attention22 May 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2025On the Approximation of Phylogenetic Distance Functions by Artificial Neural Networks1 Dec 2025
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?7 Nov 2025
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Kinetics: Rethinking Test-Time Scaling Laws5 Jun 2025
- 2025MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attention24 May 2025
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers5 Oct 2024
- 2024Graph Transformers: A Survey13 Jul 2024
- 2024What Can We Learn from State Space Models for Machine Learning on Graphs?9 Jun 2024
- 2024Accelerating Transformers with Spectrum-Preserving Token Merging25 May 2024
31 more
- 2024Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physics19 Feb 2024
- 2024CAST: Clustering Self-Attention using Surrogate Tokens for Efficient Transformers6 Feb 2024
- 2023Token Fusion: Bridging the Gap between Token Pruning and Token Merging2 Dec 2023
- 2023AiluRus: A Scalable ViT Framework for Dense Prediction2 Nov 2023
- 2023TRAMS: Training-free Memory Selection for Long-range Language Modeling24 Oct 2023
- 2023Why Softmax Attention Outperforms Linear Attention18 Oct 2023
- 2023HyperAttention: Long-context Attention in Near-Linear Time9 Oct 2023
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computation6 Oct 2023
- 2023Solving Attention Kernel Regression Problem via Pre-conditioner28 Aug 2023
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computation16 Jul 2023
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regression26 Apr 2023
- 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimension10 Apr 2023
- 2023Solving Regularized Exp, Cosh and Sinh Regression Problems28 Mar 2023
- 2023An Evaluation of Memory Optimization Methods for Training Neural Networks26 Mar 2023
- 2023Fast Attention Requires Bounded Entries26 Feb 2023
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimation5 Feb 2023
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Models28 Dec 2022
- 2022Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Cost27 Oct 2022
- 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuning3 Oct 2022
- 2022EcoFormer: Energy-Saving Attention with Linear Complexity19 Sep 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2022Vicinity Vision Transformer21 Jun 2022
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness27 May 2022
- 2022Visual Attention Methods in Deep Learning: An In-Depth Survey16 Apr 2022
- 2022Linear Complexity Randomized Self-attention Mechanism10 Apr 2022
- 2022cosFormer: Rethinking Softmax in Attention17 Feb 2022
- 2021Solving Inverse Problems with NerfGANs16 Dec 2021
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximation28 Oct 2021
- 2021Predicting Attention Sparsity in Transformers24 Sep 2021
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encoding23 Jun 2021
- 2021Container: Context Aggregation Network2 Jun 2021
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 12
- 2025Kinetics: Rethinking Test-Time Scaling Laws5 Jun 2025
- 2022cosFormer: Rethinking Softmax in Attention17 Feb 2022
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 51
- 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
- 2021Container: Context Aggregation Networkcited by 37
12 most cited of 37 All 37 (JSON)
- 2026Approaching I/O-optimality for Approximate Attention22 May 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2025On the Approximation of Phylogenetic Distance Functions by Artificial Neural Networks1 Dec 2025
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?7 Nov 2025
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025MonarchAttention: Zero-Shot Conversion to Fast, Hardware-Aware Structured Attention24 May 2025
- 2024Graph Transformers: A Survey13 Jul 2024
- 2024What Can We Learn from State Space Models for Machine Learning on Graphs?9 Jun 2024
- 2024Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physics19 Feb 2024
- 2024CAST: Clustering Self-Attention using Surrogate Tokens for Efficient Transformers6 Feb 2024
- 2023AiluRus: A Scalable ViT Framework for Dense Prediction2 Nov 2023
- 2023TRAMS: Training-free Memory Selection for Long-range Language Modeling24 Oct 2023
12 newest of 37 All 37 (JSON)