Skip to main content
QUICK REVIEW

[论文解读] ProtoPFormer: Concentrating on Prototypical Parts in Vision Transformers for Interpretable Image Recognition

Mengqi Xue, Qihan Huang|arXiv (Cornell University)|Aug 22, 2022
Advanced Neural Network ApplicationsComputer Science被引用 22
一句话总结

ProtoPFormer 引入专为视觉Transformer设计的全局原型和局部原型,通过将原型聚焦于前景部分并在分支之间实现互相校正,提升图像识别的可解释性与准确性。

ABSTRACT

Prototypical part network (ProtoPNet) has drawn wide attention and boosted many follow-up studies due to its self-explanatory property for explainable artificial intelligence (XAI). However, when directly applying ProtoPNet on vision transformer (ViT) backbones, learned prototypes have a "distraction" problem: they have a relatively high probability of being activated by the background and pay less attention to the foreground. The powerful capability of modeling long-term dependency makes the transformer-based ProtoPNet hard to focus on prototypical parts, thus severely impairing its inherent interpretability. This paper proposes prototypical part transformer (ProtoPFormer) for appropriately and effectively applying the prototype-based method with ViTs for interpretable image recognition. The proposed method introduces global and local prototypes for capturing and highlighting the representative holistic and partial features of targets according to the architectural characteristics of ViTs. The global prototypes are adopted to provide the global view of objects to guide local prototypes to concentrate on the foreground while eliminating the influence of the background. Afterwards, local prototypes are explicitly supervised to concentrate on their respective prototypical visual parts, increasing the overall interpretability. Extensive experiments demonstrate that our proposed global and local prototypes can mutually correct each other and jointly make final decisions, which faithfully and transparently reason the decision-making processes associatively from the whole and local perspectives, respectively. Moreover, ProtoPFormer consistently achieves superior performance and visualization results over the state-of-the-art (SOTA) prototype-based baselines. Our code has been released at https://github.com/zju-vipa/ProtoPFormer.

研究动机与目标

  • 为基于 ViT 的图像识别提供原型性部位解释,并解决 ViT 主干中的原型干扰。
  • 提出一个与 ViT 架构对齐的两分支 ProtoPFormer 框架,包含全局原型和局部原型。
  • 开发保留前景的机制和原型部位集中机制,以提高可解释性和准确性。
  • 展示全局原型与局部原型之间的互相校正,以产生可信且可解释的决策。

提出的方法

  • 将 ViT 输出分成类别标记流(全局分支)和图像标记流(局部分支)。
  • 为每个类别引入 m_g 个全局原型和 m_l 个局部原型,分别与类别标记和图像标记计算相似度。
  • 使用来自注意力传播的前景保持(FP)掩码,在局部分支中保留前景标记并抑制背景。
  • 将每个局部原型的相似性图建模为高斯分布;估计均值与协方差以驱动原型部位集中(PPC)损失。
  • 定义 PPC 损失,最小化协方差的迹并在同一类别内最大化原型中心的分离,以鼓励多样化、局部化的部位。
  • 用学得的权重将全局分支与局部分支的对数几率结合,形成最终预测,使用交叉熵和 PPC 损失进行训练。

实验结果

研究问题

  • RQ1基于 ViT 的原型网络是否会受到原型干扰的影响,即原型在背景而非有意义的部位上激活?
  • RQ2引入全局(类别标记驱动)和局部(标记驱动)原型,并结合前景掩码和高斯为基础的监督,是否能提升 ViT 中 ProtoPNets 的可解释性和准确性?
  • RQ3全局原型与局部原型是否会彼此纠正并共同影响最终决策,以获得更好的解释和性能?

主要发现

  • ProtoPFormer 在三个数据集和三个 ViT 主干上持续超越七个基线。
  • 两分支设计实现互相校正,全局原型捕捉整体特征,局部原型聚焦于判别性部位。
  • 前景保留掩码和 PPC 损失帮助局部原型集中于原型化部位,减少背景干扰。
  • 可视化显示 ProtoPFormer 产生局部化、语义上有意义的原型,而非以往方法将注意力分散到背景。
  • 消融研究表明联合全局/局部决策优于分离分支,且在实际范围内增加原型数量通常能提升精度。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。