News › #reinforcement-learning
JOLT: training one model as both a privileged teacher and its own student

JOLT trains one model as a privileged teacher and as its own student, with a KL penalty that keeps the teacher's guidance within the student's reach. We explain the objectives, the paper's condition for a reward-consistent teacher, the reported gains over GRPO, the per-task hyperparameters and ablations, and how to inspect the per-token signal.
In short
JOLT (Joint On-policy Learning and Teaching) is a training method from Perplexity and NVIDIA researchers (arXiv:2610.10447, submitted 7 October 2026, blog post 21 October). One model plays two roles: a teacher that sees privileged information, such as the verified answer, and a student that does not. Earlier self-distillation methods simply let the student copy the privileged teacher. JOLT also trains the teacher, so that its guidance is useful for a student who cannot see the hint. The authors report better results than GRPO on math, coding, tool-use and terminal tasks, and on MATH they report reaching the same accuracy as GRPO with 6.5 times fewer processed tokens.
How it works
The problem. Reinforcement learning from outcome rewards (for example GRPO) gives one number per attempt: right or wrong. On hard tasks, correct attempts are rare, so most of the training signal is zero. On-policy distillation gives a dense signal instead: a teacher scores every token that the student wrote. On-policy self-distillation (OPSD) removes the need for a separate, larger teacher: the same model becomes the teacher by adding privileged information, such as the reference answer, to its prompt.
The weakness that JOLT addresses. A teacher that already knows the answer may prefer tokens that only make sense because it knows the answer. For example, it may like a confident final number without the steps that would lead there. A student who copies these preferences learns a shortcut that it cannot execute without the hint. The paper derives a necessary and sufficient condition under which the teacher's update points in the same direction as the gradient of the student's reward. It calls a teacher that satisfies it "reward-consistent".
The JOLT idea. The teacher role is trained too:
- The teacher solves tasks with the hint and is rewarded for its outcomes, like in GRPO.
- A KL penalty keeps the teacher's token distribution close to the student's current distribution. The teacher is thus pushed to explain in steps that the student could actually produce.
- The student is trained on its own attempts, with a dense per-token signal from the teacher.
- Both roles update the same weights in one step.
Analogy: a good tutor who knows the solution does not just say the answer. The tutor gives the hints that this particular student can follow next.
Under the hood
Objectives (from the blog post). Let π be the shared policy, x the task, h the privileged hint.
- Student term (OPSD): on trajectories sampled by the student π(·|x), minimize the reverse KL between student and teacher at each visited state, KL(π(·|x, y<t) ‖ π(·|x, h, y<t)). Tokens that the privileged teacher finds more likely are reinforced; less likely tokens are suppressed.
- Teacher term: a policy-gradient objective on the teacher's own attempts π(·|x, h), weighted by a group-relative advantage (return minus the group mean, as in GRPO), minus β_T · KL toward the student distribution, with a stop-gradient on the student side.
- JOLT: J = J_teacher + β_S · J_OPSD. JOLT+ adds a student term weighted by the student's own group-relative outcome advantage, so the student also receives the outcome reward directly.
The authors call the teacher objective a surrogate: the teacher's returns are not exactly the advantages of the student's continuations.
One training step. (1) The teacher generates attempts with the hint. (2) The student generates attempts without it. (3) The same model scores the student attempts again with the hint in the context. (4) Both losses are computed. (5) One shared parameter update.
Experimental setups.
| Task | Base model | Privileged information |
|---|---|---|
| GSM8K | DeepSeek-V2-Lite | verified answer |
| MATH | Qwen3-0.6B | worked reference solution |
| LiveCodeBench v6 (131 problems) | Qwen3-8B | passing solution or execution feedback |
| AppWorld | Qwen3-4B-Instruct-2507 | summaries of earlier attempts |
| Terminal-Bench 2.1 (trained on TMax) | Qwen3-30B-A3B-Instruct-2507 | private verifier information |
Results (absolute gains of JOLT+ over GRPO, the strongest baseline). GSM8K +1.5, MATH +4.2, LiveCodeBench v6 +3.0, AppWorld +9.9, Terminal-Bench 2.1 pass@1 +2.7 percentage points. JOLT without the student reward beats GRPO on GSM8K, MATH and LiveCodeBench, but not on AppWorld and Terminal-Bench 2.1. Plain OPSD scores below the base model on Terminal-Bench 2.1, which supports the argument that an unconstrained privileged teacher can mislead the student.
Token efficiency (MATH). At 63.44% accuracy, GRPO used 8.40M processed tokens and JOLT about 1.30M (6.5×); for completion tokens the gap is about 13×. Fitted asymptotes: JOLT about 72%, GRPO about 70%, OPSD about 62%. Note that the GRPO value comes from an observed checkpoint and the JOLT value from a fitted curve.
Limits. The models are small to mid-size (0.6B to 30B), there is no compute or wall-clock comparison, the efficiency study covers only MATH, and the code is announced but not yet released.
The condition for a useful teacher (added 25 October 2026)
Readers asked for more depth, so here is the central result of the paper in its own notation. Let π_θ̄ be the current student, c the privileged context, A^π_θ̄(s, a) the student's advantage for action a in state s, and β_T > 0 a temperature.
Definition. A teacher π_T is reward-consistent if the on-policy distillation gradient that it induces equals the student's reinforcement-learning gradient, up to the factor 1/β_T:
g_OPD(θ̄; π_T) = (1/β_T) · ∇_θ J_RL(θ) at θ = θ̄
Necessary and sufficient condition (Eq. 10). On trajectories τ sampled by the student,
E_τ [ Σ_t ( log π_T(a_t | s_t, c) − log π_θ̄(a_t | s_t) − (1/β_T) · A(s_t, a_t) ) · ∇ log π_θ̄(a_t | s_t) ] = 0
In words: the teacher's log-ratio over the student must agree with the student's advantage, scaled by 1/β_T, in every direction in which the student can move. Any part of the log-ratio that does not track the student's advantage pushes the student in a direction that does not increase its reward.
The ideal teacher (Eq. 14). A sufficient pointwise solution is
π_T*(a | s, c) = π_θ̄(a | s) · exp( A(s, a) / β_T ) / Z(s),
Z(s) = Σ_a' π_θ̄(a' | s) · exp( A(s, a') / β_T )
This is the student's own distribution, tilted toward actions with high advantage for the student. It is the same form as the optimal policy of KL-regularized RL. Two consequences follow directly from the formula:
- The ideal teacher never puts probability on an action that the student would never take (if π_θ̄(a | s) = 0, then π_T*(a | s, c) = 0). A privileged shortcut that the student cannot produce is therefore not good teaching, even if it leads to the right answer.
- β_T controls how far the teacher moves away from the student. A large β_T gives a teacher close to the student (small, safe updates); a small β_T gives a teacher that follows the advantage more aggressively.
How JOLT approximates it. The student's advantage A is unknown, so JOLT trains the teacher with a practical surrogate (Eq. 18): a policy-gradient term on the teacher's own attempts, weighted by the group-centered return Â(τ) = R(τ) − (1/G) Σ_j R(τ_j) over G attempts with the same context, minus β_T · KL(π_θ(·|s, c) ‖ sg[π_θ̄(·|s)]). This is exactly the KL-regularized RL problem whose solution has the tilted form above, but with the teacher's return in place of the student's advantage, which is why the authors call it a surrogate. In the implementation, each token gets a scalar weight, with Δ_t = log π_θ̄(a_t | s_t, c) − log π_θ̄(a_t | s_t):
| Role | Token weight (stop-gradient) |
|---|---|
| Teacher | Â(τ) − β_T · Δ_t |
| Student (JOLT) | β_S · Δ_t |
| Student (JOLT+) | Â(τ) + β_S · Δ_t |
The teacher's weight subtracts Δ_t: a token that the teacher likes much more than the student is penalized, because it is likely a shortcut that depends on the hint. The student's weight adds Δ_t: the student is pushed toward tokens that the teacher prefers. The two roles share parameters, so the joint update is outside the guarantee of the theorem, as the paper notes; the experiments test whether it works in practice.
Hyperparameters and ablations (added 26 October 2026)
Readers asked for more depth again. The values below are taken from the paper's Table 3 (per-method settings) and Table 8 (Appendix C, teacher-objective ablation). LR = learning rate, B = problems per update, G = rollouts per problem.
| Setting | GSM8K | MATH | LCBv6 | AppWorld | TMax (Terminal-Bench) |
|---|---|---|---|---|---|
| GRPO: LR | 1e-6 | 3e-6 | 1e-6 | 5e-7 | 1e-6 |
| GRPO: B / G / steps | 8 / 8 / 200 | 8 / 8 / 150 | 32 / 8 / 150 | 4 / 4 / 300 | 8 / 32 / 50 |
| JOLT, JOLT+: LR | 1e-6 | 2e-6 | 1e-6 | 1e-7 | 1e-6 |
| JOLT, JOLT+: B / G / steps | 8 / 4 / 200 | 8 / 4 / 150 | 8 / 8 / 150 | 2 / 4 / 300 | 8 / 16 / 50 |
| JOLT: teacher KL β_T | 0.03 | 0.001 | 0.001 | 0.001 | 0.001 |
| JOLT: student weight β_S | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
Three points matter if you want to reproduce the method:
- G counts rollouts per role. On GSM8K and MATH, JOLT uses 4 teacher rollouts and 4 student rollouts per problem, while GRPO uses 8 student rollouts. The number of generated attempts per problem is therefore the same.
- β_T is very small. On four of five tasks the teacher's KL weight is 0.001. In the token weight Â(τ) − β_T · Δ_t, the outcome advantage dominates, and the KL term only removes tokens with a very large log-ratio Δ_t.
- On GSM8K the paper reports that unit coefficients (β_T = β_S = 1) are unstable, and that the best runs use a learning rate near 1e-6 and coefficients below one.
Teacher-objective ablation (MATH, held-out accuracy at step 75, mean ± 95% confidence half-width):
| Configuration | Accuracy (%) |
|---|---|
| OPSD | 62.95 ± 0.78 |
| OPSD + student reward | 66.52 ± 0.73 |
| JOLT, teacher KL term only | 65.39 ± 0.97 |
| JOLT, teacher outcome term only | 67.87 ± 0.86 |
| JOLT, full teacher objective | 72.10 ± 0.82 |
| JOLT+, full teacher objective | 73.80 ± 0.74 |
Each half of the teacher objective helps on its own, and the combination helps most. JOLT+ is about 7 points above "OPSD + student reward", which has the same student signals but an untrained teacher. The paper notes one caveat: because teacher and student share weights, the ablation cannot separate a better distillation signal from direct transfer of what the teacher learned.
Still not stated in the paper text we could read: the optimizer, the learning-rate schedule, the gradient-clipping threshold and the hardware or compute budget. Table 8 also lists a learning rate for the full objective that does not match Table 3; we could not resolve this from the text. The code release is still pending (see the related milestone).
Try it yourself
You can look at the dense per-token signal that OPSD and JOLT use, with a small model. The script lets the student answer without the hint, then scores the same tokens with and without the hint. The difference in log-probability is the single-sample estimate of the reverse-KL signal. Requirements: Python 3.10+, pip install torch "transformers>=4.51", about 3 GB of RAM. We could not run it in our environment because the model download was blocked there, so we cannot show the output.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
name = "Qwen/Qwen3-0.6B"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, torch_dtype=torch.float32).eval()
def chat(text):
return tok.apply_chat_template([{"role": "user", "content": text}], tokenize=False,
add_generation_prompt=True, enable_thinking=False)
question = "What is 17 * 24? Answer with the number only."
student_prompt = chat(question)
teacher_prompt = chat("The verified answer is 408.\n" + question) # privileged hint
# 1. The student samples an answer without the hint.
ids = tok(student_prompt, return_tensors="pt").input_ids
torch.manual_seed(0)
answer = model.generate(ids, max_new_tokens=12, do_sample=True, temperature=1.0)[0, ids.shape[1]:]
# 2. Score the same tokens under both contexts.
def token_logprobs(prompt, answer):
p = tok(prompt, return_tensors="pt").input_ids
full = torch.cat([p, answer[None]], dim=1)
with torch.no_grad():
logits = model(full).logits[0, p.shape[1] - 1:-1]
return torch.log_softmax(logits, -1).gather(1, answer[:, None]).squeeze(1)
s = token_logprobs(student_prompt, answer)
t = token_logprobs(teacher_prompt, answer)
for tid, ls, lt in zip(answer, s, t):
print(f"{tok.decode(tid)!r:10} student {ls:7.2f} teacher {lt:7.2f} signal {lt - ls:+6.2f}")
What to look for: if the student's answer is wrong, the teacher should assign low probability to the wrong digits, so the signal is strongly negative exactly at those tokens. If the answer is right, the signal is close to zero or positive. Run it with several seeds. Then replace the hint with a full worked solution and check whether the teacher starts to reward wording that the student could not have produced without the hint. This is the effect that JOLT's KL term is meant to limit.
Sources
What should happen next with this?
One click per article, no account needed. “Go deeper” feeds the research queue.