Aiconomy

Beam Search

A search algorithm used in sequence generation that keeps track of multiple candidate outputs at each step, selecting the most probable complete sequences rather than greedily choosing one token at a time.

Beam search is widely used in machine translation, text generation, and speech recognition to improve output quality. A beam width of 5 means the algorithm tracks the top 5 candidate sequences at each step. While greedy decoding picks only the single best token at each position, beam search explores multiple paths to find globally better sequences. Larger beam widths improve quality but increase computation linearly, creating a practical trade-off between output quality and inference speed.

Explore the Data

AI Economy Pulse

Every Friday: the 3 AI data points that actually matter this week. Free, forever.

Built on data from Stanford HAI, IEA, OECD & IMF

Latest: “AI Investment Hits $42B in Q1 2026 — Here's Where It Went”

No spam, ever. Unsubscribe anytime.