超越提示数量:数据如何在同策略蒸馏中塑造迁移

·

研究论文 · 2026/10/14

在策略蒸馏(OPD)利用教师对学生自身采样响应的反馈来训练学生,但提示选择如何影响师生对之间的迁移仍不清楚。我们系统研究了RL和SFT延续对以及跨模型设置中的提示数量、来源和选择。发现OPD可以高度提示高效:少量提示即可接近大池性能,四个DAPO提示在数学分数上匹配了3840个DeepMath提示的观测结果。然而,提示效用是关系性的而非内在的:仅改变教师就能逆转数学和代码提示的相对有效性。为了刻画这些迁移差异,我们分析了不同提示支持和模型对下的参数与功能变化。与教师的功能对齐因支持和目标任务而异;在延续对中,教师对齐的预测变化可能与弱参数对齐共存。在有效支持上继续OPD可以在不利迁移后恢复性能。最后,针对性选择并不总是优于均匀随机采样,并且过滤掉单独表现差的来源在三次配对支持抽取中并未带来一致增益。总体而言,我们的结果区分了提示效率与提示可互换性,并表明有效的数据选择取决于师生对和目标能力,而在所研究设置中随机采样提供了有竞争力的基线。

该研究挑战了提示选择中“越多越好”和“可互换”的假设,揭示了提示效率与可互换性的区别,并指出有效数据选择依赖于师生对和目标能力,为OPD实践提供了重要指导。

On-policy distillation (OPD) trains students using teacher feedback on their own sampled responses, yet how prompt choice shapes transfer across teacher-student pairs remains poorly understood. We systematically study prompt quantity, source, and selection across RL- and SFT-continuation pairs and cross-model settings. We find that OPD can be highly prompt-efficient: a few prompts can approach large-pool performance, with four DAPO prompts matching the observed mathematics score of 3,840 DeepMath prompts. However, prompt utility is relational rather than intrinsic: changing only the teacher can reverse the relative effectiveness of mathematics and code prompts. To characterize these transfer differences, we analyze parameter and functional changes across prompt supports and model pairs. Functional alignment with the teacher varies across supports and target tasks; in continuation pairs, teacher-aligned prediction changes can coexist with weak parameter alignment. Continued OPD on effective supports can restore performance after unfavorable transfer. Finally, targeted selection does not consistently outperform uniform random sampling, and filtering out a source that performs poorly alone yields no consistent gain across three paired support draws. Overall, our results distinguish prompt efficiency from prompt interchangeability and show that effective data choice depends on the teacher-student pair and target capability, with random sampling providing a competitive baseline in the studied settings.

阅读原文

参与讨论