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

当归因补丁说谎时:诊断与二阶修正

When Attribution Patching Lies: Diagnosis and a Second-Order Correction

Carnegie Mellon University(卡内基梅隆大学);University of California, Santa Cruz(加州大学圣克鲁兹分校)

Luyang Zhang, Jialu Wang

AI总结:

研究归因补丁(梯度一阶近似)在机制可解释性中的不可靠性,发现主要误差源于下游网络的非线性,并提出可靠性评分、误差界和HVP二阶修正方法。

摘要:

机制可解释性的一个核心目标是识别哪些内部组件因果地驱动语言模型的行为。由于这些重要性估计作为识别电路的证据,系统性错误可能导致对底层机制的误识别。虽然激活补丁提供了黄金标准的因果度量,但其计算成本在大规模下难以承受。从业者转而依赖归因补丁,一种基于梯度的一阶近似,其可靠性尚不明确。在这项工作中,我们刻画了这种不可靠性的来源,证明主要误差源于下游网络的非线性,而非补丁组件的局部曲率。这一洞察产生了三个实用工具:(i) 检测不可信估计的可靠性评分,(ii) 量化潜在归因误规范的误差界,以及 (iii) 仅需一次额外反向传播即可消除主导误差的Hessian-向量-乘积(HVP)修正。在五个模型家族(124M-9B参数)以及随机令牌和自然(名称交换)扰动的评估中,HVP是唯一在大规模下可行的二阶修正,而标准基线如积分梯度在计算上变得不可行。在对比实验中,多步HVP变体以显著更低的计算量达到或超过积分梯度的准确性,优于先前的二阶基线。这些改进在标准基准上实现了更高保真度的电路恢复,并支持一种屏幕-标记-修复工作流,仅将计算努力针对被标记为不可靠的组件。

英文摘要:

A central goal of mechanistic interpretability is to identify which internal components causally drive a language model's behavior. Because these importance estimates serve as the evidence for identifying circuits, systematic errors can lead to the misidentification of the underlying mechanisms. While activation patching provides a gold-standard causal metric, its computational cost is prohibitive at scale. Practitioners instead rely on attribution patching, a gradient-based, first-order approximation whose reliability remains poorly understood. In this work, we characterize the source of this unreliability, demonstrating that the dominant error stems from the non-linearities in the downstream network rather than local curvature at the patched component. This insight yields three practical tools: (i) a reliability score to detect untrustworthy estimates, (ii) error bounds quantifying potential attribution mis-specifications, and (iii) a Hessian-vector-product (HVP) correction that eliminates the leading-order error with only one additional backward pass. In evaluations across five model families (124M--9B parameters) and both random-token and naturalistic (name-swap) perturbations, HVP is the only second-order correction feasible at larger scale, where standard baselines like Integrated Gradients become computationally prohibitive. In comparative experiments, a multi-step HVP variant matches or exceeds the accuracy of Integrated Gradients at significantly lower compute, outperforming prior second-order baselines. These improvements lead to higher-fidelity circuit recovery on standard benchmarks and support a Screen-Flag-Fix workflow that targets computational effort only toward the components flagged as unreliable.

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

↑