Abstract
Self-training has greatly facilitated domain adaptive semantic segmentation, which iteratively generates pseudo labels on unlabeled target data and retrains the network. However, realistic segmentation datasets are highly imbalanced, pseudo labels are typically biased to the majority classes and basically noisy, leading to an error-prone and suboptimal model. In this paper, we propose a simple region-based active learning approach for semantic segmentation under a domain shift, aiming to automatically query a small partition of image regions to be labeled while maximizing segmentation performance. Our algorithm, Region Impurity and Prediction Uncertainty (RIPU), introduces a new acquisition strategy characterizing the spatial adjacency of image regions along with the prediction confidence. We show that the proposed region-based selection strategy makes more efficient use of a limited budget than image-based or point-based counterparts. Further, we enforce local prediction consistency between a pixel and its nearest neighbors on a source image. Alongside, we develop a negative learning loss to make the features more discriminative. Extensive experiments demonstrate that our method only requires very few annotations to almost reach the supervised performance and substantially outperforms state-of-the-art methods. The code is available at https://github.com/BIT-DA/RIPU.
Introduction
Semantic segmentation—the task of assigning a category to every single pixel in an image—is a cornerstone of autonomous driving and robotics. However, training these models is a "data-hungry" process. Labeling a single image from a dataset like Cityscapes can take a human over 90 minutes. To avoid this, researchers use Domain Adaptation (DA), training models on synthetic data (like GTA V) and "adapting" them to real-world data. A popular technique is self-training, where the model generates its own "pseudo-labels" for the real-world data. However, these pseudo-labels are often noisy and biased toward common classes (like "road" or "building"), causing the model to ignore rare but critical objects like "riders" or "traffic lights."
Active Learning (AL) tries to solve this by asking humans to label only the most "informative" parts of the data. But existing AL methods for segmentation are often inefficient: they either ask for entire images (wasting budget on easy areas) or isolated points (ignoring the spatial context of the image).
The RIPU Framework
The authors propose RIPU, a region-based active learning approach that focuses on two key metrics to decide what to label:
- Region Impurity (P): Instead of looking at single pixels, the model looks at "k-square-neighbor" regions. If a region contains many different predicted classes, it’s likely an object boundary or a complex area. RIPU calculates the entropy of the class distribution within these regions to find "impure" (diverse) areas.
- Prediction Uncertainty (U): This measures how "unsure" the model is about its predictions, calculated via the average entropy of pixel-wise softmax outputs within a region.
The final Acquisition Function is a simple element-wise multiplication of these two scores ($A = P \odot U$). This ensures the model queries regions that are both spatially complex and difficult for the current model to classify.
The paper also introduces two clever training objectives:
- Negative Learning Loss: In the early stages of training, the model might not know what a pixel is, but it’s often very sure what it isn't. This loss penalizes the model for assigning high probability to classes it has already deemed highly unlikely.
- Local Consistency Regularization: To ensure smooth predictions, the model enforces that a pixel's prediction should be similar to its neighbors on the source (synthetic) domain.
Key Results and Insights
The authors evaluated RIPU on two standard "Synthetic-to-Real" benchmarks: GTAV → Cityscapes and SYNTHIA → Cityscapes.
- Near-Supervised Performance: On the GTAV → Cityscapes task, RIPU achieved a 69.6 mIoU (mean Intersection over Union) using only 2.2% of the target labels. For context, a model trained with 100% of the labels achieves 70.2 mIoU.
- Efficiency and Rare Class Mastery: Because of the "Impurity" metric, the model performed significantly better on rare classes like "bus," "train," and "motorcycle" compared to standard domain adaptation methods. By selecting regions, the model captures object boundaries more effectively, which are the most informative areas for learning shape and context.
Conclusion
RIPU demonstrates that intelligently selecting small, high-information image regions for manual annotation can significantly reduce the human effort required for domain adaptive semantic segmentation. By combining region impurity and prediction uncertainty, the framework achieves near-supervised performance with as little as 2.2% of the target pixels labeled, outperforming previous state-of-the-art methods.
Summary updated