mlsanityData to 7 Oct 2026

KDEformer: Accelerating Transformers via Kernel Density Estimation

arXiv 2302.02451 ↗First posted 5 Feb 2023cs.LG cs.CV cs.DScited by 58

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  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. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2016Improved Techniques for Training GANscited by 2,938
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  9. 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
  10. 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
14 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2020Rethinking Attention with Performerscited by 1,584
  3. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  4. 2020Efficient Transformers: A Surveycited by 784
  5. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  6. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  7. 2015An Introduction to Matrix Concentration Inequalitiescited by 391
  8. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
  9. 2021Pixelated Butterfly: Simple and Efficient Sparse training for Neural Network Modelscited by 75
  10. 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
  11. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  12. 2018Hashing-Based-Estimators for Kernel Density in High Dimensionscited by 31
  13. 2022ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attentioncited by 29
  14. 2020Kernel Density Estimation through Density Constrained Near Neighbor Searchcited by 26

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 29; 2024: 11; 2025: 8; 2026: 10.

58 papers.

Sort:

By area:

  1. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  2. 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
  3. 2023Fast Attention Requires Bounded Entriescited by 102
  4. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  5. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  6. 2023An Over-parameterized Exponential Regressioncited by 45
  7. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  8. 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
  9. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  10. 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
  11. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  12. 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
38 more
  1. 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
  2. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  3. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  4. 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
  5. 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 29
  6. 2023Differentially Private Attention Computationcited by 25
  7. 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
  8. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  9. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  10. 2024A Tighter Complexity Analysis of SparseGPTcited by 19
  11. 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
  12. 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
  13. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  14. 2024What Can We Learn from State Space Models for Machine Learning on Graphs?cited by 13
  15. 2023A Unified Scheme of ResNet and Softmaxcited by 12
  16. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  17. 2024Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Modelscited by 11
  18. 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
  19. 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
  20. 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
  21. 2025Streaming Attention Approximation via Discrepancy Theorycited by 9
  22. 2023Solving Tensor Low Cycle Rank Approximationcited by 8
  23. 2023The Expressibility of Polynomial based Attention Schemecited by 7
  24. 2023Convergence of Two-Layer Regression with Nonlinear Unitscited by 6
  25. 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
  26. 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
  27. 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashingcited by 6
  28. 2025VIBE: Vector Index Benchmark for Embeddingscited by 6
  29. 2026WildCat: Near-Linear Attention in Theory and Practicecited by 6
  30. 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
  31. 2025Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptionscited by 4
  32. 2026Nearly Optimal Attention Coresetscited by 4
  33. 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentionscited by 3
  34. 2025Fast attention mechanisms: a tale of parallelismcited by 2
  35. 2025Even Faster Kernel Matrix Linear Algebra via Density Estimationcited by 1
  36. 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
  37. 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
  38. 2023Fast Heavy Inner Product Identification Between Weights and Inputs in Neural Network Trainingcited by 0

50 most cited of 58 All 58 (JSON)