理解下一token预测器中看似无用特征的出现
Understanding the Emergence of Seemingly Useless Features in Next-Token Predictors
AI总结:
研究探讨了训练中的Transformer模型如何计算看似冗余的抽象特征,并提出方法分析梯度信号对特定特征形成的影响,通过玩具任务和小型模型验证,揭示了预训练语言模型中形式推理领域特征的产生机制。
摘要:
训练中的Transformer已被证明能够计算出在预测即时下一个token时看似冗余的抽象特征。我们识别了来自next-token预测目标的梯度信号中哪些组成部分导致了这种现象,并提出了一种方法来估计这些组成部分对特定特征出现的影响。在验证我们的方法于玩具任务后,我们将其应用于解释OthelloGPT中的世界模型和小型语言模型中的语法特征。最后,我们应用我们的框架到一个预训练的LLM,显示那些对未来token具有极高或极低影响的特征往往与形式推理领域如代码相关。总体而言,我们的工作通过训练过程中隐藏特征的视角,迈出了理解Transformer隐藏特征的一小步。
英文摘要:
Trained Transformers have been shown to compute abstract features that appear redundant for predicting the immediate next token. We identify which components of the gradient signal from the next-token prediction objective give rise to this phenomenon, and we propose a method to estimate the influence of those components on the emergence of specific features. After validating our approach on toy tasks, we use it to interpret the origins of the world model in OthelloGPT and syntactic features in a small language model. Finally, we apply our framework to a pretrained LLM, showing that features with extremely high or low influence on future tokens tend to be related to formal reasoning domains such as code. Overall, our work takes a step toward understanding hidden features of Transformers through the lens of their development during training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。