arXiv:2508.11880cs.LG2025-08

提出PCA与SVM的Grad-CAM方法,让黑箱模型可视化

PCA- and SVM-Grad-CAM for Convolutional Neural Networks: Closed-form Jacobian Expression

  • 推导出CNN到PCA/SVM层的闭式雅可比矩阵
  • 首次实现对PCA特征向量和SVM分类层的注意力可视化
  • 适合想理解复杂模型决策过程的研究者

卷积神经网络(CNN)在大规模数据下表现出色,但常被视为黑箱。通过Grad-CAM等可视化技术可使其具备白盒特性。当训练样本有限时,引入主成分分析(PCA)层和/或支持向量机(SVM)分类器能提升分类性能。然而传统Grad-CAM无法直接应用于PCA和/或SVM层。为解决此问题,本文提出「PCA-Grad-CAM」用于可视化PCA特征向量的关注区域,以及「SVM-Grad-CAM」用于可视化SVM分类层的关注区域。为此,需解析求解从最后一层卷积层到PCA和/或SVM层的闭式雅可比矩阵(即偏导数表达式)。本文给出了精确的闭式雅可比表达式,并在多个主流数据集上展示了可视化结果。

原文摘要 · Abstract (English)

Convolutional Neural Networks (CNNs) are an effective approach for classification tasks, particularly when the training dataset is large. Although CNNs have long been considered a black-box classification method, they can be used as a white-box method through visualization techniques such as Grad-CAM. When training samples are limited, incorporating a Principal Component Analysis (PCA) layer and/or a Support Vector Machine (SVM) classifier into a CNN can effectively improve classification performance. However, traditional Grad-CAM cannot be directly applied to PCA and/or SVM layers. It is important to generate attention regions for PCA and/or SVM layers in CNNs to facilitate the development of white-box methods. Therefore, we propose ``PCA-Grad-CAM'', a method for visualizing attention regions in PCA feature vectors, and ``SVM-Grad-CAM'', a method for visualizing attention regions in an SVM classifier layer. To complete our methods analytically, it is necessary to solve the closed-form Jacobian consisting of partial derivatives from the last convolutional layer to the PCA and/or SVM layers. In this paper, we present the exact closed-form Jacobian and the visualization results of our methods applied to several major datasets.

CNN可视化PCASVM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。