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

Box-Level Class-Balanced Sampling For Active Object Detection

Jingyi Liao, Xun Xu, Chuan-Sheng Foo, Lile Cai

TL;DR

Box-level active learning for object detection saves significant annotation costs but suffers from severe class imbalance in both sample selection and pseudo-labeling. This paper introduces a class-balanced sampling strategy that dynamically favors minority classes alongside a task-aware soft pseudo-labeling method, achieving state-of-the-art detection performance with a fraction of the labeling budget.

What Problem Does This Paper Address?

Training deep object detectors is notoriously expensive because humans must draw precise bounding boxes around every object. Active Learning (AL) mitigates this by selecting only the most "informative" data for human review. While traditional AL operates at the image level (labeling every object in a chosen image), recent trends favor box-level AL, which selects individual, highly uncertain bounding boxes to label.

However, box-level AL introduces two major hurdles:

  1. Severe Class Imbalance: Early-stage models only recognize common classes (e.g., "person"). Consequently, the model's self-generated pseudo-labels and its active learning selection pool become heavily dominated by these majority classes, starving minority classes (e.g., "boat" or "bus") of training data.
  2. The Missing Label Problem: Unselected regions in an image are often treated as background. If an unlabeled region actually contains a foreground object, it injects incorrect supervision signals into the model.

Methods

The authors propose a two-pronged framework to address these issues:

Box-Level Class-Balanced AL ➔ Task-Aware Soft Pseudo Labelling ➔ Model Training
The pipeline of the proposed method.

1. Class-Balanced Sampling

To break the majority-class feedback loop, the authors modify the active learning selection criteria. Instead of sorting purely by uncertainty, they weight a box's uncertainty score inversely against the estimated class frequency:

$$a(b) = u(b)e^{-\frac{p(\hat{l}_b)}{\sigma}}$$

Where $u(b)$ is the box uncertainty, $p(\hat{l}_b)$ is the class probability distribution derived from pseudo-labels, and $\sigma$ controls the balancing intensity. This mathematically dampens the selection of over-represented classes and boosts rare ones.

2. Task-Aware Soft Pseudo-Labelling

Standard pseudo-labeling uses a single hard threshold (e.g., confidence $> 0.9$) to retain boxes, treating everything else as background. This paper introduces two innovations here:

  • Task Separation: Object detection requires both classification and localization. A box might have a highly confident class prediction but poor boundary alignment. The authors decouple this by using standard confidence scores to supervise the classification branch, and a multi-augmentation consistency score (IoU variance across image transformations) to supervise the localization branch.
  • Soft Weighting: Instead of discarding lower-confidence predictions, the authors assign continuous weights to them based on their scores. These boxes contribute proportionally to the loss function rather than being completely ignored or incorrectly penalized as background.

Datasets

The method was evaluated on the widely used PASCAL VOC0712 benchmark.

  • Unlabeled Pool: A super-set combining trainval'07 and trainval'12 (16,551 images).
  • Evaluation: Tested on test'07 (4,952 images).
  • Initial Seed: All models started with a shared pool of 1,000 randomly selected, fully annotated images.

Key Insights and Ideas

  • The Pseudo-Label Trap: The authors reveal that early-stage pseudo-labels exhibit an imbalance factor even higher than the underlying ground-truth dataset. Left unchecked, box-level AL actively makes the dataset more imbalanced over time.
  • Balancing via Selection, Not Loss: While typical class-imbalance fixes rely on loss re-weighting during training, fixing it at the data selection stage proves highly effective for active learning.
  • Soft Backgrounds Reduce Noise: Ambiguous, low-confidence boxes still contain valuable object presence signals. Soft-weighting them prevents the model from aggressively (and incorrectly) learning that they are background.
Class distribution comparison across different selection strategies.

Key Results

The authors evaluated their approach using both one-stage (RetinaNet) and two-stage (Faster R-CNN) detectors:

  • Low-Budget Performance: The proposed method shows its strongest gains when the annotation budget is tight. At the second selection batch (3k annotated boxes), it outperformed the next-best box-level method by 2.8% mAP on RetinaNet and 0.9% mAP on Faster R-CNN.
  • Ablation Impact: Switching from hard pseudo-labeling to the proposed task-aware soft pseudo-labeling yielded a massive performance leap of up to 3.8% mAP, validating the importance of preserving low-confidence object signals.

Limitations and Future Work

The paper does not explicitly detail limitations, but a few areas are apparent for future exploration:

  • Hyperparameter Sensitivity: The soft pseudo-labeling and class-balancing mechanisms rely on several thresholds ($\sigma, \tau_0, \tau_1$) which may require careful tuning when migrating to more complex datasets like MS COCO.
  • Scale and Complexity: While PASCAL VOC is a standard benchmark, evaluating the strategy on large-scale datasets with massive class counts (e.g., LVIS) would test the limits of the frequency estimation component.

Summary updated

BibTeX
@inproceedings{liao2024box,
  author = {Jingyi Liao and Xun Xu and Chuan-Sheng Foo and Lile Cai},
  title = {{Box-Level Class-Balanced Sampling For Active Object Detection}},
  booktitle = {ICIP},
  year = {2024},
  doi = {10.1109/icip51287.2024.10648281},
}
Figure