Concept

Trade-offs of Greedy Search in Inference

Greedy search provides an efficient and easily implementable strategy for large language model inference, making it highly attractive for tasks where speed and simplicity are paramount. However, its primary drawback is its suboptimal nature; because it makes locally optimal choices, it risks pruning potentially high-quality sequences during the early stages of decoding. For applications requiring superior search results, strategies that explore multiple paths simultaneously, such as beam search, are often preferred.

0

1

Updated 2026-05-03

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences