The Dice loss in the context of missing or empty labels: Introducing Φ and ε

Sofie Tilborghs, Jeroen Bertels, David Robben, Dirk Vandermeulen, Frederik Maes
7/19/2022
12 citations
cs.CVcs.AIcs.LG

Official code: JeroenBertels/dicegrad (8 stars, Python, GPL-3.0, last commit 2022-08-23).

Abstract

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.

Show full abstract

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 $Φ$ and the smoothing term $ε$ is non-trivial and greatly influences its behavior. We find and propose heuristic combinations of $Φ$ 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 $Φ$ and $ε$ is indeed pivotal. With $Φ$ 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 $Φ$ 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.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Analyzing the gradients of the Dice loss in the context of missing or empty labels.

80Python, Jupyter NotebookJun 9, 20224 years agoGPL-3.0

Similar Papers

Cite this paper

@article{tilborghs2022dice,
  title  = {The Dice loss in the context of missing or empty labels: Introducing Φ and ε},
  author = {Sofie Tilborghs and Jeroen Bertels and David Robben and Dirk Vandermeulen and Frederik Maes},
  year   = {2022},
  eprint = {2207.09521},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.09521v2}
}

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/2207.09521.svg)](https://codeofpaper.com/paper/2207.09521)

Discussion