Greedy Decoding
What is Greedy Decoding?
In one sentence: Greedy decoding always picks the single most likely next token at every step.
It is simple, fast and repeatable, but can be boring or get stuck repeating itself, because it never takes a chance on a less likely but better word.
What does Greedy Decoding look like?
With greedy decoding, after "The weather is," the model always picks its top word, like "nice."
Why does Greedy Decoding matter?
It is good for tasks with one correct answer, like math or data extraction.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/greedy-decoding/">Greedy Decoding, explained simply</a> (The AI Math Dictionary)