Medusa Decoding
What is Medusa Decoding?
In one sentence: Medusa decoding adds extra small prediction "heads" to a model so it can guess several future tokens at once, then verify them.
Instead of a separate draft model, Medusa attaches heads that each predict a token further ahead. The model checks these guesses together and keeps the correct ones.
What does Medusa Decoding look like?
A Medusa model might propose the next 4 tokens in one step and accept 3 of them.
Why does Medusa Decoding matter?
It speeds up generation without needing a second model.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/medusa-decoding/">Medusa Decoding, explained simply</a> (The AI Math Dictionary)