Lune

AAAI2025顶会

QJL: 1-Bit Quantized JL Transform for KV Cache Quantization with Zero Overhead

Amir Zandieh, Majid Daliri, Insu Han

摘要

Serving LLMs requires substantial memory due to the storage requirements of Key-Value (KV) embeddings in the KV cache, which grows with sequence length. An effective approach to compress KV cache is quantization. However, traditional quantization methods face significant memory overhead due to the need to store quantization constants (at least a zero point and a scale) in full precision per data block. Depending on the block size, this overhead can add 1 or 2 bits per quantized number. We introduce QJL, a new quantization approach that consists of a Johnson-Lindenstrauss (JL) transform followed by sign-bit quantization. In contrast to existing methods, QJL eliminates memory overheads by removing the need for storing quantization constants. We propose an asymmetric estimator for the inner product of two vectors and demonstrate that applying QJL to one vector and a standard JL transform without quantization to the other provides an unbiased estimator with minimal distortion. We have developed an efficient implementation of the QJL sketch and its corresponding inner product estimator, incorporating a lightweight CUDA kernel for optimized computation. When applied across various LLMs and NLP tasks to quantize the KV cache to only 3 bits, QJL demonstrates a more than fivefold reduction in KV cache memory usage without compromising accuracy, all while achieving faster runtime. Codes are available at https://github.com/amirzandieh/QJL .

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Efficient Streaming Language Models with Attention Sinks 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models 引用了 Efficient Streaming Language Models with Attention Sinks
  • Streaming Attention Approximation via Discrepancy Theory 引用了 Efficient Streaming Language Models with Attention Sinks
  • Streaming Attention Approximation via Discrepancy Theory 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
  • Streaming Attention Approximation via Discrepancy Theory 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • Streaming Attention Approximation via Discrepancy Theory 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Streaming Attention Approximation via Discrepancy Theory 引用了 Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time
  • Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models 引用了 Efficient Streaming Language Models with Attention Sinks
  • Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate 引用了 Efficient Streaming Language Models with Attention Sinks
  • TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate 引用了 H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models
  • Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. TurboQuant: Online Vector Quantization with Near-optimal Distortion RateAmir Zandieh, Majid Daliri, Majid Hadian, Vahab MirrokniICLR 2026 · 132 次引用
  2. Streaming Attention Approximation via Discrepancy TheoryEkaterina Kochetkova, Kshiteej Sheth, Insu Han, Amir Zandieh 等NeurIPS 2025 · 10 次引用
  3. Cache Me If You Must: Adaptive Key-Value Quantization for Large Language ModelsAlina Shutova, Vladimir Malinovskii, Vage Egiazarian, Denis Kuznedelev 等ICML 2025
  4. Beyond Linear Approximations: A Novel Pruning Approach for Attention MatrixYingyu Liang, Jiangxuan Long, Zhenmei Shi, Zhao Song 等ICLR 2025
  5. Matrix Product Sketching via Coordinated SamplingMajid Daliri, Juliana Freire, Danrong Li, Christopher MuscoICLR 2025

它引用的 Paper7

  1. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
  2. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
  3. H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language ModelsZhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen 等NeurIPS 2023 · 1,003 次引用
  4. FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li 等ICML 2023 · 683 次引用
  5. Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test TimeZichang Liu, Aditya Desai, Fangshuo Liao, Weitao Wang 等NeurIPS 2023 · 557 次引用

相关 Paper

  1. VecInfer: Efficient LLM Inference with Low-Bit KV Cache via Outlier-Suppressed Vector QuantizationDingyu Yao, Chenxu Yang, Zhengyang Tong, Zheng Lin 等ACL 2026 · 4 次引用
  2. Unlocking Data-free Low-bit Quantization with Matrix Decomposition for KV Cache CompressionPeiyu Liu, Ze-Feng Gao, Xin Zhao, Yipeng Ma 等ACL 2024 · 2 次引用
  3. JanusQuant: Accurate and Efficient 2-bit KV Cache Quantization for Long-Context InferenceChengyu Sun, Yaqi Xia, Hulin Wang, Donglin Yang 等PPoPP 2026 · 1 次引用
  4. KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache QuantizationColeman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney 等NeurIPS 2024 · 738 次引用
  5. XQuant: Achieving Ultra-Low Bit KV Cache Quantization with Cross-Layer CompressionHaoqi Yang, Yao Yao, Zuchao Li, Baoyuan Qi 等EMNLP 2025
黄昏的海面,两侧是细线勾勒的悬崖