电路能告诉我们多少?测量语言模型电路的一致性和特异性
How Much Do Circuits Tell Us? Measuring the Consistency and Specificity of Language Model Circuits
AI总结:
研究通过分析六个任务和七个模型的电路重用情况,发现任务内电路重用高且共享组件对性能至关重要,但电路不具任务特异性,这引发了对电路支持针对性理解和干预的质疑。
摘要:
机械可解释性中的电路框架旨在识别模型组件中因果重要的稀疏子图,通常通过测量必要性和充分性来评估。我们测量了电路重用,即任务内各示例电路中共享组件的比例,并研究了两个较少研究的属性:一致性(任务内组件的重复)和特异性(组件对任务的唯一性)。通过在六个任务和七个模型上进行边属性修补,我们发现任务内重用高,共享组件对性能至关重要,消融导致性能下降达约100%。然而,电路不具任务特异性:消融一个任务的电路对另一个任务的性能影响与该任务自身电路消融的影响相当。我们发现这是由于任务间电路有显著重叠,这些电路对性能至关重要。一些电路确实包含较小的特定任务组件集,但这些只占电路性能的适度比例。总体而言,我们的发现表明,尽管在注意力头和MLP层层面的电路发现能识别重要组件,但其缺乏任务特异性引发了关于电路支持针对性理解和干预模型行为程度的疑问。
英文摘要:
The circuits framework in mechanistic interpretability aims to identify sparse subgraphs of model components that are causally responsible for a behavior, typically evaluated by measuring necessity and sufficiency. But these criteria say little about whether a circuit consistently captures how a model performs a task, or if it is specific to that task. We study these two properties, consistency and specificity, across six tasks and five models, extracting circuits at the component level (attention heads and MLP blocks) and at the level of individual MLP neurons. We find that component-level circuits are highly consistent and causally important for most tasks, but they are not specific: for a given task, ablating its own circuit drops accuracy by about as much as ablating another task's circuit. Neuron-level circuits, on the other hand, exhibit higher specificity across tasks, but far less consistency within tasks. This is explained by circuit overlap: component-level circuits share most of their components across tasks, related or not, while neuron-level circuits overlap only between closely related tasks. In a case study of the components shared by the task circuits of Llama-3.2-3B, we show that they consist mostly of MLP blocks, while the few attention heads within turn out to have general-purpose roles. Overall, our findings raise questions about the degree to which circuits can support targeted understanding of, and intervention on, model behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。