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

电路组合:探索基于Transformer的语言模型中的模块化结构

Circuit Compositions: Exploring Modular Structures in Transformer-Based Language Models

MaiNLP, Center for Information and Language Processing, LMU Munich(MaiNLP、信息与语言处理中心、慕尼黑大学);Munich Center for Machine Learning (MCML), Munich(慕尼黑机器学习中心);Language Technology Group, University of Oslo(语言技术组、奥斯陆大学)

Philipp Mondorf, Sondre Wold, Barbara Plank

AI总结:

本研究通过分析基于Transformer的语言模型中高度组合性子任务的电路,发现功能相似的电路具有节点重叠和跨任务忠实度,并可通过集合运算重用组合以表示更复杂功能。

摘要:

可解释性研究中的一个基本问题是,神经网络,特别是语言模型,在多大程度上通过子网络实现可重用的功能,这些子网络可以组合起来执行更复杂的任务。机械可解释性的最新进展在识别电路方面取得了进展,电路代表了模型在特定任务上行为的最小计算子图。然而,大多数研究侧重于识别单个任务的电路,而没有研究功能相似的电路如何相互关联。为了解决这一空白,我们通过分析基于Transformer的语言模型中高度组合性子任务的电路来研究神经网络的模块化。具体来说,给定一个概率上下文无关文法,我们识别并比较负责十种模块化字符串编辑操作的电路。我们的结果表明,功能相似的电路既表现出显著的节点重叠,也表现出跨任务的忠实度。此外,我们证明了所识别的电路可以通过集合运算重用和组合,以表示更复杂的模型功能能力。

英文摘要:

A fundamental question in interpretability research is to what extent neural networks, particularly language models, implement reusable functions through subnetworks that can be composed to perform more complex tasks. Recent advances in mechanistic interpretability have made progress in identifying $\textit{circuits}$, which represent the minimal computational subgraphs responsible for a model's behavior on specific tasks. However, most studies focus on identifying circuits for individual tasks without investigating how functionally similar circuits $\textit{relate}$ to each other. To address this gap, we study the modularity of neural networks by analyzing circuits for highly compositional subtasks within a transformer-based language model. Specifically, given a probabilistic context-free grammar, we identify and compare circuits responsible for ten modular string-edit operations. Our results indicate that functionally similar circuits exhibit both notable node overlap and cross-task faithfulness. Moreover, we demonstrate that the circuits identified can be reused and combined through set operations to represent more complex functional model capabilities.

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

↑