NLP LLMs Advanced

Beam Search

البحث الشعاعي

Definition

A decoding algorithm that keeps the best k partial sequences at each step instead of greedily choosing a single token.

Definition

Beam search keeps the k highest-probability partial sequences at each decoding step, approximating the most likely output better than greedy decoding.

Learn and review

Suggested terms to learn next