Skip to main content
QUICK REVIEW

[Paper Review] Segmentation Loss Odyssey

Jun Ma|arXiv (Cornell University)|May 27, 2020
Advanced Neural Network ApplicationsComputer Science19 references28 citations
TL;DR

This paper presents a systematic taxonomy of deep learning loss functions for medical image segmentation, categorizing them into distribution-based, region-based, boundary-based, and compound losses. It reveals structural relationships among existing losses and recommends compound loss functions—particularly combinations of Dice and boundary losses—for superior performance on highly imbalanced segmentation tasks.

ABSTRACT

Loss functions are one of the crucial ingredients in deep learning-based medical image segmentation methods. Many loss functions have been proposed in existing literature, but are studied separately or only investigated with few other losses. In this paper, we present a systematic taxonomy to sort existing loss functions into four meaningful categories. This helps to reveal links and fundamental similarities between them. Moreover, we explore the relationship between the traditional region-based and the more recent boundary-based loss functions. The PyTorch implementations of these loss functions are publicly available at \url{https://github.com/JunMa11/SegLoss}.

Motivation & Objective

  • To address the lack of a unified framework for understanding the relationships among diverse loss functions in medical image segmentation.
  • To categorize existing loss functions into four coherent groups: distribution-based, region-based, boundary-based, and compound losses.
  • To reveal fundamental similarities and optimization objectives shared across seemingly different loss functions.
  • To provide empirical guidance on selecting loss functions based on data imbalance and segmentation complexity.
  • To establish a foundation for benchmarking loss functions through a comprehensive taxonomy and implementation repository.

Proposed method

  • Proposes a four-category taxonomy: distribution-based (e.g., cross entropy, focal loss), region-based (e.g., Dice, IoU, Tversky), boundary-based (e.g., boundary loss, Hausdorff distance), and compound losses (e.g., combo loss, ELL).
  • Analyzes mathematical formulations of each loss type, showing how they optimize for distribution similarity, region overlap, or boundary proximity.
  • Demonstrates that boundary-based losses are structurally linked to region-based losses through shared minimization of mismatch regions (ΔM), with differing weighting schemes.
  • Introduces a unified view of Dice, boundary, and Hausdorff losses as minimizing the same mismatch region ΔM but with distinct weighting mechanisms: sum of foreground pixels, distance to ground truth, or combined distance maps.
  • Recommends compound loss functions as optimal, particularly combining generalized Dice loss with boundary loss for handling extreme class imbalance.
  • Provides open-source PyTorch implementations at https://github.com/JunMa11/SegLoss to support reproducibility and benchmarking.

Experimental results

Research questions

  • RQ1How can existing loss functions for medical image segmentation be systematically categorized based on their optimization objectives?
  • RQ2What are the fundamental mathematical and structural relationships between region-based and boundary-based loss functions?
  • RQ3To what extent do distribution-based losses (e.g., cross entropy) and region-based losses (e.g., Dice) share common optimization goals despite different formulations?
  • RQ4How do compound loss functions compare to individual losses in terms of performance on imbalanced medical segmentation tasks?
  • RQ5Which loss function combinations yield the most robust performance across varying levels of class imbalance in medical image segmentation?

Key findings

  • The paper establishes a four-category taxonomy that reveals deep structural links among loss functions, showing that region-based and boundary-based losses both minimize the same mismatch region ΔM with different weighting strategies.
  • Boundary-based losses such as Hausdorff distance and boundary loss are mathematically related to Dice loss through shared minimization of the intersection mismatch region, differing only in how they weight hard-to-segment pixels.
  • Compound loss functions—especially the combination of generalized Dice loss and boundary loss—demonstrate superior performance on highly imbalanced segmentation tasks, as shown by Kervadec et al. [7].
  • Exponential logarithmic loss (ELL) outperforms standard Dice and cross entropy on a 20-label brain segmentation task, according to Wong et al. [16], highlighting the benefit of transforming loss functions to emphasize hard examples.
  • The weighted sum of cross entropy and Dice loss consistently outperforms either loss used alone, as reported by Taghanak et al. [15] and Isensee et al. [5], reinforcing the value of compound loss design.
  • The authors recommend compound loss functions as the optimal choice for medical image segmentation, particularly when dealing with class imbalance, due to their ability to balance multiple optimization objectives.

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.