Active Learning for Deep Detection Neural Networks

Hamed H. Aghdam, Abel Gonzalez-Garcia, Joost van de Weijer, Antonio M. López

TL;DR

This paper introduces a novel active learning framework specifically designed for deep object detection, where manual labeling costs are exceptionally high. By using a new pixel-level scoring method based on local prediction divergence and a smart spatial aggregation strategy, the authors demonstrate that they can significantly reduce the number of images needed to train accurate pedestrian detectors compared to random sampling or standard classification-based active learning metrics.

What Problem Does This Paper Address?

Training deep neural networks for object detection requires massive amounts of labeled data. Unlike image classification, where a human might take a second to categorize an image, drawing precise bounding boxes for object detection is slow and expensive—averaging 35 seconds per image for pedestrians.

The challenge is to select the most "informative" images from a large pool of unlabeled data to maximize the performance gain for every dollar (or second) spent on human labeling. While active learning is well-studied for classification, detection presents unique hurdles: informativeness must be assessed at the pixel level, and when dealing with video, the system must avoid selecting redundant, near-identical frames.

Methods

The authors propose an iterative active learning cycle (see Figure 1) consisting of scoring, selection, labeling, and finetuning.

Figure 1. Our method for active learning of object detectors. We start with a detector trained on a labeled dataset. Then, active learning cycles are repeated according to a preset budget. Each cycle starts by computing dense object prediction probabilities for each remaining unlabeled image. This is followed by computing pixel-level scores and aggregating them into a frame-level score. These scores are used to automatically select images for human labeling. Finally, the original detector is finetuned using the accumulated actively-labeled images.

1. Pixel-Level Scoring

The core innovation is a new scoring function. The authors hypothesize that if a network has "learned" a visual pattern well, its predictions should be spatially consistent. They measure the divergence between the entropy of mean predictions and the mean entropy of predictions in a local neighborhood. High divergence indicates the network is "confused" or inconsistent at that location, marking it as a candidate for labeling.

2. Spatial Aggregation

To convert pixel-level scores into a single image-level score, the authors divide the image into non-overlapping regions. They take the maximum score within each region and then average these maximums across the image. This "max-pooling" approach ensures that an image with a few highly informative regions (like a small, poorly-detected pedestrian) gets a high rank, whereas simple averaging might wash that signal away.

3. Temporal Selection Rules

For video data, the authors introduce temporal smoothing and selection rules. If a frame at time $t$ is selected for labeling, nearby frames within a window $\pm \Delta t$ are excluded from the current or future cycles to prevent wasting the labeling budget on redundant visual information.

Datasets

The study focuses on pedestrian detection using three major benchmarks:

  • CityPersons: Used as the initial labeled dataset to start the process.
  • Caltech Pedestrian: A video-based dataset used as the unlabeled pool.
  • BDD100K: A large-scale dataset of still images used to test the method's effectiveness outside of video sequences.

Key Insights and Ideas

  • Local Divergence vs. Global Entropy: Standard entropy scores (common in classification) perform poorly for detection. Measuring how much predictions "wobble" in a local spatial neighborhood is a much stronger signal for identifying false positives and false negatives.
  • The Importance of Max-Pooling: The ablation study revealed that max-pooling aggregation is critical. Averaging pixel scores fails because the "informative" parts of a detection image (the objects) usually occupy only a small fraction of the total pixels.
  • Budget Management: There is a trade-off between the number of images labeled per cycle ($b$) and the total time-to-completion. Labeling very few images per cycle is more "pure" active learning but requires many more time-consuming retraining iterations (see Figure 4).
Figure 4. Time-to-completion for different b and B.

Key Results

  • Superiority over Random: The proposed method consistently achieves lower miss rates than "guided random" selection across multiple cycles.
  • Outperforming Baselines: The new scoring function outperformed classical active learning metrics like standard Entropy and Monte Carlo (MC) Dropout (see Figure 5).
  • Efficiency in Finding Objects: The method is highly effective at finding "hard" samples. For example, after 14 cycles on the Caltech dataset, the proposed method selected frames containing over 5,700 pedestrian instances, compared to only ~2,700 instances found by random sampling.
Figure 5. Performance comparison (Miss Rate vs. FPPI) on the Caltech Pedestrian dataset.

Limitations and Future Work

The authors note that the performance gain on the BDD100K dataset was less dramatic than on Caltech. They attribute this to the high complexity of BDD100K, suggesting that their lightweight detector reached its capacity limit (high bias). Future work will involve applying this framework to higher-capacity networks, multi-class detection, and semantic segmentation tasks. They also aim to further refine how the system handles significant domain shifts between the initial training set and the unlabeled pool.

Summary updated

BibTeX
@inproceedings{aghdam2019active,
  author = {Hamed H. Aghdam and Abel Gonzalez-Garcia and Joost van de Weijer and Antonio M. López},
  title = {{Active Learning for Deep Detection Neural Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=5n7K0IjSRt},
}
Figure