跳到正文
arXiv (AI + Vision + Imaging)· Ofir Gordon, Lior Dikstein, Paul Balanca, Idan Achituve, Douglas Orr, Hai Victor Habi·· 8 天前AI 评分38

MiSTiQ:面向极端KV Cache压缩的MicroScaling Trellis量化方法

MiSTiQ: MicroScaling Trellis Quantization for Extreme KV Cache Compression

AI 导读

MiSTiQ是一种可直接替换码本向量量化器的KV Cache量化方案,将Trellis编码存储与MicroScaling(MX)格式结合,实现低精度计算。该方法通过Trellis量化配合beam search在无需大码本的情况下编码KV Cache,并推导出MX-Hash函数直接在目标MX元素格式下生成重建值。

正文 · 原文

arXiv:2611.21216v1 Announce Type: new Abstract: Modern large language models (LLMs) increasingly support longer contexts and serve more concurrent requests, increasing both sequence lengths and batch sizes. Both trends increase KV-cache size and memory traffic during inference. KV-cache quantization reduces these costs, with recent approaches using codebook-based vector quantization to achieve extremely low bit widths. However, hardware constraints limit codebook size, and most methods reconstruct the cache in higher-precision floating-point formats for attention, limiting the computational benefits of quantization. To address these limitations, we introduce MiSTiQ, a drop-in replacement for codebook-based vector quantizers that combines trellis-coded storage with microscaling (MX) formats for low-precision computation. We combine trellis quantization with beam search to encode the KV cache over large reconstruction spaces without large codebooks. To support MX computation, we derive MX-Hash functions that generate reconstruction values directly in the target MX element format. These functions use the scale-conditioned marginal distribution of block-normalized Gaussian inputs. On Llama3 and Qwen3, MiSTiQ achieves lower WikiText perplexity and higher GSM8K accuracy than the evaluated baselines across several block-scale formats at approximately 1.25 effective bits per element. With NVFP4, it also achieves the highest LongBench average on both models.

来源:arXiv (AI + Vision + Imaging) · arxiv.org