Skip to content

Pedagogical RL: Teaching Models to Teach Themselves from Privileged Information

optionalcorefrontierblogrubric 9/122026 · ~40 min

Souradip Chakraborty, Noah Ziems, Furong Huang, … Omar Khattab

Read first: On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes (GKD) · On-Policy Distillation (Thinking Machines)

Status

Status: blog post / research proposal. This is a May 2026 blog post that reports early experiments. It has no arXiv paper, no released code, small models and point estimates without error bars. Read it as a well-argued proposal, not an established result. All numbers below are author-reported, and some were read off the post’s figures.

TL;DR. On-policy RL (GRPO) and on-policy distillation use privileged information such as the gold answer only to score rollouts, never to find them. If the model cannot already stumble on a success, learning stalls. Pedagogical RL trains a copy of the model that sees the privileged information to write solutions that are correct and learnable for the student, using GRPO with the reward R·G_spike. The student then imitates those solutions with a loss that ignores the tokens it finds too surprising.

Why it matters now. Every RLVR pipeline (math, code, search agents) has the same failure on hard prompts: all G samples get reward 0, so the group advantage is 0 and there is no gradient. Search agents hit this all the time. On BrowseComp-style questions the agent rarely finds the answer, yet you hold the gold answer and gold evidence. This post asks how to turn that privileged knowledge into trajectories worth learning from. It is the endpoint of this section: GKD → on-policy distillation → privileged teachers (RLT, π-Distill) → Pedagogical RL.

A prompt xx (a maths problem or a search question) comes with privileged context cc (the gold answer, or execution feedback). The model writes a trajectory τ=(τ1,…,τT)\tau = (\tau_1,\dots,\tau_T), which can include reasoning tokens, tool calls and a final answer, and a verifier gives a reward R(x,c,τ)R(x,c,\tau), for example 1[answer=c]\mathbb{1}[\text{answer} = c].

GRPO samples a group of trajectories from the model itself, τ∼πθ(⋅∣x)\tau \sim \pi_\theta(\cdot\mid x), and pushes up the ones that scored above the group mean. If every sample fails, nothing moves. In the post’s MATH experiment the hard training subset has a base pass@1 of about 8%, so most groups carry no signal.

Why not let the model see cc and write a solution, then fine-tune on it? Because a privileged teacher πθ(⋅∣x,c)\pi_\theta(\cdot\mid x,c) can be correct for reasons the student cannot reproduce. It can jump to the answer, or take a shortcut that only makes sense once you know where you are going. Such a trajectory has R=1R = 1 but πθ(τ∣x)≪1\pi_\theta(\tau\mid x) \ll 1: the student, without cc, would essentially never produce it, so imitating it teaches a step the student cannot take on its own at test time.

The post’s toy maze (Fig. 1) makes this concrete. Both paths reach the goal:

pathlengthmax student surprisalmean student NLLspike penalty (β = 5)
shortcut through a hidden door (cheating teacher)148.10 (one step with π ≈ e^−8.1)1.037.57
legible detour (pedagogy teacher)220.880.490.63

On-policy RL in this maze has pass@1 ≈ 0.05. The mean NLL says the shortcut is only twice as hard. The spike penalty says it is about 12× harder, and that one step is effectively unreachable.

2. The ideal target: the student’s nearest successes

Section titled “2. The ideal target: the student’s nearest successes”

The distribution we would like to imitate is the student conditioned on success:

qθ⋆(τ∣x,c)  ∝  πθ(τ∣x) R(x,c,τ).q^\star_\theta(\tau\mid x,c) \;\propto\; \pi_\theta(\tau\mid x)\,R(x,c,\tau).

