Fast 4-bit KV-Cache Decoding on Hopper GPUs Without FP4 Hardware
Jian Zhang
Northeastern University
Published November 29, 2026 · on the feed December 2, 2026 · ▲ 3 · arXiv 2611.30027
The abstract
On Hopper GPUs, which have no FP4 hardware, a 4-bit KV cache is slower than FP8 in today's serving stacks: on H200 the FlashInfer kernel behind vLLM's NVFP4 KV cache reaches only 10-19% of memory bandwidth. We show that this is a property of current implementations, not of the format. NVBit instruction counts against Hopper's issue budget, about 7 thread instructions per byte on H200, give two causes: the kernels behind vLLM's 4-bit paths execute 2-6x that budget, and the kernels we counted serialize loading, decoding and matrix multiplies. A decode kernel that stays within the budget and overlaps decoding with loading (a TMA producer warp, a cache layout that feeds decoded values to the tensor cores from registers, swapped operands for small query groups) is, as a bare kernel, 1.10-1.48x faster than the faster of TensorRT-LLM's XQA and FlashAttention-4's native FP8 kernels at all 11 shapes we measured, and 1.22-1.76x when the 4-bit K and V run on FP8 tensor cores. In vLLM, with K mean removal, K rotation, four BF16 sinks and layer 0 in BF16, a decode step on Llama-3.1-8B is 1.12-1.64x faster than with FlashInfer FP8 at batch 8 and above (on par at batch 1; 1.04-1.18x on 32B and 72B models), the cache holds 1.63x as many tokens, and on five models the 95% intervals exclude accuracy losses larger than about 3.5 points against BF16 KV. At 120K tokens on Llama-3.1-8B our cache loses 15 points against BF16 KV, about as much as vLLM's default FP8 path, while offline FP8 storage alone loses 3 and our cache 10. One H200 absorbed 1.23-2.20x FP8's request rate in 600-s bursts from an empty cache (mostly one seed); a higher sustained rate we examined but did not establish. In Qwen2-family models that collapse under FP8 KV, keeping layer 0 (whose key mean comes from the key-projection bias) in BF16 restores them, one only partly.
The Brief
3:01A short podcast summary of the paper. Written and voiced by AI.
Transcript
Fast 4-bit KV-Cache Decoding on Hopper GPUs Without FP4 Hardware. By Jian Zhang, from Northeastern University. Published on the twenty-ninth of November.
Hopper GPUs have no FP4 hardware, and in today's serving stacks that shows. On those GPUs a 4-bit KV cache is slower than an FP8 one. On an H200, the FlashInfer kernel behind the NVFP4 KV cache in vLLM reaches only ten to nineteen percent of memory bandwidth. The smaller cache is the slower one.
The paper's claim is that this slowness belongs to the current implementations, not to the format. To find the cause, the author counts instructions with NVBit and compares them against Hopper's issue budget, which on the H200 comes to about seven thread instructions per byte. Two causes come out. The kernels behind the 4-bit paths in vLLM execute two to six times that budget. And the kernels that were counted serialize three things that could overlap: loading, decoding, and the matrix multiplies.
The fix is a decode kernel that stays within the budget and overlaps decoding with loading. Three ingredients are named. A TMA producer warp. A cache layout that feeds decoded values to the tensor cores straight from registers. And swapped operands for small query groups.
Inside vLLM, a few further measures go with it: K mean removal, K rotation, four BF16 sinks, and keeping layer zero in BF16.
As a bare kernel, it is one point one zero to one point four eight times faster than the faster of two FP8 kernels, XQA from TensorRT-LLM and the native kernel of FlashAttention-4, at all eleven shapes measured. When the 4-bit K and V run on FP8 tensor cores, that becomes one point two two to one point seven six times.
In vLLM, a decode step on Llama-3.1-8B is one point one two to one point six four times faster than with FlashInfer FP8 at batch eight and above. At batch one it is on par. On models of thirty-two billion and seventy-two billion parameters, the gain is one point zero four to one point one eight times. The cache holds one point six three times as many tokens. Across five models, the ninety-five percent intervals rule out accuracy losses larger than about three point five points against a BF16 KV cache.
The limits are stated plainly. At one hundred and twenty thousand tokens on Llama-3.1-8B, this cache loses fifteen points against BF16, about as much as the default FP8 path in vLLM. Offline FP8 storage alone loses three points there, and this cache ten. Under load, one H200 absorbed one point two three to two point two times the request rate of FP8, in six-hundred-second bursts starting from an empty cache, mostly with one seed. A higher sustained rate was examined but not established.
One more result reaches past speed. Some Qwen2-family models collapse under an FP8 KV cache. In those models the key mean of layer zero comes from the key-projection bias, and keeping that layer in BF16 restores them, though one only partly. The broader message is about where a bottleneck lives: counting instructions against the hardware's budget is what separated a slow implementation from a slow format.
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