the.ai

Inference / Decoding

verified

Beam Search

Greedy decoding takes the most likely next token every step and can walk into a corner, because a mediocre token now sometimes opens a much better continuation. Beam search keeps several candidate sequences alive at once and extends them all, discarding the weakest each step. It searches a little rather than committing immediately.

Viz primitive · update-spectrumbeam = 4 · bars = 8

8 values. The left group decays steeply; the right group is 67% of the way to flat, and reads flatter than the left.

Cumulative scores of the surviving candidates against the ones pruned beside them. Drag the beam width to watch the search keep more of the field alive.

4

Reviewed by opendroid · 2026-08-04