本文提出一种新方法,以应对理解 Vision Transformer(ViT)预测过程并调试预测错误的挑战。ViT 已在图像分类、目标检测等多种计算机视觉任务中表现出优越性能。尽管 CAM、Grad-CAM、Score-CAM 和 Recipro-CAM 等多种视觉可解释性技术已在卷积神经网络(CNN)上得到广泛研究,但针对 ViT 的研究仍然有限。当前 ViT 的最先进解决方案依赖于与类别无关的 Attention-Rollout 和 Relevance 技术。在本工作中,我们提出一种新的无梯度 ViT 视觉解释方法,称为 ViT-ReciproCAM,它不需要注意力矩阵和梯度信息。ViT-ReciproCAM 利用 token masking,并根据目标层的输入生成新的层输出,以挖掘被激活 token 与目标类别网络预测之间的相关性。我们提出的方法在 Average Drop-Coherence-Complexity(ADCC)指标上比最先进的 Relevance 方法提升 4.58% 至 5.80%,并生成更具局部性的显著图。实验证明了 ViT-ReciproCAM 的有效性,并展示了其在理解和调试 ViT 模型方面的潜力。该方法为生成视觉解释提供了一种高效且易于实现的替代方案,且不需要注意力和梯度信息,可惠及计算机视觉领域的多种应用。
英文摘要:
This paper presents a novel approach to address the challenges of understanding the prediction process and debugging prediction errors in Vision Transformers (ViT), which have demonstrated superior performance in various computer vision tasks such as image classification and object detection. While several visual explainability techniques, such as CAM, Grad-CAM, Score-CAM, and Recipro-CAM, have been extensively researched for Convolutional Neural Networks (CNNs), limited research has been conducted on ViT. Current state-of-the-art solutions for ViT rely on class agnostic Attention-Rollout and Relevance techniques. In this work, we propose a new gradient-free visual explanation method for ViT, called ViT-ReciproCAM, which does not require attention matrix and gradient information. ViT-ReciproCAM utilizes token masking and generated new layer outputs from the target layer's input to exploit the correlation between activated tokens and network predictions for target classes. Our proposed method outperforms the state-of-the-art Relevance method in the Average Drop-Coherence-Complexity (ADCC) metric by $4.58\%$ to $5.80\%$ and generates more localized saliency maps. Our experiments demonstrate the effectiveness of ViT-ReciproCAM and showcase its potential for understanding and debugging ViT models. Our proposed method provides an efficient and easy-to-implement alternative for generating visual explanations, without requiring attention and gradient information, which can be beneficial for various applications in the field of computer vision.
"Is your explanation stable?": A Robustness Evaluation Framework for Feature Attribution
Zhejiang University(浙江大学);ETH Zürich(苏黎世联邦理工学院);The Pennsylvania State University(宾夕法尼亚州立大学)
理解神经网络的决策过程是困难的。解释的一个重要方法是将其决定性归因于关键特征。虽然有许多算法被提出,但大多数算法只是提高了对模型的忠实度。然而,现实环境中存在大量的随机噪声,这可能导致解释的波动。更严重的是,最近的工作表明,解释算法容易受到对抗攻击。所有这些都使得解释在真实场景中难以信任。为了弥补这一差距,我们提出了一个模型无关的方法\emph{Median Test for Feature Attribution}(MeTFA)量化的不确定性,并增加了理论保证的解释算法的稳定性。MeTFA具有以下两个功能:(1)检查一个特征是否显著重要或不重要,并生成MeTFA显著图以可视化结果;(2)计算特征归因得分的置信区间,并生成MeTFA平滑图以增加解释的稳定性。实验结果表明,MeTFA提高了解释的视觉质量,在保持忠实性的同时,显著降低了解释的不稳定性。为了定量评估不同噪声环境下的解释的忠实性,我们进一步提出了几个鲁棒的忠实性度量。实验结果表明,MeTFA平滑解释可以显着提高鲁棒忠实性。此外,我们使用两个场景来展示MeTFA在应用中的潜力。首先,当应用于SOTA解释方法来定位语义分割模型的上下文偏差时,MeTFA显著解释使用小得多的区域来保持99%以上的忠实度。第二,当用不同的解释导向攻击进行测试时,MeTFA可以帮助防御普通攻击,以及自适应的对抗攻击。
Leveraging Causal Reasoning Method for Explaining Medical Image Segmentation Models
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Shenzhen University of Advanced Technology(深圳先进技术大学);Shenzhen Polytechnic University(深圳职业技术大学);University of Macau(澳门大学);Southern University of Science and Technology(南方科技大学)
Improving Interpretation Faithfulness for Vision Transformers
King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);Lehigh University(利哈伊大学);University of Georgia(佐治亚大学);Iowa State University(爱荷华州立大学)
Concept-based explanation of gene expression prediction from H&E images
Institute of Pathology – Charité Universitätsmedizin(夏里特医学院病理学研究所);Fraunhofer Heinrich-Hertz-Institute(弗劳恩霍夫海因里希·赫兹研究所);Center for Computational Biology (CBIO), Mines Paris, PSL University(巴黎矿业学院计算生物学中心(巴黎文理研究大学));Institut Curie, PSL University(居里研究所(巴黎文理研究大学));German Cancer Research Center (DKFZ)(德国癌症研究中心);Technological University Dublin(都柏林理工大学);Technische Universität Berlin(柏林工业大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所)
DAVE: Distribution-aware Attribution via ViT Gradient Decomposition
Jagiellonian University, Faculty of Mathematics and Computer Science(杰洛内大学数学与计算机科学系);Jagiellonian University, Doctoral School of Exact and Natural Sciences(杰洛内大学精确与自然科学研究博士学院);Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrucken, Germany(马克斯·普朗克信息研究所,萨尔布吕肯校区)
Dynamic Accumulated Attention Map for Interpreting Evolution of Decision-Making in Vision Transformer
Griffith University(格里菲斯大学);Institute for Integrated and Intelligent Systems, Griffith University(格里菲斯大学集成智能系统研究所);Shaanxi University of Science and Technology(陕西科技大学)
HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives
Faculty of Engineering, University of Peradeniya(佩拉德尼亚大学工程学院);School of Computing Technologies, RMIT University(皇家墨尔本理工大学计算技术学院);School of Engineering & Digital Technologies, University of Southern Queensland(南昆士兰大学工程与数字技术学院);School of Engineering & Technologies, UNSW(新南威尔士大学工程与技术学院);Faculty of Science and Technology, Charles Darwin University(查尔斯达尔文大学科学技术学院)
Towards Visually Explaining Video Understanding Networks with Perturbation
Institute of Industrial Science, The University of Tokyo(东京大学生产技术研究所);National Institute of Advanced Industrial Science and Technology(产业技术综合研究所);ETH Zürich(苏黎世联邦理工学院)
Hybrid Explanation-Guided Learning for Transformer-Based Chest X-Ray Diagnosis
ARTORG Center for Biomedical Engineering Research, University of Bern(ARTORG生物医学工程研究中心,伯恩大学);Inselspital (Bern University Hospital)(Inselspital(伯恩大学医院));Insel Gruppe Bern Universitätsinstitut für Diagnostische, Interventionelle und Pädiatrische Radiologie(Bern大学诊断、介入和儿科放射学研究所);Department of Radiation Oncology, Inselspital, Bern University Hospital(放射肿瘤科,Inselspital,伯恩大学医院)
ResLRP: The Role of Residual Cancellation in Attribution Instability in Vision Transformers
Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫海因里希·赫兹研究所);DSC ScaDS.AI, Leipzig University(莱比锡大学DSC ScaDS.AI);ICT Cluster, Singapore Institute of Technology(新加坡理工大学ICT集群);Institute for Cancer Genetics and Informatics (ICGI), Oslo, Norway(奥斯陆癌症遗传学与信息学研究所);Technische Universität Berlin(柏林工业大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(BIFOLD – 柏林学习与数据基础研究所)
Does Explainability Transfer? A Controlled Benchmark of Attribution Methods on Vision Transformers and CNNs
Faculty of Computing, Sabaragamuwa University of Sri Lanka(斯里兰卡萨巴拉加穆瓦大学计算机学院);Faculty of Engineering, University of Moratuwa(莫拉图瓦大学工程学院);School of Computing Technologies, RMIT University(RMIT大学计算技术学院);School of Engineering & Digital Technologies, University of Southern Queensland(南昆士兰大学工程与数字技术学院);School of Engineering & Technologies, UNSW(新南威尔士大学工程与技术学院);Faculty of Science and Technology, Charles Darwin University(查尔斯达尔文大学科学技术学院)
B-Cos Aligned Transformers Learn Human-Interpretable Features
Roche Diagnostics(罗氏诊断);Helmholtz AI, Helmholtz Munich(亥姆霍兹慕尼黑研究中心,亥姆霍兹人工智能);Technical University of Munich(慕尼黑工业大学);Pathology Munich-North(慕尼黑北部病理学);Ludwig Maximilian University of Munich(慕尼黑路德维希-马克西米利安大学);University Hospital Erlangen(埃尔朗根大学医院)