Contextual Diversity for Active Learning

Sharat Agarwal, Himanshu Arora, Saket Anand, Chetan AroraECCV 2020

Abstract

Deep learning models are notoriously data-hungry, particularly for dense prediction tasks like semantic segmentation. Active Learning (AL) aims to reduce labeling costs by selecting the most informative samples for human annotation. We introduce Contextual Diversity (CD), a novel metric that identifies informative data by analyzing how a model confuses objects within their spatial surroundings. By prioritizing images with diverse "contextual confusion," our approach achieves state-of-the-art performance across segmentation, detection, and classification benchmarks while significantly reducing the required labeling effort.

Introduction: The Challenge of Spatial Context

Labeling data for tasks like semantic segmentation is expensive and time-consuming. Active Learning strategies typically select data based on either model uncertainty (e.g., high entropy) or global feature diversity. However, these approaches often overlook the role of spatial context. Modern Convolutional Neural Networks (CNNs) utilize large receptive fields, meaning an object's prediction is heavily influenced by its neighbors. A pedestrian adjacent to a fence presents a different challenge to a model than a pedestrian next to a bicycle. Existing AL methods fail to capture this "contextual confusion," leading to the selection of redundant or less informative samples.

Methods: Measuring Contextual Diversity

We propose Contextual Diversity (CD) as an information-theoretic measure to quantify the confusion a specific class experiences within its local environment.

The Core Metric

For an unlabeled image, the model generates "pseudo-labels." We calculate a mixture distribution of the model’s predictions for all regions predicted as a specific class. This captures which other classes are "bleeding into" the prediction due to spatial context.

Visualization of Contextual Diversity across different street scenes. The bar charts illustrate how the model's confusion for the 'Pedestrian' class varies depending on the surrounding context, such as fences (A), bicycles (B), or cars (C).

We use a symmetric KL-divergence to measure the distance between these confusion distributions across different images. If two images exhibit different types of contextual confusion, they are considered contextually diverse.

Implementation Frameworks

The CD measure is integrated into two distinct Active Learning pipelines:

  1. CDAL-CS (Core-Set): The standard Euclidean distance in the "Core-Set" algorithm is replaced with the CD measure, ensuring the selected subset covers the widest possible range of contextual scenarios.
  2. CDAL-RL (Reinforcement Learning): A Bi-LSTM policy network is trained using Reinforcement Learning, with the CD measure serving as a reward function. The agent learns to select frames that maximize contextual, visual, and semantic diversity.

Results and Discussion

The CD-based methods were evaluated on major benchmarks, including Cityscapes, BDD100K, PASCAL VOC, and CIFAR.

  • Semantic Segmentation: On Cityscapes, CDAL-RL achieved 57.2 mIoU, outperforming previous state-of-the-art techniques by 2.7 units. The method reached high accuracy while saving approximately 10% of the labeling effort.
  • Object Detection: On PASCAL VOC, CDAL-RL achieved 73.3 mAP using only 8,000 images, whereas previous methods required 10,000 images to reach the same performance level.
  • Scalability: Unlike many diversity-based methods, CD scales effectively to datasets with many classes, such as CIFAR-100, where it significantly outperformed competitors like VAAL.

Conclusion

Contextual Diversity bridges the gap between uncertainty and diversity in Active Learning. By treating the pattern of model confusion as a signature of the local environment, CD identifies the most informative samples for training robust models. This approach not only improves model performance but also offers a practical path toward reducing the immense human effort required for large-scale data annotation.

Summary updated

BibTeX
@inproceedings{agarwal2020contextual,
  author = {Sharat Agarwal and Himanshu Arora and Saket Anand and Chetan Arora},
  title = {{Contextual Diversity for Active Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58517-4\_9},
}
Figure