On the Optimal Combination of Cross-Entropy and Soft Dice Losses for Lesion Segmentation with Out-of-Distribution Robustness
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
- 2016Feature Pyramid Networks for Object Detectioncited by 5,021
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,284
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2017Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentationscited by 614
- 2019Confidence Calibration and Predictive Uncertainty Estimation for Deep Medical Image Segmentationcited by 162
- 2020Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Studycited by 146
- 2022Plex: Towards Reliability using Pretrained Large Model Extensionscited by 102
- 2021The Devil is in the Margin: Margin-based Label Smoothing for Network Calibrationcited by 91
- 2021Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentationcited by 88
- 2019Optimizing the Dice Score and Jaccard Index for Medical Image Segmentation: Theory & Practicecited by 71
- 2020Optimization for Medical Image Segmentation: Theory and Practice when evaluating with Dice Score or Jaccard Indexcited by 52
10 more
- 2021Spatially Varying Label Smoothing: Capturing Uncertainty from Expert Annotationscited by 31
- 2022Assessing generalisability of deep learning-based polyp detection and segmentation methods through a computer vision challengecited by 27
- 2020SoftSeg: Advantages of soft versus binary training for image segmentationcited by 26
- 2022FUSeg: The Foot Ulcer Segmentation Challengecited by 21
- 2020Post Training Uncertainty Calibration of Deep Networks For Medical Image Segmentationcited by 19
- 2022Translating Clinical Delineation of Diabetic Foot Ulcers into Machine Interpretable Segmentationcited by 19
- 2021Do We Really Need Dice? The Hidden Region-Size Biases of Segmentation Lossescited by 12
- 2021Double Encoder-Decoder Networks for Gastrointestinal Polyp Segmentationcited by 7
- 2021Distributional Gaussian Process Layers for Outlier Detection in Image Segmentationcited by 4
- 2022Test Time Transform Prediction for Open Set Histopathological Image Recognitioncited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 5; 2026: 1.
11 papers.
- 2024A Flexible 2.5D Medical Image Segmentation Approach with In-Slice and Cross-Slice Attentioncited by 9
- 2023StenUNet: Automatic Stenosis Detection from X-ray Coronary Angiographycited by 8
- 2024Benchmarking Retinal Blood Vessel Segmentation Models for Cross-Dataset and Cross-Disease Generalizationcited by 2
- 2024Efficient Generative Adversarial Networks for Color Document Image Enhancement and Binarization Using Multi-scale Feature Extractioncited by 2
- 2025MFE-GAN: Efficient GAN-based Framework for Document Image Enhancement and Binarization with Multi-scale Feature Extractioncited by 2
- 2025Wildfire spread forecasting with Deep Learningcited by 1
- 2025PCA for Enhanced Cross-Dataset Generalizability in Breast Ultrasound Tumor Segmentationcited by 1
- 2024Learning Pore-scale Multi-phase Flow from Experimental Data with Graph Neural Networkcited by 0
- 2025Unified Multimodal Coherent Field: Synchronous Semantic-Spatial-Vision Fusion for Brain Tumor Segmentationcited by 0
- 2025AI for Mycetoma Diagnosis in Histopathological Images: The MICCAI 2024 Challengecited by 0
- 2026Learning a Sampling-Free Variational DNN Plugin from Tiny Training Sets to Refine OOD Segmentation With Uncertainty Estimationcited by 0
- 2026Learning a Sampling-Free Variational DNN Plugin from Tiny Training Sets to Refine OOD Segmentation With Uncertainty Estimation14 Jun 2026
- 2025AI for Mycetoma Diagnosis in Histopathological Images: The MICCAI 2024 Challenge25 Dec 2025
- 2025MFE-GAN: Efficient GAN-based Framework for Document Image Enhancement and Binarization with Multi-scale Feature Extraction16 Dec 2025
- 2025Unified Multimodal Coherent Field: Synchronous Semantic-Spatial-Vision Fusion for Brain Tumor Segmentation22 Sep 2025
- 2025PCA for Enhanced Cross-Dataset Generalizability in Breast Ultrasound Tumor Segmentation29 May 2025
- 2025Wildfire spread forecasting with Deep Learning23 May 2025
- 2024Learning Pore-scale Multi-phase Flow from Experimental Data with Graph Neural Network21 Nov 2024
- 2024Efficient Generative Adversarial Networks for Color Document Image Enhancement and Binarization Using Multi-scale Feature Extraction5 Jul 2024
- 2024Benchmarking Retinal Blood Vessel Segmentation Models for Cross-Dataset and Cross-Disease Generalization21 Jun 2024
- 2024A Flexible 2.5D Medical Image Segmentation Approach with In-Slice and Cross-Slice Attention30 Apr 2024
- 2023StenUNet: Automatic Stenosis Detection from X-ray Coronary Angiography23 Oct 2023