Skip to content
AI360Xpert
Glossary
Definition

Greedy Decoding

A simple and fast text generation strategy where a language model always selects the highest probability token at each step without exploring any alternates.

Think of It Like This

Like driving across the country and always taking the immediate road with the least traffic, even if it eventually leads you into a massive dead end.

While greedy decoding is highly computationally efficient, it frequently results in sub-optimal, repetitive, or logically flawed text. Because it only considers the immediate next step, it cannot backtrack to correct poor early choices. Advanced sampling techniques like Beam Search or Nucleus Sampling are generally preferred for producing high-quality language.