arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.34191

Timing Matters Twice: When to Query and When to Skip in Flow-Matching On-Policy Distillation

Renye Yan, Junyi Zhan, Jikang Cheng, Wei Peng

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

Abstract

On-policy distillation (OPD) enables flow-matching models to acquire complementary capabilities from specialized teachers through supervision on student-generated trajectories. However, different evaluation dimensions (e.g., aesthetics and OCR accuracy) and tasks (e.g., image generation and editing) emphasize different aspects of the denoising process, suggesting that their effective supervision may occur at different stages. Existing methods typically select supervision states from predefined timestep distributions, which may overlook these phase-dependent differences with unnecessary computation overhead. This motivates two critical timing decisions: when to adaptively query teachers for effective supervision based on the evolving generative process, and when to skip the remaining rollout to avoid redundant computation, i.e., timing matters twice. In this paper, we introduce PhaseOPD, a phase-aware query-and-skip framework that identifies generative phases online from revisions of predicted-clean latents, using existing student velocity predictions without additional model evaluations. For each task-assigned teacher, PhaseOPD selects a supervision state based on its phase preference and skips the unused rollout suffix once all query decisions are finalized, preserving the single-query velocity-distillation objective. On SD3.5-M, PhaseOPD executes only 5.56 of 16 rollout positions per local batch (65.2% fewer), reducing training time by 41.3% relative to DanceOPD while improving Aesthetic, GenEval, and OCR scores.

1. Introduction

In recent years, diffusion and flow-matching models have made significant progress in image generation [7, 9, 12, 16, 18]. The research focus has gradually shifted from improving basic generative capabilities to aligning models with challenging task-specific objectives and preferences through post-training. In complex applications, generative models must satisfy multiple criteria simultaneously,

Generative Phases

Figure

Figure 1. Teacher supervision is not equally useful throughout denoising: semantic composition, text rendering, and aesthetics benefit most from different query intervals. This motivates adapting query timing to each teacher-task pair and terminating the rollout after the required queries, rather than using a shared preset schedule and completing every denoising step.

including accurate semantic composition, coherent spatial structure, high-quality local details, and visual appearance aligned with human preferences. Improving multiple visual objectives within a unified model has therefore become an important challenge in generative model post-training. Previous studies have mainly combined reward signals from different evaluation dimensions using weighted aggregation and optimized the generation distribution of pretrained models through reinforcement learning [17, 19]. However, such methods not only rely on sparse scalar rewards for optimization, but also suffer from competing update directions induced by heterogeneous rewards, often resulting in gradient interference and imbalanced capabilities.

To mitigate reward sparsity and gradient conflicts in joint multi-objective optimization, recent studies have introduced On-Policy Distillation (OPD) into generative models [5, 8, 20]. Instead of directly optimizing a single policy with multiple rewards, multi-teacher OPD first trains specialized teachers independently for different objectives.

These teachers then provide supervision on the student’s own generation trajectories, integrating diverse generative capabilities into a unified student model.

Although OPD provides an effective approach to multi-objective optimization, existing OPD paradigms do not adequately characterize how the value of each task-specific teacher's supervision changes across generation stages. Because each teacher is trained for a distinct objective, the key question is which part of the student's trajectory provides the most effective supervision for that teacher and its corresponding task—not which teacher should be assigned to a given stage. This raises two connected questions: for each teacher-task pair, at what stage should the student be queried to obtain the most useful supervision? Once the relevant query for each task has been completed, when can the remaining rollout be terminated to avoid redundant computation? When query timing is not specified for each teacher-task pair, it remains unclear whether a chosen supervision stage is well suited to that teacher's objective. This matters because denoising follows a stage-dependent pattern: early stages focus on constructing global semantics, intermediate stages gradually shift toward local content generation, and later stages place greater emphasis on refining details and visual aesthetics. These evolving responsibilities mean that the utility of a given teacher's guidance depends on whether the student's state at a particular stage is suitable for that teacher's corresponding objective. Thus, supervision timing should be determined for each teacher-task pair, rather than by assigning teachers to stages in isolation. Beyond effectively scheduling teacher supervision, avoiding unnecessary computational overhead is another important challenge for multi-teacher OPD. Obtaining teacher supervision requires long and continuous rollouts of student trajectories, which introduces considerable computational costs. More importantly, once all necessary teacher queries have been completed, or once the denoising process is close to convergence and the latent representation has become nearly stationary, continuing the remaining rollout provides little additional information for distillation. It may even introduce optimization conflicts due to a mismatch between teacher supervision and generation dynamics. Therefore, skipping redundant trajectory supervision while preserving its effectiveness is crucial to improving OPD training efficiency. Appendix. A discusses related work in detail.

Building on these insights, we propose PhaseOPD, a dual timing-adaptive policy distillation framework that uses the student's generation dynamics to schedule each task-specific teacher at the stages where its supervision is most useful. Unlike existing methods that focus primarily on task-level teacher selection without jointly optimizing teacher-query timing and trajectory length, PhaseOPD identifies a suitable query interval for each teacher-task pair from the student's evolving trajectory. For example, it schedules structure-oriented supervision during global layout and primary structure formation, supervision for objectives involving both structure and detail during the transition toward semantic content and salient details, and visual-quality supervision during later texture and appearance refinement. The task-specific teacher defines what is supervised, while the trajectory dynamics determine when its supervision is applied. This constitutes the first level of adaptivity in PhaseOPD. In addition, PhaseOPD uses generation dynamics and the marginal utility of task-specific supervision to detect diminishing returns. It terminates the remaining rollout once no further teacher query is needed, thereby reducing computational overhead. This constitutes the second level of adaptivity in PhaseOPD and follows Occam's razor: introduce supervision only when necessary.

In summary, our main contributions are threefold: (1) We revisit teacher organization in multi-teacher on-policy distillation by introducing a generation-dynamics dimension orthogonal to the task dimension. We further identify the mismatch between teacher supervision and denoising dynamics, a problem that task-level OPD cannot adequately characterize. (2) We propose PhaseOPD, which uses the student's dynamics to identify, for each task-specific teacher, the generation intervals where its supervision is most valuable and schedules queries accordingly. This reduces cross-stage interference and unnecessary overconstraint. (3) We introduce a dynamic truncation strategy that immediately terminates the subsequent rollout once the supervision signals determine the required teacher-query positions, avoiding redundant computation.

References (19)