Skip to main content
QUICK REVIEW

[Paper Review] Distance-Based Learning from Errors for Confidence Calibration

Xing Chen, Sercan Ö. Arık|arXiv (Cornell University)|Dec 3, 2019
Machine Learning and AlgorithmsComputer Science29 references12 citations
TL;DR

This paper proposes Distance-Based Learning from Errors (DBLE), a novel training method that improves deep neural network confidence calibration by learning a distance-based representation space and jointly training a confidence model using only misclassified samples. DBLE achieves state-of-the-art single-model calibration with lower computational cost than ensembles and without sacrificing classification performance.

ABSTRACT

Deep neural networks (DNNs) are poorly calibrated when trained in conventional ways. To improve confidence calibration of DNNs, we propose a novel training method, distance-based learning from errors (DBLE). DBLE bases its confidence estimation on distances in the representation space. In DBLE, we first adapt prototypical learning to train classification models. It yields a representation space where the distance between a test sample and its ground truth class center can calibrate the model's classification performance. At inference, however, these distances are not available due to the lack of ground truth labels. To circumvent this by inferring the distance for every test sample, we propose to train a confidence model jointly with the classification model. We integrate this into training by merely learning from mis-classified training samples, which we show to be highly beneficial for effective learning. On multiple datasets and DNN architectures, we demonstrate that DBLE outperforms alternative single-model confidence calibration approaches. DBLE also achieves comparable performance with computationally-expensive ensemble approaches with lower computational cost and lower number of parameters.

Motivation & Objective

  • To address the poor confidence calibration of deep neural networks trained with standard cross-entropy loss.
  • To develop a training method that enables well-calibrated confidence estimation without relying on post-hoc calibration or ensemble methods.
  • To improve calibration by leveraging distances in the representation space and learning from misclassified samples.
  • To achieve high calibration performance with minimal computational overhead compared to existing methods.

Proposed method

  • DBLE adapts prototypical learning to train a classification model in a distance-based representation space where the distance from a test sample to its ground-truth class center correlates with model performance.
  • At inference, since ground-truth labels are unavailable, a separate confidence model is trained jointly with the classification model to estimate the distance to the true class center.
  • The confidence model is trained exclusively on misclassified training samples, using a loss that maximizes the estimated distance for incorrect predictions.
  • The method uses two forward passes per training step: one for the classification model and one for the confidence model, with the confidence model updated only on errors.
  • The confidence model is implemented as a small MLP, adding only 1-3% of the parameters of the main model.
  • Training employs standard optimization with learning rate scheduling, and the confidence model is updated using a negative log-likelihood objective on the estimated distance.

Experimental results

Research questions

  • RQ1Can a distance-based representation space improve confidence calibration in deep neural networks?
  • RQ2Does learning from misclassified samples enhance confidence model performance without increasing computational cost?
  • RQ3Can a jointly trained confidence model achieve calibration performance comparable to deep ensembles while using fewer parameters and less training time?
  • RQ4How does DBLE compare to post-hoc calibration and Bayesian deep learning methods in terms of calibration and inference efficiency?

Key findings

  • On CIFAR-100 with ResNet50, DBLE achieves an Expected Calibration Error (ECE) of 3.6%, significantly outperforming vanilla training (25.2%) and other baselines.
  • On Tiny-ImageNet, DBLE reduces ECE to 3.6% compared to 25.2% for vanilla training, demonstrating consistent improvement across datasets.
  • DBLE achieves an ECE of 1.1% on CIFAR-100 with VGG11, outperforming MC-dropout and temperature scaling, and approaching the performance of deep ensembles.
  • DBLE’s training time is 1.4x that of vanilla training on CIFAR-100-VGG11 and 1.7x on CIFAR-100-ResNet50, compared to 4x for a four-network deep ensemble.
  • The confidence model adds only 1-3% of the parameters of the main model, whereas deep ensembles increase parameter count by 400%.
  • Ablation studies confirm that both the distance-based representation space and error-based learning are essential—using all training samples for confidence training degrades performance, and vanilla training with error learning alone yields only marginal gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.