Read it like Bayes’ rule. Of all trajectories the student could produce, keep the successful ones in proportion to how likely the student already was to produce them. These nearest successes are both correct and learnable: they are what on-policy RL would eventually find with unlimited samples. The post lists three ways to approximate them:

  1. Rejection sampling. Sample more from πθ(⋅∣x)\pi_\theta(\cdot\mid x) and keep the successes. This is exact, but only affordable if pass@K is decent at practical K.
  2. Privileged teacher sampling from πθ(⋅∣x,c)\pi_\theta(\cdot\mid x,c). Successes are frequent, but they risk the shortcut problem above.
  3. Product sampling. Mix the two at every token, qmix(τt)∝πθ(τt∣⋅,x)δ πθ(τt∣⋅,x,c)1−δq_\text{mix}(\tau_t) \propto \pi_\theta(\tau_t\mid\cdot,x)^{\delta}\,\pi_\theta(\tau_t\mid\cdot,x,c)^{1-\delta}. This is a soft intersection, but it is greedy and token-level, so it can miss trajectories that are only good globally.

3. Learn the sampler: RL on a pedagogy reward

Section titled “3. Learn the sampler: RL on a pedagogy reward”

Pedagogical RL instead trains a sampler. Take two copies of the base model: a teacher πθT(τ∣x,c)\pi_{\theta_T}(\tau\mid x,c) that sees cc, and a student πθS(τ∣x)\pi_{\theta_S}(\tau\mid x) that does not. The teacher is trained with plain GRPO on

rped(x,c,τ)=R(x,c,τ)⋅GspikeθS(τ∣x),r_\text{ped}(x,c,\tau) = R(x,c,\tau)\cdot G^{\theta_S}_\text{spike}(\tau\mid x),

with the student frozen and used only as a scorer. The product means a trajectory scores well only if it is correct and learnable. This is a much easier RL problem than the student’s, because the teacher already sees the answer. Its reward is dense in the sense that almost every correct rollout gets a graded learnability score instead of 0/1.

The learnability score. For each teacher token, let atmax⁡a^{\max}_t be the student’s own top choice after the same prefix, and define the surprise gap

dt=log⁡πθS(atmax⁡∣x,τ<t)πθS(τt∣x,τ<t)  ≥0.d_t = \log\frac{\pi_{\theta_S}(a^{\max}_t\mid x,\tau_{\lt t})}{\pi_{\theta_S}(\tau_t\mid x,\tau_{\lt t})} \;\ge 0 .

dt=0d_t = 0 when the teacher wrote what the student would have written. Then

Gspike(τ∣x)=exp⁡ ⁣[−λβ log⁡(1T∑t=1Teβdt)].G_\text{spike}(\tau\mid x) = \exp\!\Big[-\tfrac{\lambda}{\beta}\,\log\Big(\tfrac{1}{T}\textstyle\sum_{t=1}^{T} e^{\beta d_t}\Big)\Big].

The bracket is a log-mean-exp, a soft maximum. As β→0\beta\to 0 it tends to the mean gap, and as β→∞\beta\to\infty it tends to the max gap. With β=5\beta = 5 a single large gap dominates. In the shortcut maze path, the one gap of 8.10 among 14 steps gives a penalty of about 8.10−ln⁡(14)/5≈7.578.10 - \ln(14)/5 \approx 7.57, the value in the table. (The post’s Fig. 1 labels the per-step quantity as surprisal −log⁡π-\log\pi, while the text uses the gap dtd_t. They coincide when the student’s top token has probability close to 1.)

Even a pedagogy-trained teacher occasionally writes a token the student finds very unlikely. The student is therefore trained with weighted SFT on teacher samples:

Lassim(θS)=Eτ∼π~T[1∑twt∑twt (−log⁡πθS(τt∣x,τ<t))],wt=σ(κ(log⁡πθS(τt∣x,τ<t)−γ)).\mathcal{L}_\text{assim}(\theta_S) = \mathbb{E}_{\tau\sim\tilde\pi_T}\Big[\tfrac{1}{\sum_t w_t}\textstyle\sum_t w_t\,\big(-\log \pi_{\theta_S}(\tau_t\mid x,\tau_{\lt t})\big)\Big], \qquad w_t = \sigma\big(\kappa(\log\pi_{\theta_S}(\tau_t\mid x,\tau_{\lt t}) - \gamma)\big).

