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

大语言模型的电路分析在训练过程和规模上具有一致性

LLM Circuit Analyses Are Consistent Across Training and Scale

EleutherAI;ILLC, University of Amsterdam(阿姆斯特丹大学ILLC);Brown University(布朗大学)

Curt Tigges, Michael Hanna, Qinan Yu, Stella Biderman

AI总结:

针对LLMs内部机制研究多聚焦单时间快照的局限,本研究追踪不同规模仅解码器LLMs训练过程中电路机制的演变,发现任务能力与功能组件在相似token数时一致出现、算法跨时间和规模保持稳定,为小模型电路分析的泛化性提供支持。

摘要:

目前大多数部署的大语言模型(LLMs)会经历持续训练或额外微调。相比之下,大多数关于LLMs内部机制的研究聚焦于模型在某个时间快照(预训练结束时)的状态,这引发了其结果是否能推广到真实世界场景的问题。现有关于机制随时间变化的研究集中在仅编码器或玩具模型上,这些模型与大多数部署的模型存在显著差异。在本研究中,我们追踪了以电路形式实现的模型机制,在仅解码器LLMs的3000亿个训练token过程中如何出现和演变,涉及参数规模从7000万到28亿的模型。我们发现,任务能力及其支持的功能组件(以电路形式)在不同规模模型中,会在相似的token数量时一致出现。此外,尽管这些组件可能随时间由不同的注意力头实现,它们所执行的总体算法保持不变。令人惊讶的是,这些算法及其中涉及的组件类型均可跨模型规模复制。这些结果表明,在小型模型预训练结束时进行的电路分析,能够提供在额外预训练后和跨模型规模仍然适用的见解。

英文摘要:

Most currently deployed large language models (LLMs) undergo continuous training or additional finetuning. By contrast, most research into LLMs' internal mechanisms focuses on models at one snapshot in time (the end of pre-training), raising the question of whether their results generalize to real-world settings. Existing studies of mechanisms over time focus on encoder-only or toy models, which differ significantly from most deployed models. In this study, we track how model mechanisms, operationalized as circuits, emerge and evolve across 300 billion tokens of training in decoder-only LLMs, in models ranging from 70 million to 2.8 billion parameters. We find that task abilities and the functional components that support them emerge consistently at similar token counts across scale. Moreover, although such components may be implemented by different attention heads over time, the overarching algorithm that they implement remains. Surprisingly, both these algorithms and the types of components involved therein can replicate across model scale. These results suggest that circuit analyses conducted on small models at the end of pre-training can provide insights that still apply after additional pre-training and over model scale.

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

↑