Manuscript Offprint

arXiv:2609.39884

OPSRD: On-Policy Self-Role Distillation

Weijie Ren, Yanwen Zhang, Hao Li, Zhuolin Qi, Hengyi Zhang, Naibo Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Role prompting elicits specialized behavior from large language models through an expert identity, offering a lightweight way to guide reasoning on demanding tasks. However, evaluating or distilling complete role-prompted answers can miss useful next-token preferences when the sampled solution remains incorrect. Transferring these preferences also requires an objective that reaches alternatives the student rarely predicts. We introduce OPSRD, which uses a fixed expert role as privileged teaching context for on-policy self-distillation without reference solutions. A role-free student generates a trajectory, and a frozen instance of the same base model supplies role-conditioned distributions on its exact prefixes, exposing alternatives beyond the sampled continuation. Teacher-weighted forward KL targets alternatives the student underestimates, with clipping to limit individual vocabulary contributions. Supervision is restricted to the highest-entropy half of student positions, concentrating learning where predictions are uncertain. Experiments on three competition-math benchmarks with Qwen3-1.7B, 4B, and 8B show improvements over the base models without role prompts at inference. Forward KL achieves the highest macro-averaged accuracy among the three evaluated divergences at every scale. Code is available at https://github.com/zhansan114514/OPSRD.

1 INTRODUCTION

Large language models serve as general-purpose assistants for reasoning, explanation, and problem solving. Their usefulness depends on how instructions elicit the capabilities needed for a particular task (Liu et al., 2023). Role prompting makes this dependence explicit by asking a model to adopt an expert identity (Xu et al., 2023). A mathematical expert role can request careful derivations and verification, while a critic role can encourage checking intermediate conclusions. Such prompts offer a practical way to guide model behavior without changing its parameters.

However, existing uses of role prompting often assess expertise through complete generated responses. Reported reasoning gains and failures (Kong et al., 2024; Kim et al., 2024) therefore mix the role's local influence with the effects of sampling an entire solution. A useful next-token preference can remain unsampled or be followed by a later mistake. Distilling expert-prompted responses (Xu et al., 2023) likewise transfers only the sampled continuations. On-policy self-distillation accesses richer token distributions, but solution-conditioned OPSD derives its teaching advantage from a reference solution for each problem (Zhao et al., 2026). The open question is whether an expert role can supervise the student's reasoning even when its complete answers offer no measured advantage.

Our starting observation is a negative result. On three competition-math benchmarks, adding an expert olympiad mathematician role to Qwen3-1.7B changes macro accuracy from 35.74 to 34.54, providing no measured improvement over the ordinary prompt. A neutral system instruction reaches the same score. The expert label alone is insufficient to improve sampled solutions in this setting. What remains unobserved is the role-conditioned distribution at each intermediate choice, before later decisions determine the final answer.

(a) Student rollout and prefix-aligned teaching

(b) Selective distillation

Figure

Figure 1: OPSRD overview. The student generates a role-free trajectory; the frozen expert-role teacher evaluates the same prefixes. The highest-entropy half of student positions receive clipped, full-vocabulary forward KL. Only student LoRA parameters are updated, and deployment uses the ordinary prompt at test time.

We hypothesize that a role-conditioned model can teach useful next-token preferences even when its complete solutions offer no accuracy gain. Under this hypothesis, the role's value lies in shifting probability toward helpful continuations at uncertain student prefixes. Holding these prefixes fixed lets the teacher evaluate the choices the student actually faces. On-policy distillation provides this alignment (Agarwal et al., 2024; Gu et al., 2024), allowing us to test a reusable role as privileged teaching context without per-problem reference solutions.

We develop OPSRD to test this hypothesis. The student generates trajectories under its ordinary prompt. A frozen instance of the same base model receives the expert role and scores the exact student prefixes, supplying a distribution over possible next tokens. We retain the highest-entropy half of student positions to focus supervision on uncertain choices. Only a low-rank student adapter is updated (Hu et al., 2022); the teacher stays fixed, no reference answer enters training, and the trained student uses its ordinary prompt at inference.

For this feedback to help, the objective must reach alternatives the student currently underestimates. A reverse-KL update weakens as the student's probability of an alternative approaches zero, even when the teacher supports it. Forward KL weights the target by teacher probability and directly corrects this underestimation before clipping. We therefore use forward KL, with a cap on individual vocabulary contributions to limit large discrepancies from an imperfect teacher. We compare forward KL, reverse KL, and Jensen–Shannon divergence under the same role and entropy mask.

Experiments cover Qwen3-1.7B, 4B, and 8B on three competition-math benchmarks. Forward KL achieves the highest macro accuracy among the evaluated divergences at all three scales (Figure 3). At 1.7B, OPSRD improves Base by 6.30 percentage points in the primary run, and independent training repeats retain the gain. Placement controls favor keeping the role in the teacher. The study contributes an empirical contrast between direct prompting and role-based supervision, an answer-free on-policy method, and an analysis of how divergence and role placement govern this transfer.

References (41)