Identifying Label Errors in Object Detection Datasets by Loss Inspection

Marius Schubert, Tobias Riedlinger, Karsten Kahl, Daniel Kröll, Sebastian Schoenen, Sinisa Segvic, Matthias Rottmann

Supervised object detection relies heavily on high-quality annotations. However, large-scale datasets often contain errors such as missing labels, incorrect classifications, and poor localization. This paper proposes "Loss Inspection," a method that utilizes a model's training loss to automatically identify these errors. By analyzing instance-wise loss in a two-stage detector, the approach effectively flags anomalies in both synthetic and established "gold standard" datasets like COCO and Pascal VOC.

The Challenge of Noisy Labels

The performance of object detection models is fundamentally limited by the quality of their training data. Human annotation is prone to several types of errors: missing objects (drops), incorrect category assignments (flips), inaccurate bounding boxes (shifts or localization inaccuracy), and labeling background noise as objects (spawns). While methods for handling noisy labels exist for image classification, the dual nature of object detection—requiring both classification and localization—presents unique challenges.

Common error types in object detection datasets: (a) Label Drop, (b) Class Flip, (c) Label Spawn, and (d) Localization Inaccuracy.

Methodology: Loss Inspection

The researchers introduce Loss Inspection, grounded in the intuition that a well-fitted model will exhibit higher training loss on incorrect labels than on correct ones. The method employs a two-stage detector (e.g., Faster R-CNN with a Swin Transformer backbone). For each instance, the total loss is calculated by summing the classification and regression losses from both the Region Proposal Network (RPN) and the Region of Interest (ROI) head.

Key technical highlights include:

  • Two-Stage Loss Summation: Capturing signals from both the proposal and refinement stages to identify different error types.
  • Error Simulation: A framework to inject controlled noise into clean datasets (like the semi-synthetic EMNIST-Det) to benchmark recovery rates accurately.
  • Theoretical Foundation: Mathematical proof demonstrating that cross-entropy loss naturally separates correct labels from misclassified ones under specific conditions.

Experimental Results and Insights

The method was evaluated across various datasets, including BDD100k, Pascal VOC 2007, MS-COCO, and Kitti.

Real-World Error Discovery

When applied to "clean" academic benchmarks, Loss Inspection identified numerous previously overlooked objects. In Pascal VOC, the top 200 error proposals achieved a 71.5% precision rate for finding missing labels. This demonstrates that even widely used datasets contain significant noise that can be recovered automatically.

Example of a "Label Drop" identified in a real-world dataset, where a boat remains unannotated despite being clearly visible.

Key Findings

  • Component Specificity: Different loss components target specific errors; RPN classification loss is most effective for finding "drops," while ROI classification loss excels at identifying "flips."
  • Model Capacity: Interestingly, smaller models (like Swin-T) often perform better at error detection than larger models (like ResNeSt101). Larger models have more capacity to overfit and "learn" the errors, making them harder to spot via loss inspection.
  • Industrial Applicability: On a proprietary car-part detection dataset, the method reached a 97% precision rate in identifying label errors.

Limitations and Future Work

While powerful, the method currently serves as a "human-in-the-loop" tool, generating high-confidence error proposals for manual review rather than fully autonomous cleaning. Future work may extend this logic to one-stage detectors and improve handling of "Don't Care" regions in specific domains like autonomous driving.

Conclusion

By repurposing training loss as a diagnostic signal rather than just an optimization target, this work provides a practical and theoretically grounded framework for dataset curation. This approach significantly reduces the manual effort required to maintain high-quality datasets, paving the way for more robust and reliable computer vision systems.

Summary updated

BibTeX
@inproceedings{schubert2024identifying,
  author = {Marius Schubert and Tobias Riedlinger and Karsten Kahl and Daniel Kröll and Sebastian Schoenen and Sinisa Segvic and Matthias Rottmann},
  title = {{Identifying Label Errors in Object Detection Datasets by Loss Inspection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00452},
}
Figure