Question — Decoding strategies
Comprehension question and worked answer
← Back to the lesson: Decoding strategies
Comprehension question
Can you distinguish transforming a distribution at one position from searching over multiple sequences?
Show the worked answer
A local transformation changes candidate-token probabilities at one position (for example through temperature, top-k, or top-p). Sequence search compares several continuations across multiple steps and accumulates their scores (for example with beam search). The first acts on a local distribution; the second explores multiple sequence hypotheses.