On H200, one new decode kernel reaches 67-75% of peak memory bandwidth at batch sizes 32 to 128 while reading a 4-bit cache, about half the bytes of an 8-bit one.

What they did

Serving a large language model is mostly about memory. Each new token has to read a store of past attention values called the KV cache. The bigger that store, the slower each step, and the fewer requests fit on one GPU.

Three recent papers attack this from different sides. One makes a 4-bit KV cache fast on Hopper GPUs by writing a new decode kernel. Another adds the grammar as a second drafter in speculative decoding, a technique where a drafter guesses tokens that the main model checks in one pass. The third stops storing a key and its tied value twice.

A "drafter" is the component that guesses the next tokens. The main model then checks all the guesses in one pass. When the guesses are right, the system skips work it would otherwise repeat.

Fast 4-bit KV-Cache Decoding on Hopper GPUs

Paper: https://arxiv.org/abs/2611.30027

Why it matters: Storing the KV cache in 4 bits only pays off if the decode kernel keeps up with memory bandwidth.

Storing the cache in 4 bits

The idea is simple. A 4-bit cache takes about half the bytes of an 8-bit one. But the H200 GPU has no hardware for 4-bit numbers, so the software has to unpack each value. The authors show that the existing kernels spend too many instructions on that unpacking. They rebuild the kernel so the memory reads and the math overlap, and the data is laid out so the math units get values directly.

Share of H200 memory bandwidth

The chart compares the share of H200 memory bandwidth each path reaches. It plots the upper end of each reported range: 20% for the vLLM NVFP4 path, which the authors put at 10-20%, and 75% for the new kernel, which they put at 67-75% at batch sizes 32 to 128. The authors also report that vLLM's NVFP4 path is up to 1.7x slower than FP8.

What this means for you

If you serve models with a 4-bit cache, the kernel matters as much as the format. A smaller cache on a slow kernel can still lose to 8-bit.

Grammar-as-a-Draft: More Tokens per Speculative Decoding Step

Paper: https://arxiv.org/abs/2611.28349

Why it matters: Drafters that cannot see the grammar keep proposing invalid tokens, while the grammar already knows which tokens must come next.

The grammar drafts too

When the output must follow a schema, the drafter often guesses invalid keys, delimiters or indentation. The grammar engine already knows which tokens must come next. The paper, called Grammar-as-a-Draft, merges the two. The forced tokens fill the rest of the draft row, and the verify step accepts them without computing their logits.

Acceptance length, MTP on Qwen3.5-0.8B

The chart shows average acceptance length, meaning how many tokens each verify step keeps. On Qwen3.5-0.8B with MTP, it rises from 2.06 to 5.43. The authors ran these tests on TPU v7x, not GPUs, on a single JSON character-profile benchmark. Compared with the same drafters (MTP, DFlash, n-gram) running without the grammar draft, they report 2.66-2.81x faster decoding at batch size 1 and 1.14-1.70x at batch size 64 across their drafter and model settings. The paper also notes that committing canonical forced tokens changes the output distribution compared with grammar-masked decoding.

What this means for you

On that JSON benchmark, a grammar-aware drafter helped a lot. If your workload is mostly structured output, expect gains to depend on your own schemas. Two costs matter: the output distribution can change, and under mixed traffic (25-50% structured) plain-text time per token rose 7-42%, while the whole workload finished 1.03-1.23x sooner than without the grammar draft. Measure your own traffic before adopting it.

Storing the Gemma 4 K=V Cache Once

Paper: https://arxiv.org/abs/2611.23035

Why it matters: In Gemma 4 global layers the value is derived from the key, so one stored row can serve both and cut KV memory without changing attention kernels.

One stored row, two views

In the global layers of Gemma 4 31B, the value is the normalized key projection, and the key is the value scaled by a fixed weight, with rotary position encoding on one quarter of its dimensions. The authors store one 640-value row per KV head and token, where the stock engine stores 1,024 values, and let the unchanged attention kernel read that row through two overlapping strided views. The output matches an emulation of the same arithmetic on the stock cache.

KV memory reduction per request

The chart shows the drop in decode KV memory per request, measured on the 16-bit 31B model in a vLLM prototype. The authors report a factor of 1.34 to 1.40 across 32K to 64K tokens; the abstract does not give a separate value for each length, so the chart shows both ends of that range. On a prefill and decode pair of two A100 GPUs, with NIXL transfer, CPU offload and a full 15 GiB pool, the authors report 1.38 times the decode tokens per step of the stock vLLM engine for 16K-token prompts, and 1.24 times for 8K-token prompts.

What this means for you

In this prototype the attention kernel was unchanged, but the run-time version made an eager step 4% to 9% slower at equal batch, and it was tested only on Gemma 4 31B. Check whether your model has this key-value structure before you assume the saving applies.

Limits

These are measurements on a few specific GPUs, TPUs, drafters and models. The Hopper kernel numbers come from H200, the grammar drafter numbers from TPU v7x, and the Gemma numbers from a two-A100 pair and a vLLM prototype. The Gemma result is a prototype, and the abstract says it does not yet stack with an 8-bit cache at the default scale. The run-time prototype also makes an eager step 4% to 9% slower at equal batch. None of these papers tests every serving setup.

Sources