CPSD: Counterfactual Patches Self-Distillation in RLVR
Authors: Yixiao Zhou, Dongzhou Cheng, Hehe Fan, Yu Cheng
Abstract
Self-distillation in reinforcement learning with verifiable rewards (RLVR) uses successful in-group rollouts to teach the failed ones, with no external teacher needed. Whether it actually helps turns on three closely related design questions that the canonical method does not handle carefully: how to construct an appropriate teacher context for a given loser, where in the response the distillation loss should act, and what kind of signal it should carry. The canonical Self-Distillation Policy Optimization (SDPO) instantiation answers all three by default: a random in-group winner, a global distillation loss on the whole response, and a Jensen–Shannon divergence on the full top-K distribution. These three defaults compound into a catastrophic late-training failure that short-horizon evaluation hides. We propose CPSD (Counterfactual Patches Self-Distillation), which replaces each default in turn: pick the teacher by minimum embedding-weighted edit distance, localise distillation to an adaptive-stop counterfactual patch beginning at the first divergent token, and replace JS with a Plackett–Luce listwise loss that preserves only the teacher’s ranking. Across six reasoning benchmarks at a fixed 150-step budget, CPSD eliminates the SDPO cliff and lifts average accuracy by +5.7 pp over GRPO on Qwen3-8B and +4.2 pp on Qwen3-4B.