arXiv · 2508.11880
PCA- and SVM-Grad-CAM for Convolutional Neural Networks: Closed-form Jacobian Expression
Abstract
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Yuto Omae. 2025-08-16. PCA- and SVM-Grad-CAM for Convolutional Neural Networks: Closed-form Jacobian Expression. https://arxiv.org/abs/2508.11880
Cite the original work for its findings. Save a collection to share your selection of sources.