Beam search is a decoding method for text generation that heuristically explores several chains of predicted tokens instead of following only one. At each timestep, it keeps a fixed number of beams and expands those candidate paths. section 16.2.4
Use beam search when generation quality depends on exploring multiple likely continuations.
- Keep a fixed number of candidate token chains active at every timestep. section 16.2.4
- Treat it as an alternative decoding strategy alongside greedy search, random sampling, and top-K sampling. section 16.2.4




