Introduction
Deep Neural Networks (DNNs) have achieved remarkable performance across various domains but often operate as "black boxes," providing little intuition regarding their decision-making processes. This lack of transparency is a major hurdle for high-stakes applications such as healthcare and autonomous systems. Prototype-Based Self-Explainable Neural Networks (PSENNs) were developed to address this by making models "transparent by design." PSENNs classify inputs by comparing them to learned "prototypes"—representative examples of each class. However, standard PSENNs rely on static point estimates for prototypes, failing to capture the inherent diversity within classes and often exhibiting overconfidence on out-of-distribution (OOD) data.
Methodology: Prob-PSENN
To overcome these limitations, we introduce Prob-PSENN (Probabilistic PSENN). This framework replaces fixed prototypes with probability distributions in the latent space, typically modeled as Gaussians.
Architecture and Inference
Prob-PSENN utilizes an encoder-decoder architecture, specifically a Variational Autoencoder (VAE). The encoder maps input data $x$ to a latent representation $e_x$, while the decoder $g$ reconstructs latent points into human-interpretable images.
During inference, the model performs sampling-based inference. Instead of a single set of prototypes, it samples $N$ sets of prototypes from the learned distributions. This process yields a predictive distribution rather than a point estimate, allowing the model to express its confidence level through uncertainty quantification.
Quantifying Uncertainty
By generating multiple samples per inference, Prob-PSENN can distinguish between two critical types of uncertainty:
- Aleatoric Uncertainty: Arises from inherent ambiguity in the input (e.g., a digit that resembles both a '4' and a '9').
- Epistemic Uncertainty: Occurs when the model encounters data significantly different from its training set (OOD data), indicating that the model "doesn't know what it doesn't know."
Experimental Evaluation
The framework was evaluated on several benchmarks, including MNIST, Fashion-MNIST, K-MNIST, SVHN, and the Sensorless Drive Diagnosis (SDD) tabular dataset.
Key Results
- Performance: Prob-PSENN maintains competitive accuracy compared to black-box models and deterministic PSENNs, achieving ~99.4% on MNIST and ~92% on SVHN.
- OOD Detection: The model effectively flags OOD samples. For instance, a model trained on MNIST digits correctly identifies Fashion-MNIST clothing items as having high epistemic uncertainty.
- Reliability Filtering: By rejecting the 5% of samples with the highest uncertainty on the K-MNIST dataset, the model's accuracy improved from 96.7% to 99.7%. This demonstrates the potential for "human-in-the-loop" systems where the AI defers difficult cases to experts.
- Interpretability: The probabilistic approach captures class diversity. Instead of one "typical" digit, the model can visualize various styles (e.g., different ways to write a '7'), providing richer explanations than static prototypes.
Conclusion and Future Work
Prob-PSENN advances self-explainable AI by integrating uncertainty quantification directly into the explanation mechanism. While effective, challenges remain in scaling to high-dimensional latent spaces and exploring non-Gaussian prototype distributions. Future research will investigate fully Bayesian implementations to further refine uncertainty estimates across the entire network architecture.
Summary updated