arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.01202cs.CVcs.AIcs.LGcs.MM
收藏

神经元舍弃注意力流:CNN模型内部动态的可视化解释

Neuron Abandoning Attention Flow: Visual Explanation of Dynamics inside CNN Models

School of Engineering and Built Environment, Griffith University(格里菲斯大学工程与建筑环境学院);Institute for Integrated and Intelligent Systems, Griffith University(格里菲斯大学集成与智能系统研究所);School of Electronic Information and Artificial Intelligence, Shaanxi University of Science and Technology(陕西科技大学电子信息与人工智能学院)

Yi Liao, Yongsheng Gao, Weichuan Zhang

AI总结:

针对CNN分类决策中的注意力演化难以解释的问题,本文提出NAFlow,通过级联NA-BP与通道贡献权重模块追踪并可视化决策相关神经元,在9个模型和4类任务上验证有效。

摘要:

本文提出一种神经元舍弃注意力流(Neuron Abandoning Attention Flow,NAFlow)方法,以解决在CNN作出分类决策时对其内部注意力演化动态进行可视化解释这一开放性问题。为追踪CNN所有层中参与预测的神经元,并解决被舍弃神经元造成显著干扰的问题,本文设计了一种新颖的级联神经元舍弃反向传播算法。首先,提出神经元舍弃反向传播(NA-BP)模块,通过利用CNN模型中间层的逆函数生成反向传播特征图(BPFM),并在这些特征图上舍弃未用于决策的神经元。同时,级联的NA-BP模块计算重要性系数张量,并将其与BPFM张量线性组合以形成NAFlow。其次,为了能够对基于相似性度量的CNN模型可视化注意力流,提出一种新的通道贡献权重模块,通过Jacobian Matrix计算重要性系数。所提出的NAFlow的有效性在9个广泛使用的CNN模型上得到验证,涵盖通用图像分类、对比学习分类、小样本图像分类和图像检索等多种任务。

英文摘要:

In this paper, we present a Neuron Abandoning Attention Flow (NAFlow) method to address the open problem of visually explaining the attention evolution dynamics inside CNNs when making their classification decisions. A novel cascading neuron abandoning back-propagation algorithm is designed to trace neurons in all layers of a CNN that involve in making its prediction to address the problem of significant interference from abandoned neurons. Firstly, a Neuron Abandoning Back-Propagation (NA-BP) module is proposed to generate Back-Propagated Feature Maps (BPFM) by using the inverse function of the intermediate layers of CNN models, on which the neurons not used for decision-making are abandoned. Meanwhile, the cascading NA-BP modules calculate the tensors of importance coefficients which are linearly combined with the tensors of BPFMs to form the NAFlow. Secondly, to be able to visualize attention flow for similarity metric-based CNN models, a new channel contribution weights module is proposed to calculate the importance coefficients via Jacobian Matrix. The effectiveness of the proposed NAFlow is validated on nine widely-used CNN models for various tasks of general image classification, contrastive learning classification, few-shot image classification, and image retrieval.

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

↑