OPD icon indicating copy to clipboard operation
OPD copied to clipboard

rollout.n=4 for OPD?

Open ruoyuxie opened this issue 5 months ago • 2 comments

Thanks for the great work! I am curious why does vanilla sampled-token OPD use rollout.n=4 and how are the four responses used?

ruoyuxie avatar Jun 24 '26 17:06 ruoyuxie

Thanks for the question!

For each prompt, we sample four on-policy responses. Since reverse KL is generally mode-seeking, our initial hypothesis is that using multiple responses per prompt can reduce sampling variance and expose the teacher to a broader set of student-visited states for evaluation. We further conduct an ablation study by varying the number of sampled responses, with n = 1, 4, 8. However, the results do not show a clear performance gain from increasing n.

Concretely, the batch is expanded from B prompts to B * rollout.n prompt-response pairs; the teacher then computes token-level log probabilities/rewards on each sampled student response. In vanilla sampled-token OPD (LOG_PROB_TOP_K=0 / sampled-token mode), each sampled token receives the distillation reward based on the student-teacher log-prob difference, and all four trajectories contribute to the policy-gradient update as independent Monte Carlo samples.

Turingzero0 avatar Jun 24 '26 19:06 Turingzero0

Thanks!

ruoyuxie avatar Jun 24 '26 20:06 ruoyuxie