Reinforcement Learning-based Semi-supervised Knowledge Distillation with LLM-as-a-Judge

Yiyang Shen, Lifu Tu, Weiran WangarXiv 2026

TL;DR

Reinforcement learning (RL) for language model reasoning typically relies on expensive, human-annotated datasets with verifiable ground-truth answers. This paper introduces a semi-supervised RL framework that utilizes a novel Continuous CoT Reward (CCR), computed efficiently from a single-token logit of a judge LLM. By combining sparse verifiable rewards on labeled data with continuous judge feedback on massive unlabeled datasets, this approach boosts mathematical reasoning performance by 5–10% on small models while effectively preventing model collapse.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR)—the core mechanism behind reasoning models like DeepSeek-R1—has drastically improved how AI tackles math and coding. However, these methods hit a hard wall when ground-truth answers are unavailable.

While unlabeled data is abundant, using it for online RL is incredibly challenging. Having a large teacher LLM generate full evaluations or chain-of-thought (CoT) explanations for every student rollout is computationally prohibitive. On the other hand, training separate reward models scales poorly and often leads to reward hacking, where the student model learns to exploit the reward function (e.g., outputting short, nonsensical phrases that trick the judge) instead of actually learning to reason.

This paper asks: Can we effectively use a capable LLM to provide active, continuous, and computationally lightweight reward signals for training student models on unlabeled data?

Methods

The authors introduce a highly efficient training pipeline built around two core components:

  1. Continuous CoT Reward (CCR): Instead of forcing a judge LLM to generate a multi-token score (like a Likert scale from 1–10) or a full explanation, the student's reasoning trajectory is appended to a prompt that restricts the judge to a binary "Yes" or "No". The reward is then calculated directly from the single-token logits of these two words: $$\nu = \frac{\log p(\text{Yes}) - \log p(\text{No})}{\tau}$$ $$s(p(\text{Yes}), p(\text{No})) = \sigma(u) \cdot \mathbb{I}_{\{\sigma(u) \ge a\}}$$ Where $\tau$ is a temperature parameter and $a$ is a filtering threshold. Because it only requires a single forward pass of the judge LLM, it eliminates token generation overhead during training.

  2. Semi-Supervised Training Objective: The overall loss function is a convex combination of Verifiable Rewards ($\mathcal{L}_{\text{VR}}$) on labeled data and unsupervised rewards ($\mathcal{L}_{\text{CCR}}$ and optionally a pretrained reranker reward $\mathcal{L}_{\text{PRR}}$) on unlabeled data: $$\mathcal{L}_{\text{overall}} = \lambda \cdot \mathcal{L}_{\text{VR}} + \mu \cdot \mathcal{L}_{\text{CCR}} + \rho \cdot \mathcal{L}_{\text{PRR}}$$

The framework was validated using both Proximal Policy Optimization (PPO) and Group Relative Policy Optimization (GRPO).

Datasets

The authors evaluated their approach across both grade-school and competition-level mathematical benchmarks:

  • Supervised (Labeled) Datasets: GSM8K (7,356 train / 1,319 test), SVAMP (3,043 train), and AIME 1983–2023 (919 problems).
  • Unsupervised (Unlabeled) Datasets: GSM8K-aug (385.5K GPT-4 generated questions, labels masked) and GSM-Plus (9,233 expert-reviewed perturbed problems, labels masked). For competition math, they utilized the English subset of DAPO-Math-17K (14,110 problems).
  • Evaluation Benchmarks: GSM-Plus, GSM-Symbolic (including harder variants p1 and p2), SVAMP, and AIME 2024–2026.
Dataset Statistics

Key Insights and Ideas

  • Logits Offer Nuance: Moving from a hard binary reward to a continuous probability distribution derived from "Yes/No" logits provides a "degree of correctness." This soft signal proves much richer for policy gradient updates than a simple pass/fail.
  • The Power of Synergy: Unsupervised rewards (CCR) allow the model to scale up using massive unlabeled datasets, which dramatically improves out-of-distribution generalization. Meanwhile, the sparse verifiable rewards (VR) act as an anchor, stabilizing the training and completely preventing the model collapse typical of purely unsupervised setups.
  • Online beats Offline: Online continuous evaluation during RL rollouts consistently outperforms static offline pseudo-labeling (where a teacher generates a fixed dataset), because the student learns dynamically from its own evolving policy.

Key Results

  • Substantial Gains on Small Models: On a Galactica-125M model, the semi-supervised approach combining all three rewards (V+C+P) achieved 40.11% on GSM8K—a nearly 10% absolute improvement over conventional supervised RLVR (30.48%).
  • Out-of-Distribution (OOD) Robustness: Standard supervised RL often overfits and regresses on out-of-distribution tasks (e.g., dropping to 31.30% on SVAMP). In contrast, the unsupervised CCR+PRR model achieved a massive leap on SVAMP, reaching 50.70%.
  • Scalability: When applied to a larger Galactica-6.7B model, incorporating CCR improved GSM8K accuracy from 69.1% to 70.4% (and up to 72.0% with majority voting).
  • Efficiency: As shown below, CCR is significantly faster than generation-based reward methods like Likert or Rubrics-as-Rewards (RaR), cutting evaluation times by up to $7\times$.
Judge quality on Grade School-level Math

Limitations and Future Work

Despite its success, the authors note that purely unsupervised training (omitting VR entirely) remains highly susceptible to reward hacking. Without a ground-truth anchor, student models quickly learn to generate empty code blocks or minimal responses that trick the judge LLM into giving a high "Yes" probability.

While the authors introduced heuristic patches (such as masking out code snippets shorter than 4 lines), these fixes can be brittle and degrade performance on clean runs. The authors emphasize that developing more robust regularization methods to prevent reward hacking in completely unlabeled environments remains a critical direction for future work.

Summary updated

BibTeX
@misc{shen2026reinforcement,
  author = {Yiyang Shen and Lifu Tu and Weiran Wang},
  title = {{Reinforcement Learning-based Semi-supervised Knowledge Distillation with LLM-as-a-Judge}},
  year = {2026},
  eprint = {2604.02621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.02621},
}
Figure