arXiv:2608.25710cs.CVAug 2026

Manuscript Offprint

arXiv:2608.25710

Difficulty-Aware Sample Allocation for Adaptive Data Augmentation in Semantic Segmentation

Olasimbo Ayodeji Arigbabu, Abimbola Ismail Arigbabu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Data augmentation is a standard component of modern semantic segmentation pipelines, but most augmentation techniques allocate transformations uniformly across training samples or adapt to a single difficulty signal such as loss. This ignores the fact that segmentation difficulty is multi-factorial, since ambiguous predictions, persistent optimization errors, rare classes, and complex object boundaries can each make a sample informative in different ways. This paper introduces Difficulty-Aware Sample Allocation (DASA), an architecture-agnostic framework that assigns stronger augmentation to samples estimated to be more difficult. DASA combines prediction ambiguity, training loss, class rarity, and boundary complexity into a normalized difficulty score, then maps that score to sample-specific augmentation strength during iterative training. Experiments on Oxford-IIIT Pet and binary Pascal VOC segmentation with U-Net, DeepLabV3, and SegFormer-B0 show that DASA improves over standard training and is competitive with or stronger than single-signal adaptive baselines. On Oxford-IIIT Pet, DASA improves DeepLabV3 from 0.633 to 0.740 mIoU. On binary Pascal VOC, DASA obtains the best foreground IoU for all three evaluated architectures. These results attest to the value of multi-factor difficulty estimation as a practical mechanism for directing augmentation where it is most useful.

Keywords: semantic segmentation, data augmentation, adaptive sampling, curriculum learning, class imbalance, boundary complexity

1 Introduction

Semantic segmentation models have achieved strong performance across medical imaging, autonomous driving, robotics, remote sensing, and general visual recognition. Unlike image classification, segmentation requires a model to assign a semantic label to every pixel. This makes the task sensitive not only to object presence, but also to boundary precision, local texture, object scale, occlusion, and the spatial relationship between foreground and background. Architectures such as U-Net [1], DeepLabV3 [2], and transformer-based models such as SegFormer [3] demonstrate that dense prediction can benefit from both convolutional and attention-based representations. Despite these advances, segmentation performance remains highly dependent on training data diversity and on the model's ability to generalize to changes in appearance, scale, pose, and shape.

Data augmentation is one of the most widely used tools for improving generalization [4, 5]. Geometric transformations, photometric perturbations, random crops, erasing strategies, and mixing-based methods expose the model to a broader effective training distribution [6–8]. For segmentation, augmentation must also preserve the alignment between an image and its label map. Segmentation-specific augmentation methods such as ClassMix and Copy-Paste reflect this need to modify images while respecting semantic or instance structure [9, 10]. A transformation that is useful for classification may be harmful for segmentation if it weakens boundary correspondence, removes small structures, or produces unrealistic object geometry. Thus, augmentation in segmentation is not only a question of increasing data variation. It is also a question of deciding how much perturbation a labeled sample can usefully support.

In most pipelines, augmentation is applied uniformly or according to a fixed schedule. Automated and simplified policy methods such as AutoAugment and RandAugment improve policy selection, but the resulting policies are still typically applied at the dataset level [8, 11]. Once the augmentation policy is chosen, every image is exposed to approximately the same distribution of transformations. This design is simple and often effective, but it hides an important assumption. It assumes that all samples benefit equally from the same augmentation budget. In practice, segmentation datasets are rarely homogeneous. Images differ in object size, pose, class frequency, annotation structure, boundary density, and current model uncertainty. Treating these images identically can make augmentation inefficient, and this assumption is often weak for segmentation.

Some images contain large, centered objects with simple boundaries; others contain small objects, rare classes, occlusions, clutter, fine structures, or highly irregular contours. A uniform augmentation policy can waste effort on easy examples while underserving samples that are more informative for model improvement. Existing adaptive strategies, including hard example mining and curriculum learning, partially address this issue by emphasizing difficult samples [12, 13]. Many such methods, however, rely on a single difficulty indicator such as loss or confidence, whereas segmentation difficulty is richer than any single signal.

The practical consequence is that augmentation should be treated as a resource to be assigned, not only as a fixed preprocessing step. This is especially important in dense prediction, where the usefulness of a sample may depend on model uncertainty, persistent pixel-wise errors, semantic imbalance, and shape structure at the same time. A sample may be easy according to loss but still contain a rare class. Another sample may contain common labels but remain difficult because its boundary occupies many fine structures. These cases motivate an allocation mechanism that combines complementary evidence rather than selecting one signal as sufficient.

This perspective differs from choosing a stronger global policy. Prior augmentation-policy methods show that stronger or better selected transformations can improve generalization and robustness [11,14,15][11, 14, 15]. However, a global increase in augmentation can also degrade performance when easy or already well-represented samples are over-perturbed. Conversely, weak augmentation can preserve label fidelity but may fail to challenge samples that contain rare objects, uncertain predictions, or complex contours. The central problem addressed in this paper is therefore sample allocation. Given a fixed augmentation family, the method should decide which samples should receive stronger transformations and which samples should remain closer to their original form.

This paper proposes Difficulty-Aware Sample Allocation (DASA), a simple adaptive augmentation framework for semantic segmentation. DASA estimates sample difficulty using four complementary signals, namely prediction ambiguity, optimization difficulty, class rarity, and boundary complexity. The resulting difficulty score controls the strength of augmentation applied to each sample during training. The approach does not require changes to the segmentation architecture and can be used with convolutional or transformer-based models.

The main contributions are as follows.

  • A multi-factor difficulty estimator for semantic segmentation that combines ambiguity, loss, rarity, and boundary structure.

  • A sample-level augmentation allocation rule that maps normalized difficulty to augmentation strength.

  • An architecture-agnostic implementation evaluated with U-Net, DeepLabV3, and SegFormer-B0.

  • A controlled empirical study on Oxford-IIIT Pet and binary Pascal VOC with single-factor ablations that separate the effect of loss, rarity, and boundary information.

References (27)