NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Keep the Faith: Faithful Explanations in Convolutional Neural Networks for Case-Based Reasoning

Tom Nuno Wolf, Fabian Bongratz, Anne-Marie Rickmann, Sebastian Pölsterl, Christian Wachinger

Introduction

In high-stakes domains such as medical diagnostics, the "black-box" nature of deep neural networks presents significant risks. To address this, researchers developed ProtoPNet, an "interpretable-by-design" model that utilizes case-based reasoning. ProtoPNet classifies images by identifying local parts that resemble learned "prototypes" (e.g., identifying a bird species because its beak matches a specific prototype).

However, this work identifies a critical flaw: the heatmaps ProtoPNet generates to explain prototype detection are mathematically unfaithful. These explanations frequently violate core axioms of explainability, such as Completeness (where the sum of pixel contributions should equal the total prediction) and Sensitivity (where a pixel that changes the output must have a non-zero attribution). While ProtoPNet's explanations appear sparse and intuitive to humans, they fail to represent the high-dimensional, non-linear functions the model actually employs.

Methodology: The ProtoPFaith Framework

To bridge the gap between human-friendly reasoning and mathematical rigor, we propose ProtoPFaith. This framework transforms standard case-based models into probabilistic networks to derive true Shapley values—the gold standard for fair attribution in game theory.

Overview of the ProtoPFaith framework compared to the original ProtoPNet.

The ProtoPFaith approach involves three primary technical steps:

  1. Restoring Linearity: We remove non-linear "log-activations" from the original ProtoPNet architecture, which previously prevented linear attribution of scores to specific pixels.
  2. Probabilistic Transformation: The trained ProtoPNet is converted into a lightweight probabilistic model, allowing for the propagation of mean and variance of pixel values throughout the network.
  3. DASP Integration: We utilize Deep Approximate Shapley Propagation (DASP) to estimate Shapley values. This required deriving new closed-form mathematical solutions for specific layers, such as the squared L2-norm and ReLU1, which were previously unsupported in the DASP framework.

Experimental Evaluation

We evaluated ProtoPFaith across three distinct datasets to test its performance on various visual features:

  • CUB-200-2011: Fine-grained bird species recognition.
  • Stanford Dogs: Fine-grained dog breed classification.
  • RSNA Pneumonia Detection: A high-stakes medical dataset of chest X-rays.

Testing was conducted across five CNN backbones, including ResNet50 and ResNeXt50.

Key Results and Insights

Quantitative Faithfulness

Using the Area Over the Perturbation Curve (AOPC)—a metric that tracks how quickly model confidence drops as the "most important" pixels are removed—ProtoPFaith outperformed ProtoPNet by a factor of over 1,000 ($>10^3$) across all experiments. This confirms that ProtoPFaith identifies the pixels that are truly influential to the model's logic.

Qualitative Analysis and the Spatial Fallacy

ProtoPNet often relies on a "spatial fallacy," assuming that small feature maps can be simply up-scaled to show relevant pixels. However, in deep CNNs, the receptive field of a single point can cover the entire input image. ProtoPFaith reveals that the model is often looking at much larger, more holistic regions than ProtoPNet's sparse dots suggest.

Qualitative comparison of explanations generated by ProtoPNet and ProtoPFaith across different datasets.

In the RSNA medical dataset, ProtoPNet frequently highlighted irrelevant anatomical structures like bones. In contrast, ProtoPFaith correctly identified lung tissue as the primary driver for pneumonia diagnosis, demonstrating its superior utility in decision-critical tasks.

Conclusion and Future Work

ProtoPFaith demonstrates that mathematical faithfulness does not have to be sacrificed for interpretability. While faithful explanations are often more complex and less "clean" than sparse heatmaps, they provide a more honest representation of a model's internal logic. Future work will focus on extending this framework to multi-label tasks and exploring ways to make these rigorous mathematical explanations even more intuitive for end-users without losing their underlying accuracy.

Summary updated

BibTeX
@inproceedings{wolf2024keep,
  author = {Tom Nuno Wolf and Fabian Bongratz and Anne-Marie Rickmann and Sebastian Pölsterl and Christian Wachinger},
  title = {{Keep the Faith: Faithful Explanations in Convolutional Neural Networks for Case-Based Reasoning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28406},
}
Figure