wt≈1w_t \approx 1 when the student already gives the token reasonable probability (log-prob above the threshold γ\gamma), and wt≈0w_t \approx 0 for a spike. Assimilation is iterative: sample a batch from the trained teacher π~T\tilde\pi_T, update the student, resample, and recompute wtw_t under the updated student. Tokens that were spikes earlier can become learnable later. Optionally, finish with ordinary GRPO on RR. The post calls the resulting data “lightly off-policy mid-training trajectories”.

5. Who sees what, at training and at deployment

Section titled “5. Who sees what, at training and at deployment”
conditioning during trainingused at deployment?
teacher πθT\pi_{\theta_T}xx and cc; trained by GRPO on R⋅GspikeR\cdot G_\text{spike}no
student, as scorer in step Axx and the teacher’s prefix (no cc); frozenn/a
student, learning in step Bxx and the teacher’s prefix (teacher forcing, no cc)yes
student at test timexx and its own prefixyes, only this

The gap between the last two rows is classic exposure bias: the student trains on the teacher’s prefixes but must continue its own. Pedagogical RL accepts a small off-policy gap and uses GspikeG_\text{spike} and wtw_t to keep the teacher’s prefixes inside the region the student would visit anyway. On-policy self-distillation (OPSD) makes the opposite trade. The student samples its own prefix, so there is no exposure bias, but the teacher must grade continuations of possibly broken student prefixes.

Pedagogical RL: train a privileged self-teacher for correct and learnable rollouts, then imitate it with surprisal gating Two copies of one base model. Left, step A: the teacher sees the prompt x and the privileged context c and samples full rollouts. Each rollout is scored by a verifier R that may use c, and by a learnability score G_spike computed by the frozen student, which does not see c and penalises the single worst jump. The pedagogy reward is the product R times G_spike, and a GRPO step updates only the teacher. A toy maze shows a shortcut path with spike penalty 7.57 and a legible path with spike penalty 0.63, both correct. Right, step B: the trained teacher samples trajectories, the student scores every teacher token, and the per-token weight w_t drops to about zero on a high-surprisal spike, so the weighted imitation loss ignores that token. The loop resamples and recomputes the weights, optionally followed by plain GRPO. Bottom: at deployment only the student runs, conditioned on x alone. A · train the teacher (GRPO) teacher π_θT sees x and c rollouts τ₁ … τ_G full trajectories R(x, c, τ) verifier; may use c is it correct? G_spike(τ | x) frozen student, no c penalises big jumps r_ped = R · G_spike GRPO advantage updates the teacher only toy maze (blog Fig. 1), β = 5, both R = 1 shortcut, 14 steps: spike penalty 7.57 legible, 22 steps: spike penalty 0.63 G = exp(−λ · penalty): only the legible one scores B · assimilate into the student teacher π̃_T trained in A, samples τ student π_θS sees x only student surprisal of each teacher token −log π_S −γ spike weight w_t L = Σ w_t · (−log π_S(τ_t)) / Σ w_t w_t = σ(κ(log π_S(τ_t) − γ)): spike → w ≈ 0 loop: resample τ, recompute w_t then, optionally, plain GRPO on R Training: c lives only inside the teacher and the reward. Deployment: the student runs on x alone, so every step it imitated must be reachable without c. That is what G_spike and w_t enforce.
Original sketch. Step A trains a privileged copy of the model with GRPO on R·G_spike, scored by the frozen student. Step B imitates its rollouts with per-token weights that switch off spikes. Only the student, conditioned on x alone, is deployed.

Start from the one-spike preset and lower β towards 0: the penalty falls to the mean gap. Raise β and it approaches the single largest gap, so G_spike collapses.

Spike penalty and G_spike for a 6-token trajectory

Formula from this page: penalty = (1/β)·log((1/T)·Σₜ exp(β·dₜ)), a log-mean-exp of the surprise gaps dₜ, and G_spike = exp(−λ·penalty). Small β → penalty ≈ mean gap; large β → penalty ≈ max gap.

Presets:
  • mean gap =
  • max gap =
  • penalty (log-mean-exp) =
  • G_spike =

