Lune

NeurIPS2025Top-tier venue

Stratify or Die: Rethinking Data Splits in Image Segmentation

Naga Venkata Sai Jitin Jami, Thomas Altstidl, Jonas Mueller, Jindong Li, Dario Zanca, Björn M. Eskofier, Heike Leutheuser

Abstract

Random splitting of datasets in image segmentation often leads to unrepresentative test sets, resulting in biased evaluations and poor model generalization. While stratified sampling has proven effective for addressing label distribution imbalance in classification tasks, extending these ideas to segmentation remains challenging due to the multi-label structure and class imbalance typically present in such data. Building on existing stratification concepts, we introduce Iterative Pixel Stratification (IPS), a straightforward, label-aware sampling method tailored for segmentation tasks. Additionally, we present Wasserstein-Driven Evolutionary Stratification (WDES), a novel genetic algorithm designed to minimize the Wasserstein distance, thereby optimizing the similarity of label distributions across dataset splits. We prove that WDES is globally optimal given enough generations. Using newly proposed statistical heterogeneity metrics, we evaluate both methods against random sampling and find that WDES consistently produces more representative splits. Applying WDES across diverse segmentation tasks, including street scenes, medical imaging, and satellite imagery, leads to lower performance variance and improved model evaluation. Our results also highlight the particular value of WDES in handling small, imbalanced, and low-diversity datasets, where conventional splitting strategies are most prone to bias.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Improving Semi-Supervised Semantic Segmentation with Sliced-Wasserstein Feature Alignment and UniformityChen-Yi Lu, Kasra Derakhshandeh, Somali ChaterjiCVPR 2025
  2. A Unified Loss for Handling Inter-Class and Intra-Class Imbalance in Medical Image SegmentationFeilong Xu, Feiyang Yang, Xiongfei Li, Xiaoli ZhangAAAI 2025 · 6 citations
  3. PRIME: Prototype-Driven Class Incremental Learning for Medical Image SegmentationShengqian Zhu, Chengrong Yu, Wenbo Qi, Jiafei Wu et al.ACM MM 2025 · 1 citation
  4. Adaptively Weighted Data Augmentation Consistency Regularization for Robust Optimization under Concept ShiftYijun Dong, Yuege Xie, Rachel A. WardICML 2023 · 2 citations
  5. March on Data Imperfections: Domain Division and Domain Generalization for Semantic SegmentationHai Xu, Hongtao Xie, Zheng-Jun Zha, Sun'ao Liu et al.ACM MM 2020 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines