KDEformer: Accelerating Transformers via Kernel Density Estimation
Not on the map. Why?
Abstract (arXiv)
Dot-product attention mechanism plays a crucial role in modern deep architectures (e.g., Transformer) for sequence modeling, however, na"ive exact computation of this model incurs quadratic time and memory complexities in sequence length, hindering the training of long-sequence models. Critical bottlenecks are due to the computation of partition functions in the denominator of softmax function as well as the multiplication of the softmax matrix with the matrix of values. Our key observation is that the former can be reduced to a variant of the kernel density estimation (KDE) problem, and an efficient KDE solver can be further utilized to accelerate the latter via subsampling-based fast matrix products. Our proposed KDEformer can approximate the attention in sub-quadratic time with provable spectral norm bounds, while all prior results merely provide entry-wise error bounds. Empirically, we verify that KDEformer outperforms other attention approximations in terms of accuracy, memory, and runtime on various pre-trained models. On BigGAN image generation, we achieve better generative scores than the exact computation with over 4× speedup. For ImageNet classification with T2T-ViT, KDEformer shows over 18× speedup while the accuracy drop is less than 0.5%.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). Builds on 26 of its 39 references that are in the map. First posted on arXiv 5 Feb 2023.
Builds on
26 of 39 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2016Improved Techniques for Training GANscited by 2,938
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
14 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2020Efficient Transformers: A Surveycited by 784
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2015An Introduction to Matrix Concentration Inequalitiescited by 391
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
- 2021Pixelated Butterfly: Simple and Efficient Sparse training for Neural Network Modelscited by 75
- 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
- 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
- 2018Hashing-Based-Estimators for Kernel Density in High Dimensionscited by 31
- 2022ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attentioncited by 29
- 2020Kernel Density Estimation through Density Constrained Near Neighbor Searchcited by 26
Built on by
Citing papers per year: 2023: 29; 2024: 11; 2025: 8; 2026: 10.
58 papers.
Sort:
By area:
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023Attention Scheme Inspired Softmax Regressioncited by 49
- 2023An Over-parameterized Exponential Regressioncited by 45
- 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
- 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
- 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
- 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
38 more
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 29
- 2023Differentially Private Attention Computationcited by 25
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
- 2024A Tighter Complexity Analysis of SparseGPTcited by 19
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
- 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2024What Can We Learn from State Space Models for Machine Learning on Graphs?cited by 13
- 2023A Unified Scheme of ResNet and Softmaxcited by 12
- 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
- 2024Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Modelscited by 11
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2025Streaming Attention Approximation via Discrepancy Theorycited by 9
- 2023Solving Tensor Low Cycle Rank Approximationcited by 8
- 2023The Expressibility of Polynomial based Attention Schemecited by 7
- 2023Convergence of Two-Layer Regression with Nonlinear Unitscited by 6
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashingcited by 6
- 2025VIBE: Vector Index Benchmark for Embeddingscited by 6
- 2026WildCat: Near-Linear Attention in Theory and Practicecited by 6
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptionscited by 4
- 2026Nearly Optimal Attention Coresetscited by 4
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentionscited by 3
- 2025Fast attention mechanisms: a tale of parallelismcited by 2
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimationcited by 1
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2023Fast Heavy Inner Product Identification Between Weights and Inputs in Neural Network Trainingcited by 0
50 most cited of 58 All 58 (JSON)
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioning30 Sep 2026
- 2026Efficiently Approximating Attention Is Hard29 Sep 2026
- 2026DimPO: Dimensionality Reduction for Attention using Preference Optimization26 Sep 2026
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2026Express Language Modeling9 Jun 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026Nearly Optimal Attention Coresets7 May 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligence13 Feb 2026
- 2026WildCat: Near-Linear Attention in Theory and Practice10 Feb 2026
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimation2 Oct 2025
38 more
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions31 Jul 2025
- 2025VIBE: Vector Index Benchmark for Embeddings23 May 2025
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperature20 May 2025
- 2025Streaming Attention Approximation via Discrepancy Theory11 Feb 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing13 Dec 2024
- 2024kNN Attention Demystified: A Theoretical Exploration for Scalable Transformers6 Nov 2024
- 2024MagicPIG: LSH Sampling for Efficient LLM Generation21 Oct 2024
- 2024Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Models9 Oct 2024
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentions7 Oct 2024
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers5 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024A Tighter Complexity Analysis of SparseGPT22 Aug 2024
- 2024What Can We Learn from State Space Models for Machine Learning on Graphs?9 Jun 2024
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Time26 May 2024
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Models7 Feb 2024
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regression26 Nov 2023
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Space24 Nov 2023
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformer22 Nov 2023
- 2023Fast Heavy Inner Product Identification Between Weights and Inputs in Neural Network Training19 Nov 2023
- 2023The Expressibility of Polynomial based Attention Scheme30 Oct 2023
- 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weights19 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
- 2023A Unified Scheme of ResNet and Softmax23 Sep 2023
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Time14 Sep 2023
- 2023Solving Attention Kernel Regression Problem via Pre-conditioner28 Aug 2023
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Models21 Aug 2023
- 2023Convergence of Two-Layer Regression with Nonlinear Units16 Aug 2023
- 2023Zero-th Order Algorithm for Softmax Attention Optimization17 Jul 2023
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computation16 Jul 2023
- 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trick5 Jul 2023
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understanding8 Jun 2023
- 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Models4 Jun 2023
- 2023Differentially Private Attention Computation8 May 2023
50 newest of 58 All 58 (JSON)
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashingcited by 6
- 2026Beyond Sparse Weights: When Is Attention Compressible?cited by 0
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioningcited by 0
- 2026CommunityKV: Efficient Long-Context Decoding via Graph Partitioning30 Sep 2026
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashing13 Dec 2024
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023Attention Scheme Inspired Softmax Regressioncited by 49
- 2023An Over-parameterized Exponential Regressioncited by 45
- 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
- 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
- 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
- 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
12 most cited of 50 All 50 (JSON)
- 2026Efficiently Approximating Attention Is Hard29 Sep 2026
- 2026Express Language Modeling9 Jun 2026
- 2026Nearly Optimal Attention Coresets7 May 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligence13 Feb 2026
- 2026WildCat: Near-Linear Attention in Theory and Practice10 Feb 2026
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Even Faster Kernel Matrix Linear Algebra via Density Estimation2 Oct 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions31 Jul 2025
- 2025VIBE: Vector Index Benchmark for Embeddings23 May 2025
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperature20 May 2025
12 newest of 50 All 50 (JSON)