工作日早上 7 点读 AI,周日早上 8 点读周报订阅邮件

METAL LAB

On-Policy Self-Distillation without Any Supervision

arXiv:2608.062962026-08-08

无需标准答案,AI也能靠自己投票给自己打分并再教自己做数学题

训练大语言模型通常需要标准答案或者更强模型的指导,这篇论文提出u-OPSD方法,让模型对同一道题生成多次答案,用多数票选出的答案充当临时的标准答案。只对与多数票结果不一致的那些回答进行修正,把模型基于多数票答案形成的预测分布蒸馏进这些不一致的回答中,结果在数学基准测试上,这种完全不依赖标准答案的方法达到甚至超过了使用真实标准答案的现有方法。代码已经公开。

METAL LAB 解读图

u-OPSD:模型如何在没有标准答案的情况下当自己的老师

证据状态已报告实测结果

  1. 1. 采样多次生成模型对同一道题独立生成G=8次答案
  2. 2. 多数票投票出现次数最多的答案成为伪标准答案,与之一致和不一致的生成被分为两组,未达到自一致性阈值(tau=0.5)的问题被跳过不参与训练
  3. 3. 构建教师参考从与多数票一致的生成中选出最长的一个,替代真实标准答案作为教师的参考依据
  4. 4. 蒸馏进不一致的生成把教师基于该参考预测的下一词概率分布(通过正向KL散度)蒸馏进与多数票不一致的生成中,精确修正模型自信但错误的地方
这是 METAL LAB 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 现有的在线自蒸馏(OPSD)方法虽然让模型用自己生成的内容训练自己,但仍然依赖标准答案、环境反馈或更大模型的指导等外部信息。
  2. u-OPSD对每道题独立生成G=8次答案,当一致同意某个答案的比例达到自一致性阈值(tau=0.5)时,就把这个多数票答案当作伪标准答案使用。
  3. 在与多数票一致的回答中,挑出最长的一个作为教师参考,把教师在该参考下预测的下一词概率分布蒸馏进与多数票不一致的回答中,让模型精准修正自己自信但错误的地方。
  4. 在五个数学基准(AIME24、AIME25、HMMT25、MATH500、AMC23)上,u-OPSD在Qwen3非思考模式下比基础模型分别提升8.5和10.7个百分点(4B和8B规模),并比使用真实标准答案的OPSD平均高出3.2和2.3个百分点。
  5. 在思考模式下,u-OPSD与使用标准答案的OPSD基本持平(4B领先0.9分,8B打平),并比GRPO高出0.7和1.1个百分点。
