# BitDecoding-FP4: Native FP4 KV Cache Decoding via Algorithm-System Co-Design

DevFeed: [BitDecoding-FP4: Native FP4 KV Cache Decoding via Algorithm-System Co-Design](<https://devfeed.tech/articles/bitdecoding-fp4-native-fp4-kv-cache-decoding-via-algorithm-system-co-design-124732.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09825>)

Author: Dayou Du, Woon Yee Ng, Guangming Sheng, Nick Lau, Jianyi Cheng, Luo Mai

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [NVFP4](<https://devfeed.tech/topics/nvfp4.md>), [vllm](<https://devfeed.tech/topics/vllm.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [b300](<https://devfeed.tech/tags/b300.md>), [bf16](<https://devfeed.tech/tags/bf16.md>), [cache](<https://devfeed.tech/tags/cache.md>), [co-design](<https://devfeed.tech/tags/co-design.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-ar](<https://devfeed.tech/tags/cs-ar.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [fp4](<https://devfeed.tech/tags/fp4.md>), [gqa](<https://devfeed.tech/tags/gqa.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-serving](<https://devfeed.tech/tags/llm-serving.md>), [mla](<https://devfeed.tech/tags/mla.md>), [moe](<https://devfeed.tech/tags/moe.md>), [mxfp4](<https://devfeed.tech/tags/mxfp4.md>), [nvfp4](<https://devfeed.tech/tags/nvfp4.md>), [nvidia-b300](<https://devfeed.tech/tags/nvidia-b300.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [rl](<https://devfeed.tech/tags/rl.md>), [throughput](<https://devfeed.tech/tags/throughput.md>)

## AI overview

BitDecoding-FP4 combines quantization methods with system-level decoding optimizations to make FP4 KV-cache attention more accurate and efficient. It splits queries across two FP4 tensors to reduce reported query-logit error from 60% to 1%, scales probabilities to avoid long-context underflow, and uses smoothing, Hadamard rotation, and scale search to suppress key outliers. For decoding, it fuses probability quantization with transposed softmax and uses stacked query matrix multiplications on paged KV caches. Across dense and MoE models using GQA and MLA, the authors report accuracy within 0.5 points of BF16 KV with NVFP4 and within 1 point with MXFP4, and similar performance in RL training rollouts. On NVIDIA B300 with Qwen3-4B and Qwen3-30B-A3B, peak serving throughput is reported at 2.4-3.0x that of BF16 KV.

## Source excerpt

arXiv:2611.09825v1 Announce Type: new 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.0$\times$ higher peak serving throughput than BF16 KV. The implementation is available at https://github.com/OpenBitSys/BitDecoding-FP4.