Experiment I: hard-subset MATH → MATH and AIME (Llama-3.2-3B; base pass@1 on the training subset ≈ 8%; evaluated on 500 held-out MATH prompts and AIME 2020–24). Fig. 3:

methodMATH acc.AIME 2020–24 pass@4
base model38.013.3
off-policy (SFT on an untrained privileged teacher)41.813.2
OPSD (on-policy self-distillation)42.413.1
GRPO43.516.0
Pedagogical RL48.622.5
  • The post claims gains of at least 12% relative on MATH and over 40% relative on AIME.
  • Teacher RL ablation (additive reward R−λsˉR - \lambda\bar s with mean NLL, then vanilla SFT): 44.7 vs 48.6 on MATH, about 9% relative. The post places π-Distill and RLT nearer to this ablation than to Pedagogical RL, because they lack a conjunctive reward, a spike penalty or gated assimilation.
  • Read the curve, not only the bar. In Fig. 2 (read off the plot) the Pedagogical RL curve peaks near 48.6 at about 5K rollouts and ends near 47.3 at about 6.7K, while GRPO is still slowly rising to about 43 at 15K. The bars therefore look like best-checkpoint values. Two baseline bars (off-policy 41.8, OPSD 42.4) sit above the highest points of their smoothed curves, so treat both figures as approximate.

Experiment II: reasoning-intensive regression (Qwen3-4B-Instruct-2507 predicts a 0–10 score for how far a flawed maths solution stays correct before its first error). Fig. 4:

baseSFTGRPOoff-policyPedagogical RL
NMSE ↓1.5331.1351.0771.0050.822
CCC ↑0.2010.3300.3330.3980.418

The post reports reaching its best result with about 2–3× fewer rollouts than the strongest baselines, after counting about 2K teacher GRPO rollouts.

