Plug and Play Active Learning for Object Detection

Chenhongyi Yang, Lichao Huang, Elliot J. Crowley · DOI

Abstract

Annotating data for supervised learning is expensive and tedious, and we want to do as little of it as possible. To make the most of a given "annotation budget" we can turn to active learning (AL) which aims to identify the most informative samples in a dataset for annotation. Active learning algorithms are typically uncertainty-based or diversity-based. Both have seen success in image classification, but fall short when it comes to object detection. We hypothesise that this is because: (1) it is difficult to quantify uncertainty for object detection as it consists of both localisation and classification, where some classes are harder to localise, and others are harder to classify; (2) it is difficult to measure similarities for diversity-based AL when images contain different numbers of objects. We propose a two-stage active learning algorithm Plug and Play Active Learning (PPAL) that overcomes these difficulties. It consists of (1) Difficulty Calibrated Uncertainty Sampling, in which we used a category-wise difficulty coefficient that takes both classification and localisation into account to re-weight object uncertainties for uncertainty-based sampling; (2) Category Conditioned Matching Similarity to compute the similarities of multi-instance images as ensembles of their instance similarities. PPAL is highly generalisable because it makes no change to model architectures or detector training pipelines. We benchmark PPAL on the MS-COCO and Pascal VOC datasets using different detector architectures and show that our method outperforms the prior state-of-the-art.

Introduction

Training modern object detectors requires massive amounts of labeled data, but annotating bounding boxes and categories is incredibly expensive and time-consuming. Active Learning (AL) aims to solve this by identifying a small "budget" of the most useful images from a large unlabeled pool for humans to label.

However, existing AL methods for object detection face two major hurdles. First is Integration Friction: many top-performing AL methods require specialized detector architectures, such as adding extra sub-networks to predict loss, making them difficult to adapt to new detectors. Second is the Multi-Instance Challenge: unlike image classification, a single image in detection contains multiple objects. Standard AL struggles to quantify uncertainty across both classification and localization tasks simultaneously, and "global" image similarity measures often fail to capture the nuances of complex scenes containing many different objects.

Methodology: The PPAL Framework

PPAL introduces a two-stage "Plug and Play" pipeline that works with any off-the-shelf detector without requiring modifications to the model's architecture or training pipeline.

Overview of the PPAL framework, illustrating the two-stage sampling process (DCUS and CCMS) integrated into the active learning loop.

Stage 1: Difficulty Calibrated Uncertainty Sampling (DCUS)

Instead of relying solely on raw classification entropy, DCUS re-weights uncertainty based on a Category-wise Difficulty Coefficient. During training, the system tracks how well the model performs on each category using an Exponential Moving Average (EMA) of both classification probability and Intersection over Union (IoU). If the model consistently struggles to localize or classify specific categories (e.g., "bicycles"), images containing suspected instances of those categories receive a higher uncertainty score. This ensures the model focuses on its specific weaknesses in both localization and classification.

Stage 2: Category Conditioned Matching Similarity (CCMS)

To ensure the final selection is diverse and representative, PPAL filters high-uncertainty candidates using a new similarity metric. Traditional methods compare images by averaging their entire feature maps (global similarity), which often ignores small objects in favor of dominating backgrounds. PPAL’s CCMS instead matches individual objects of the same category between two images. By forcing the similarity check to happen at the object level, the diversity sampling becomes much more granular and effective. A modified k-means++ algorithm then uses these similarities to pick the final set of images for annotation.

Experimental Results

The authors benchmarked PPAL on two industry-standard datasets: MS COCO (80 categories) and Pascal VOC (20 categories). They tested the method across a diverse array of architectures, including RetinaNet, Faster R-CNN, FCOS, ATSS, DDOD, and the transformer-based Swin-Tiny.

Performance comparison of PPAL against state-of-the-art active learning methods on COCO and Pascal VOC datasets using RetinaNet and Faster R-CNN.

Key Insights

  • Superior Performance: On COCO, PPAL outperformed the previous state-of-the-art (MIAL) by 3.4 AP in early rounds. On Pascal VOC, it maintained a lead of roughly 2.8 mAP.
  • Architecture Agnostic: Unlike many competitors that only work on specific models, PPAL showed consistent gains across anchor-based, anchor-free, and transformer-based detectors.
  • Uncertainty vs. Diversity: The research found that uncertainty-based sampling is most critical in early training stages, while diversity-based sampling becomes essential in later rounds to prevent over-indexing on specific types of difficult images.
  • Semi-Supervised Success: When combined with "Soft Teacher" (a semi-supervised learning framework), PPAL further improved results, demonstrating its ability to mine informative samples even when labels are scarce.

Conclusion and Future Work

PPAL provides a robust, detector-agnostic framework for active learning in object detection. By incorporating localization difficulty into uncertainty scores and utilizing object-level similarity for diversity, it achieves state-of-the-art results.

However, calculating the CCMS for every pair in a large candidate pool can be computationally intensive compared to simple random sampling. Additionally, the method introduces hyperparameters (such as difficulty weights $\alpha$ and $\beta$) that may require tuning for radically different datasets, such as medical or satellite imagery. Future work may explore optimizing these computations and investigating the framework's resilience to imperfect human annotations.

Summary updated

BibTeX
@inproceedings{yang2022plug,
  author = {Chenhongyi Yang and Lichao Huang and Elliot J. Crowley},
  title = {{Plug and Play Active Learning for Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52733.2024.01684},
}
Figure