arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.13652cs.CV
收藏

通过激活修补进行因果归因

Causal Attribution via Activation Patching

Sharif University of Technology(谢尔万大学)

Amirmohammad Izadi, Mohammadali Banayeeanzade, Alireza Mirrokni, Hosein Hasani, Mobin Bagherian, Faridoun Mehri, Mahdieh Soleymani Baghshah

AI总结:

本文提出了一种新的因果归因方法CAAP,通过直接干预内部激活来估计图像补丁对Vision Transformer预测的贡献,从而产生更准确和局部化的归因结果。

摘要:

针对Vision Transformers(ViTs)的归因方法旨在识别影响模型预测的图像区域,但产生忠实且良好的局部化归因仍具有挑战性。现有归因方法面临多个限制,基于梯度、相关性传播和注意力的方法依赖于局部近似,而扰动或优化方法则干预输入、令牌或替代物,而非内部补丁表示。关键挑战在于类别相关证据是通过跨层的补丁令牌相互作用形成的;仅操作输入变化、注意力权重或反向相关性信号的方法可能只能提供补丁重要性的间接代理,而非直接测试上下文化补丁表示的预测效果。我们提出通过激活修补进行因果归因(CAAP),通过直接干预内部激活来估计单个图像补丁对ViT预测的贡献,而非使用学习的掩码或合成扰动模式。对于每个补丁,CAAP将对应的源图像激活插入中性目标上下文中的中间层范围,并使用由此产生的目标类别分数作为归因信号。所得到的归因图反映了补丁相关内部表示对模型预测的因果贡献。因果干预作为一种原则性的测量方法,通过在初始表示形成后捕捉语义证据,同时避免晚期层的全局混合,这可能减少空间特异性。在多个ViT骨干网络和标准度量指标上,CAAP在各种设置中均优于现有方法,并产生更忠实且局部化的归因结果。

英文摘要:

Attribution methods for Vision Transformers (ViTs) aim to identify image regions that influence model predictions, but producing faithful and well-localized attributions remains challenging. Existing attribution methods face several limitations, with gradient-based, relevance-propagation, and attention-based methods relying on local approximations, while perturbation- or optimization-based methods intervene on inputs, tokens, or surrogates rather than internal patch representations. The key challenge is that class-relevant evidence is formed through interactions between patch tokens across layers; methods that operate only on input changes, attention weights, or backward relevance signals may therefore provide indirect proxies for patch importance rather than directly testing the predictive effect of contextualized patch representations. We propose Causal Attribution via Activation Patching (CAAP), which estimates the contribution of individual image patches to the ViT's prediction by directly intervening on internal activations rather than using learned masks or synthetic perturbation patterns. For each patch, CAAP inserts the corresponding source-image activations into a neutral target context over an intermediate range of layers and uses the resulting target-class score as the attribution signal. The resulting attribution map reflects the causal contribution of patch-associated internal representations on the model's prediction. The causal intervention serves as a principled measure of patch influence by capturing semantic evidence after initial representation formation, while avoiding late-layer global mixing that can reduce spatial specificity. Across multiple ViT backbones and standard metrics, CAAP consistently outperforms existing methods in various settings and produces more faithful and localized attributions.

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

↑