Back to Module 6. Use the unbiased sample standard deviation, and use in the denominator, as in Definition 6.2.

Problem 6.1 (A mixed group).

Rewards are . Compute the mean, the unbiased standard deviation, and the four advantages. Which rollout is reinforced?

Problem 6.2 (A tied group).

Repeat the calculation for rewards . What is the policy-gradient loss, and why is a zero loss the desired outcome rather than a bug?

Problem 6.3 (Detach).

Advantages are computed from rewards, and rewards are computed from the sampled text. Why are the advantages detached before they multiply ?

Problem 6.4 (Sum, not mean).

Two correct rollouts have the same advantage. One is 20 tokens long and one is 200 tokens long, and every token log probability equals . Under the summed objective, which rollout contributes the larger-magnitude term ? What would dividing by length do to that comparison?