← Latest papers
🤖 AI

Trajectory-Refined Distillation

This paper introduces Trajectory-Refined Distillation (TRD), a novel on-policy distillation method that mitigates the structural "prefix failure" problem by applying trajectory-level corrections to student rollouts under teacher guidance, thereby improving reasoning accuracy and coverage across various benchmarks and model scales.

Original authors: Li Jiang, Haoran Xu, Yichuan Ding, Amy Zhang

Published 2026-06-09
📖 4 min read☕ Coffee break read

Original authors: Li Jiang, Haoran Xu, Yichuan Ding, Amy Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a student (the AI) how to solve a complex math problem. You have a brilliant teacher (a more advanced AI) who knows the right answer.

In the standard method described in the paper, called On-Policy Distillation (OPD), the process works like this:

  1. The student tries to solve the problem on their own.
  2. As the student writes down their steps, the teacher watches and says, "For this specific word you just wrote, here is the probability of what comes next."
  3. The student tries to adjust their brain to match the teacher's probabilities for every single word.

The Problem: "Prefix Failure" (The Wrong Turn)

The paper identifies a major flaw in this standard method called Prefix Failure.

Imagine the student is walking down a path to solve the problem. At step 3, they take a wrong turn. They are now on a dead-end street.

  • The Teacher's Dilemma: The teacher sees the student is lost. The teacher knows the correct path starts with "Wait, actually..." and then goes a completely different direction.
  • The Confusion: But the teacher is also forced to look at the student's current location (the dead end). So, the teacher's advice becomes a confusing mix: "Stay on this dead end because you're already here" AND "Turn around immediately."
  • The Result: The student gets a jumbled signal. They try to learn from the teacher, but because the student is stuck on the wrong path, the teacher's advice gets fragmented. The student learns to be "good at being lost" rather than learning how to get back on track. The paper calls this a "bimodal mixture"—the teacher is trying to teach two opposite things at once, and the student gets confused.

Existing solutions tried to fix this by just tweaking the "grade" (the loss function) for specific words, but they didn't fix the fact that the student was still stuck on the wrong path.

The Solution: Trajectory-Refined Distillation (TRD)

The authors propose a new method called Trajectory-Refined Distillation (TRD). Instead of just grading the student's messy draft word-by-word, they change the workflow:

  1. The Draft: The student still takes a first shot at the problem (the "raw rollout").
  2. The Rewrite: Before grading, the teacher takes that messy draft and rewrites it. The teacher fixes the wrong turns, corrects the logic, and produces a clean, perfect version of the solution based on the student's starting point.
  3. The Lesson: The student then learns from this clean, corrected version, not the messy original.

The Analogy:

  • Old Way: You write a story with a plot hole in the middle. Your editor reads it and says, "For the word 'cat' in paragraph 3, you should have written 'dog'." But you are still stuck in paragraph 3 trying to figure out why you wrote 'cat' in the first place. It's confusing.
  • TRD Way: You write the story with the plot hole. Your editor takes your draft, fixes the plot hole, and rewrites the whole middle section so the story flows perfectly. Then, you study the editor's rewritten version to learn how to write better stories next time.

Why This Works Better

  1. Fixes the Root Cause: By correcting the "wrong turn" before the student tries to learn from it, the teacher's advice is no longer confused. It's a clear, single path.
  2. Explores New Paths: Even if the student gets the answer right the first time, the teacher might show them a different, shorter, or smarter way to solve it. This teaches the student to be more flexible.
  3. Efficiency: The paper found that the "rewritten" paths were often much shorter and clearer than the student's original rambling attempts, which actually made training faster.

The Results

The researchers tested this on difficult math competitions (like AIME and HMMT) and coding challenges. They found that:

  • The new method (TRD) consistently beat the old methods.
  • It was especially good at helping the AI solve the hardest problems where it usually got stuck.
  • It worked whether the teacher was a separate, bigger AI or the same AI acting as its own "smart" teacher (using a technique called "privileged information").

In short, the paper argues that to teach an AI effectively, you shouldn't just grade its mistakes word-by-word while it's still making them. Instead, you should let the teacher fix the whole path first, and then let the student learn from the corrected journey.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →