🤖 AI Summary
Random dataset splitting in image segmentation often induces label distribution shifts in the test set, compromising evaluation reliability and model generalization. To address stratification challenges arising from multi-label annotations, strong spatial correlations, and severe class imbalance, we propose two novel stratified splitting methods: Iterative Pixel Stratification (IPS) and Wasserstein-Driven Evolutionary Stratification (WDES). WDES is the first approach to embed the Wasserstein distance into a genetic algorithm framework to globally optimize pixel-level distribution alignment between training and test sets; it further introduces a statistical heterogeneity metric to quantify stratification quality. Extensive validation across diverse domains—including street-scene, medical, and satellite imagery—demonstrates that WDES significantly reduces model performance variance (average reduction of 32.7%) and enhances evaluation robustness under few-shot and long-tailed settings. Our work establishes a verifiable, generalizable theoretical and practical paradigm for data partitioning in semantic segmentation.
📝 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.