Spatial Self-Distillation for Object Detection with Inaccurate Bounding Boxes

Di Wu, Pengfei Chen, Xuehui Yu, Guorong Li, Zhenjun Han, Jianbin Jiao

TL;DR

Training object detectors usually requires expensive, pixel-perfect bounding boxes. SSD-Det (Spatial Self-Distillation based Object Detector) allows researchers to train high-performance detectors using noisy, inaccurate annotations by leveraging spatial cues to self-correct bounding boxes during training.

What Problem Does This Paper Address?

High-quality object detection datasets like MS-COCO are incredibly expensive to annotate. In specialized fields like medical imaging or agriculture, expert time is at a premium, often leading to "noisy" annotations—bounding boxes that are shifted, too large, or only cover parts of an object.

Existing methods typically use Multiple Instance Learning (MIL) to refine these boxes. MIL treats a set of candidate boxes (a "bag") as a single unit, trying to find the best one based on classification scores. However, relying solely on classification leads to three major headaches:

  1. Object Drift: The box "drifts" to a nearby object that also has a high classification score.
  2. Group Prediction: The box expands to merge multiple adjacent objects into one.
  3. Part Domination: The detector fixates on the most discriminative part of an object (like a cat's face) rather than the whole body.
The three failure modes of traditional MIL refinement: Drift, Grouping, and Part Domination.

Methods

The authors propose SSD-Det, which moves beyond simple classification by distilling spatial knowledge from the dataset itself. The framework consists of three main pillars:

  • Spatial Position Self-Distillation (SPSD): Instead of just sampling random boxes around a noisy annotation, SPSD uses a regressor to "pull" proposals toward the true object boundaries. It learns from the statistically reliable samples in the dataset to guide the noisier ones.
  • Spatial Identity Self-Distillation (SISD): To combat part domination, SISD predicts the Intersection over Union (IoU) between a proposal and the object. This "spatial confidence" is multiplied by the classification score, ensuring the model selects boxes that are both the right category and the right shape.
  • Interactive Structure: The model alternates between mining spatial cues (SPSD) and utilizing category information (MIL). This iterative refinement creates a high-quality "proposal bag" that significantly raises the performance ceiling.
Figure 3: The framework of SSD-Det. It contains basic box refiner, SPSD module, SISD module and a detector head. Neighborhood sampler is adopted around the inaccurate annotation. Then, SPSD module generates better proposal bags which are fed into basic box refiner for MIL training. The selected proposals are average weighted as the refined box and supervise the next SPSD training. Meanwhile, the SISD module predicts the IoU between proposals and the object, and the estimated IoU is multiplied by classification score for better proposal selection to generate the refined box. SPSD shares backbone with the detector.

Datasets

The researchers evaluated their method on two industry-standard benchmarks:

  • MS-COCO (2017): 118k training images across 80 categories.
  • PASCAL VOC 2007: A classic benchmark with 20 categories.

To test robustness, they synthetically corrupted these datasets with varying levels of "box noise" (shifting and scaling the ground truth) ranging from 10% to 40%.

Key Insights and Ideas

  • Reliability in Numbers: Even a noisy dataset contains many "low-noise" samples. SSD-Det treats these as "teachers" that provide a spatial prior for the rest of the data.
  • IoU as a Selection Criterion: Classification scores tell you what is in the box, but not how well the box fits. By predicting IoU (SISD), the model gains a sense of "objectness" that prevents it from settling for just a piece of the target.
  • Bag Quality Matters: Most MIL methods fail because their initial pool of candidate boxes is poor. SPSD significantly improves the mean and max IoU of the proposal bags, giving the selection mechanism a much better starting point.
Comparison of bag quality: SPSD II significantly shifts the IoU distribution toward higher quality proposals.

Key Results

SSD-Det achieves state-of-the-art results across the board, particularly under heavy noise:

  • Massive Gains: On MS-COCO with 40% noise, SSD-Det improved the Mean Average Precision (mAP) by over 10 points compared to previous best methods (like OA-MIL).
  • Error Reduction: Quantitative analysis showed that "Drift" errors dropped from 15.1% to just 1.5%, and "Part Domination" dropped from 2.8% to 1.0%.
  • Versatility: The refined boxes produced by SSD-Det can be used to train other advanced detectors like Sparse R-CNN and Deformable DETR, consistently improving their performance.
Figure 4: Qualitative detection results on COCO validation. Previous methods miss objects and face part prediction problems. Our method misses fewer objects, and the bounding box quality is better, especially for small or overlapped objects.

Limitations and Future Work

The authors noted a "diminishing returns" effect when stacking too many refinement stages. While two SPSD modules provided a significant boost, adding a third caused performance to drop slightly, likely due to the accumulation of small errors outweighing the benefits of further distillation.

Future work could explore more complex "teacher-student" dynamics or adaptive weighting schemes that can automatically determine which samples are reliable enough to serve as spatial anchors.

Summary updated

BibTeX
@misc{wu2023spatial,
  author = {Di Wu and Pengfei Chen and Xuehui Yu and Guorong Li and Zhenjun Han and Jianbin Jiao},
  title = {{Spatial Self-Distillation for Object Detection with Inaccurate Bounding Boxes}},
  year = {2023},
  eprint = {2307.12101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.12101},
}
Figure