R215 · Infrastructure for agents at scale › Inference providers and serving reliability

G-MTP: a built-in multi-token drafter speeds Gemma 4 decoding up to 3.1x

Read the original

Authors DAIR.AI (shared)

inference-servingllm-servingspeculative-decodingon-device

Source: Galgani, Ji, Homburger, Jawahar et al. (Google), Efficient and Robust Drafting with Multi-Token Prediction, arXiv 2611.25813 (cs.CL), 19 Nov 2026. Surfaced by DAIR.AI.

Background

Speculative decoding splits generation into two phases. A cheap drafter proposes several tokens, then the target model verifies them in one parallel pass and keeps the accepted prefix. Output is the same as normal decoding; the gain is fewer sequential steps of the large model. The win depends on two things that pull against each other: how cheap the drafter is, and how often its guesses are accepted.

A separate small draft model is cheap per token but must run its own prefill over the whole context and keep its own KV cache. It also drifts from the target, especially after the target is fine-tuned.

What G-MTP does

A multi-token-prediction head is attached to the backbone, with three optimisations:

  1. One shared drafting head that reads the target's own activations ("target activation injection"). The draft is anchored in what the big model is already representing, which helps acceptance.

  2. Zero-copy KV-cache cross-attention. The head attends directly to the target's existing KV cache. There is no separate prefill and no second cache, which cuts compute and memory.

  3. Clustered vocabulary projection. Instead of a full-vocabulary softmax at every draft step, the head scores clusters, which reduces per-step cost. This matters most on small devices where the output projection is a large share of the work.

Results (as stated in the abstract)

SettingSpeedup
Large Gemma 4 models, serverup to 3.1x
Small models on H100up to 2.3x
Small models on a smartphone GPUup to 2.2x

Domain shift. When the backbone is adapted to a new domain, parameter-efficient recipes that keep the drafter aligned need up to 1.83x fewer target forward passes than tuning the backbone alone. A drafter that falls out of sync with a fine-tuned model is a common silent regression in speculative decoding. The domain-adaptation code is public.

Why it matters for agent workloads

Agents spend much of their latency and cost on long generations: plans, code, tool arguments. Speculative decoding reduces both without changing outputs. Building the drafter into the model, with the model family's release, makes the speedup a default rather than a serving-team project. It also removes the second model you would otherwise have to version and fine-tune alongside the first.

Tradeoffs

Failure modes

Review checklist

Cited in field guides

Connections

See R215 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.