arXiv:cs.AI· Sasho Nedelkoski, Alexander Acker, Soeren Becker, Dominik Scheinert, Odej Kao·· 20 小时前
E8 格点键量化实现低比特 KV-Cache 压缩
E8 Lattice Key Quantization for Low-Bit KV-Cache Compression
AI 导读
研究者提出基于 E8 格点的向量量化(VQ)方法压缩 LLM 的 KV-Cache,在 2-bit 键和 2-bit 值的 k2v2 配置下实现约 6 倍 KV 压缩,比标量 k3v2 小约 20%,同时保持接近基线的长上下文困惑度。
正文
Abstract:Compressing the key-value (KV) cache is essential for serving long-context large language models (LLMs) under memory constraints. While current scalar quantization methods achieve significant compression, they typically face a quality-fidelity trade-off, either suffering from performance instability at 2-bit precision or necessitating 3-bit keys to maintain model quality. In this work, we demonstrate that a uniform low-bit k2v2 configuration (2-bit keys and 2-bit values) can preserve near-baseline quality by using vector quantization (VQ) based on the $E_8$ lattice for KV keys. We show that structured VQ exploits correlations across adjacent dimensions to achieve signal-to-quantization-noise ratios (SQNR) higher than those of independent scalar quantization at the same key payload rate. To ensure practical utility, we adapt a table-based asymmetric scoring algorithm that avoids explicit codebook dequantization during attention computation and preserves decode-throughput parity with scalar baselines. Across five LLM families, our $E_8$ k2v2 approach yields \textasciitilde$6\times$ KV compression, roughly 20\% smaller than scalar k3v2 (3-bit keys and 2-bit values), while retaining near-baseline long-context perplexity. In our full-suite perplexity evaluation, $E_8$ improves over scalar k3v2 in 80\% of model--dataset--context settings. These results indicate that $E_8$ lattice VQ improves quality per byte while keeping throughput at parity, suggesting that structured key quantization is a useful primitive for KV-compression stacks. Overall, our work provides a low-overhead primitive for expanding the quality-memory frontier in long-context LLM inference.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.15384 [cs.LG] |
| (or arXiv:2610.15384v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.15384 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Sasho Nedelkoski [view email]
[v1]
Sun, 11 Oct 2026 06:22:28 UTC (94 KB)
来源:arXiv:cs.AI · arxiv.org