On-Policy Self-Distillation: Designing Better Training Information
Effective agent training requires more than additional examples of successful execution. This article explains how on-policy self-distillation uses privileged information to guide teachers at states reached by students, how to design useful reference materials, and how to build a reproducible training and evaluation workflow. The central test is whether students can make better decisions after that extra information is removed.
1. Better Agent Training Is Not Just About More Data
Developers training AI agents often encounter a familiar problem: a model can describe a workflow but cannot reliably complete the corresponding task. It may know that processing an order requires checking its status, verifying conditions, and performing an operation. Yet it may still choose the wrong next step when user information is incomplete, an API returns an error, or business rules conflict.
Knowing a procedure and making the right decision in a specific state are different capabilities.
Conventional training data typically presents ideal answers or complete successful trajectories. Models primarily learn how those examples are expressed and how their actions are ordered. During actual execution, however, agents enter intermediate states created by their own choices: querying the wrong object, omitting a field, misinterpreting feedback, or performing an irreversible operation too early. Ideal trajectories may not cover these states, and simply adding more successful examples may not solve the problem.
On-policy self-distillation offers an approach that is more closely aligned with real execution. The student first acts according to its own policy. A teacher with access to additional reference information then provides supervision at the states the student actually reaches.
The central question in training-data design therefore shifts from “How much more content can we add?” to “What information improves the current decision, and can the student learn that improvement?”
2. On-Policy Self-Distillation: Learning from the Student’s Own Trajectories
2.1 The Teacher–Student Difference Is Primarily Informational
In on-policy self-distillation, the teacher and student typically use the same model or closely related models. The student generates actions from the task description, interaction history, and current environment feedback. The teacher sees those inputs plus additional reference material.
Information available only to the teacher during training is called privileged information. It may include:
- Verified task objectives or expected outcomes;
- Expert action trajectories;
- Environment rules and tool-use constraints;
- Corrective guidance for specific error categories;
- Validated task decompositions and critical checkpoints.
Using the same model does not guarantee identical decisions. Additional information may help the teacher recognize constraints the student overlooked and produce a more appropriate distribution over next actions.
That advantage is not automatic. If the model misunderstands the reference material, or the material itself is incorrect, the teacher can produce unreliable supervision. Privileged information must therefore be validated; placing it in the teacher’s context does not make it trustworthy.
2.2 Why Supervision Should Follow Student Trajectories
Suppose an agent must clean an item and place it in a designated location. An expert trajectory might follow the correct route directly, while the student first opens the wrong storage compartment.
If training simply asks the student to imitate the expert’s next action, that action may not fit the student’s current state. A better approach is to let the teacher inspect the actual state and decide whether the student should continue searching, close the incorrect compartment, or locate the target again.
This is what on-policy means here: training states come from trajectories generated by the student’s current policy, rather than exclusively from externally prepared ideal examples. This helps reduce the mismatch between training states and states encountered during execution.
The teacher and student share the interaction history that has already occurred. The teacher does not have to endorse the student’s earlier choices. Its role is to provide effective guidance from the current state, including correction and recovery when necessary.
2.3 The Student Learns Decisions, Not the Extra Material Itself
A training step can be summarized as follows:
- Student input: Currently visible history;
- Teacher input: Currently visible history plus privileged information;
- Supervision target: Bring the student’s action distribution closer to the teacher’s action distribution.
When model output probabilities are available, one common approach is a distribution-matching loss:
[
L = \sumt D{\mathrm{KL}}(q_t \parallel p_t)
]
Here, (q_t) is the teacher’s output distribution at step (t), and (p_t) is the student’s distribution. An implementation must also specify which output positions are supervised, the valid action space, loss normalization, and training masks.
If only teacher-generated text or actions are available, those outputs can be used to construct supervised examples. However, this provides a different amount of information from full-distribution distillation; the two should not be treated as equivalent.
Regardless of the implementation, the final test is the same: can the student complete tasks independently after privileged information is removed?
3. Designing Useful Privileged Information
The underlying material describes research designs involving different interactive tasks, model sizes, and forms of reasoning, but does not provide complete experimental results. It therefore does not support a claim that any one information format is universally best.
A more reliable approach is to separate information design into dimensions that can be tested independently.
3.1 Final Outcomes: Useful Goal Anchors, but Not Always Process Guidance
A final outcome helps the teacher determine whether a task is complete. For example, the goal is not merely “perform an update,” but “the specified record has been updated and satisfies the relevant constraints.”
This information is concise and explicit, making it useful for detecting goal drift. In a long workflow, however, the outcome alone often does not explain why the next action should be a query, a wait, a clarification request, or a rollback.
If the task is essentially to output an answer, giving that answer to the teacher may also create an overly strong shortcut. The student may fit the resulting supervision without learning how to derive the answer from ordinary inputs.
Final outcomes are therefore best used as goal anchors, rather than substitutes for all process guidance.
3.2 Expert Trajectories: Useful Paths That Require State Alignment
Expert trajectories contain actions, observations, and execution order. They can expose task dependencies—for example, why an agent should verify the object first, check eligibility second, and perform a modification last.
Their limitation is path dependence. A student may follow another valid route or may already have diverged from the expert’s state. If the teacher mechanically copies expert actions, its advice may be incompatible with the current environment.
A more robust approach is to:
- Clearly distinguish the reference trajectory from the actual current trajectory;
- Allow the teacher to replan from the current state;
- Highlight critical constraints rather than require step-by-step replication;
- Condense long trajectories into segments relevant to the current decision.
Trajectory summaries also need quality checks. If compression removes an action prerequisite or failure feedback, the shorter reference may be more misleading than the original.
3.3 Environment Feedback: Explain Why Actions Succeed or Fail
Tool responses, permission restrictions, object states, and execution errors are important information sources in agent training.
A teacher needs more than the statement “the operation failed.” It must distinguish between incomplete parameters, a missing target, insufficient permissions, and an operation that violates business rules. Each cause calls for a different recovery strategy.
Training feedback should preserve causal relationships while removing irrelevant logs and sensitive fields. Otherwise, excessive noise increases the context burden, and private data may enter training examples.
Two categories must remain separate:
- Actual feedback that has already occurred can be included in the student’s history.
- Future outcomes or additional diagnostic information available only during training should be managed separately as teacher-side material.
3.4 Policy Guidance: Prioritize Transferable Decision Rules
Compared with complete trajectories, concise policy guidance can make key rules easier to identify. For example:
Before an irreversible modification, verify the target object and required conditions. If the available information is insufficient, query for more information or ask the user for clarification.
This describes a decision principle rather than a fixed action sequence, giving the student a better opportunity to transfer it across tasks.
Guidance can also be too abstract to help. Instructions such as “be careful” or “check thoroughly” are difficult to turn into useful training signals. Effective guidance specifies triggering conditions, what must be checked, and the boundaries of permissible action.
The goal is not maximum detail. Each piece of reference material should improve a specific judgment.
4. Five Criteria for High-Quality Reference Material
4.1 Correctness
Reference material should undergo rule checks, execution-based validation, or human review where necessary. An incorrect rule amplified across repeated training rounds can become a persistent behavior.
4.2 Relevance to the Current State
Information should address the problem the student currently faces. Once the target has been found, lengthy search instructions usually add little value. When the target’s identity is uncertain, emphasizing execution speed may introduce risk.
4.3 Student Learnability
The teacher should not reach the right answer solely through information unavailable to the student. Where possible, its decisions should rely on clues the student can observe.
For example, the teacher may know a record’s final status, while the student has no evidence from which to infer it. Training the student to output that status directly may be inappropriate. Querying the record first may be the more suitable action.
4.4 Information Compactness
Remove repetition, decorative explanation, and background unrelated to the current task. Preserve objectives, constraints, critical feedback, and the evidence needed for correction.
Compactness does not mean omitting conditions. Prerequisites involving permissions, identity, or irreversible actions should not be removed merely to shorten the context.
4.5 Controlled Risk
Privileged information may contain reference answers, internal rules, or sensitive fields. It requires access controls, de-identification, and data provenance records.
It is also important to prevent teacher-only material from being accidentally inserted into student inputs, which can cause training leakage and distort evaluation.
5. From Sampling to Updates: A Reproducible Training Workflow
A general implementation can be organized into six steps.
Step 1: Define the Task and Action Boundaries
Specify completion conditions, permitted actions, tool parameter constraints, interaction budgets, and prohibited behavior. Without a clear definition of success, it is difficult to determine whether teacher supervision is effective.
Step 2: Collect Student Trajectories
Let the current student execute tasks independently. Record actions, observations, termination reasons, and failure points.
Do not retain only successful trajectories. Error states and recovery attempts are important training targets.
Step 3: Build Privileged Information
Generate or retrieve reference material from task records, and store its source, version, and validation status.
Keep material generation and validation as separate as practical, so that an error is not simply confirmed by the same process that produced it.
Step 4: Obtain Teacher Supervision at Student States
Organize student-visible history separately from teacher-only material. Ask the teacher to determine the next action for the current state, rather than produce an ideal end-to-end route disconnected from the actual situation.
Step 5: Filter and Train
Check whether proposed actions are legal, compatible with the current state, and consistent with known rules.
When the teacher is uncertain or reference material is insufficient, the sample can be skipped rather than forcing a low-quality judgment into the student.
Step 6: Resample and Evaluate
After an update, the student’s state-visitation distribution changes. Continue collecting trajectories with the new policy.
Reusing old trajectories for too long can cause training to drift away from the current model’s actual failure modes.
Throughout the workflow, retain data versions, model versions, reference configurations, and random sampling settings. These records help identify the source of performance changes.
6. Comparing Different Information Designs
6.1 Run Information Ablations, Not Just Overall Score Comparisons
Useful comparisons include:
- No privileged information;
- Goal outcomes only;
- Reference trajectories only;
- Policy guidance only;
- Combinations of these materials.
Keep the task set, training budget, initial student model, and evaluation conditions as consistent as possible. Record teacher context length as well, since longer reference material generally increases computation costs.
6.2 Separate Teacher Improvement from Student Improvement
A teacher performing better with additional material shows that the material helps the teacher. A trained student performing better without that material demonstrates successful transfer.
If the teacher improves substantially but the student gains little, possible causes include excessive dependence on privileged information, supervision the student cannot learn, insufficient training, or teacher actions that do not fit student states. The gap should not automatically be attributed to student model size.
6.3 Evaluate Success, Cost, and Risk Together
Relevant metrics include:
- End-to-end task success rate;
- Average interaction steps and tool calls;
- Rates of invalid actions, repeated calls, and incorrect parameters;
- Recovery capability after failure;
- Permission, identity, and business-rule violation rates;
- Teacher-supervision generation cost and total training cost.
Higher success accompanied by more high-risk actions is not an unconditional improvement. Fewer steps are not always better, either: necessary verification and confirmation are part of correct execution.
6.4 Test Transfer, Not Just Memorization
Evaluation should include unseen combinations of goals, state changes, and abnormal feedback, with teacher-side privileged information disabled throughout.
For example, a controlled environment can vary object locations, field order, permission conditions, or tool error types. The question is whether the student still applies the learned principles.
Such tests help distinguish memorizing a reference route from learning a decision method.
7. Practical Guidance: Find the Decision Bottleneck Before Adding Information
In engineering practice, start by classifying failed trajectories:
- Misunderstood objectives;
- Incorrect state interpretation;
- Missed rules;
- Wrong tool selection;
- Parameter errors;
- Inadequate failure recovery.
Then design the smallest useful reference material for frequent, high-impact errors. Parameter errors call for field constraints; object confusion calls for identity-verification principles; poor recovery calls for explanations of failure causes and feasible recovery actions.
This approach is easier to validate and less costly than putting every available reference into the teacher’s context at once.
Test reference length and level of detail separately for students of different sizes and reasoning styles. One student may benefit from short, explicit action constraints, while another may respond better to explanations of conditional relationships. These are experimental hypotheses, not established universal rules.
Conclusion
Providing better training information means designing high-quality supervision that can transfer to the student.
The value of on-policy self-distillation is that it places supervision at decision states the student actually encounters. The value of privileged information is that it supplies missing evidence for the teacher’s judgment. Combining them still requires correctness checks, state alignment, leakage prevention, and independent evaluation.
The guiding principle is straightforward: first identify where the student goes wrong, then determine what information the teacher needs, and finally verify that the student has learned to act without that information. Only this complete feedback loop turns additional context into reliable task capability.
