Skip to content

Learning to Reason under Off-Policy Guidance (LUFFY)

optionalextendedfrontierpaperrubric 7/122025 · ~20 min

Jianhao Yan, Yafu Li, Zican Hu, … Yue Zhang

Status

TL;DR. Zero-RL (RLVR from a base model) mostly sharpens what the model can already sample. LUFFY adds off-policy guidance: each GRPO group gets one trace from a stronger reasoner (DeepSeek-R1) alongside 7 on-policy rollouts, and advantages are normalised across all of them. Policy shaping up-weights low-probability tokens so the student actually absorbs the teacher’s unfamiliar moves rather than collapsing onto its own modes.

Mixed-Policy GRPO. For prompt qq, collect on-policy rollouts {τj}\{\tau_j\} from πθ\pi_\theta and off-policy traces {τk}\{\tau_k\} from the teacher. Compute rewards and normalise advantages over the union Gon∪GoffG_\text{on}\cup G_\text{off} (Eq. 4). On-policy terms use the usual clipped ratio. Off-policy terms use the ratio πθ/πϕ\pi_\theta/\pi_\phi, where in practice πϕ\pi_\phi is set to 1 (teacher log-probabilities need not be available) and no clipping is applied.

Policy shaping. The off-policy gradient on a token scales with πθ(1−πθ)\pi_\theta(1-\pi_\theta), so tokens the student finds unlikely, the teacher’s genuinely new moves, get almost no weight. LUFFY replaces πθ\pi_\theta with a shaping function

f(πθ)=πθπθ+γ,γ=0.1,f(\pi_\theta) = \frac{\pi_\theta}{\pi_\theta + \gamma}, \qquad \gamma = 0.1,

which flattens the weight across probabilities and relatively boosts rare tokens.

Training details: 45K OpenR1-Math prompts with R1 traces, 1 off-policy + 7 on-policy rollouts, no KL term, entropy bonus 0.01, and Dr. GRPO-style normalisation.

On Qwen2.5-Math-7B, LUFFY averages 50.1 over six math benchmarks: over +6.4 above prior RLVR systems, +4.6 above on-policy RL with matched data, and +8.1 on AIME 2025. It also gains over +6.2 on out-of-distribution tasks. Against SFT followed by RL, it is +1.9 in-distribution and +16.1 out-of-distribution with 59% of the GPU hours (Table 2). Gains over on-policy RL hold for other bases: +8.0 on Qwen2.5-Math-1.5B, +3.6 on Llama-3.1-8B and +5.5 on Qwen2.5-Instruct-7B.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Mechanism

    In Mixed-Policy GRPO, one DeepSeek-R1 trace is added to each group of 7 on-policy rollouts and advantages are normalised over all 8. Explain how this changes the gradient on (a) a hard prompt where all 7 student rollouts fail, and (b) an easy prompt where most succeed.

    What a strong answer covers
    • (a) With all 7 on-policy rollouts failing, plain GRPO has zero variance and zero advantage, so no gradient. Adding a correct off-policy trace creates reward variance: the R1 trace gets a large positive advantage and the failures a negative one.
    • So the student gets a learning signal on prompts beyond its current ability, pushing it toward the teacher's reasoning there. This is the "learn beyond the base model" claim.
    • (b) On easy prompts the off-policy trace is just one more correct sample; its advantage is small, and on-policy rollouts dominate. The guidance self-adjusts with difficulty.
    • The off-policy term uses ratio π_θ/π_φ with π_φ set to 1 in practice and no clipping, so its gradient is weighted by the student's own token probabilities. That motivates policy shaping.
  2. Derive / compute

    For a softmax policy, the derivative of a token's probability π with respect to its own logit is π(1 − π), so the off-policy term gives rare tokens little gradient. LUFFY optimises f(π) = π/(π + γ) with γ = 0.1 instead. Compute the logit-gradient weight f′(π)·π(1 − π) and the vanilla weight π(1 − π) for π = 0.01 and π = 0.9, and explain the effect on learning rare teacher tokens and on entropy.

    What a strong answer covers
    • Vanilla weights: 0.01 × 0.99 ≈ 0.0099 for the rare token and 0.9 × 0.1 = 0.09 for the confident token, so the confident token gets about 9× more push.
    • f′(π) = γ/(π + γ)² is 8.26 at π = 0.01 and 0.1 at π = 0.9. Shaped weights: 8.26 × 0.0099 ≈ 0.082 and 0.1 × 0.09 = 0.009. The ordering flips, and the rare teacher token now gets about 9× more push.
    • Raising the probability of rare-but-correct teacher tokens widens the policy's support instead of sharpening existing modes, so entropy stays higher. On-policy RL's entropy fell to about 0 after about 200 steps; LUFFY's stayed higher.
    • γ sets the crossover: small γ concentrates the boost on very rare tokens, and large γ makes f nearly linear and recovers the vanilla behaviour.
  3. Critique

    LUFFY reports +4.6 average points over on-policy RL and +6.4 over prior RLVR systems on six math benchmarks, plus large out-of-distribution gains over SFT + RL (+16.1). What would you check before concluding that off-policy guidance, rather than the teacher's data, explains these gains?

    What a strong answer covers
    • Data leakage via the teacher: OpenR1-Math traces come from DeepSeek-R1, which may have seen similar competition problems. On-policy RL never sees those solutions.
    • Baseline fairness: prior RLVR systems used different data, steps and normalisation. The +4.6 vs on-policy RL with matched data and rollouts (1 + 7 vs 8) is the cleaner number.
    • The OOD gap over SFT + RL could reflect SFT overfitting to R1 style rather than LUFFY being special. An SFT checkpoint sweep and an SFT+RL run with matched off-policy data would test this.
    • Ask for seed variance, AIME's small size (a +8.1 jump on AIME25 is a few problems), and an ablation that removes shaping while keeping the mixing.

Done with this page?

Status