Kubnal Bridge

Techniques & Methods

Greedy Algorithms

Greedy algorithms select the best available option at each decision point without considering future consequences. In text generation, greedy decoding always selects the highest-probability next token, which is fast but can miss globally optimal sequences that require temporarily choosing a lower-probability token.

Greedy decoding often produces repetitive or locally optimal but globally suboptimal text. Beam search, sampling, and nucleus sampling are alternatives that explore multiple candidates to find better overall sequences.

Authority Links

Related Terms