Improving Uncertainty Calibration of Deep Neural Networks via Truth Discovery and Geometric Optimization

Chunwei Ma, Ziyun Huang, Jiayi Xian, Mingchen Gao, Jinhui Xu

Abstract

Modern Deep Neural Networks (DNNs) are frequently overconfident, a flaw that limits their deployment in safety-critical domains such as autonomous driving and medical diagnosis. This paper introduces a "truth discovery" framework to address this miscalibration. By treating ensemble members as "unreliable sources" and identifying a weighted "truth vector," the proposed Truth Discovery Ensemble (TDE) enhances uncertainty calibration. To prevent accuracy degradation, an accuracy-preserving variant (aTDE) utilizes geometric optimization to project the truth vector onto a specific simplex. Additionally, a post-hoc calibration method (pTDE) leverages ensemble disagreement as a regularizer. Evaluations on CIFAR and ImageNet demonstrate that these methods significantly reduce Expected Calibration Error (ECE) while maintaining or improving classification accuracy.

Introduction

Deep learning models often exhibit a significant gap between their predicted confidence and actual accuracy. For instance, a model might predict a class with 99% confidence but only be correct 80% of the time. While ensembles and post-hoc calibration (e.g., Temperature Scaling) are common remedies, they are rarely integrated effectively. Simple averaging in ensembles ignores the rich signal provided by model disagreement, and post-hoc adjustments can inadvertently lower a model's accuracy—a trade-off most engineers seek to avoid.

Methodology: Truth Discovery and Geometric Optimization

The authors propose a two-pronged approach centered on Truth Discovery, a technique typically used in data mining to extract reliable information from conflicting sources.

Truth Discovery Ensemble (TDE & aTDE)

Instead of uniform averaging, TDE assigns a reliability weight to each ensemble member. It iteratively computes a "truth vector" that minimizes the weighted distance to all models. To ensure that this adjustment does not change the predicted class, the Accuracy-Preserving TDE (aTDE) uses geometric optimization.

Geometric visualization of the probability simplex and the ACC-preserving subspace used in aTDE.

As shown in Figure 1, the truth vector is projected onto a specific subspace that guarantees the highest-ranked class remains unchanged, effectively decoupling calibration from classification performance.

Post-Hoc Calibration (pTDE)

The framework also introduces Entropy-based Geometric Variance (HV), a metric derived from the truth discovery process that quantifies ensemble disagreement. This HV serves as a regularizer in a post-hoc calibration pipeline, allowing the model to dampen confidence more aggressively when ensemble members vary significantly. This approach treats unanimity as a proxy for certainty.

Experimental Results

The methods were evaluated on CIFAR-10, CIFAR-100, and ImageNet using architectures such as ResNet, DenseNet, and WideResNet.

Performance and Robustness

A key finding is that TDE and aTDE offer superior stability as the ensemble size increases. While standard Deep Ensembles (DE) can become increasingly overconfident with more members, the truth discovery approach maintains better calibration.

Comparison of calibration metrics (ECE, ACC, MSE, KS) across different ensemble sizes (#sources).

As illustrated in Figure 2, aTDE consistently achieves lower ECE compared to standard DE across various source counts. On CIFAR-100, the aTDE method reduced ECE from 2.88% to 1.55% compared to a standard Deep Ensemble, while maintaining the exact same accuracy.

State-of-the-Art Comparisons

The post-hoc variant, pTDE, outperformed established techniques like Temperature Scaling (TS) and Ensemble Temperature Scaling (ETS). On ImageNet, pTDE achieved an ECE of 0.71%, a significant improvement over TS (1.56%) and ETS (1.04%).

Conclusion

By framing uncertainty calibration as a truth discovery and geometric projection problem, this work demonstrates that it is possible to improve a model's "honesty" without sacrificing its performance. The use of geometric variance as a proxy for intrinsic data uncertainty provides a valuable, orthogonal signal for calibration. Future work includes exploring non-linear mapping functions and extending these principles to other domains like Natural Language Processing.

Summary updated

BibTeX
@inproceedings{ma2021improving,
  author = {Chunwei Ma and Ziyun Huang and Jiayi Xian and Mingchen Gao and Jinhui Xu},
  title = {{Improving Uncertainty Calibration of Deep Neural Networks via Truth Discovery and Geometric Optimization}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=E6IJm2dUge},
}
Figure