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

Manuscript Offprint

arXiv:2609.02401

CA-OPD: Confidence-Aware On-Policy Distillation for Structured Visual Prediction

Menghao Li, Linjie Mu, Yin Wang, Haotian Hu, Yannian Gu, Lujiayi Xue, Fanyi Wang

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

ABSTRACT

Autoregressive vision language models unify heterogeneous perception tasks but are highly susceptible to compounding errors. On-policy distillation (OPD) bridges the training-inference mismatch by training students on their own rollouts. However, unreliable student predictions, especially early in training, can derail the trajectory and degrade the quality of teacher supervision. While recent interleaved distillation methods allow the teacher to verify and replace student tokens, they primarily rely on rigid ranking metrics rather than exact teacher confidence, and they overlook how intervention decisions can inform token-level supervision. To address this, we introduce Confidence-Aware On-Policy Distillation (CA-OPD), a framework that couples reliable rollout construction with adaptive supervision. CA-OPD utilizes teacher confidence to selectively correct unreliable student transitions, gradually transferring rollout control to the student via a strict-to-relaxed schedule. Crucially, CA-OPD aligns knowledge transfer with these intervention decisions: corrected positions receive direct cross-entropy supervision from the teacher's prediction, while retained positions benefit from the teacher's full predictive distribution. Evaluated in a multi-teacher setting for GUI grounding and optical character recognition, CA-OPD substantially improves the Qwen3.5-0.8B baseline across all six target benchmarks, including gains of 9.50 points on ScreenSpot-Pro and 6.72 points on OCRBench-v2 English. Controlled studies further show that the gains depend on intervention placement, progressive rollout control, and intervention-aligned supervision, rather than intervention frequency alone.

1 INTRODUCTION

Vision language models (VLMs) increasingly solve heterogeneous perception tasks through a unified autoregressive interface (Peng et al., 2023; Wang et al., 2026). For instance, optical character recognition (OCR) outputs are generated as text, while visual grounding and graphical user interface (GUI) interaction initialize locations or actions as token sequences (Kim et al., 2021; Chen et al., 2021; You et al., 2024). While this formulation provides a flexible, task-agnostic interface, it makes structured prediction inherently sequential: every generated token becomes part of the next input. Once an incorrect token is committed, subsequent predictions are conditioned on a corrupted prefix. A local error can therefore compound, degrading both the immediate prediction and the entire trajectory along which the remainder of the output is generated (Ranzato et al., 2015; Kim et al., 2022).

This autoregressive dependency poses a significant challenge for knowledge distillation (KD). Traditional offline and sequence-level distillation train the student on stable, reference- or teacher-generated trajectories (Hinton et al., 2015; Kim & Rush, 2016). However, during inference, the student is evaluated on prefixes produced by its own policy. On-policy distillation (OPD) mitigates this mismatch by allowing the student to generate the rollout, querying the teacher for supervision on the states the student actually visits (Agarwal et al., 2024; Gu et al., 2024). Yet, the very property that aligns OPD

*Equal contribution. †Corresponding author. §Project Leader.

Figure

Figure 1: Confidence-aware on-policy distillation for structured visual prediction. CA-OPD evaluates each student proposal using teacher confidence. Low-support proposals are replaced by teacher tokens and receive direct corrective supervision, while supported proposals remain in the rollout and retain distributional supervision. The mixed prefix is used for subsequent autoregressive generation.

with inference also introduces a critical vulnerability. When the student is unreliable, especially early in training, an incorrect prediction can enter the prefix and derail all subsequent states where teacher supervision is applied (Xu et al., 2025).

Recent interleaved distillation methods offer a natural remedy for this tension. Instead of blindly committing every student prediction to the rollout, the teacher can verify student proposals and intervene when necessary. Speculative Knowledge Distillation (SKD) (Xu et al., 2025), for example, uses the teacher's ranking of a student proposal to decide whether the proposal should remain in the generated prefix. Such verification provides a useful middle ground between relying entirely on student generation during OPD and using trajectories dictated by the teacher. It protects the rollout from severe student errors while retaining substantial exposure to states induced by the student policy.

Nevertheless, two limitations remain. First, rank does not directly measure how strongly the teacher supports a student proposal. A token can rank highly even when the teacher distribution is uncertain, whereas proposals with the same rank can receive substantially different probability mass. The decision to trust a student transition is therefore better informed by the exact teacher confidence assigned to that proposal. Second, teacher intervention contains useful learning signals beyond simply repairing the rollout. When the teacher rejects a student proposal and commits its own prediction, it identifies a concrete local mistake. Treating this event solely as a rollout-correction mechanism leaves this corrective signal underutilized. Conversely, when the teacher already supports the student proposal, preserving the richer teacher distribution can provide informative supervision. These observations suggest that rollout control and token-level supervision should be jointly optimized.

To address this, we introduce CA-OPD, a confidence-aware on-policy distillation framework that couples reliable rollout construction with adaptive token-level supervision. CA-OPD leverages teacher confidence to assess student proposals and selectively correct unreliable transitions. Teacher intervention is stronger early in training when the student is less reliable and gradually decreases, allowing the rollout to smoothly move toward greater student control. Crucially, the outcome of this verification dictates how knowledge is transferred: corrected positions receive direct supervision from the teacher's prediction, while retained positions continue to benefit from the teacher's full predictive distribution. As illustrated in Figure 1, CA-OPD preserves the on-policy character of training while selectively preventing poorly supported student transitions from being committed to the prefix. This same gate determines the supervision used at each position, elegantly connecting state visitation and knowledge transfer within a single autoregressive process.

We evaluate CA-OPD in a multi-teacher setting that distills complementary GUI grounding and OCR capabilities into Qwen3.5-0.8B. Relative to the Qwen3.5-0.8B baseline, CA-OPD improves all six target benchmarks, with gains of 9.08 points on ScreenSpot-v2, 9.50 points on ScreenSpot-Pro, 6.72 points on OCRBench-v2 English, and 9.77 points on OCRBench-v2 Chinese. It also outperforms Offline KD, standard OPD, and SKD on every target benchmark, indicating that the gains cannot be attributed to distillation alone. Furthermore, controlled studies demonstrate that our gains cannot be explained by intervention frequency alone. Specifically, we show that (1) where the teacher intervenes matters, as randomly placed interventions provide minimal benefit compared to confidence-based ones at identical budgets; (2) a strict-to-relaxed schedule outperforms both fixed and reversed alternatives; and (3) aligning the supervision objective with the intervention decision materially contributes to the overall improvement. Together, these results indicate that effective on-policy distillation depends not only on how often the teacher intervenes, but also on the strategic placement of interventions, the evolution of control over training, and the adaptive supervision of corrected versus retained positions.

Our contributions are summarized below:

  • We identify a coupled challenge in on-policy distillation for structured autoregressive prediction: unreliable student transitions corrupt subsequent states conditioned for generation, and existing methods fail to utilize the teacher's intervention decision as a signal for token-level supervision.

  • We introduce CA-OPD, which uses teacher confidence to selectively repair student-generated prefixes, progressively transfers rollout control to the student, and applies intervention-aligned supervision: cross-entropy at replaced positions and distributional distillation at retained positions.

  • We demonstrate consistent gains across GUI grounding and OCR in a multi-teacher distillation setting while preserving held-out capabilities. Controlled studies confirm that improvements stem from strategic intervention placement, the direction of the rollout-control schedule, and adaptive supervision, rather than sheer intervention frequency.

References (49)