机制可解释性旨在理解机器学习模型的内部机制,其中定位——识别重要的模型组件——是一个关键步骤。激活补丁(activation patching),也称为因果追踪或交换干预,是完成该任务的标准技术(Vig et al., 2020),但文献中存在许多变体,在超参数或方法选择上几乎没有共识。在这项工作中,我们系统地考察了激活补丁中方法细节的影响,包括评估指标和破坏方法。在语言模型中定位和电路发现的多个设置中,我们发现改变这些超参数可能导致截然不同的可解释性结果。基于实证观察,我们给出概念性论证,说明为什么某些指标或方法可能更受青睐。最后,我们为今后激活补丁的最佳实践提供建议。
英文摘要:
Mechanistic interpretability seeks to understand the internal mechanisms of machine learning models, where localization -- identifying the important model components -- is a key step. Activation patching, also known as causal tracing or interchange intervention, is a standard technique for this task (Vig et al., 2020), but the literature contains many variants with little consensus on the choice of hyperparameters or methodology. In this work, we systematically examine the impact of methodological details in activation patching, including evaluation metrics and corruption methods. In several settings of localization and circuit discovery in language models, we find that varying these hyperparameters could lead to disparate interpretability results. Backed by empirical observations, we give conceptual arguments for why certain metrics or methods may be preferred. Finally, we provide recommendations for the best practices of activation patching going forwards.
Exploring Geographic Relative Space in Large Language Models through Activation Patching
School of Geography, Geology and the Environment, University of Leicester, UK(地理、地质与环境学院,莱斯特大学,英国);Department of Mathematics, Computer Science and Physics, University of Udine, Italy(数学、计算机科学与物理系,乌迪内大学,意大利)
Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons
Department of Computer Science and Technology, BNRist(计算机科学与技术系,BNRist);Shenzhen International Graduate School(深圳国际研究生院);KIRC, Institute for Artificial Intelligence, Tsinghua University(人工智能研究院,清华大学)
Mechanistic Interpretability of Brain-to-Speech Models Across Speech Modes
Department of Computer Science, University of Maryland, College Park, United States(计算机科学系,马里兰大学,College Park,美国);Department of Electrical and Computer Engineering, University of Maryland, College Park, United States(电气与计算机工程系,马里兰大学,College Park,美国)
Where Computation Lives Inside TabPFN: Causal Localisation of Attention Head Function
Department of Computer Science, Birla Institute of Technology(比拉理工学院计算机科学系);School of Computer Engineering, Kalinga Institute of Industrial Technology(凯林加工业技术学院计算机工程系);Birla AI Labs, Office of Ananya Birla, Aditya Birla Group(比拉人工智能实验室,阿尼娅·比拉办公室,阿迪塔亚比拉集团)
InverseScope: Scalable Activation Inversion for Interpreting Large Language Models
School of Mathematical Science, Peking University(北京大学数学科学学院);School of Science, Westlake University(西湖大学理学院);Beijing International Center for Mathematical Research(北京国际数学研究中心);New Cornerstone Science Laboratory, Peking University(北京大学新基石科学实验室)
Causality is Key for Interpretability Claims to Generalise
Mila - Qu\'ebec AI Institute \& Universit\'e de Montr\'eal;Boston University;Cold Spring Harbor Laboratory;Max-Planck-Institute for Intelligent Systems, ELLIS Institute T\"ubingen, University of T\"ubingen