Confidence Scoring Using Whitebox Meta-models with Linear Classifier Probes

Tongfei Chen, Jirí Navrátil, Vijay S. Iyengar, Karthikeyan Shanmugam

Abstract

Deep neural networks are often overconfident in their predictions, posing risks in safety-critical domains. This paper introduces a "whitebox" meta-modeling approach that utilizes linear classifier probes at intermediate layers to assess prediction reliability. By monitoring internal states, the meta-model identifies errors more effectively than standard softmax probabilities, particularly under conditions of label noise and out-of-distribution data.

Introduction

Deep learning models are notoriously overconfident. Even when a model is wrong, it often produces a high probability score for its incorrect guess. This is a major hurdle for safety-critical applications like medical diagnosis or autonomous driving, where a system needs to know when to "hand over the keys" to a human expert.

While techniques like calibration exist to make these scores more representative of true likelihood, they often fail when the environment changes or when the training data itself contains errors (noisy labels). The authors address the challenge of confidence scoring: creating a reliable "observer" that can rank predictions from most to least certain so that the most dubious ones can be filtered out.

Methods: The Whitebox Meta-Model

The authors propose a two-model paradigm consisting of a Base Model (a standard pre-trained classifier like ResNet) and a Meta-Model (a separate, smaller model trained specifically to predict whether the base model’s prediction is correct).

The core innovation is the Whitebox approach. Instead of just looking at the base model's final output (the "Blackbox" approach), the meta-model looks at Linear Classifier Probes. These are simple linear layers inserted after various intermediate blocks of the base model. Each probe is trained to predict the image class using only the features available at its specific layer. The meta-model then takes the outputs of all these probes as its input features.

Diagram of the Whitebox meta-model architecture using internal probes compared to a standard Blackbox approach.

The authors tested two types of meta-models: Logistic Regression (LR), a simple linear combination of probe outputs, and Gradient Boosting Machine (GBM), a more complex ensemble of decision trees. Crucially, the probes and meta-model are trained after the base model is fixed, ensuring they don't interfere with the original classification task.

Experimental Setup and Datasets

The study utilizes standard computer vision benchmarks to evaluate the meta-model's performance:

  • CIFAR-10: Used for the primary "in-domain" task. The training set is split to ensure the base model and meta-model are trained on disjoint data.
  • CIFAR-100: Used as an Out-of-Domain (OOD) dataset. Since the labels are entirely different from CIFAR-10, any prediction the base model makes on these images is inherently "wrong," providing a rigorous test for the confidence scorer's ability to reject unknown data.
  • Noisy Variants: The authors introduced 30% label noise (randomly swapping correct labels for incorrect ones) to simulate real-world "dirty" data.

Key Insights

  • Internal States Matter: The core "aha" moment is that the path a piece of data takes through a network—how early or late it becomes "classifiable"—contains rich information about the model's certainty that the final output alone lacks.
  • The "Hedging" Strategy: In noisy environments, the meta-model learns a fascinating behavior. Feature importance analysis showed that when the final layer is likely corrupted by label noise, the meta-model starts ignoring the final layer and relies more on deeper, more robust intermediate layers (specifically layers 12–16 in their ResNet architecture).
  • Robustness to Domain Shift: The whitebox meta-model is much better at maintaining its precision when moving from familiar data to out-of-distribution data compared to standard softmax baselines. It provides a more stable "uncertainty signal."

Results

The Whitebox approach significantly outperforms standard measures across various scenarios. In the "Noisy/Noisy" scenario (where both base and meta-models are trained on noisy data), the Whitebox GBM achieved an Area Under the ROC Curve (AUC) of 0.88, significantly outperforming the standard Softmax baseline (0.74).

ROC and Precision-Recall curves for the CIFAR10+100 OOD Noisy-Noisy task, showing the superior performance of the Probes-GBM meta-model.

By removing samples the meta-model deemed uncertain, the researchers could significantly boost the residual accuracy of the remaining predictions. On the CIFAR-100 out-of-domain task, the Whitebox GBM maintained an AUC of 0.84, whereas the Softmax baseline dropped to 0.72. This demonstrates that the meta-model isn't just memorizing errors; it's learning a generalized concept of "model difficulty."

Limitations and Future Work

While linear probes are lightweight, running a meta-model in addition to the base model adds some latency and memory requirements during inference. Furthermore, this is currently a diagnostic tool rather than a method to improve the base model's accuracy directly. Future research may explore integrating other uncertainty measures, such as Monte Carlo Dropout, as additional features for the meta-model to further refine the confidence scores.

Summary updated

BibTeX
@inproceedings{chen2019confidence,
  author = {Tongfei Chen and Jirí Navrátil and Vijay S. Iyengar and Karthikeyan Shanmugam},
  title = {{Confidence Scoring Using Whitebox Meta-models with Linear Classifier Probes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure