PICNN: A Pathway towards Interpretable Convolutional Neural Networks

Wengang Guo, Jiayi Yang, Huilin Yin, Qijun Chen, Wei Ye

Introduction

Convolutional Neural Networks (CNNs) have revolutionized computer vision, yet they remain largely "black boxes." While they achieve remarkable accuracy, understanding why a model makes a specific prediction is often a post-hoc exercise. The PICNN (Pathway towards Interpretable CNNs) framework proposes a fundamental shift: transforming these models into intrinsically interpretable systems where specific filter groups are dedicated to specific image classes.

The Problem: Filter-Class Entanglement

A primary obstacle to CNN interpretability is filter-class entanglement. In standard training, filters often learn features that are shared across disparate classes—for instance, a filter detecting "pointy" edges might be utilized for both cats and buildings. Conversely, a single class might rely on a complex, overlapping set of filters. This entanglement makes it nearly impossible to isolate the contribution of specific filters to a final classification.

The PICNN Framework

To address this, PICNN introduces a dual-pathway architecture that separates the standard classification task from the interpretation task.

Dual-Pathway Architecture

  1. Discrimination Pathway: A standard CNN flow that processes an image to produce a class label ($y_1$).
  2. Interpretation Pathway: A parallel flow added during training that utilizes a learnable Filter-Class Correspondence Matrix ($P$). This matrix groups filters in the final convolutional layer into distinct, class-specific clusters.
Overview of the PICNN framework, illustrating the correspondence matrix and the resulting Grad-CAM visualizations for class-specific versus complementary clusters.

Technical Innovations

The success of PICNN hinges on several key technical developments:

  • Differentiable Bernoulli Sampling: Assigning filters to classes involves a discrete choice (Bernoulli sampling), which is traditionally non-differentiable. PICNN employs a novel reparameterization trick, allowing the network to learn these assignments via standard backpropagation.
  • Pseudo-Labeling: To prevent the model from "cheating" by using the ground-truth label during the interpretation phase, the system uses a pseudo-label ($\tilde{y}$) derived from the model's own predictions.
  • Interpretation Loss: The model minimizes an additional loss function that ensures class-specific clusters are actually sufficient for accurate identification.
The Filter-Class Correspondence Matrix (P) demonstrates the learned one-to-one mapping between filter clusters and specific object classes.

Experimental Evaluation

The researchers tested PICNN across five benchmarks, including CIFAR-10/100, STL-10, PASCAL VOC Part, and TinyImageNet.

Performance and Interpretability

Contrary to the common assumption that interpretability requires a trade-off in performance, PICNN often matched or exceeded the accuracy of standard "black box" models. For example, on the PASCAL VOC dataset, PICNN achieved 84.0% accuracy compared to 80.3% for the baseline.

Furthermore, PICNN significantly improved interpretability metrics. Using the Mutual Information Score (MIS), the framework consistently outperformed existing interpretable models like ICCNN and CSG.

Background Suppression

Visualizations using Grad-CAM reveal a striking phenomenon: while class-specific filters focus intensely on the target object (e.g., the body of a dog), the "complementary" filters—those not assigned to that class—focus almost exclusively on the background or irrelevant textures. This confirms that the model is successfully isolating class-level concepts.

Discussion and Future Work

PICNN is architecture-agnostic, having been successfully applied to both CNNs and Vision Transformers (ViTs). However, challenges remain with architectures like DenseNet-121, where dense skip-connections make it difficult to isolate high-level concepts in the final layer.

Future research may explore extending this pathway logic to earlier layers or utilizing class-specific clusters for out-of-distribution (OOD) detection, potentially flagging unknown objects that fail to trigger any established class cluster.

Summary updated

BibTeX
@inproceedings{guo2024picnn,
  author = {Wengang Guo and Jiayi Yang and Huilin Yin and Qijun Chen and Wei Ye},
  title = {{PICNN: A Pathway towards Interpretable Convolutional Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.27971},
}
Figure