Calibrated Teacher for Sparsely Annotated Object Detection

Haohan Wang, Liang Liu, Boshen Zhang, Jiangning Zhang, Wuhao Zhang, Zhenye Gan, Yabiao Wang, Chengjie Wang, Haoqian Wang

Abstract

Training robust object detectors typically requires exhaustive annotation, a requirement often unmet in real-world scenarios where labels are missing or "sparse." This paper presents Calibrated Teacher, a framework designed for Sparsely Annotated Object Detection (SAOD). By calibrating a teacher network's confidence scores to align with its actual precision via online Platt scaling, the framework addresses the "moving target" problem inherent in pseudo-labeling. Coupled with a novel Focal IoU Weight (FIoU) loss to mitigate the impact of un-mined objects, the proposed method achieves state-of-the-art performance across multiple architectures, significantly narrowing the gap between sparse and full annotation performance.

Introduction

In standard object detection research, datasets are assumed to be perfectly labeled. However, in practical applications, labeling is expensive and prone to human error, leading to Sparsely Annotated Object Detection (SAOD). In SAOD, many objects of interest are simply not marked, causing standard training protocols to treat these unlabeled objects as background. This "missing label" problem introduces significant noise and suppresses the learning of valid features.

To address this, researchers often turn to pseudo-labeling, where a teacher model predicts labels for missing objects to guide a student model. However, this approach relies heavily on a confidence threshold. If the threshold is too high, the model learns slowly; if it is too low, the student learns from false positives. The core difficulty lies in the fact that confidence scores are not static; a score of 0.7 represents different levels of precision at different stages of training and across different architectures.

Methodology

The authors propose two primary innovations to make pseudo-labeling robust and architecture-agnostic: the Calibrated Teacher and Focal IoU Weight (FIoU).

1. Calibrated Teacher via Online Calibration

Instead of relying on raw confidence scores, the framework applies Online Calibration. It utilizes a logistic regression model (Platt scaling) to transform the teacher’s raw scores into values that represent the actual probability of being correct (precision).

Because SAOD assumes a lack of a clean validation set for calibration, the authors introduce an Online Queue system. The model identifies predictions that have high Intersection over Union (IoU) with existing ground truth as "positives" and uses them to update the calibrator dynamically during training. This allows the model to "self-calibrate" in real-time, ensuring that a single threshold (e.g., 0.7) remains meaningful throughout the entire training process.

2. Focal IoU Weight (FIoU)

Even with a calibrated teacher, some objects will inevitably be missed. Standard loss functions treat these un-mined objects as background, which confuses the detector. FIoU is a modified classification loss that down-weights negative samples that exhibit low IoU with existing labels. By reducing the penalty for missing an object that has not yet been pseudo-labeled, FIoU prevents the model from being overly penalized for "correct" detections that happen to lack a ground-truth label.

Experimental Setup

The framework was evaluated on the MS COCO-2017 dataset using several simulated sparse settings to mimic real-world neglect:

  • Random Deletion (Split-1, 2, & 3): Annotations were randomly deleted at rates of 30%, 50%, and 70%.
  • Difficulty-based Settings:
  • Easy: One annotation deleted per image.
  • Hard: Half of the annotations deleted.
  • Extreme: Only one annotation preserved per image.

Results and Discussion

The Calibrated Teacher consistently outperformed previous state-of-the-art methods, such as Co-mining and BRL, across various metrics and architectures.

Performance Gains

On RetinaNet with 50% missing labels (Split-1), the method achieved 39.3 mAP, a substantial improvement over the 32.8 mAP of previous methods. This performance closely approaches the "Full Annotation" baseline of 41.4 mAP, demonstrating the framework's ability to recover lost information.

Universality and Robustness

A key advantage of this method is its architecture-agnostic nature. The authors demonstrated improvements across RetinaNet, FCOS, and Faster R-CNN without requiring manual re-tuning of calibration hyperparameters. In "Extreme" settings (one label per image), the combination of Calibrated Teacher and FIoU provided a significant boost of up to +2.5 mAP over the baseline.

Conclusion and Future Work

The Calibrated Teacher framework effectively decouples the pseudo-labeling threshold from specific model architectures and training stages. By forcing confidence scores to match actual precision, it provides a "plug-and-play" solution for sparse datasets.

While the current implementation uses Platt scaling, the authors suggest that more advanced calibration strategies could further enhance performance. Future work may also address current limitations, such as the detection of extremely small objects or objects with high occlusion, where the model still faces challenges. The code for this project is available at https://github.com/Whileherham/CalibratedTeacher.

Summary updated

BibTeX
@inproceedings{wang2023calibrated,
  author = {Haohan Wang and Liang Liu and Boshen Zhang and Jiangning Zhang and Wuhao Zhang and Zhenye Gan and Yabiao Wang and Chengjie Wang and Haoqian Wang},
  title = {{Calibrated Teacher for Sparsely Annotated Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25349},
}
Figure