BitDecoding-FP4
An algorithm-system co-design method for long-context LLM inference that enables native FP4 KV cache decoding. Through algorithmic innovations such as dual-residual query quantization, underflow-aware probability scaling, and outlier-aware key quantization, together with system optimizations such as transposed softmax, it improves decoding throughput while preserving accuracy.
Timeline (last 90 days)
BitDecoding-FP4 splits the query into two FP4 tensors, drastically reducing the logit error from 60% to 1% through a dual-residual approach.
BitDecoding-FP4 introduces an underflow-aware probability scaling mechanism to prevent probability values from underflowing to zero during quantization.
BitDecoding-FP4 combines three techniques—static smoothing, Hadamard rotation, and scale search—to effectively suppress the impact of key outliers.
BitDecoding-FP4 adopts transposed softmax, fusing probability quantization with softmax to reduce the write-back overhead of intermediate results.
On dense models and MoE models, covering both GQA and MLA attention mechanisms, with NVFP4 the accuracy gap between BitDecoding-FP4 and BF16 KV stays within 0.5 percentage points; with MXFP4 the gap is 1 percentage point.
In end-to-end serving tests on NVIDIA B300 using the Qwen3-4B and Qwen3-30B-A3B models, BitDecoding-FP4 achieved a 2.4x to 3.0x peak serving throughput improvement over BF16 KV.
All Facts (6)
BitDecoding-FP4 splits the query into two FP4 tensors, drastically reducing the logit error from 60% to 1% through a dual-residual approach.
50%UnverifiedBitDecoding-FP4 introduces an underflow-aware probability scaling mechanism to prevent probability values from underflowing to zero during quantization.
50%UnverifiedBitDecoding-FP4 combines three techniques—static smoothing, Hadamard rotation, and scale search—to effectively suppress the impact of key outliers.
50%UnverifiedBitDecoding-FP4 adopts transposed softmax, fusing probability quantization with softmax to reduce the write-back overhead of intermediate results.
50%UnverifiedOn dense models and MoE models, covering both GQA and MLA attention mechanisms, with NVFP4 the accuracy gap between BitDecoding-FP4 and BF16 KV stays within 0.5 percentage points; with MXFP4 the gap is 1 percentage point.
50%UnverifiedIn end-to-end serving tests on NVIDIA B300 using the Qwen3-4B and Qwen3-30B-A3B models, BitDecoding-FP4 achieved a 2.4x to 3.0x peak serving throughput improvement over BF16 KV.
50%