Language & LLMs

What Is Beam Search?

Beam search is a text-generation strategy that keeps a fixed number of the most promising partial sequences, called the beam width, at each decoding step. It explores multiple candidates to find an output with high overall probability. It often produces more coherent results than greedy decoding but is more computationally expensive.

Further reading

Read more about beam search — articles and blogs from around the web: