From Generic Correlation to Input-Specific Credit in On-Policy Self Distillation

Guobin Shen, Lei Huang, Xiang Cheng, Chenxiao Zhao, Jindong Li, Dongcheng Zhao, Xing YuarXiv 2026

TL;DR

On-policy self-distillation allows language models to generate their own token-level rewards using environmental feedback, but it often accidentally reinforces generic shortcuts (like boilerplate code) instead of actual reasoning. This paper introduces CREDIT, a lightweight batch-contrastive method that isolates problem-specific credit by subtracting a baseline calculated from mismatched inputs. CREDIT delivers significant performance gains across coding, science, and tool-use tasks with virtually zero computational overhead.

What Problem Does This Paper Address?

Reinforcement learning (RL) has become the go-to paradigm for fine-tuning Large Language Models (LLMs) on tasks with verifiable outcomes, like coding or mathematics. However, it suffers from a severe credit assignment bottleneck. If a model generates a response containing hundreds of tokens and receives only a single "pass/fail" scalar reward at the very end, it has no way of knowing which specific tokens drove success and which were irrelevant or harmful.

On-Policy Self-Distillation (OPSD) eleganty bypasses this by conditioning the model on environment feedback (e.g., compiler error messages or ground-truth solutions) to act as its own teacher, providing dense, token-level rewards.

But what do these self-distillation rewards actually measure? The authors reveal a major flaw: these rewards track Pointwise Mutual Information (pMI), meaning they reward anything that correlates with a successful outcome. This includes genuine problem-solving, but it also includes input-generic shortcuts—like writing import sys or filler phrases like "To solve this problem efficiently...". Standard OPSD cannot distinguish between the two, leading to diluted learning signals.

Methods

The authors propose CREDIT (Contrastive REward from DIsTillation) to filter out generic correlations and isolate true, input-specific credit.

Figure 1: Overview of CREDIT. The self-teacher computes token-level rewards rt and a generic baseline ˆGt from contrastive inputs sharing the same response and feedback. Subtracting the baseline isolates input-specific credit.

The core idea relies on a clever counterfactual test:

  1. Standard Pass: The self-teacher evaluates the student's response given the correct input $x$ and feedback $z$.
  2. Contrastive Pass: The self-teacher evaluates the same response and feedback, but swaps out the original prompt for a mismatched input $x'$ sampled from the same training batch.
  3. Decomposition: If a token's reward remains high under a completely unrelated prompt, it's flagged as input-generic boilerplate. If its reward drops significantly, it's confirmed as input-specific reasoning.

CREDIT subtracts this contrastive baseline from the raw self-distillation reward. Crucially, because the contrastive forward passes share the same response and feedback prefixes, they can be batched together efficiently. Using just a single contrastive sample ($C=1$) adds a negligible ~1% wall-clock overhead to training.

Datasets

The authors evaluated CREDIT across three distinct task types using two open-source model families (Qwen3-8B and OLMo-3-7B-Instruct):

  • LiveCodeBench v6: Evaluates code generation using rich, structured environment feedback (unit test inputs/outputs and runtime errors).
  • SciKnowEval: Evaluates multi-level scientific knowledge across Chemistry, Physics, Biology, and Materials Science, using ground-truth answers as feedback.
  • ToolAlpaca: Evaluates tool-use capabilities, where the expected tool call serves as the feedback string.

Key Insights and Ideas

  • The OPSD Reward is Secretly a Process Reward Model: The paper mathematically proves that under a posterior-compatibility assumption, OPSD trajectory rewards equal the conditional pMI between the response and feedback. OPSD acts as an implicit, token-level Process Reward Model (PRM) without needing human step annotations.
  • The Boilerplate Tax: Standard OPSD over-allocates credit to generic tokens. CREDIT successfully shifts this distribution, heavily penalizing out-of-context tokens and generic filler text while reinforcing problem-relevant tokens.
Figure 2: Token-level advantage on a response to problem (a). (b) Self-distillation reward ∆Vt(x): near-uniform, rewarding generic and problem-specific tokens alike. (c) Input-specific signal St(x) after CREDIT’s decomposition: generic tokens are largely suppressed; problem-relevant tokens (red) are reinforced and the wrong algorithm choice is suppressed (blue). Additional examples in Appendix G.
  • A Single Negative Suffices ($C=1$): Intuitively, one might think estimating an input-generic baseline requires averaging over many random inputs. However, ablation studies showed that a single contrastive input ($C=1$) is an unbiased estimator that performs just as well as $C=16$, keeping the method incredibly lightweight.

Key Results

  • Strongest Aggregate Performance: CREDIT consistently outperformed both standard GRPO (scalar rewards) and standard OPSD across all benchmarks.
  • Fixing Self-Distillation Failures: On tasks where standard self-distillation struggled or introduced noise (such as tool-use on the OLMo model, where standard OPSD underperformed GRPO), CREDIT successfully recovered and surpassed both baselines.
  • Faster Convergence & Better Behavior: On LiveCodeBench v6, CREDIT reached 45% accuracy in just ~25 training steps, compared to ~40 steps for standard OPSD and ~120 steps for GRPO. It achieved this while maintaining shorter, more concise responses and stable policy entropy, avoiding the "vague verbosity" trap common in standard RLHF.

Limitations and Future Work

  • Scale and Scope: The experiments were limited to 7-8B parameter models and tasks with highly structured, verifiable feedback. Performance on open-ended generation or larger model scales remains untested.
  • Batch Diversity Dependency: CREDIT assumes that the training batch is diverse enough to provide good negative samples. If a batch contains highly similar prompts, the contrastive baseline might lose its debiasing power.
  • Future Directions: Promising avenues include exploring dynamic adjustments of the debiasing coefficient ($\lambda$), designing advanced negative-sampling strategies, and extending CREDIT to multi-turn agent trajectories.

Summary updated

BibTeX
@misc{shen2026from,
  author = {Guobin Shen and Lei Huang and Xiang Cheng and Chenxiao Zhao and Jindong Li and Dongcheng Zhao and Xing Yu},
  title = {{From Generic Correlation to Input-Specific Credit in On-Policy Self Distillation}},
  year = {2026},
  eprint = {2605.11613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.11613},
}
Figure