The Illusion of Softmax Confidence
Deep neural networks are notoriously overconfident. When a standard classifier makes a prediction, practitioners typically rely on the Maximum Class Probability (MCP)—the highest value in the softmax output vector—as a proxy for model confidence. If a network outputs a 98% probability for a given class, we assume it is highly certain.
However, MCP is a fundamentally flawed metric for identifying errors. As Charles Corbière et al. demonstrate in Addressing Failure Prediction by Learning Model Confidence, modern networks frequently yield high MCP values even when making incorrect predictions. This overconfidence stems from the mathematical nature of the softmax function, which normalizes outputs relatively rather than absolutely. Consequently, when a model encounters an out-of-distribution sample or an ambiguous input, the winning class can still claim a massive share of the probability distribution, masking the model's underlying ignorance.
The Intuition of True Class Probability
To build a reliable failure detector, we need a target metric that inherently distinguishes correct predictions from incorrect ones. This is where True Class Probability (TCP) comes in. Instead of evaluating the maximum value the model guessed, TCP measures the probability the model assigned to the actual ground-truth class.
To see why this works, consider a scenario where a model is presented with an image of a dog but mistakenly classifies it as a cat with 90% confidence:
- Maximum Class Probability (MCP): 0.90 (Deceptively high)
- True Class Probability (TCP): 0.05 (Accurately low)
Because the target value of TCP is tied directly to the ground truth, it remains naturally low for misclassified samples. As noted by Theodoros Tsiligkaridis in Failure Prediction by Confidence Estimation of Uncertainty-Aware Dirichlet Networks, estimating the likelihood of the ground truth prevents overconfidence and provides a much stronger mathematical signal for ranking and identifying model failures than standard MCP.
Decoupling Confidence via Auxiliary Networks
The obvious challenge with TCP is that the ground-truth label is unknown at test time. We cannot compute the true TCP when deploying the model in the real world.
To circumvent this, the core mechanism of this research direction is to train a dedicated, auxiliary confidence network to predict what the primary model's TCP would be. During the training phase, where ground-truth labels are available, the primary network processes an input to generate features, and the auxiliary network (or a specialized network head) is trained via regression to predict the primary model's softmax score for the correct class.
This architecture, formalized as ConfidNet by Charles Corbière et al. in Confidence Estimation via Auxiliary Models, effectively decouples predictive confidence from the primary classification task. The auxiliary network acts as an independent critic, learning the specific geometric regions of the feature space where the primary classifier is prone to making errors.
Breaking the Confirmation Bias Loop in Semi-Supervised Learning
This decoupling mechanism solves a critical bottleneck in Semi-Supervised Learning (SSL). Traditional pseudo-labeling frameworks use a model's own MCP to filter unlabeled data: if the model's confidence exceeds a heuristic threshold, its prediction is accepted as a "ground-truth" pseudo-label for subsequent training. However, if the model is confidently wrong, it absorbs its own erroneous predictions, creating a destructive feedback loop.
By introducing an independent auxiliary model to vet label trustworthiness, this loop is broken. For example, Jiwon Kim et al. in ConMatch: Semi-supervised Learning with Confidence-Guided Consistency Regularization utilize an auxiliary network trained on a small labeled dataset to evaluate the reliability of unlabeled samples using both latent features and class probabilities. Similarly, Harit Vishwakarma et al. develop a framework called PabLO in Rethinking Confidence Scores and Thresholds in Pseudolabeling-based SSL, which replaces raw softmax outputs with learned confidence scores optimized explicitly to separate correct and incorrect predictions.
In highly sensitive domains, this prevents catastrophic error propagation:
- Medical Segmentation: Olivier Petit et al. demonstrate in Iterative confidence relabeling with deep ConvNets for organ segmentation with partial labels that an auxiliary network estimating TCP successfully filters out deceptively confident errors during iterative training cycles. Furthermore, Jun Li et al. argue in Are We Overconfident in Models and Results for Semi-Supervised 3D Medical Image Segmentation? that separating prediction confidence from epistemic uncertainty is vital to mitigate confirmation bias.
- Molecular Learning: When predicting complex biochemical properties, Fang Wu in A Semi-supervised Molecular Learning Framework for Activity Cliff Estimation and Fang Wu et al. in Instructor-inspired Machine Learning for Robust Molecular Property Prediction show that decoupling property prediction from confidence estimation prevents models from reinforcing biases on tricky molecular outliers ("activity cliffs") and out-of-distribution data.
Robustness and Multi-Source Data Fusion
The utility of learned TCP estimation extends to adversarial defense and multi-view data fusion, where understanding the reliability of individual inputs or data streams is paramount.
In adversarial settings, standard softmax scores are easily manipulated. To counter this, Tianyu Pang et al. introduce a Rectified Rejection module in Two Coupled Rejection Metrics Can Tell Adversarial Examples Apart. By training an auxiliary network head to estimate a "Rectified Confidence" (the predicted TCP), the system can flag and reject adversarial examples that exhibit high standard confidence but low rectified confidence.
When fusing information from multiple modalities or views, a similar problem arises: a single overconfident but incorrect view can override a hesitant but correct majority. To solve this, Jianhua Yao et al. develop the Multimodal Dynamics framework in Multimodal Dynamics: Dynamical Fusion for Trustworthy Multimodal Classification, which uses a dedicated regression network to estimate the TCP for each individual modality. This provides a clean proxy for source reliability, allowing the system to dynamically downweight noisy or misleading channels. As Jueqing Lu et al. establish in Navigating Conflicting Views: Harnessing Trust for Learning, decoupling predictive confidence from source reliability is the key to navigating conflicting views and achieving trustworthy multi-view data fusion.
Key Foundational Work
Addressing Failure Prediction by Learning Model Confidence (2019) — contributed 2 concept elements to this direction.
Failure Prediction by Confidence Estimation of Uncertainty-Aware Dirichlet Networks (2020) — contributed 2 concept elements to this direction.