Lune

ICLR2025顶会

Improved Algorithms for Kernel Matrix-Vector Multiplication Under Sparsity Assumptions

Piotr Indyk, Michael Kapralov, Kshiteej Sheth, Tal Wagner

摘要

Motivated by the problem of fast processing of attention matrices, we study fast algorithms for computing matrix-vector products for asymmetric Gaussian Kernel matrices K ∈ R n×n . K's columns are indexed by a set of n keys k 1 , k 2 . . . , k n ∈ R d , rows by a set of n queries q 1 , q 2 , . . . , q n ∈ R d , and its i, j entry is

for some bandwidth parameter σ > 0. Given a vector x ∈ R n and error parameter ϵ > 0, our task is to output a y ∈ R n such that ∥Kx -y∥ 2 ≤ ϵ∥x∥ 2 in time subquadratic in n and linear in d. Our algorithms rely on the following modelling assumption about the matrices K: the sum of the entries of K scales linearly in n, as opposed to worst case quadratic growth. We validate this assumption experimentally, for Gaussian kernel matrices encountered in various settings such as fast attention computation in LLMs. We obtain the first subquadratic-time algorithm that works under this assumption, for unrestricted vectors.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Scatterbrain: Unifying Sparse and Low-rank Attention 引用了 Big Bird: Transformers for Longer Sequences
  • Scatterbrain: Unifying Sparse and Low-rank Attention 引用了 Rethinking Attention with Performers
  • Scatterbrain: Unifying Sparse and Low-rank Attention 引用了 Reformer: The Efficient Transformer
  • Big Bird: Transformers for Longer Sequences 引用了 Reformer: The Efficient Transformer
  • Rethinking Attention with Performers 引用了 Reformer: The Efficient Transformer
  • Sublinear Time Quantum Algorithm for Attention Approximation 引用了 Big Bird: Transformers for Longer Sequences
  • Sublinear Time Quantum Algorithm for Attention Approximation 引用了 Rethinking Attention with Performers
  • Sublinear Time Quantum Algorithm for Attention Approximation 引用了 Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention
  • Sublinear Time Quantum Algorithm for Attention Approximation 引用了 Reformer: The Efficient Transformer
  • Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention 引用了 Rethinking Attention with Performers
  • Nyströmformer: A Nyström-based Algorithm for Approximating Self-Attention 引用了 Reformer: The Efficient Transformer
  • New Bounds for Kernel Sums via Fast Spherical Embeddings 引用了 Rethinking Attention with Performers
  • New Bounds for Kernel Sums via Fast Spherical Embeddings 引用了 Even Faster Kernel Matrix Linear Algebra via Density Estimation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. Sublinear Time Quantum Algorithm for Attention ApproximationZhao Song, Jianfei Xue, Jiahao Zhang, Lichen ZhangICLR 2026 · 2 次引用
  2. Even Faster Kernel Matrix Linear Algebra via Density EstimationRikhav Shah, Sandeep Silwal, Haike XuICML 2026 · 1 次引用
  3. New Bounds for Kernel Sums via Fast Spherical EmbeddingsTal WagnerICML 2026

它引用的 Paper10

  1. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
  3. Nyströmformer: A Nyström-based Algorithm for Approximating Self-AttentionYunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan 等AAAI 2021 · 675 次引用
  4. Scatterbrain: Unifying Sparse and Low-rank AttentionBeidi Chen, Tri Dao, Eric Winsor, Zhao Song 等NeurIPS 2021 · 165 次引用
  5. Rethinking Attention with PerformersKrzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song 等ICLR 2021 · 122 次引用

相关 Paper

  1. Fast Attention Requires Bounded EntriesJosh Alman, Zhao SongNeurIPS 2023 · 115 次引用
  2. Faster Kernel Matrix Algebra via Density EstimationArturs Backurs, Piotr Indyk, Cameron Musco, Tal WagnerICML 2021 · 10 次引用
  3. Subquadratic Algorithms and Hardness for Attention with Any TemperatureShreya Gupta, Boyang Huang, Barna Saha, Yinzhan Xu 等ICLR 2026 · 5 次引用
  4. Metric Transforms and Low Rank Representations of Kernels for Fast AttentionTimothy Chu, Josh Alman, Gary L. Miller, Shyam Narayanan 等NeurIPS 2024 · 4 次引用
  5. LevAttention: Time, Space and Streaming Efficient Algorithm for Heavy AttentionsRavindran Kannan, Chiranjib Bhattacharyya, Praneeth Kacham, David P. WoodruffICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