arXiv:2610.31918cs.AIOct 2026

Manuscript Offprint

arXiv:2610.31918

Beyond On-Policy vs. Off-Policy: At What Level Should LLM Agent Distillation Follow the Student?

Ya Gao, Zhengtao Zou, Pekka Marttinen

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

ABSTRACT

Distilling interactive LLM agents requires choosing between teacher-generated demonstrations and student-generated experience, corresponding broadly to off-policy and on-policy distillation. While both have proven effective, we argue that this distinction is inherently hierarchical: the policy that induces an interaction history need not be the same as the policy that generates the token prefix of the current action. We introduce a hierarchical agent distillation framework that formalizes these two levels of on-policiness and enables explicit control over their pairing, mixture proportions, and training schedule. We study this problem through self-distillation, where a frozen teacher has access to task guidance unavailable to the student, and conduct a three-stage controlled study across three models and four interactive environments. We find that student-induced histories paired with teacher-generated action prefixes generally provide the strongest standalone training signal, whereas following the student at both levels generally performs worst. Nevertheless, fully on-policy data becomes beneficial when incorporated into a mixture with other configurations. Moreover, mixtures with identical teacher/student proportions at each level can yield substantially different performance, showing that how the two levels are paired matters beyond the overall amount of on-policy data. Finally, front-loading fully teacher-generated contexts and delaying fully on-policy contexts improves over a static mixture. These findings provide practical principles for deciding where, how much, and when agent distillation should follow the student.

1 INTRODUCTION

Knowledge distillation (KD) (Hinton et al., 2015) is widely used to post-train large language model (LLM) agents (Yao et al., 2022b), transferring task-solving behavior from a teacher to a student (Zeng et al., 2024; Kumar et al., 2026). In privileged-information (PI) distillation (Penaloza et al., 2026; Alakuijala et al., 2026), the teacher receives task guidance unavailable to the student, and distillation trains the student to reproduce the resulting behavior without that guidance at deployment.

A central design choice is which policy generates the contexts used for distillation. Off-policy approaches train on teacher-generated trajectories (Kang et al., 2026; Liu et al., 2026b), providing coherent demonstrations but limited exposure to states encountered by the student. On-policy distillation (OPD) (Agarwal et al., 2024; Lu & Lab, 2025) instead obtains teacher supervision on student-generated experience, reducing training–deployment mismatch. However, student errors can produce histories or partial actions from which even the teacher has difficulty providing useful continuations (Fu et al., 2026). Both approaches can be effective in agent training (Alakuijala et al., 2026; Liu et al., 2026b; Xiao et al., 2026; Xu et al., 2026), raising a basic question: should agent distillation be on-policy?

We argue that the trajectory-level notion of on-policiness commonly used to characterize distillation methods is incomplete for interactive agents. An agent's training context contains two nested levels. At the history level, preceding interactions determine the context and environment state before the current action. At the action-prefix level, previously generated tokens within the current action determine the context for next-token prediction. Either level can independently come from the teacher or the student. For example, a teacher can generate an action from a student-induced history, while a student can generate an action from a teacher-induced history. The relevant question is therefore not only whether training is on-policy, but at which level and to what extent should distillation follow the student?

We introduce hierarchical agent distillation, which independently specifies the history source and action-prefix source. Choosing teacher or student at each level yields four configurations, TT, ST, TS, and SS, under a common distillation objective. This formulation separates three design choices: where the student is followed, how much each source configuration contributes to training, and when different configurations are emphasized during learning.

We study these choices through a controlled three-stage investigation. Stage 1 isolates the effects of history and action-prefix sources and their interaction. Stage 2 examines how the four configurations should be paired and mixed under a fixed training budget. Stage 3 studies how their allocation should change over training. We use self-distillation, initializing teacher and student from the same checkpoint while providing task guidance only to the frozen teacher, thereby controlling for architecture, model size, and initialization. Across three backbones and four interactive environments, we obtain the following findings:

• The value of on-policy training depends on the level. Student-induced histories paired with teacher-generated action prefixes (ST) generally provide the strongest standalone performance, while fully on-policy training (SS) performs worst across the tested settings. Student histories expose the teacher to more opportunities for corrective supervision, whereas student-generated prefixes can constrain the usefulness of teacher continuations.

• Pairing matters beyond the amount of on-policy data. Mixtures with identical proportions of student-generated histories and action prefixes can perform differently depending on how the two sources are paired. The strongest tested mixtures emphasize hybrid configurations while retaining contributions from both fully teacher-generated and fully on-policy contexts. In particular, a modest allocation to SS can improve mixed training despite its weak standalone performance.

• The timing of data exposure matters. Front-loading TT accelerates early learning, whereas delaying SS improves later and final validation performance. Combining both schedules outperforms a static allocation throughout training and achieves the strongest final validation performance among the schedules tested.

References (25)