Mechanism checks (§6).

  • Teacher collapse on student prefixes (Fig. 6): a vanilla privileged teacher asked to finish a solution from a student-written prefix recovers 73% of the time with a 1-token prefix, 64% at 100 tokens, and 39% at about 1000 tokens. This is the implicit weak point of on-policy self-distillation.
  • Spikes (Fig. 7): on 50-token trajectories the standard teacher shows frequent high-surprisal spikes and the student plateaus around 41%. The pedagogy teacher shows fewer, smaller spikes and the student exceeds 48%.
  • Evidence strength. These are early results: one model per task, no seeds or error bars, 500 evaluation prompts, apparent best-checkpoint reporting, and unreported λ, β, κ, γ. The blog says as much, calling these early experiments.
  • Compute accounting. Teacher GRPO, student scoring of every teacher token and iterative resampling all cost compute. The rollout x-axis in Experiment I does not obviously include the teacher’s cost.
  • Staleness. The student is frozen while the teacher trains, and GspikeG_\text{spike} is measured against that snapshot. How often the teacher must be re-trained as the student improves (alternation schedule) is not specified.
  • Learnable is not the same as true. GspikeG_\text{spike} rewards fluency under the student. A teacher could learn persuasive-looking but wrong intermediate steps, as long as the final answer verifies. This is a process-level variant of verifier gaming.
  • Needs a verifier with privileged context. The method does not apply as-is to open-ended tasks without cc. With noisy verifiers the product reward inherits the noise (see noisy verifiers).
  • Open question: does it scale? The blog’s bet is that a learned sampler beats more rollouts. The comparison that would settle it is GRPO with K× more rollouts at matched total FLOPs, on a stronger base model.
  • Prerequisites: REINFORCE / policy gradients, PPO, GRPO (DeepSeekMath). Zero-variance groups are the stalling failure the post starts from; see also does RL expand the reasoning boundary?.
  • Distillation lineage: GKD (on-policy student samples + teacher feedback) → On-Policy Distillation (reverse KL per token) → self-distillation with privileged context: OPSD, SDFT.
  • Teachers trained by RL: RLT (teacher sees the solution and is rewarded by student log-likelihood) and π-Distill (joint teacher–student training with privileged info). The blog places both nearer its additive Teacher RL ablation.
  • Off-policy guidance: LUFFY mixes stronger-model traces into GRPO groups. This is the privileged teacher sampling approximation with an external teacher.
  • Meta-learned data: SOAR and SEAL reward a teacher by the student’s later improvement, a delayed and sparse signal. Pedagogical RL uses an immediate, dense one. The blog suggests the two may be complementary.
  • Bootstrapping ancestor: STaR uses rationalisation, i.e. generating a rationale given the answer. This is the earliest form of using c to find trajectories, without any learnability control.
  • IR angle: for search agents, c can be the gold evidence. See deep research is a retrieval problem and learning from your own retrieval mistakes.

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. Derive / compute

    A trajectory of T = 14 tokens has one surprise gap d = 8.10 and every other gap at most 0.5. With β = 5, compute the spike penalty P = (1/β)·log((1/T)·Σ exp(β·d_t)) to two decimals and compare it with the mean gap. Then show in general that mean(d) ≤ P ≤ max(d), and give G_spike = exp(−λ·P) for λ = 1 for this trajectory and for one with P = 0.63.

    What a strong answer covers
    • The spike dominates the sum: exp(40.5) is about 3.9e17, while 13·exp(2.5) is about 160, which is negligible.
    • P ≈ (1/5)·(40.5 − ln 14) = 8.10 − 2.64/5 ≈ 8.10 − 0.53 = 7.57. This matches the blog's Fig. 1 value for the shortcut path.
    • The mean gap is at most (8.10 + 13·0.5)/14 ≈ 1.04, so averaging dilutes the one catastrophic step about 7×. The blog's average NLL for this path is 1.03.
    • Bounds: by Jensen (exp is convex), log-mean-exp(β·d)/β ≥ mean(d). And mean(exp(β·d)) ≤ exp(β·max d), so P ≤ max(d). β interpolates between the two.
    • G_spike with λ = 1: exp(−7.57) ≈ 5e−4 for the shortcut and exp(−0.63) ≈ 0.53 for the legible path. With R = 1 for both, the product reward prefers the legible path by about 1000×.
  2. Mechanism

    The blog's Teacher RL ablation trains the same privileged teacher with an additive reward R − λ·(mean student NLL) and reaches 44.7% on MATH, against 48.6% for the product reward R·G_spike with gated assimilation. Explain, at the level of the reward landscape, why "correct AND learnable" as a product behaves differently from "correct minus a cost", and why the mean NLL is the wrong cost.

    What a strong answer covers
    • With a product, R = 0 gives zero reward however fluent the trajectory is, and R = 1 is scaled by learnability. The two properties are complements, so the teacher cannot trade one for the other.
    • With a sum, a correct but barely learnable trajectory still scores about 1 − λ·s̄. A wrong but fluent one scores about −λ·s̄, close to 0. The GRPO advantage can then favour a shortcut whenever λ·s̄ is small, which is the substitutability the blog names.
    • The mean NLL hides a single spike: 1.03 vs 0.49 for the maze paths, while the spike penalty is 7.57 vs 0.63. One unreachable token makes the whole suffix unreachable for the student, so the worst token matters, not the average.
    • The ablation also changes the assimilation (vanilla SFT instead of gated imitation), so the 3.9-point gap mixes two factors. A clean attribution would need a product reward with vanilla SFT, and an additive reward with gated SFT.
  3. Mechanism

    Compare what the student is conditioned on at training time and at deployment in (a) on-policy self-distillation (OPSD), where the student samples and a teacher that sees c scores every token, and (b) Pedagogical RL. Use the blog's prefix-recovery analysis (privileged-teacher recovery falling from 73% to 39% as the student prefix grows to about 1000 tokens) to argue which failure each design is exposed to.

    What a strong answer covers
    • OPSD: the student conditions on x and its own prefix, which is exactly the deployment condition (no exposure bias). But the teacher must judge tokens after possibly broken student prefixes, and Fig. 6 shows its reliability drops as prefixes lengthen.
    • Pedagogical RL: the student is trained with teacher forcing on teacher-generated prefixes (x only, no c). At deployment it conditions on its own prefixes, so there is a train/test mismatch. The blog calls the data lightly off-policy.
    • The G_spike reward and the w_t gate are designed to keep teacher prefixes inside the student's high-probability region, which shrinks this mismatch. The optional final GRPO stage on R restores fully on-policy training.
    • The trade: OPSD has on-policy states with a possibly unreliable dense signal. Pedagogical RL has a reliable complete trajectory whose states may be slightly off-distribution.
  4. What if…

    In the assimilation loss the weight is w_t = σ(κ·(log π_S(τ_t) − γ)). Predict what happens to training if (a) γ → −∞, (b) κ → 0, or (c) γ is set so high that most tokens get w_t ≈ 0. Relate each case to plain SFT and to the blog's Fig. 7 (spiky standard teacher, about 41% accuracy).

    What a strong answer covers
    • (a) Every w_t → 1, so this is plain SFT on teacher trajectories. Spike tokens give large-gradient NLL terms, the same failure as the off-policy baseline (41.8% on MATH in Fig. 3).
    • (b) Every w_t → 0.5, a constant that the 1/Σw normalisation cancels. This is also plain SFT: the gate needs a sharp κ to discriminate.
    • (c) Only tokens the student already finds likely are trained. Updates shrink to sharpening what it already does, so learning slows, and the normalisation by Σw_t can amplify noise from a few tokens.
    • The gate is a token-level trust region. It is complementary to G_spike, which shapes which trajectories exist, while w_t decides which tokens of those trajectories update the student.
  5. Critique

    The headline MATH number for Pedagogical RL (48.6%) matches the highest point of its learning curve in Fig. 2, and the curve ends near 47% at about 6.7K rollouts. GRPO's 43.5% is reported after about 15K rollouts. Identify the threats to validity in this comparison and design the evaluation you would want before believing the "≥12% relative" claim.

    What a strong answer covers
    • Peak-of-curve selection on the evaluation set inflates the method with the noisiest curve. A pre-registered checkpoint rule (last checkpoint, or selection on a separate validation split) is needed.
    • There are no seeds or error bars, and the eval set has 500 prompts. A binomial standard error at about 45% is roughly 2.2 points, so differences of 1–3 points are within noise.
    • Compute accounting: teacher GRPO rollouts and student scoring passes should count toward the x-axis. The post accounts for about 2K teacher rollouts only in Experiment II.
    • The baselines are weak by construction: one 3B model, a hard subset with pass@1 ≈ 8%, and an off-policy baseline that uses an untrained teacher. Add a stronger reference such as LUFFY-style mixed-policy GRPO or RLT.
    • Hyperparameters λ, β, κ, γ are not reported. Run sensitivity sweeps and test a second model family.
  6. Design

    You train a BrowseComp-Plus-style search agent (fixed corpus, gold answer and gold evidence documents per question) and on-policy GRPO stalls because almost no rollout finds the answer. Design a Pedagogical-RL variant: what c is, what R and G_spike score when the trajectory contains tool calls and retrieved text, and what new reward hack you must guard against.

    What a strong answer covers
    • c = gold answer plus gold document IDs (or their text). R = answer match, possibly plus evidence recall. The teacher sees c, but the student and the deployed agent do not.
    • G_spike should be computed only over tokens the agent writes (reasoning, queries, answer), not over retrieved text it observes. Retrieved tokens are environment observations, not actions.
    • Leakage hack: the teacher can write a query containing a gold doc title or the answer string. The query retrieves the right page and is "correct", but it is an unsupported jump for a student without c. The spike penalty should catch this, so check it by measuring query-term overlap with c.
    • Learnability also depends on the corpus: a query is learnable only if the student could plausibly generate it from what it has read so far. Prefer teachers whose queries follow from earlier retrieved snippets.
    • Validate with the student's on-policy success rate on held-out questions without c, and compare against plain GRPO and an OPSD-style baseline at matched rollout budgets.

Done with this page?

Status