Figure 1: Comparison between OPSD / SDFT with ground-truth solution or ICLs (left), SDPO with rich feedback from the environment (middle) and our u-OPSD without any supervision.
Figure 1: Comparison between OPSD / SDFT with ground-truth solution or ICLs (left), SDPO with rich feedback from the environment (middle) and our u-OPSD without any supervision.
Table 1: Performance comparison on math reasoning benchmarks for Qwen3 models with non-thinking mode.
MethodAIME24AIME25HMMT25MATH500AMC23Avg.
Qwen3-4B
Base25.8317.7810.8384.1066.2540.96
w/ GT.+ SFT26.6719.7213.0684.8569.3842.73
+ GRPO25.0022.5015.0086.2080.6245.86
+ OPSD32.2220.8316.3985.7576.2546.29
[1.2pt/1.4pt] w/o GT.+ TTRL25.0020.8311.9483.6067.5041.77
+ RENT22.2220.2811.3984.0074.3842.45
+ Intuitor23.8920.0011.6783.7070.6241.98
+ u-OPSD37.5027.7814.4486.5081.2549.49
Qwen3-8B
Base27.5023.3313.6184.0569.3843.57
w/ GT.+ SFT26.9421.6711.9484.1072.5043.43
+ GRPO30.5621.9413.0687.8573.7545.43
+ OPSD41.6728.0618.3387.1585.0052.04
[1.2pt/1.4pt] w/o GT.+ TTRL27.2221.1113.0684.4571.8843.54
+ RENT28.3321.6710.8384.0070.0042.97
+ Intuitor26.1122.5011.6784.2073.1243.52
+ u-OPSD45.5634.7218.6189.5583.1254.31
Figure 2: Overview of Unsupervised On-policy Self-Distillation (u-OPSD), which replaces ground-truth supervision in On-Policy Self-distillation with pseudo-labels generated from the model’s own majority-vote consensus.
Figure 2: Overview of Unsupervised On-policy Self-Distillation (u-OPSD), which replaces ground-truth supervision in On-Policy Self-distillation with pseudo-labels generated from the model’s own majority-vote consensus.
Table 2: Thinking mode, per benchmark at step 150, under the protocol of Table 1. Shading and bold as in that table.
MethodAIME24AIME25HMMT25MATH500AMC23Avg.
Qwen3-4B
Base74.1764.7245.5694.8095.0074.85
w/ GT.+ SFT73.0669.1741.6795.4094.3874.73
+ GRPO73.8969.4443.6195.4599.3876.35
+ OPSD75.2868.0643.0695.2099.3876.20
[1.2pt/1.4pt] w/o GT.+ TTRL72.7868.3345.5695.9096.2575.76
+ RENT74.7265.8343.0695.2599.3875.65
+ Intuitor76.3968.3342.7895.3597.5076.07
+ u-OPSD76.3968.0646.9495.7598.1277.05
Qwen3-8B
Base75.5666.6745.0096.3596.8876.09
w/ GT.+ SFT76.3969.7243.8995.8095.0076.16
+ GRPO76.9469.1747.7895.7095.0076.92
+ OPSD80.8369.7246.6795.7596.8877.97
[1.2pt/1.4pt] w/o GT.+ TTRL77.2268.6146.9495.7596.2576.95
+ RENT77.5070.2845.8395.9596.2577.16
+ Intuitor76.9470.2844.1796.2095.6276.64
+ u-OPSD76.9471.3947.5096.0098.1277.99
Figure 3: Training curves of the Qwen3-4B runs quoted in Tables 1 and 2, on AIME24, AIME25 and MATH500 over the first four checkpoints, in thinking (left three columns) and non-thinking mode (right three); the dashed line is the base model. Top: u-OPSD against the supervised arms. Bottom: u-OPSD against the label-free ones. The axis counts checkpoints: u-OPSD saves every 25 steps and GRPO every 50, so the GRPO points span its steps 50–200. The two modes separate at a glance—in non-thinking mode u-OPSD breaks away from every other arm, while in thinking mode all methods stay within about two points of base.
Figure 3: Training curves of the Qwen3-4B runs quoted in Tables 1 and 2, on AIME24, AIME25 and MATH500 over the first four checkpoints, in thinking (left three columns) and non-thinking mode (right three); the dashed line is the base model. Top: u-OPSD against the supervised arms. Bottom: u-OPSD against the label-free ones. The axis counts checkpoints: u-OPSD saves every 25 steps and GRPO every 50, so the GRPO points span its steps 50–200. The two modes separate at a glance—in non-thinking mode u-OPSD breaks away from every other arm, while in thinking mode all methods stay within about two points of base.
Table 3: Qwen3-30B-A3B-Instruct-2507, non-thinking, scored as pass@1 rather than average@n: generation i of every problem forms one single-sample run, and i=1,2,3 give three estimates, reported as mean ± population standard deviation. Each arm is shown at the checkpoint with the best five-benchmark mean under this metric. Because the metric differs from Tables 1 and 2, the two are not comparable and the numbers are kept apart. Bold marks the best value in each column.
ModelMethodAIME24AIME25HMMT25MATH500AMC23Avg.
Qwen3-30B-A3B -Instruct-2507Base80.00±0.0063.33±2.7243.33±2.7296.33±0.2595.83±1.1875.77±0.85
OPSD78.89±3.1461.11±3.1447.78±1.5797.20±0.4396.67±2.3676.33±1.58
u-OPSD75.56±5.6765.56±4.1650.00±0.0097.00±0.4399.17±1.1877.46±2.09
Qwen3-4B -Instruct-2507Base66.67±7.2053.33±5.4427.78±4.1693.87±0.3493.33±1.1867.00±2.25
OPSD62.22±5.0952.22±5.0931.11±5.0994.93±0.6495.00±0.0067.10±1.13
u-OPSD68.89±5.6757.78±1.5728.89±3.1494.20±0.8694.17±1.1868.78±1.70
Table 4: Performance under combinations of the teacher-reference selection (rows) and the distillation-target selection (columns), on Qwen3-8B non-thinking, G=8, τ=0.5, k=1. Each cell is the five-benchmark average at the best checkpoint in 25–150, with the step given in parentheses. “label-only” strips the teacher’s reference down to the boxed pseudo-label.
Teacher ref. \ distilllongestrandomshortest
label-only43.40 (125)43.00 (100)41.55 (25)
shortest (default)57.10 (125)54.37 (75)55.23 (150)
random57.96 (75)56.93 (75)55.77 (75)
longest59.00 (75)57.90 (100)55.01 (125)
Table 5: Ablation of the disagreeing-rollout selection policy (matched decay schedule). Each cell shows step 150 / best checkpoint in 25–150. All variants use G=8, τ=0.5.
VariantAIME24AIME25HMMT25MATH500AMC23
OPSD (supervised)27.50 / 27.5020.00 / 23.6112.50 / 13.3383.80 / 84.6571.88 / 72.50
disagree-1 (default)33.89 / 35.2827.78 / 27.7814.72 / 16.1187.60 / 87.6079.38 / 79.38
disagree-229.72 / 31.1123.33 / 27.5015.28 / 16.6786.20 / 86.3075.62 / 80.00
disagree-327.78 / 34.7225.83 / 31.1113.33 / 18.3385.45 / 87.1072.50 / 76.25
disagree-all (no cap)29.44 / 30.8322.50 / 25.8310.00 / 13.3385.25 / 86.0073.75 / 74.38
longest-133.06 / 34.7223.33 / 26.6714.72 / 18.3385.50 / 86.8073.75 / 78.12
Table 6: Comparison of divergence computation strategy: Full vocabulary is logit distillation over every token (2); sampled token evaluates the two policies only at the token the student drew (26); top-k rows truncate the teacher to its k largest entries. We report on Qwen3-8B non-thinking at the best checkpoint.
VariantAIME24AIME25HMMT25MATH500AMC23Avg.
Student token29.4419.7212.7884.7070.6243.45
top-k2050.0037.7819.4490.2088.1256.94
5048.0637.5024.1789.4585.6255.85
10053.8943.3320.5691.6585.6259.01
20051.6740.0022.5090.1588.7558.11
Full-vocabulary53.8937.5020.2889.9085.6257.10
Table 7: Divergence family Dβ under u-OPSD, on Qwen3-8B non-thinking, longest-1, G=8, τ=0.5. Each arm is shown at its best checkpoint in 25–150. Objective names follow 59, who report the same comparison under gold supervision.
ObjectiveAIME24AIME25HMMT25MATH500AMC23Avg.
Base27.5023.3313.6184.0569.3843.57
Forward KL KL(πT∥πS), β=0 (default)53.8937.5020.0089.7584.3857.10
Reverse KL KL(πS∥πT), β=1training diverges (not scored)
JSD (β=0.5)29.4421.9412.2283.7069.3843.34
Table 8: Reproduction of published OPSD results with the released code and hyperparameters (avg@12, temperature 1.0). “pub.” denotes the numbers published in the official OPSD repository; “ours” our rerun. Checkpoint columns are steps 50/75/100/150, matching the checkpoints published for this configuration.
ConfigBenchbasecheckpoints
Qwen3-4B (non-thinking)AIME24 pub.23.120.327.531.132.8
AIME24 ours22.223.127.232.231.9
AIME25 pub.21.421.420.821.121.9
AIME25 ours17.820.823.120.821.1
HMMT25 pub.10.811.113.116.414.4
HMMT25 ours12.210.612.816.411.7
Table 9: GRPO under matched and mismatched reasoning modes. Each row is the best of ten checkpoints (steps 50–500) by five-benchmark mean, scored at temperature 1.0 against the base model in the evaluation mode of that row. The two “thinking → non-thinking” rows reuse the checkpoints of the rows above them; only the evaluation prompt differs.
TrainEvalStepAIME24AIME25HMMT25MATH500AMC23Avg.Δ base
Qwen3-4B
thinkingthinking30073.8969.4443.6195.4599.3876.35+1.79
thinkingnon-thinking50025.0021.3913.8983.7576.2544.06+2.62
non-thinkingnon-thinking20025.0022.5015.0086.2080.6245.86+4.43
Qwen3-8B
thinkingthinking25076.9469.1747.7895.7095.0076.92+0.66
thinkingnon-thinking10027.2222.5013.3385.2067.5043.15+1.20
non-thinkingnon-thinking50030.5621.9413.0687.8573.7545.43+3.48
Table 10: Self-consistency threshold τ on Qwen3-8B non-thinking, longest-1, G=8. Each cell shows step 150 / best checkpoint in 25–150. τ is the fraction of valid rollouts that must agree for a prompt to receive a pseudo-label; τ=0 accepts every prompt.
τAIME24AIME25HMMT25MATH500AMC23Avg.
053.33 / 57.5041.39 / 46.6722.50 / 27.2290.70 / 92.1588.12 / 89.3859.21 / 61.83
0.350.83 / 53.3334.44 / 41.6720.28 / 23.0689.85 / 90.6585.00 / 88.1256.08 / 58.59
0.543.06 / 53.8935.83 / 37.5020.28 / 20.2888.00 / 89.9082.50 / 85.6253.93 / 57.10
0.732.78 / 37.5023.61 / 26.6713.06 / 14.4485.95 / 87.7074.38 / 76.2545.96 / 48.18
0.932.22 / 32.2220.83 / 22.5013.61 / 13.6184.70 / 84.8570.62 / 72.5044.40 / 44.40
Table 11: Number of rollouts per prompt G on Qwen3-8B non-thinking, longest-1, τ=0.5. Each cell shows step 150 / best checkpoint in 25–150.
GAIME24AIME25HMMT25MATH500AMC23Avg.
447.22 / 50.2835.83 / 37.7818.06 / 21.1188.15 / 90.2084.38 / 87.5054.73 / 56.99
843.06 / 53.8935.83 / 37.5020.28 / 20.2888.00 / 89.9082.50 / 85.6253.93 / 57.10
1253.61 / 57.2240.83 / 43.3320.56 / 26.3991.00 / 92.0086.25 / 90.0058.45 / 61.79
1651.67 / 55.2841.67 / 44.1722.22 / 22.2289.90 / 89.9087.50 / 87.5058.59 / 59.37
Table 12: How the teacher is updated, on Qwen3-8B non-thinking, longest-1, G=8, τ=0.5. Each cell shows step 150 / best checkpoint in 25–150. “fixed” freezes the teacher at the initial policy (the base model with the adapter disabled), which is OPSD’s own setting and ours everywhere else; the EMA rows let the teacher track the student at the given decay.
TeacherAIME24AIME25HMMT25MATH500AMC23Avg.
fixed43.06 / 53.8935.83 / 37.5020.28 / 20.2888.00 / 89.9082.50 / 85.6253.93 / 57.10
EMA 0.99943.61 / 52.7836.67 / 41.3918.33 / 23.3388.40 / 90.5087.50 / 87.5054.90 / 58.82
EMA 0.9952.78 / 54.1739.72 / 43.8923.33 / 23.3389.85 / 91.0083.75 / 86.8857.89 / 58.88
EMA 0.99554.17 / 55.0040.28 / 43.3321.94 / 22.5090.10 / 90.7583.75 / 89.3858.05 / 59.47
Table 13: Learning-rate schedule ablation: best AIME24 checkpoint (avg@12) per method under an effectively-constant LR (30-epoch horizon, ≈5×10−6 throughout) vs. the matched 150-step linear decay used throughout Tables 1 and 2. The constant-LR column is OPSD’s native configuration, so the released figure is directly comparable there; no released run exists under the decayed schedule.
MethodConstant LRLinear decay
OPSD (supervised)32.2227.50
as released32.8
disagree-137.5035.28
disagree-232.7831.11
disagree-333.6134.72
disagree-all33.6130.83
longest-131.9434.72

