Back to Module 5.
Problem 5.1 (Sum versus mean).Completion A has 10 generated tokens with log probability
each. Completion B has 2 generated tokens with log probability each. Which one does the sum prefer, and which one does Definition 5.2 prefer? Why is the mean the right ranking score inside a refinement loop?
Solution
Solution to Problem 5.1.
The sums are
for A and for B. The sum prefers B, because is larger. The means are for A and for B. The mean prefers A. The sum is the log probability of the whole string, and longer strings are penalized even when every token was likely. The refinement loop is trying to compare per-token confidence of two drafts of different lengths. That is the mean. Module 6 uses the sum for a different job, inside a policy gradient, where dividing by length would rescale the advantage.
Problem 5.2 (Confident and wrong).A draft boxes the wrong number and has mean token log probability
. A revision boxes the right number and has mean token log probability . Which draft does the self-refinement loop keep, if it uses only Definition 5.2? What would change if the score were Definition 3.2?
Solution
Solution to Problem 5.2.
The log-probability score keeps the first draft. It is more confident and it is wrong. The score never reads the reference answer.
Definition 3.2 keeps the revision, because the boxed value matches and the first draft’s does not. That is best-of-
against an external checker, not the internal score this module defined. Both loops are legitimate. They answer different questions, and only the grader is a training reward.
Problem 5.3 (A stalled loop).You run four revision rounds. The boxed answer is identical on rounds 2, 3, and 4, and the score rises by less than
after round 2. What should the stopping rule do, and which draft do you return if you saved all of them?
Solution
Solution to Problem 5.3.
Stop. Further rounds are restating a stable answer. Return the saved draft with the highest score, which may be round 2 rather than round 4. The last sample is not privileged.