Lune

ICLR2025顶会

Matrix Product Sketching via Coordinated Sampling

Majid Daliri, Juliana Freire, Danrong Li, Christopher Musco

摘要

We revisit the well-studied problem of approximating a matrix product, ATB\mathbf{A}^T\mathbf{B}, based on small space sketches S(A)\mathcal{S}(\mathbf{A}) and S(B)\mathcal{S}(\mathbf{B}) of A∈Rn×d\mathbf{A} \in \R^{n \times d} and B∈Rn×m\mathbf{B}\in \R^{n \times m}. We are interested in the setting where the sketches must be computed independently of each other, except for the use of a shared random seed. We prove that, when A\mathbf{A} and B\mathbf{B} are sparse, methods based on coordinated random sampling can outperform classical linear sketching approaches, like Johnson-Lindenstrauss Projection or CountSketch. For example, to obtain Frobenius norm error ε∥A∥F∥B∥Fε\|\mathbf{A}\|_F\|\mathbf{B}\|_F, coordinated sampling requires sketches of size O(s/ε2)O(s/ε^2) when A\mathbf{A} and B\mathbf{B} have at most s≤d,ms \leq d,m non-zeros per row. In contrast, linear sketching leads to sketches of size O(d/ε2)O(d/ε^2) and O(m/ε2)O(m/ε^2) for A\mathbf{A} and B\mathbf{B}. We empirically evaluate our approach on two applications: 1) distributed linear regression in databases, a problem motivated by tasks like dataset discovery and augmentation, and 2) approximating attention matrices in transformer-based language models. In both cases, our sampling algorithms yield an order of magnitude improvement over linear sketching.

问 Lune

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

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

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization 引用了 LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
  • QJL: 1-Bit Quantized JL Transform for KV Cache Quantization with Zero Overhead 引用了 LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper9

  1. KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache QuantizationColeman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney 等NeurIPS 2024 · 738 次引用
  2. FetchSGD: Communication-Efficient Federated Learning with SketchingDaniel Rothchild, Ashwinee Panda, Enayat Ullah, Nikita Ivkin 等ICML 2020 · 425 次引用
  3. LongBench: A Bilingual, Multitask Benchmark for Long Context UnderstandingYushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu 等ACL 2024 · 94 次引用
  4. Correlation Sketches for Approximate Join-Correlation QueriesAécio S. R. Santos, Aline Bessa, Fernando Chirigati, Christopher Musco 等SIGMOD 2021 · 45 次引用
  5. QJL: 1-Bit Quantized JL Transform for KV Cache Quantization with Zero OverheadAmir Zandieh, Majid Daliri, Insu HanAAAI 2025 · 31 次引用

相关 Paper

  1. Sampling Methods for Inner Product SketchingMajid Daliri, Juliana Freire, Christopher Musco, Aécio S. R. Santos 等VLDB 2024 · 8 次引用
  2. A Nearly-Optimal Bound for Fast Regression with ℓ∞ GuaranteeZhao Song, Mingquan Ye, Junze Yin, Lichen ZhangICML 2023 · 20 次引用
  3. Approximate Multiplication of Sparse Matrices with Limited SpaceYuanyu Wan, Lijun ZhangAAAI 2021 · 4 次引用
  4. Distributed Least Squares in Small Space via Sketching and Bias ReductionSachin Garg, Kevin Tan, Michal DerezinskiNeurIPS 2024 · 5 次引用
  5. In-Database Regression in Input Sparsity TimeRajesh Jayaram, Alireza Samadian, David P. Woodruff, Peng YeICML 2021 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