研究结果

  • 在五个数学基准平均分上,u-OPSD在Qwen3-4B/8B非思考模式下比基础模型分别提升8.5和10.7个百分点,并比使用真实标准答案的OPSD分别高出3.2和2.3个百分点。
  • 在思考模式下,u-OPSD在4B规模上领先OPSD 0.9个百分点,在8B规模上打平,同时比GRPO分别高出0.7和1.1个百分点。
  • 在指令微调模型上,u-OPSD将Qwen3-30B-A3B-Instruct-2507从75.77提升到77.46,将Qwen3-4B-Instruct-2507从67.00提升到68.78,均超过OPSD(分别高1.1和1.7个百分点)。
  • 对64个训练问题的分析显示,96.3%的生成结果能提取出答案,94.0%的问题达到自一致性阈值,其中86.7%的伪答案与真实标准答案一致。
  • 如果把教师参考简化为只保留方框内的伪答案而非完整推理过程,性能会下降11.4到15.6个百分点;若用对称的JS散度替代正向KL散度,性能下降13.8个百分点,基本回到未训练模型的水平。

可应用场景

  • 在缺乏标准答案的领域搭建训练流程,用模型自身多数票达成的共识替代人工标注的标准答案。
  • 在能够自动提取并精确匹配最终答案的竞赛数学等领域,不依赖标准答案就提升模型表现。
  • 在与OPSD、GRPO等依赖标准答案的方法进行对比研究时,将这种无标签方法作为参照基线。

