Multi-Head Multi-Loss Model Calibration

Adrian Galdran, Johan Verjans, Gustavo Carneiro, Miguel A. González Ballester
3/2/2023
cs.CVcs.AI

Official code: agaldran/mhml_calibration (7 stars, last commit 2023-03-09).

Abstract

Delivering meaningful uncertainty estimates is essential for a successful deployment of machine learning models in the clinical practice. A central aspect of uncertainty quantification is the ability of a model to return predictions that are well-aligned with the actual probability of the model being correct, also known as model calibration. Although many methods have been proposed to improve calibration, no technique can match the simple, but expensive approach of training an ensemble of deep neural networks. In this paper we introduce a form of simplified ensembling that bypasses the costly training and inference of deep ensembles, yet it keeps its calibration capabilities. The idea is to replace the common linear classifier at the end of a network by a set of heads that are supervised with different loss functions to enforce diversity on their predictions. Specifically, each head is trained to minimize a weighted Cross-Entropy loss, but the weights are different among the different branches. We show that the resulting averaged predictions can achieve excellent calibration without sacrificing accuracy in two challenging datasets for histopathological and endoscopic image classification. Our experiments indicate that Multi-Head Multi-Loss classifiers are inherently well-calibrated, outperforming other recent calibration techniques and even challenging Deep Ensembles' performance. Code to reproduce our experiments can be found at \url{https://github.com/agaldran/mhml_calibration} .

View on arXivView PDF

Code Implementations(1)

Repository for the Multi-Head Multi-Loss Model Calibration paper

70Shell, PythonFeb 23, 20233 years ago

Similar Papers

Cite this paper

@article{galdran2023multihead,
  title  = {Multi-Head Multi-Loss Model Calibration},
  author = {Adrian Galdran and Johan Verjans and Gustavo Carneiro and Miguel A. González Ballester},
  year   = {2023},
  eprint = {2303.01099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.01099v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.01099.svg)](https://codeofpaper.com/paper/2303.01099)

Discussion