Contrastive On-Policy Distillation

Jiacheng Ruan, Jun Tang, Wenzhen Yuan, Ting Liu, Shuai Bai, Dayiheng Liu, Zhibo Yang, Yuzhuo FuarXiv 2026

TL;DR

Large language models have become remarkably good at reasoning by thinking step-by-step, but this often leads to bloated, redundant, and inefficient explanations. Contrastive On-Policy Distillation (COPD) solves this by scoring student-generated tokens against a teacher model under two contrasting prompts: one for "light thinking" and one for "heavy thinking." This simple contrastive signal guides the student model to choose concise, efficient reasoning paths, cutting response lengths by over 50% while maintaining or even improving accuracy.

What Problem Does This Paper Address?

While Chain-of-Thought (CoT) prompting has dramatically boosted the accuracy of large models on complex tasks, it has a major downside: extreme redundancy. Models often engage in repetitive self-verification, unnecessary exploration, or long-winded visual restatements before arriving at an answer.

Existing On-Policy Distillation (OPD) methods attempt to fix this by training a smaller student model on its own generated trajectories, using a teacher model to provide token-level supervision. However, standard OPD only evaluates token compatibility under a single teacher distribution. It lacks an explicit mechanism to compare different reasoning modes (e.g., concise vs. exhaustive). As a result, standard distillation simply mimics the teacher's baseline behavior rather than actively optimizing for efficiency.

Methods

COPD introduces a paired conditional signal to teach the student model a preference for lightweight reasoning.

Figure 1: COPD contrasts OPD-style supervision with a paired Light-thinking and Heavy- thinking (LT/HT) teacher signal. The same on-policy student token is scored under light- and heavy-thinking prefixes to obtain a dense preference signal.

The training pipeline operates as follows:

  1. On-Policy Rollout: The student model samples a full response trajectory $y$ based on an input $x$.
  2. Paired Teacher Scoring: A frozen teacher model evaluates the exact same student-generated tokens under two different instruction prefixes: a Light-Thinking (LT) prefix (encouraging shortcuts and minimal viable effort) and a Heavy-Thinking (HT) prefix (demanding absolute maximum thoroughness).
  3. Contrastive Advantage: For each token, the framework calculates a token-level preference signal by subtracting the heavy-thinking log probability from the light-thinking log probability: $$A_t = \ell_t^{LT} - \ell_t^{HT}$$
  4. Policy Update: This advantage signal is clipped and optimized using a PPO-style policy gradient objective. Tokens more compatible with a concise reasoning path receive a positive reward, while those leaning toward exhaustive redundancy are suppressed.

Self-Distillation Variant (COPSD)

The authors also introduce COPSD, a self-distillation variant where the frozen scorer is simply a snapshot of the student model itself. This eliminates the need for a larger external teacher model entirely.

Datasets

The authors trained their models on ViRL-16K (a 16K sample subset of the ViRL-39K dataset) and Geo3K.

To evaluate performance and efficiency, they tested COPD across nine multimodal benchmarks:

  • Reasoning Tasks: MathVista, MathVerse, WeMath, and LogicVista.
  • Understanding Tasks: HalluBench, MMMU, MMStar, RWQA, and MMGist.

Key Insights and Ideas

  • No Length Penalties Required: Remarkably, COPD shortens outputs naturally without any explicit length penalties or token budgets. By shifting the policy toward tokens favored by the "light-thinking" context, the model learns to summarize and answer directly.
  • The Power of the Contrast: Simply using a "light-thinking" teacher alone actually increases output length (see Table 6 in the paper). A single-score objective rewards any plausible token, including redundant ones. The heavy-thinking score is essential as a reference point to actively suppress bloated continuations.
  • Models Already Know How to Be Concise: The success of the self-distillation variant (COPSD) reveals that concise, correct reasoning paths already exist within the model's native distribution. COPD doesn't need to inject new knowledge; it simply reallocates probability mass away from failure-prone, overly long paths toward efficient ones.

Key Results

  • Massive Length Reduction: For the Qwen3-VL-2B model, COPD reduced the average response length by 57.0% compared to the competitive ExOPD baseline, while actually increasing average accuracy by 2.1 percentage points.
  • Dramatic Efficiency Gains: Because the student model progressively learns to generate shorter rollouts during training, COPD cut total training costs by 54.5% relative to vanilla OPD (60 GPU hours vs. 132 GPU hours).
Figure 2: Training pipeline of COPD. The student first samples a response to the input. The frozen teacher then scores the same token sequence under light-thinking and heavy-thinking contexts, re- spectively. The relative likelihood derived from these scores serves as a token-level advantage signal for policy updates.
  • Task-Dependent Compression: The largest gains occurred on tasks with long initial traces like WeMath (+11.3 pp accuracy with 60.7% fewer tokens). However, on tasks that already demanded very short answers (like RWQA), aggressive compression led to a slight accuracy drop of 0.9 pp, highlighting a clear boundary for the method.

Limitations and Future Work

While COPD proves highly effective for compressing reasoning steps, the authors note a few limitations and areas for future exploration:

  • Task Boundaries: On tasks that inherently require minimal initial responses, aggressive compression can leave too little margin, slightly degrading performance.
  • Generalizing Beyond Reasoning: The current study focuses strictly on reasoning efficiency. The authors propose that this context-paired contrastive framework could be extended to other behavioral modes, such as safety alignment (safety-compliant vs. unconstrained contexts) or style control.

Summary updated

BibTeX
@misc{ruan2026contrastive,
  author = {Jiacheng Ruan and Jun Tang and Wenzhen Yuan and Ting Liu and Shuai Bai and Dayiheng Liu and Zhibo Yang and Yuzhuo Fu},
  title = {{Contrastive On-Policy Distillation}},
  year = {2026},
  eprint = {2607.19046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19046},
}
Figure