OPMD: On-Policy Mechanism Distillation Beyond Output Supervision

Yingdong Shi, Zhihong Li, Changming Li, Jingyi Yu, Quan Li +1 more
9/29/2026
cs.LGcs.AI
distillation

No confident code implementation found for this paper.

Abstract

On-policy distillation (OPD) improves language-model by supervising a student on prefixes sampled from its own policy, but its supervision remains confined to the output space. Consequently, OPD transfers what a teacher predicts without supervising the intermediate computation that produces those predictions.

Show full abstract

Simply distilling intermediate representations like representation matching is insufficient since teacher and student representations may differ geometrically, and even well-aligned hidden states need not be usable by the student's subsequent computation. We introduce On-Policy Mechanism Distillation (OPMD), which transfers teacher-derived intermediate computation while explicitly accounting for its compatibility with the student. OPMD first constructs a student-compatible teacher that transforms teacher representations into intermediate states usable by the student's downstream computation, then it internalizes these states from on-policy trajectories. OPMD achieves the highest average accuracy among the evaluated distillation baselines in all three teacher--student settings, and generalizes to multi-teacher distillation and cross-family supervised fine-tuning. Further analyses show that mechanism supervision yields more effective reasoning and meaningfully alters the student's intermediate computation and solution strategies, supporting that it transfers information beyond output supervision alone. Together, these results establish mechanism-level supervision as an effective way to move on-policy distillation beyond output supervision, enabling students to learn inner mechanisms they can use and internalize.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shi2026opmd,
  title  = {OPMD: On-Policy Mechanism Distillation Beyond Output Supervision},
  author = {Yingdong Shi and Zhihong Li and Changming Li and Jingyi Yu and Quan Li and Kan Ren},
  year   = {2026},
  eprint = {2610.14022},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.14022v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.14022.svg)](https://codeofpaper.com/paper/2610.14022)

Discussion