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

相信忠实性:在寻找模型机制时超越电路重叠

Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanisms

University of Amsterdam(阿姆斯特丹大学)

Michael Hanna, Sandro Pezzelle, Yonatan Belinkov

AI总结:

针对现有语言模型电路寻找方法EAP忠实性不足的问题,提出集成梯度边归因修补方法EAP-IG,实验证明其找到的电路忠实性更高,指出比较模型机制时应衡量忠实性而非重叠度。

摘要:

近期许多语言模型(LM)可解释性研究采用了circuits(电路)框架,该框架旨在找到能解释语言模型在特定任务上行为的最小计算子图,即电路。大多数研究通过对每条边独立执行因果干预来确定哪些边属于语言模型的电路,但这种方法的扩展性随模型规模增大而变差。边归因修补(EAP)作为一种基于梯度的干预近似方法,已成为解决该问题的可扩展但不完善的方案。本文提出一种新方法——集成梯度边归因修补(EAP-IG),旨在更好地维持电路的核心属性:忠实性。若电路外的所有模型边都可被消融且不改变模型在任务上的性能,则该电路具备忠实性;正是忠实性为研究电路而非完整模型提供了合理性。我们的实验表明,使用EAP找到的电路忠实性低于使用EAP-IG找到的电路,尽管二者与此前通过因果干预找到的电路都具有较高的节点重叠度。我们得出更具普遍性的结论:当使用电路比较模型解决任务所采用的机制时,应当衡量的是忠实性而非重叠度。

英文摘要:

Many recent language model (LM) interpretability studies have adopted the circuits framework, which aims to find the minimal computational subgraph, or circuit, that explains LM behavior on a given task. Most studies determine which edges belong in a LM's circuit by performing causal interventions on each edge independently, but this scales poorly with model size. Edge attribution patching (EAP), gradient-based approximation to interventions, has emerged as a scalable but imperfect solution to this problem. In this paper, we introduce a new method - EAP with integrated gradients (EAP-IG) - that aims to better maintain a core property of circuits: faithfulness. A circuit is faithful if all model edges outside the circuit can be ablated without changing the model's performance on the task; faithfulness is what justifies studying circuits, rather than the full model. Our experiments demonstrate that circuits found using EAP are less faithful than those found using EAP-IG, even though both have high node overlap with circuits found previously using causal interventions. We conclude more generally that when using circuits to compare the mechanisms models use to solve tasks, faithfulness, not overlap, is what should be measured.

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

↑