arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.16042cs.LGcs.AIcs.CL
收藏

迈向语言模型中激活补丁的最佳实践:指标与方法

Towards Best Practices of Activation Patching in Language Models: Metrics and Methods

UC Berkeley(加州大学伯克利分校)

Fred Zhang, Neel Nanda

AI总结:

本文系统研究语言模型激活补丁中评估指标与破坏方法等超参数对定位和电路发现结果的影响,并基于实证提出最佳实践建议。

摘要:

机制可解释性旨在理解机器学习模型的内部机制,其中定位——识别重要的模型组件——是一个关键步骤。激活补丁(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.

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

↑