Skip to content

02Book 02 · Chapter 02 of 07· 5 min · Always take the highest percent

The usual pick

always takes the with the highest percent. Same prompt, same list, same pick, every time.

The best way to decide what the next word in the reply should be seems obvious: take the with the largest percent. That rule is called , or — pick the maximum. And sometimes it works really well. But other times… not so much.

As an example, say the question is “What is the capital of Australia?” The model gives a percent to every possible next word. Canberra might get 81%. Sydney might get 12%. The leftover 7% is split among every other city the model knows. Those percents add up to 100%.

Using , the next word will always be Canberra, whether the question is run once or a thousand times. That is useful when there is one right answer.

But what if the top is incorrect? will always keep that wrong as the answer. Same question, different list: training text mentions Sydney constantly — the famous city, the one people name — so Sydney might sit at 71%. Canberra, the true capital, might sit at 18%. still writes Sydney, every time. The list is not a fact-checker. It is a list of what looked usual in the text the model learned from.

Usual pick always takes the highest percent. Press it several times. Then switch to a list whose top is wrong, and press it again.

What is the capital of Australia?

The capital of Australia is....

█ next word

  • Canberra81%
  • Sydney12%
  • Melbourne4%
  • a2%
  • Hobart1%

takes Canberra every time — once, or a thousand times. Sydney is on the list. The usual pick never looks at it.

Quiz

6 questions

Before moving forward, test your knowledge of what you’ve just learned!

  1. 1.Greedy decoding picks:

  2. 2.Same prompt, greedy decoding, two runs:

  3. 3.If the top token is fluent and wrong, greedy will:

  4. 4.Argmax means:

  5. 5.Greedy is a good fit when:

  6. 6.Greedy does not:

0 of 6 answered

2 / 7