NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Active Learning with Context Sampling and One-vs-Rest Entropy for Semantic Segmentation

Fei Wu, Pablo Márquez-Neila, Hedyeh Rafi-Tarii, Raphael Sznitman · DOI

Abstract

Multi-class semantic segmentation remains a cornerstone challenge in computer vision. Yet, dataset creation remains excessively demanding in time and effort, especially for specialized domains. Active Learning (AL) mitigates this challenge by selecting data points for annotation strategically. However, existing patch-based AL methods often overlook boundary pixels critical information, essential for accurate segmentation. We present OREAL, a novel patch-based AL method designed for multi-class semantic segmentation. OREAL enhances boundary detection by employing maximum aggregation of pixel-wise uncertainty scores. Additionally, we introduce one-vs-rest entropy, a novel uncertainty score function that computes class-wise uncertainties while achieving implicit class balancing during dataset creation. Comprehensive experiments across diverse datasets and model architectures validate our hypothesis.

Introduction

Semantic segmentation—the task of assigning a class label to every pixel in an image—is fundamental to applications ranging from autonomous driving to robotic surgery. However, the high performance of modern deep learning models is predicated on massive amounts of labeled data. Manually annotating these images is a bottleneck; it is a slow, expensive, and labor-intensive process.

Active Learning (AL) offers a solution by iteratively selecting the most informative unlabeled samples for human annotation. Despite its promise, current patch-based AL methods for segmentation suffer from two primary limitations: the "Boundary Blurring Effect" and persistent class imbalance. OREAL (One-vs-Rest Entropy and Aggregation Learning) is proposed to address these flaws directly by prioritizing object boundaries and ensuring rare classes are adequately represented.

The OREAL Framework

OREAL introduces three technical innovations to improve the efficiency of the active learning loop:

1. Superpixel Sampling

Rather than using arbitrary rectangular patches, OREAL utilizes superpixels—clusters of pixels with similar visual characteristics. This ensures that the patches selected for annotation are semantically consistent, making the human labeling process more intuitive and accurate.

2. Maximum Aggregation

A critical insight of this work is the failure of "mean aggregation." In standard AL, the uncertainty of a patch is calculated as the average uncertainty of its constituent pixels. Because object boundaries are thin, their high-uncertainty signal is often diluted by the low uncertainty of surrounding interior pixels. OREAL replaces this with Maximum Aggregation. By selecting the maximum uncertainty value within a superpixel, the framework ensures that patches containing even a sliver of a difficult boundary are flagged for annotation.

Comparison of Mean vs. Max aggregation for uncertainty scoring. Max aggregation (right) highlights critical boundary regions that Mean aggregation (left) tends to dilute, allowing the model to focus on the most informative 'context' patches.

3. One-vs-Rest (OVR) Entropy

Standard entropy metrics measure general model confusion but fail to distinguish which classes are causing the confusion. OREAL introduces OVR entropy, which calculates uncertainty for each class individually against all others. This allows the system to track "class debt"—identifying which specific categories (e.g., pedestrians in a street scene or surgical tools in a medical video) the model is struggling to learn.

Experimental Evaluation

The researchers evaluated OREAL across four diverse benchmarks to demonstrate its robustness across different domains:

  • Cityscapes: Urban street scenes for autonomous driving.
  • Pascal VOC: General object and animal categories.
  • MONARCH & EndoVis: Specialized medical and surgical video datasets.
Sample images from the Cityscapes dataset, one of the primary benchmarks used to validate OREAL's performance in complex, multi-class urban environments.

Key Results

  • Performance Gains: OREAL consistently outperformed state-of-the-art methods like PixelBal and CBAL. On the Pascal VOC dataset, the model reached 95% of full-supervision performance using only a fraction of the total available data.
  • Architectural Agnosticism: The benefits of OREAL were observed across various backbones, including ResNet50, ResNet101, and modern Vision Transformers (ViT).
  • Boundary Precision: The shift from mean to max aggregation resulted in a significant jump in mean Intersection over Union (mIoU), confirming that sampling the "context" around objects is more valuable than sampling easy background pixels.

Conclusion

OREAL represents a significant step forward in making semantic segmentation more accessible for data-constrained domains. By rethinking how uncertainty is aggregated and measured, the framework effectively captures object boundaries and maintains class balance. Future work will explore the application of these principles to 3D medical imaging and temporal video segmentation, where the cost of annotation is even more prohibitive.

Summary updated

BibTeX
@misc{wu2024active,
  author = {Fei Wu and Pablo Márquez-Neila and Hedyeh Rafi-Tarii and Raphael Sznitman},
  title = {{Active Learning with Context Sampling and One-vs-Rest Entropy for Semantic Segmentation}},
  year = {2024},
  eprint = {2412.06470},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.06470},
}
Figure