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 Rafii-Tari, Raphael Sznitman

TL;DR

This paper introduces OREAL, a novel active learning strategy for semantic segmentation that significantly improves annotation efficiency. By focusing on boundary pixels and implicitly balancing class representation, OREAL achieves better segmentation quality with fewer annotations compared to existing methods.

What Problem Does This Paper Address?

Creating large, accurately annotated datasets for semantic segmentation is a major bottleneck in computer vision. This is especially true for specialized domains where expert knowledge is required. Active Learning (AL) aims to alleviate this by intelligently selecting the most informative data points for human annotation. However, existing patch-based AL methods often struggle to effectively capture the crucial information at object boundaries, leading to suboptimal performance. Furthermore, class imbalance in the labeled data can negatively impact segmentation quality. This paper addresses these limitations by proposing a new AL strategy that prioritizes boundary regions and incorporates class balancing.

Methods

The core of this paper lies in two novel contributions to patch-based active learning for semantic segmentation:

  • Maximum Aggregation for Boundary Sampling: Instead of averaging pixel-wise uncertainty scores within a patch (mean aggregation), OREAL uses maximum aggregation. This simple change emphasizes pixels with high uncertainty, which are often found at object boundaries. By selecting patches that contain these high-uncertainty boundary pixels, the method effectively captures contextual information around objects, leading to improved segmentation.
  • One-vs-Rest Entropy for Class Balancing: To address class imbalance, OREAL introduces one-vs-rest (OVR) entropy. This metric calculates uncertainty for each class individually by treating it as a binary problem (class vs. everything else). This per-class uncertainty score is then aggregated using maximum aggregation for each superpixel. The annotation strategy then selects superpixels with the highest OVR entropy for each class, implicitly promoting the labeling of underrepresented classes.

The overall OREAL strategy combines these two components: it uses maximum aggregation to identify informative patches (especially those near boundaries) and OVR entropy to ensure that the selection process also considers class balance.

Datasets

The authors evaluated their approach on four diverse datasets:

  • Cityscapes: Urban scene dataset with 19 categories.
  • Pascal VOC: Everyday scene dataset with 20 foreground classes.
  • MONARCH: Robot-assisted bronchoscopy system videos for medical imaging.
  • EndoVis: Surgery videos featuring segmentation masks on surgical tools and human body organs.

They used standard training/validation/testing splits for Cityscapes and Pascal VOC, and created custom splits for MONARCH and EndoVis.

Key Insights and Ideas

  • Boundaries are Key: The paper strongly validates the intuition that object boundaries are the most challenging and informative regions for semantic segmentation. Focusing AL on these areas, even through a simple aggregation change, yields significant improvements.
  • Max Aggregation is More Than Just a Trick: The maximum aggregation strategy isn't just about picking the highest uncertainty pixel. It effectively "pulls" context around the object of interest by selecting background superpixels that contain high-uncertainty boundary pixels. This is a crucial insight for improving segmentation quality.
  • Implicit Class Balancing Works: The one-vs-rest entropy elegantly tackles class imbalance without explicit re-weighting or complex balancing mechanisms. By framing uncertainty per class, it naturally favors underrepresented classes when selecting samples.
  • Superpixels are a Good Choice: The paper continues to leverage superpixels for patch definition, reinforcing their utility in simplifying annotation (one click per superpixel) and their effectiveness in capturing object boundaries.

Key Results

  • Improved Segmentation Quality: OREAL, particularly when using maximum aggregation, consistently outperformed other AL strategies across multiple datasets and backbones (ResNet50, ResNet101, and Vision Transformer). For example, on Pascal VOC, using max aggregation led to an average improvement of 1.63 mIoU across all AL iterations compared to mean aggregation.
  • Competitive Performance: OREAL achieved top AuALC scores on Cityscapes and Pascal VOC with both ResNet101 and ViT backbones, demonstrating its effectiveness.
  • Contextual Sampling Benefits: Qualitative results (Figure 5) show that max aggregation selects more regions around object boundaries, creating valuable context that improves segmentation.
  • Efficient Annotation: While not explicitly quantified in terms of "clicks saved," the paper's focus on AL inherently aims to reduce annotation effort. The results suggest that OREAL achieves better performance with fewer annotations compared to baselines.

Limitations and Future Work

  • MONARCH Dataset Anomaly: The paper notes that OREAL was outperformed by other baselines on the MONARCH dataset. They attribute this to the dataset's simplicity (surgery tools always in the same position, few classes per image), which might make other AL strategies more effective in this specific scenario.
  • Weak Labeling Exploration: The paper briefly explores using a weak labeling scheme instead of the dominant labeling scheme for superpixels, showing promising results and suggesting this as a future direction.
  • Generalizability: While tested on diverse datasets, further exploration on more specialized or complex domains could reveal additional insights.

The authors' work provides a strong foundation for more efficient and effective active learning strategies in semantic segmentation, particularly by emphasizing the importance of context and class balance.

Summary updated

BibTeX
@misc{wu2024active,
  author = {Fei Wu and Pablo Márquez-Neila and Hedyeh Rafii-Tari 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