Hugging Face Trending Papers

FlagRot: Selective Rotation for Low-Bit KV Caches

arXiv AI
Nov 14

OSCAR: Offline Spectral Covariance-Aware Rotation for 2-bit KV Cache Quantization

OSCAR is an offline spectral covariance‑aware rotation technique for 2‑bit KV‑cache quantization in large language models. It estimates attention‑aware covariance targets to derive fixed per‑layer rotations and clipping thresholds, aligning the quantization basis with the second‑moment structures used by attention. The method achieves near‑BF16 accuracy on several benchmarks, compresses KV‑cache memory by almost 8×, and boosts throughput and decoding speed across multiple serving engines.

By Zhongzhu Zhou, Donglin Zhuang, Jisen Li, Ziyan Chen, Shuaiwen Leon Song, Ben Athiwaratkun, Xiaoxia Wu
arXiv Machine Learning
Oct 8

Dual-QK: Sharp Queries and Flat Keys for Prunable 2-bit KV Caches

Dual-QK introduces paired non‑orthogonal transforms for queries and keys to enable sharp queries and flat keys, improving 2‑bit quantization and dynamic channel pruning of KV caches. The method balances key scales for INT2 quantization while concentrating query energy for pruning, and supports channel‑0 protection and bucket‑relative RoPE for long‑context accuracy. Experiments on four models across five generative benchmarks show that Dual‑QK outperforms OSCAR at 40% query‑channel sparsity, achieving 6.8× KV‑cache compression, an 8.3× reduction in KV read volume, and up to 3.75× decoding throughput over unpruned BF16.

By Sunjoo Whang, Jungjun Oh, Minsung Kim, Dongho Seo, Jisu Shin, Gregory Kielian, Hoi-Jun Yoo, Sangjin Kim
arXiv Computation and Language
Sep 18

D-Quant: Driftable Entropy Coding for KV Cache Quantization

The paper introduces D-Quant, a KV cache quantization framework that addresses the memory bottleneck of large language models by using a drift mechanism to convert entropy-coded representations into fixed-size bitstreams. This approach leverages the non-uniform distribution of KV cache values—after rotation and normalization, they approximate a normal distribution—allowing entropy coding to assign shorter codewords to frequent symbols while maintaining regular memory layouts suitable for parallel attention kernels. D-Quant thus aims to reduce memory footprint and bandwidth usage without sacrificing performance.

By Yi Su, Hong Liu, Guanghua Yu, Jianchen Zhu
arXiv Machine Learning
Oct 15

PN-Mix: Pair-Norm Guided Mixed-Precision Key Cache Quantization for Efficient Long-Output LLM Inference

PN-Mix is a mixed‑precision key‑cache quantization technique for RoPE‑based decoder‑only large language models that allocates higher precision to salient channel pairs identified during the prefill stage. By focusing on channel pairs with large query–key pair‑norm products, PN‑Mix reduces logit variation caused by quantization errors. Experiments on reasoning, code‑generation, and AIME benchmarks show that PN‑Mix achieves comparable or better accuracy than prior methods while using an average precision of 2.26 bits and degrades gracefully down to 1.5 bits.

By Gil Jae Song, Sungjoo Yoo
arXiv Machine Learning
4d ago

TriAxialKV: Toward Extreme Low-Precision KV-Cache Quantization for Agentic Inference Tasks

TriAxialKV is a mixed‑precision KV‑cache quantization scheme designed for agentic inference tasks that require long‑context, multimodal, and structured interactions. It assigns a triaxial tag to each token—capturing temporal recency, modality, and semantic role—to calibrate sensitivity and allocate INT2/INT4 bit‑widths within a fixed memory budget. Implemented as an end‑to‑end serving system with custom Triton kernels, TriAxialKV achieves the same accuracy as BF16 KV cache while providing 4.5× larger cache capacity and 30% higher throughput on real GPU systems.

By Hanzhang Shen, Haoran Wu, Yiren Zhao, Robert Mullins