局限与待验证事项

  • 实验只覆盖了Qwen3系列模型(4B和8B规模)以及竞赛数学这一个领域,该领域的最终答案可以被清晰提取并规范化。
  • 非思考模式下提升幅度较大,思考模式下提升幅度较小,原因是思考模式下的基础模型本身已经较强,可提升空间有限。
  • 伪标签的质量受限于基础模型本身最常给出的答案,论文测得领域内有13.3%的伪标签是错误的,且未测试在故意污染投票结果情况下的训练表现。
  • 论文用每个检查点12个样本、五个基准测试来控制方差,但针对每种训练设置的多次随机种子重复实验的误差范围尚未给出,计划在修订版中补充。
  • 关于GRPO的推理模式迁移实验只测试了把思考模式训练的检查点用于非思考模式评估这一个方向,尚未测试反方向。

为什么重要

如果自我生成的共识可以替代标准答案,那么模型就能在缺乏标注数据、标注成本高或答案难以核实的领域持续自我提升。这为不依赖越来越多人工标注数据或更强外部教师模型的持续自我改进提供了一条可能路径。

本文术语

  • 在线自蒸馏(OPSD) · 让模型用自己生成的输出来重新教自己的一种训练方式
  • 多数票 · 让模型对同一问题多次作答,把出现次数最多的答案当作可能正确的答案
  • 自一致性阈值(tau) · 决定多少比例的采样答案必须一致,才能信任并使用这个共识答案进行训练的判断标准
  • GRPO · 一种利用与标准答案比对得到的组内相对奖励来更新模型策略的强化学习方法
  • 正向KL散度 · 衡量教师模型和学生模型预测概率分布差异的一种方式,用来把学生分布拉向教师分布

