arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.00237cs.LGcs.AI
收藏

破除SFT泛化能力的迷思

Debunk the Myth of SFT Generalization

Boston University(波士顿大学);LinkedIn

Xiaofeng Lin, Hejian Sang, Zhipeng Wang, Xuezhou Zhang

AI总结:

该研究通过决策基准实验破除SFT泛化弱于RL的迷思,证实引入提示多样性与思维链监督的SFT可在指令和难度偏移场景下实现媲美甚至超越RL的泛化能力,支持以数据为中心的模型优化思路。

摘要:

主流观点认为,监督微调(supervised fine-tuning,SFT)只会记忆训练数据且无法泛化,而强化学习(reinforcement learning,RL)能获得更强的鲁棒性。我们通过在Sokoban和General Points两个决策基准上开展系统评估,重新审视了这一论断并得出不同结论。研究表明,SFT被感知到的泛化失效很大程度上源于固定提示的人为偏差:当基于固定指令模板训练时,SFT模型会固守训练语义,而非适配新语义。在训练中引入提示多样性可打破这一捷径,实现对未见指令变体的强泛化,同时不损害分布内性能。除指令偏移外,我们还探究了SFT是否能泛化到难度显著更高的任务。在此场景下,思维链(chain-of-thought,CoT)监督提供了算法框架,显著提升了向更难场景的迁移能力,例如带有更多箱子的更大Sokoban网格、分布外数值的算术运算,以及组合复杂度更高的五张牌组合任务。最后,将提示多样性与CoT结合可兼得两者优势:在指令变体和难度变体场景下均实现鲁棒泛化,在我们的基准上达到或超越RL基线水平,同时保留了SFT的简洁性与稳定性。这些发现挑战了SFT天生弱于RL的说法,支持了以数据为中心的观点:只要精心构建演示数据,普通SFT就能实现与RL相当的强泛化能力。复现本文结果的代码可在以下地址获取:https://github.com/XiaofengLin7/debunking-sft-generalization。

英文摘要:

A prevailing view holds that supervised fine-tuning (SFT) memorizes training data and fails to generalize, whereas reinforcement learning (RL) attains broader robustness. We revisit this claim through a systematic evaluation on two decision-making benchmarks, Sokoban and General Points, and arrive at a different conclusion. We show that much of SFT's perceived failure stems from frozen-prompt artifacts: when trained on fixed instruction templates, SFT models cling to training semantics rather than adapting to new ones. Introducing prompt diversity during training breaks this shortcut and yields strong generalization to unseen instruction variants without harming in-distribution performance. Beyond instruction shifts, we ask whether SFT can generalize to strictly harder tasks. Here, chain-of-thought (CoT) supervision provides an algorithmic scaffold that markedly improves transfer to more difficult regimes, such as larger Sokoban grids with additional boxes and arithmetic with out-of-distribution values or five-card compositions that increase combinatorial complexity. Finally, combining prompt diversity with CoT achieves the best of both worlds: robust generalization across both instruction-variant and difficulty-variant settings, matching or surpassing RL baselines on our benchmarks while retaining SFT's simplicity and stability. These findings challenge the narrative that SFT is inherently inferior to RL and support a data-centric perspective: with appropriately curated demonstrations, vanilla SFT can generalize as strongly as RL. Code reproducing the results in the paper can be found at: https://github.com/XiaofengLin7/debunking-sft-generalization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