Abstract
This paper introduces Multi-Head Multi-Loss (MHML), a lightweight alternative to deep ensembles for improving model calibration. By replacing a single classifier head with multiple heads—each supervised by a differently weighted loss function—the authors achieve state-of-the-art uncertainty estimates and calibration, often surpassing deep ensembles, with negligible computational overhead.
Introduction
Modern deep neural networks are notoriously overconfident; they might predict a class with 99% probability even when they are wrong. In safety-critical fields like medicine, this lack of calibration—the alignment between predicted probability and actual accuracy—is a major barrier to deployment. While Deep Ensembles (training multiple independent models and averaging them) are the gold standard for calibration, they are computationally expensive, requiring significantly more training and inference resources. Conversely, popular training-time fixes like Label Smoothing or MixUp often improve calibration at the expense of raw predictive accuracy. The authors seek a "middle way": the calibration power of an ensemble with the efficiency of a single model.
Methodology
The core idea of MHML is to implement a form of simplified ensembling within a single architecture.
Architecture
The model uses a standard shared backbone (e.g., ResNet50, ConvNeXt) but replaces the final linear layer with $M$ independent "heads." The final prediction is the average of these heads' softmax outputs.
Multi-Loss Diversity
Simply adding heads is insufficient, as backpropagation typically forces all heads to converge to the same solution. To force diversity, the authors supervise each head with a unique Weighted Cross-Entropy loss. Each head is assigned a random subset of classes to specialize in; for a specific head, its specialized classes are weighted heavily, while others are weighted lightly. The training objective combines a standard Cross-Entropy loss on the averaged prediction with these individual weighted losses, ensuring the heads collaborate for accuracy while maintaining diverse perspectives.
Experimental Setup
The authors evaluated their method on three challenging medical imaging benchmarks:
- Chaoyang: Colon histopathology images (4 classes) featuring high label ambiguity to test handling of aleatoric uncertainty.
- Kvasir: Endoscopic images (23 classes) that are highly imbalanced, testing robustness to rare classes.
- PathMNIST: A large-scale collection of histopathological colon images (9 classes) used for further validation.
Results and Discussion
The authors compared their 4HML model against baselines, regularization methods, and Deep Ensembles (D-Ens) across three different backbones (ResNet50, ConvNeXt, Swin-Transformer).
Key Results on Kvasir
On the Kvasir dataset, the 4HML model achieved the lowest Expected Calibration Error (ECE) in all cases. For example, using a ConvNeXt backbone, 4HML reached an ECE of 1.65, compared to 3.34 for Deep Ensembles and 5.18 for a standard single-head model.
Insights
- Diversity is Essential: The paper demonstrates that weighted loss "breaks the symmetry" of gradients, which is necessary to gain the benefits of ensembling.
- Efficiency: MHML adds a negligible number of parameters and requires no extra training time compared to a standard model, whereas Deep Ensembles require $M$ times the training effort.
- No Accuracy Trade-off: Unlike many calibration methods that lose discriminative power, MHML maintains or even slightly improves top-1 accuracy.
Conclusion and Future Work
MHML provides a robust and efficient solution for model calibration in medical imaging. While highly effective, it is not naturally suited for post-hoc Temperature Scaling because it averages softmax probabilities rather than logits. Future work may explore smarter class grouping strategies to further improve head specialization and diversity, as well as adapting the weighting strategy for problems with very few classes.
Summary updated