arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.03637cs.AI
收藏

利用需求规范发现变量绑定电路

Discovering Variable Binding Circuitry with Desiderata

Harvard University(哈佛大学);Northeastern University(东北大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Xander Davies, Max Nadeau, Nikhil Prakash, Tamar Rott Shaham, David Bau

AI总结:

本文提出一种基于需求规范的因果中介方法,可自动定位执行特定子任务的模型组件,并在 LLaMA-13B 中成功将变量绑定电路定位到仅 9 个注意力头和 1 个 MLP。

摘要:

近期研究表明,语言模型中的计算可能是人类可理解的,已有工作成功地对单单元特征和输入-输出电路进行了定位与干预。在此,我们提出一种方法,将因果中介实验扩展为仅通过指定一组“需求规范”(即执行特定子任务的模型组件所具备的因果属性),自动识别负责执行该子任务的模型组件。作为概念验证,我们将该方法应用于自动发现 LLaMA-13B 中共享的变量绑定电路,该电路为多个算术任务检索变量值。我们的方法成功地将变量绑定定位到最终 token 残差流中仅 9 个注意力头(共约 1.6k 个)和 1 个 MLP。

英文摘要:

Recent work has shown that computation in language models may be human-understandable, with successful efforts to localize and intervene on both single-unit features and input-output circuits. Here, we introduce an approach which extends causal mediation experiments to automatically identify model components responsible for performing a specific subtask by solely specifying a set of \textit{desiderata}, or causal attributes of the model components executing that subtask. As a proof of concept, we apply our method to automatically discover shared \textit{variable binding circuitry} in LLaMA-13B, which retrieves variable values for multiple arithmetic tasks. Our method successfully localizes variable binding to only 9 attention heads (of the 1.6k) and one MLP in the final token's residual stream.

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

↑