← All notes

Multi-head decoding (Medusa) vs. speculative decoding

Answer: Medusa speeds up LLM inference by adding extra decoding heads that predict multiple subsequent tokens in parallel, avoiding the separate draft model that speculative decoding needs. Both methods attack the same bottleneck: auto-regressive decoding requires sequential computation, with each step reliant on the previous one's output.

The bottleneck

Each decoding step necessitates moving the full model parameters from High-Bandwidth Memory (HBM) to the accelerator's cache (S1). Decoding K tokens takes K serial runs of the model (S2).

Speculative decoding (S2)

Medusa (S1)

Choosing

Speculative decoding can accelerate existing off-the-shelf models without retraining (S2). Medusa avoids acquiring and maintaining a separate draft model, but its heads are fine-tuned (S1).

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: arXiv, [2401.10774] Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads, CC BY 4.0; arXiv, [2211.17192] Fast Inference from Transformers via Speculative Decoding, CC BY 4.0.

Cite this

Permanent ID: iil:note:6r516xne

iinventedlight. 2026. "Multi-head decoding (Medusa) vs. speculative decoding." iinventedlight Library, iil:note:6r516xne, version of 2026-11-04. https://iinventedlight.com/library/notes/ao-cost-multi-head-decoding/. License: CC-BY-4.0.

@misc{iil_note_6r516xne,
  author = {{iinventedlight}},
  title = {{Multi-head decoding (Medusa) vs. speculative decoding}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/ao-cost-multi-head-decoding/},
  note = {Permanent ID iil:note:6r516xne. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/ao-cost-multi-head-decoding.md.