Probing Network Decisions: Capturing Uncertainties and Unveiling Vulnerabilities Without Label Information

Youngju Joung, Sehyun Lee, Jaesik Choi

TL;DR

This paper introduces a simple yet powerful framework that detects when an image classifier is likely to make a mistake by probing its internal representations. By framing misclassification as a binary "hit-or-miss" problem, the authors generate label-free counterfactual examples that reveal model vulnerabilities and show how to correct its errors without needing ground-truth labels.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously opaque. When they misclassify an image, understanding why usually requires labor-intensive post-hoc attribution methods (like saliency maps) across all possible classes, which are prone to human confirmation bias.

Furthermore, traditional Explainable AI (XAI) techniques assume we already know the ground-truth label—a luxury we rarely have with unlabeled real-world data. The authors tackle the challenge of identifying and explaining model failures completely unsupervised, allowing practitioners to audit model decisions in deployment where true labels are unavailable.

Methods

The authors propose a two-step framework:

  1. The Prober: A shallow Feed-Forward Network (FFN) consisting of three fully connected layers with ReLU activations. Instead of predicting the image class, it takes the hidden representations from a specific layer of the target classifier and predicts a binary outcome: Hit (the classifier is correct) or Miss (the classifier failed). To handle the extreme class imbalance (since accurate classifiers have far more hits than misses), they utilize label smoothing and apply a higher loss weight to the miss class.
  2. Counterfactual Generator: To understand why a model expects a failure, they use Approximated Diffeomorphic Counterfactuals (ADC) via a pre-trained RealNVP generative model. By performing gradient ascent on the prober's hit logit in the latent space, they alter the original image to remove obstructive features, effectively turning a predicted miss into a hit.
Overview of the proposed probing and counterfactual framework

Datasets

The framework was evaluated on four standard image classification benchmarks:

  • MNIST: Handwritten digits (low resolution, grayscale).
  • Fashion-MNIST (F-MNIST): Clothing items (slightly more complex than MNIST).
  • CIFAR-10: Color images across 10 classes.
  • ImageNette: A 10-class subset of high-resolution ImageNet images (processed at 128px).

The authors constructed a custom Hit-Miss Dataset from the internal activations of the trained classifiers on each of these datasets to train and evaluate the prober.

Key Insights and Ideas

  • Uncertainty is Baked into Hidden States: Even though the prober is only trained on a binary hit/miss signal, it implicitly learns to capture the classifier's internal uncertainty. Statistical analysis (via the Mann-Whitney U-test) showed that samples the prober flags as "hits" correspond to significantly higher maximum softmax probabilities and lower entropy in the final layer.
  • Label-Free Debugging: Because the prober only evaluates whether the classifier's internal state looks "confident and correct," it can generate meaningful counterfactual fixes without ever knowing what the true label actually is.
  • Fixing vs. Boosting: When generating counterfactuals for predicted misses, the framework handles two scenarios: "True Misses" (where the classifier was actually wrong, and the counterfactual physically alters the image to fix the error) and "False Misses" (where the classifier was right but unconfident, and the counterfactual reduces internal uncertainty to boost confidence).
Distribution of maximum probability and entropy for hit vs miss groups

Key Results

  • High Detection Accuracy: The prober successfully flags misclassifications across all datasets, achieving an Area Under the ROC curve (AUROC) of 98.37% on MNIST, 86.39% on F-MNIST, 84.17% on CIFAR-10, and 84.24% on the high-resolution ImageNette dataset.
  • Vulnerability Reversal: On the MNIST dataset, replacing original "True Miss" images with their generated counterfactuals ($ADC_{hit}$) caused the classifier's accuracy to jump from 0% to 86.67%.
  • Confidence Boosting: For "False Miss" cases (where the model was correct but hesitant), the counterfactuals increased the model's maximum prediction probability by an average of 33.40%, effectively stabilizing the network's decisions.

Limitations and Future Work

While highly effective on MNIST, the authors note that scaling the counterfactual generation to more complex, high-resolution datasets remains a challenge.

Future work will focus on improving the prober's performance on complex data, exploring full auto-correction capabilities where the network dynamically fixes its own inputs during inference, and extending the framework to provide global, model-level interpretations rather than just instance-level explanations.

Summary updated

BibTeX
@inproceedings{joung2024probing,
  author = {Youngju Joung and Sehyun Lee and Jaesik Choi},
  title = {{Probing Network Decisions: Capturing Uncertainties and Unveiling Vulnerabilities Without Label Information}},
  booktitle = {ICPRAI},
  year = {2024},
  url = {https://openreview.net/forum?id=16skdpaptV},
}
Figure