Improving Interpretability of CNN Models Using Non-Negative Concept Activation Vectors.

Ruihan Zhang, Prashan Madumal, Tim Miller, Krista A. Ehinger, Benjamin I. P. Rubinstein

Abstract

Deep learning models, particularly Convolutional Neural Networks (CNNs), often operate as "black boxes," making their decision-making processes difficult to interpret. We present Invertible Concept-based Explanations (ICE), a framework that explains CNN predictions using human-understandable concepts rather than individual pixels. By applying Non-negative Matrix Factorization (NMF) to internal feature maps, ICE extracts Non-negative Concept Activation Vectors (NCAVs). This approach is "invertible," allowing for a quantitative assessment of explanation fidelity. Our results on ImageNet and CUB datasets demonstrate that ICE maintains high computational fidelity while significantly improving human interpretability compared to traditional clustering or PCA-based methods.

Introduction

While saliency maps are widely used to highlight influential pixels in CNNs, they do not explain the semantic features—the "what"—that the model recognizes. Existing concept-based methods, such as Automated Concept-based Explanations (ACE), attempt to bridge this gap by clustering image segments. However, ACE lacks a mechanism to verify if the extracted concepts faithfully represent the model's internal logic and often produces inconsistent importance weights across similar images.

The ICE framework addresses these limitations by providing a mathematically rigorous and human-interpretable method for concept extraction.

Methods

The ICE framework redefines the process of extracting concepts from pre-trained CNNs through several key steps:

  1. Decomposition: The CNN is treated as a two-part system: a concept extractor (early layers) and a classifier (final layers).
  2. Non-negative Matrix Factorization (NMF): Recognizing that modern CNNs utilize ReLU activations (which are inherently non-negative), the authors apply NMF to internal feature maps. This decomposes complex activations into a set of NCAVs and their corresponding scores.
  3. Invertibility and Fidelity: Because NMF is a form of matrix factorization, it allows for the "reconstruction" of the model's prediction from the concepts alone. The difference between the original and reconstructed prediction serves as a direct measure of the explanation's fidelity.
  4. Linear Approximation: By targeting the layer immediately preceding Global Average Pooling (GAP), ICE derives consistent, linear weights for each concept, preventing importance fluctuations between similar inputs.
Visualizing extracted concepts: NCAVs often correspond to specific object parts like dog faces or eyes.

Experimental Evaluation

The framework was evaluated using the ImageNet (ILSVRC2012) and CUB (Caltech-UCSD Birds-200-2011) datasets, employing ResNet50 and Inception-V3 architectures.

Key Insights

  • The Fidelity-Interpretability Trade-off: While PCA offers high mathematical fidelity, it often produces concepts that are not human-interpretable due to negative values. NMF provides a "Goldilocks" balance, maintaining high fidelity while ensuring concepts align with human perception.
  • Falsifiable Interpretability: Interpretability is treated as a measurable metric. A human-subject study with 157 participants on Amazon Mechanical Turk demonstrated that NMF-generated prototypes are significantly more effective for human prediction of model behavior than PCA or clustering.
An example input image from the dataset used to evaluate the ICE framework.

Results

  • Computational Fidelity: ICE linear approximations resulted in only a 2-5% drop in accuracy compared to the original black-box models, indicating that the concepts captured the essential logic of the classifier.
  • Consistency: The framework successfully provided both global explanations (class-level logic) and local explanations (image-specific logic) simultaneously.

Discussion and Limitations

While ICE represents a significant step forward, several challenges remain. The quality of extracted concepts is highly dependent on the chosen layer; while higher layers capture abstract concepts, lower layers may be necessary for different explanation types. Additionally, the method assumes a linear relationship in the final classifier, which may not hold for architectures with deep fully-connected stacks. Future work will focus on automating the selection of the optimal number of concepts for a given class.

Summary updated

Abstract

Convolutional neural network (CNN) models for computer vision are powerful but lack explainability in their most basic form. This deficiency remains a key challenge when applying CNNs in important domains. Recent work for explanations through feature importance of approximate linear models has moved from input-level features (pixels or segments) to features from mid-layer feature maps in the guise of concept activation vectors (CAVs). CAVs contain concept-level information and could be learnt via Clustering. In this work, we rethink the ACE algorithm of Ghorbani et~al., proposing an alternative concept-based explanation framework. Based on the requirements of fidelity (approximate models) and interpretability (being meaningful to people), we design measurements and evaluate a range of dimensionality reduction methods for alignment with our framework. We find that non-negative concept activation vectors from non-negative matrix factorization provide superior performance in interpretability and fidelity based on computational and human subject experiments. Our framework provides both local and global concept-level explanations for pre-trained CNN models.
BibTeX
@inproceedings{zhang2021improving,
  author = {Ruihan Zhang and Prashan Madumal and Tim Miller and Krista A. Ehinger and Benjamin I. P. Rubinstein},
  title = {{Improving Interpretability of CNN Models Using Non-Negative Concept Activation Vectors.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i13.17389},
}
Figure