重新思考SFT中的Token重加权:抑制、反转与外推学习特征

·

研究论文 · 2026/10/05

监督微调(SFT)会从模型认为最不可能的词元中学习得最积极,这有助于获得新行为,但也会放大噪声或冲突的监督信号,并可能覆盖有用的预训练知识。通过统一的策略-损失视角,我们重新审视现有的词元重加权方法,并表明它们对演示词元赋予非负系数。因此,它们可以抑制或放大监督更新,但一旦有害特征被学习,就无法逆转。此外,更大的训练权重并不等同于特征外推,因为它们改变的是优化轨迹,而不是缩放固定的SFT方向。我们认为,逆转和外推需要一个由固定SFT增量定义的稳定参考框架。受此启发,我们提出了SCALE(通过局部熵的选择性适应控制),一种熵引导的适应强度控制方法,它冻结预训练模型和SFT增量,并通过仅最小化预测熵来学习有界的词元和模块特定门控。这些门控根据与熵减少的对齐程度来抑制、逆转或外推冻结的SFT特征。在Qwen2.5-Math-1.5B、Qwen2.5-Math-7B和Qwen3-4B-Base上,SCALE的数学推理平均分分别为37.84、43.60和36.57,超过了相应的最强基线,同时在通用保留基准上保持竞争力。它还在所有三个模型的HumanEval、HumanEval+和MBPP上取得了最佳的平均代码生成性能。这些结果表明,有效的SFT校正可以从控制已学习残差的使用方式中受益,而不仅仅是修改它们的学习方式。

该研究重新审视了SFT中的词元重加权,揭示了其局限性,并提出了一种新颖的SCALE方法,在多个模型和任务上取得了优越性能,对理解和改进SFT具有重要价值。

Supervised fine-tuning (SFT) learns most aggressively from tokens that the model deems least likely. This helps acquire new behaviors, but also amplifies noisy or conflicting supervision and can overwrite useful pretrained knowledge. Through a unified policy-loss view, we revisit existing token-reweighting methods and show that they assign nonnegative coefficients to demonstrated tokens. Consequently, they can suppress or amplify supervised updates, but cannot reverse harmful features once learned. Moreover, larger training weights do not amount to feature extrapolation, since they change the optimization trajectory rather than scale a fixed SFT direction. We argue that reversal and extrapolation require a stable reference frame defined by a fixed SFT delta. Motivated by this, we propose SCALE (Selective Control of Adaptation via Local Entropy), an entropy-guided adaptation-strength-control method that freezes the pretrained model and the SFT delta and learns bounded token- and module-specific gates by minimizing predictive entropy alone. These gates suppress, reverse, or extrapolate frozen SFT features according to their alignment with entropy reduction. Across Qwen2.5-Math-1.5B, Qwen2.5-Math-7B, and Qwen3-4B-Base, SCALE achieves mathematical-reasoning averages of 37.84, 43.60, and 36.57, exceeding the strongest corresponding baselines while remaining competitive on general-retention benchmarks. It also attains the best average code-generation performance across HumanEval, HumanEval+, and MBPP for all three models. These results suggest that effective SFT correction can benefit from controlling how already learned residuals are used, rather than only modifying how they are learned.

阅读原文

参与讨论