The Dice loss in the context of missing or empty labels: Introducing Phi and ε
Not on the map. Why?
Abstract (arXiv)
Albeit the Dice loss is one of the dominant loss functions in medical image segmentation, most research omits a closer look at its derivative, i.e. the real motor of the optimization when using gradient descent. In this paper, we highlight the peculiar action of the Dice loss in the presence of missing or empty labels. First, we formulate a theoretical basis that gives a general description of the Dice loss and its derivative. It turns out that the choice of the reduction dimensions Phi and the smoothing term ε is non-trivial and greatly influences its behavior. We find and propose heuristic combinations of Phi and ε that work in a segmentation setting with either missing or empty labels. Second, we empirically validate these findings in a binary and multiclass segmentation setting using two publicly available datasets. We confirm that the choice of Phi and ε is indeed pivotal. With Phi chosen such that the reductions happen over a single batch (and class) element and with a negligible ε, the Dice loss deals with missing labels naturally and performs similarly compared to recent adaptations specific for missing labels. With Phi chosen such that the reductions happen over multiple batch elements or with a heuristic value for ε, the Dice loss handles empty labels correctly. We believe that this work highlights some essential perspectives and hope that it encourages researchers to better describe their exact implementation of the Dice loss in future work.
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Builds on 10 of its 20 references that are in the map. First posted on arXiv 19 Jul 2022.
Builds on
10 of 20 references.
References · 10
- 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,287
- 2017Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentationscited by 615
- 2018Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challengecited by 509
- 2020A survey of loss functions for semantic segmentationcited by 216
- 2016The Importance of Skip Connections in Biomedical Image Segmentationcited by 126
- 2021Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentationcited by 88
- 2018No New-Netcited by 61
- 2020Optimization for Medical Image Segmentation: Theory and Practice when evaluating with Dice Score or Jaccard Indexcited by 52
- 2021Label-set Loss Functions for Partial Supervision: Application to Fetal Brain 3D MRI Parcellationcited by 12
- 2018Segmentation of Head and Neck Organs at Risk Using CNN with Batch Dice Losscited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 1; 2026: 1.
5 papers.
- 2023Dice Semimetric Losses: Optimizing the Dice Score with Soft Labelscited by 5
- 2023HALOS: Hallucination-free Organ Segmentation after Organ Resection Surgerycited by 3
- 2025Average Calibration Losses for Reliable Uncertainty in Medical Image Segmentationcited by 3
- 2024A label-free and data-free training strategy for vasculature segmentation in serial sectioning OCT datacited by 1
- 2026Weakly supervised neural network: segmentation of complex structures in X-ray microCTcited by 0
- 2026Weakly supervised neural network: segmentation of complex structures in X-ray microCT7 Sep 2026
- 2025Average Calibration Losses for Reliable Uncertainty in Medical Image Segmentation4 Jun 2025
- 2024A label-free and data-free training strategy for vasculature segmentation in serial sectioning OCT data22 May 2024
- 2023Dice Semimetric Losses: Optimizing the Dice Score with Soft Labels28 Mar 2023
- 2023HALOS: Hallucination-free Organ Segmentation after Organ Resection Surgery14 Mar 2023