MiSTiQ: MicroScaling Trellis Quantization for Extreme KV Cache Compression
Ofir Gordon, Lior Dikstein, Paul Balanca, Idan Achituve, Douglas Orr, Hai Victor Habi
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.
Create a lesson
Metadata
- Comments
- 26 Pages, 7 Figures, 7 Tables
Related papers
Memory-Efficient Speculative Decoding with Quantized Draft KV Cache
Shared title terminologycs.LGSaksham Gupta, Michael Li
Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them
Shared title terminologycs.LGJian Zhang
OMNIS+: Semantic RAN Slicing and Quantization for Dynamic Split Neural Networks
Shared title terminologycs.LGLangtian Qin, Avishkar Dnyaneshwar Kawadgave, Ian Andrew Harshbarger et al.
QDA: Closed-Loop LLM Quantization Design with Agents
Shared title terminologycs.LGXingyang Li, Tianlang Zhao, Song Han et al.
Storing the Gemma 4 K=V Cache Once: Exact Global-KV Memory Savings in a Paged Serving Engine with Unchanged Attention Kernels
Shared title terminologycs.LGKushagra Bainsla
HADVQ: Hessian Aware Directional Vector Quantization
Shared title terminologycs.LGDaniil Li, Mars Davletshin, Vadim Klyzhenko et al.