基础模型可以通过从训练数据中获取线索进行推理
研究论文 · 2026/10/06
本文研究训练数据如何在基础模型回复起始处的词元与后续推理行为之间建立关联。首先,固定特定的起始词元线索可使基础模型在数学和编程任务上的表现与经过强化学习(RL)训练的对应模型相当。例如,线索“。\n\nOkay”将Olmo-3-7B在MATH-500上的pass@1准确率从42%提升至78%,而“Alright,”将Qwen3-14B的准确率从72%提升至87%。其次,RL使这些线索更可能出现,而固定这些线索可恢复其相对于基础模型的大部分性能增益。第三,我们将词元线索的推理效应追溯至训练数据。通过因果数据干预,可将任意词(如“chicken”)转变为有效的推理线索,或消除现有线索的效果。类似的编辑使提示指令“Think duck duck goose”在引发推理方面与“Think step by step”同样有效。我们还发现,不同线索诱导的隐藏状态表示与训练集中不同的文档类型相关。最后,我们通过语言模型安全性的案例研究扩展了对词元线索的研究,发现不同线索引发不同的拒绝和遵从行为,这些行为对应于不同类型的训练数据。
该研究揭示了训练数据中词元线索与推理行为之间的因果关系,为理解基础模型推理机制提供了新视角,并展示了通过简单线索调整即可大幅提升性能的潜力,对模型优化和安全对齐具有重要启示。
In this paper, we study how training data creates associations between the tokens at the start of a base model's response and the reasoning behavior that follows. First, we demonstrate that fixing particular starting token cues makes a base model's performance competitive with that of its reinforcement learning (RL)-trained counterparts on math and coding. For instance, the cue ".\n\nOkay" raises Olmo-3-7B's MATH-500 pass@1 accuracy from 42% to 78%, while "Alright," raises Qwen3-14B's from 72% to 87%. Second, RL makes these cues more likely, while fixing them recovers much of its performance gain over the base model. Third, we trace the reasoning effects of token cues to the training data. We perform causal data interventions to turn an arbitrary word, such as "chicken", into an effective reasoning cue, or remove an existing cue's effect. A similar edit makes the prompt instruction "Think duck duck goose" as effective as "Think step by step" at eliciting reasoning. We also find that the hidden state representations induced by different cues correlate with different document types from the training set. Finally, we extend our study of token cues with a case study in language model safety, finding that different cues elicit distinct refusal and compliance behaviors that correspond to different types of training data.