mlsanityData to 7 Oct 2026

On the Optimal Combination of Cross-Entropy and Soft Dice Losses for Lesion Segmentation with Out-of-Distribution Robustness

arXiv 2209.06078 ↗First posted 13 Sep 2022cs.CVcited by 11

Not on the map. Why?

Abstract (arXiv)

We study the impact of different loss functions on lesion segmentation from medical images. Although the Cross-Entropy (CE) loss is the most popular option when dealing with natural images, for biomedical image segmentation the soft Dice loss is often preferred due to its ability to handle imbalanced scenarios. On the other hand, the combination of both functions has also been successfully applied in this kind of tasks. A much less studied problem is the generalization ability of all these losses in the presence of Out-of-Distribution (OoD) data. This refers to samples appearing in test time that are drawn from a different distribution than training images. In our case, we train our models on images that always contain lesions, but in test time we also have lesion-free samples. We analyze the impact of the minimization of different loss functions on in-distribution performance, but also its ability to generalize to OoD data, via comprehensive experiments on polyp segmentation from endoscopic images and ulcer segmentation from diabetic feet images. Our findings are surprising: CE-Dice loss combinations that excel in segmenting in-distribution images have a poor performance when dealing with OoD data, which leads us to recommend the adoption of the CE loss for this kind of problems, due to its robustness and ability to generalize to OoD samples. Code associated to our experiments can be found at https://github.com/agaldran/lesion_losses_ood .

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 22 of its 27 references that are in the map. First posted on arXiv 13 Sep 2022.

Builds on

22 of 27 references.

References · 22

  1. 2016Feature Pyramid Networks for Object Detectioncited by 5,021
  2. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  3. 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,284
  4. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  5. 2017Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentationscited by 614
  6. 2019Confidence Calibration and Predictive Uncertainty Estimation for Deep Medical Image Segmentationcited by 162
  7. 2020Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Studycited by 146
  8. 2022Plex: Towards Reliability using Pretrained Large Model Extensionscited by 102
  9. 2021The Devil is in the Margin: Margin-based Label Smoothing for Network Calibrationcited by 91
  10. 2021Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentationcited by 88
  11. 2019Optimizing the Dice Score and Jaccard Index for Medical Image Segmentation: Theory & Practicecited by 71
  12. 2020Optimization for Medical Image Segmentation: Theory and Practice when evaluating with Dice Score or Jaccard Indexcited by 52
10 more
  1. 2021Spatially Varying Label Smoothing: Capturing Uncertainty from Expert Annotationscited by 31
  2. 2022Assessing generalisability of deep learning-based polyp detection and segmentation methods through a computer vision challengecited by 27
  3. 2020SoftSeg: Advantages of soft versus binary training for image segmentationcited by 26
  4. 2022FUSeg: The Foot Ulcer Segmentation Challengecited by 21
  5. 2020Post Training Uncertainty Calibration of Deep Networks For Medical Image Segmentationcited by 19
  6. 2022Translating Clinical Delineation of Diabetic Foot Ulcers into Machine Interpretable Segmentationcited by 19
  7. 2021Do We Really Need Dice? The Hidden Region-Size Biases of Segmentation Lossescited by 12
  8. 2021Double Encoder-Decoder Networks for Gastrointestinal Polyp Segmentationcited by 7
  9. 2021Distributional Gaussian Process Layers for Outlier Detection in Image Segmentationcited by 4
  10. 2022Test Time Transform Prediction for Open Set Histopathological Image Recognitioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 4; 2025: 5; 2026: 1.

11 papers.