论文原文摘要(英文)

On-policy (Self-)Distillation (OPD / OPSD) has shown strong potential for post-training large language models (LLMs). However, existing methods still rely heavily on external supervision, including ground-truth signals, environmental feedback, or guidance from larger models, and therefore fall short of genuine "self"-distillation. In this study, we show that on-policy self-distillation can be achieved using only a model's own generations via internal consistency. We propose unsupervised on-policy self-distillation (U-OPSD). U-OPSD first samples multiple rollouts and constructs a pseudo solution by majority vote under a self-consistency threshold. It then conditions the model's distribution on the pseudo-solution and distills itself on the disagreeing completions, allowing the model to correct itself precisely where it is confidently wrong. Across diverse benchmarks, base models, and training settings, U-OPSD consistently improves over the base models and matches or surpasses supervised methods with ground truth (GT) such as OPSD and GRPO. On five mathematical reasoning benchmarks, i.e., AIME24, AIME25, HMMT25, MATH500, and AMC23, U-OPSD improves over the base model by 8.5% and 10.7% on Qwen3 non-thinking mode at 4B and 8B scales, and outperforms OPSD by 3.2% and 2.3% on average, respectively. In thinking mode, U-OPSD stays on par with OPSD, ahead by 0.9% at 4B and level at 8B and surpassing GRPO by 0.7% and 1.1%, respectively. Code is available at [https://github.com/williamium3000/u-opsd](https://github.com/williamium3000/u-opsd).

作者 · Yijiang Li

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Yijiang Li et al., arXiv:2608.06296, CC BY 4.0