Class activation map (CAM) has been widely studied for visual explanation of the internal working mechanism of convolutional neural networks. The key of existing CAM-based methods is to compute effective weights to combine activation maps in the target convolution layer. Existing gradient and score based weighting schemes have shown superiority in ensuring either the discriminability or faithfulness of the CAM, but they normally cannot excel in both properties. In this paper, we propose a novel CAM weighting scheme, named FD-CAM, to improve both the faithfulness and discriminability of the CAM-based CNN visual explanation. First, we improve the faithfulness and discriminability of the score-based weights by performing a grouped channel switching operation. Specifically, for each channel, we compute its similarity group and switch the group of channels on or off simultaneously to compute changes in the class prediction score as the weights. Then, we combine the improved score-based weights with the conventional gradient-based weights so that the discriminability of the final CAM can be further improved. We perform extensive comparisons with the state-of-the-art CAM algorithms. The quantitative and qualitative results show our FD-CAM can produce more faithful and more discriminative visual explanations of the CNNs. We also conduct experiments to verify the effectiveness of the proposed grouped channel switching and weight combination scheme on improving the results. Our code is available at https://github.com/crishhh1998/FD-CAM.
翻译:为了直观地解释神经神经网络的内部工作机制,已广泛研究了等级激活图(CAM),以直观地解释神经网络的内部工作机制。现有CAM方法的关键在于计算有效加权,将目标神经层的激活图结合起来。现有的梯度和分数加权办法在确保CAM的可区分性或忠诚性方面显示出优势,但它们通常不能在这两种属性中都优于前者。在本文件中,我们提出一个新的CAM加权办法,名为FD-CAM,以提高基于CAM的CNN视觉解释的忠实性和可区别性。首先,我们通过进行分组化频道转换操作,提高得分加权的忠实性和可偏差性。具体地说,我们为每个频道配置相似性组,同时或同时转换频道组,以计算班级预测的得分数。然后,我们将改进的分数加权加权办法与常规梯度加权数相结合,以便进一步提高最后CAM的可比较性。我们通过进行广泛的比较,将基于分值的评分数和直观的加权办法,我们也可以在州-SDRA/CSalalalalalal-alalalalal assalbalal assalbalalalal assalup lacuducults。