BitDecoding-FP4: Native FP4 KV Cache Decoding via Algorithm-System Co-Design
Dayou Du, Woon Yee Ng, Guangming Sheng, Nick Lau, Jianyi Cheng, Luo Mai
University of Edinburgh · Tencent Hunyuan
Published November 6, 2026 · on the feed November 17, 2026 · ▲ 4 · arXiv 2611.09825
The abstract
The key-value (KV) cache dominates memory capacity and bandwidth in long-context LLM serving. While 4-bit microscaling formats (NVFP4, MXFP4) shrink the cache and run attention on FP4 Tensor Cores, a fundamental gap remains between algorithmic quantization and system-aware acceleration: existing FP4 KV systems use vanilla quantization that causes severe accuracy drops, whereas accuracy-oriented 4-bit algorithms rely on vector codebooks whose lookup overhead degrades decoding throughput. We present BitDecoding-FP4, an algorithm--system co-design for accurate and efficient native FP4 KV decoding. We mitigate three error sources: Dual-Residual Query Quantization splits queries into two FP4 tensors, cutting query logit error from 60% to 1%; Underflow-Aware Probability Scaling prevents E4M3 scales from rounding long-context probabilities to zero; and Outlier-Aware Key Quantization combines static smoothing, Hadamard rotation, and scale search to suppress key outliers under token-wise scaling. At the system level, we remove the softmax bottleneck via transposed softmax with fused probability quantization and stacked query MMA on paged KV caches. Across dense and MoE models with GQA and MLA, BitDecoding-FP4 stays within 0.5 points of BF16 KV accuracy with NVFP4 (1 point with MXFP4), and tracks BF16 KV in RL training rollouts. In end-to-end serving on NVIDIA B300 with Qwen3-4B and Qwen3-30B-A3B, it delivers 2.4-3.0times higher peak serving throughput than BF16 KV. The implementation is available at https://github.com/OpenBitSys/BitDecoding-FP4.
The Brief
2:45A short podcast summary of the paper. Written and voiced by AI.
Transcript
BitDecoding-FP4. Native FP4 KV Cache Decoding via Algorithm-System Co-Design. By Dayou Du and five others, from the University of Edinburgh and Tencent Hunyuan. Published on the sixth of November.
In long-context serving of large language models, the key-value cache is what dominates both memory capacity and bandwidth. Four-bit microscaling formats, NVFP4 and MXFP4, shrink that cache and let attention run on FP4 Tensor Cores. Yet a gap remains between quantizing well and running fast. Existing FP4 KV systems use vanilla quantization, and accuracy drops severely. Algorithms built for accuracy at four bits rely on vector codebooks instead, and the overhead of looking entries up in those codebooks drags down decoding throughput. One side is fast and inaccurate; the other is accurate and slow.
BitDecoding-FP4 treats this as a co-design problem, shaping the algorithm and the system together so that decoding stays native to FP4 and stays accurate. The aim is to keep the speed of running attention directly on FP4 Tensor Cores while recovering the accuracy that vanilla quantization loses, and to do it without falling back on codebook lookups. On the algorithm side it identifies three sources of error and gives each its own fix. On the system side it reworks the part of decoding that becomes the bottleneck.
Dual-Residual Query Quantization splits each query into two FP4 tensors, and that cuts query logit error from sixty percent to one percent. Underflow-Aware Probability Scaling stops E4M3 scales from rounding long-context probabilities down to zero. Outlier-Aware Key Quantization combines static smoothing, a Hadamard rotation and a scale search to suppress outliers in the keys under token-wise scaling.
Each of the three targets a different place where error enters: the queries, the attention probabilities, and the keys. On the system side, the softmax bottleneck is removed with a transposed softmax that fuses in probability quantization, together with stacked query MMA operating on paged KV caches. Together they answer the throughput side of the gap, the side where the codebook methods had fallen short.
Tests cover dense and MoE models, with both GQA and MLA attention. With NVFP4, BitDecoding-FP4 stays within half a point of BF16 KV accuracy; with MXFP4 it stays within one point. It also tracks BF16 KV during reinforcement learning training rollouts. In end-to-end serving on an NVIDIA B300, using Qwen3-4B and Qwen3-30B-A3B, peak serving throughput comes out two point four to three times higher than with a BF16 KV cache.
Earlier systems forced a choice between a fast cache and an accurate one. Here, three targeted error fixes and a reworked softmax path let a four-bit cache sit within a point of sixteen-bit accuracy and still serve faster than it, which is the gap the co-design set out to close.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free