arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.13032cs.AIcs.LGstat.ML
收藏

在大型语言模型中检验回路假设的假设检验

Hypothesis Testing the Circuit Hypothesis in LLMs

FAR AI;Columbia University(哥伦比亚大学);University of Michigan(密歇根大学)

Claudia Shi, Nicolas Beltran-Velez, Achille Nazaret, Carolina Zheng, Adrià Garriga-Alonso, Andrew Jesson, Maggie Makar, David M. Blei

AI总结:

本文提出一套形式化标准和假设检验方法,用于评估LLM中回路在行为保留、局部化和最小性上的表现,并发布circuitry工具包以支持后续实证研究。

摘要:

大型语言模型(LLMs)展现出令人惊讶的能力,但我们并不理解这些能力是如何实现的。一种假设认为,这些能力主要由LLM内部被称为回路(circuits)的小型子网络执行。但我们如何评估这一假设?在本文中,我们形式化了一组回路被假设应满足的标准,并开发了一套假设检验方法来评估回路在多大程度上满足这些标准。这些标准关注LLM行为被保留的程度、该行为的局部化程度,以及回路是否最小。我们将这些检验应用于研究文献中描述的六个回路。我们发现合成回路——即硬编码在模型中的回路——与理想化性质一致。在Transformer模型中发现的回路在不同程度上满足这些标准。为促进未来对回路的实证研究,我们创建了circuitry软件包,它是TransformerLens库的一个封装,抽象掉了对钩子和激活的低层操作。该软件可在https://github.com/blei-lab/circuitry获取。

英文摘要:

Large language models (LLMs) demonstrate surprising capabilities, but we do not understand how they are implemented. One hypothesis suggests that these capabilities are primarily executed by small subnetworks within the LLM, known as circuits. But how can we evaluate this hypothesis? In this paper, we formalize a set of criteria that a circuit is hypothesized to meet and develop a suite of hypothesis tests to evaluate how well circuits satisfy them. The criteria focus on the extent to which the LLM's behavior is preserved, the degree of localization of this behavior, and whether the circuit is minimal. We apply these tests to six circuits described in the research literature. We find that synthetic circuits -- circuits that are hard-coded in the model -- align with the idealized properties. Circuits discovered in Transformer models satisfy the criteria to varying degrees. To facilitate future empirical studies of circuits, we created the \textit{circuitry} package, a wrapper around the \textit{TransformerLens} library, which abstracts away lower-level manipulations of hooks and activations. The software is available at \url{https://github.com/blei-lab/circuitry}.

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

↑