BEA: Revisiting anchor-based object detection DNN using Budding Ensemble Architecture

Syed Sha Qutub, Neslihan Köse Cihangir, Rafael Rosales, Michael Paulitsch, Korbinian Hagn, Florian Geissler, Yang Peng, Gereon Hinz, Alois C. KnollBMVC 2023 · DOI

TL;DR

This paper introduces the Budding Ensemble Architecture (BEA), a novel, efficient ensemble method for object detection that improves both accuracy and confidence score calibration. By introducing a "budding" mechanism with duplicated detectors and a new "Tandem Loss," BEA enhances the model's ability to distinguish true positives from false positives and better estimate uncertainty, leading to improved performance, especially in out-of-distribution scenarios.

What Problem Does This Paper Address?

Object detection models are fundamental for many vision-based tasks, especially in autonomous systems. While they excel at identifying objects and their locations, current models often struggle with two critical issues:

  1. Uncalibrated Confidence Scores: Models might assign high confidence to incorrect detections (false positives) or low confidence to correct detections (true positives), leading to unreliable predictions. This makes it hard to trust the model's certainty.
  2. Out-of-Distribution (OOD) Detection: Models often perform poorly when encountering data that differs significantly from their training distribution, a crucial problem for real-world applications where unexpected scenarios are common.

Existing approaches like traditional ensembles or post-hoc calibration methods can be computationally expensive or have limitations in handling distributional shifts. This paper aims to address these challenges by proposing a more efficient architecture and novel loss functions that improve both the reliability of confidence scores and the ability to detect OOD data.

Methods

The core of the proposed solution is the Budding Ensemble Architecture (BEA). Instead of training multiple independent models as in traditional ensembles, BEA takes a single backbone network and duplicates its final detection layers, creating "tandem" detectors. This approach is inspired by the idea that similar architectures can learn similar representations, and by forcing these duplicated detectors to learn slightly differently, one can improve uncertainty estimation.

Key methodological contributions include:

  • Budding Ensemble Architecture (BEA): A reduced ensemble approach where a shared backbone is followed by duplicated detection layers (referred to as tandem layers). This is more computationally efficient than traditional ensembles.
  • Tandem Loss Functions: To encourage the tandem detectors to learn complementary information and improve uncertainty, two new loss functions are introduced:
  • Tandem-Quelling Loss ($L_{tq}$): Encourages disagreement between detectors on negative predictions (when no object is present).
  • Tandem-Aiding Loss ($L_{ta}$): Encourages agreement between detectors on positive predictions (when an object is present).
  • The combined Tandem Loss ($L_{tandem} = L_{tq} + L_{ta}$) operates on both regression (bounding box) and classification outputs.
  • Aggregation of Tandem Detectors: During inference, bounding box predictions from tandem detectors are averaged, and the maximum confidence scores are used. This process also helps in capturing OOD information.

Datasets

The authors evaluate their approach on the following datasets:

  • KITTI: Used for training and evaluation of object detection models. The dataset was split into training, validation, and testing sets.
  • CityPersons: Used as a near-out-of-distribution (near-OOD) dataset for evaluation.
  • BDD100K: Used as another near-out-of-distribution (near-OOD) dataset for evaluation.
  • COCO: Used as a far-out-of-distribution (far-OOD) dataset for evaluation.

Key Insights and Ideas

  • Duplicating Detectors, Not Entire Models: The key insight is that by duplicating only the detection heads of a single network, one can achieve ensemble-like benefits (improved calibration, robustness) with significantly less computational overhead compared to training multiple full models.
  • Forcing Disagreement for Uncertainty: The Tandem Loss functions are designed to actively encourage the duplicated detectors to disagree on negative predictions ($L_{tq}$) and agree on positive ones ($L_{ta}$). This controlled disagreement is crucial for learning better uncertainty estimates.
  • Tandem Loss Synergy: The paper demonstrates that using both $L_{ta}$ and $L_{tq}$ together is essential for optimal performance, leading to improved confidence scores for true positives and reduced scores for false positives.
  • BEA's OOD Advantage: BEA shows a remarkable ability to detect out-of-distribution samples, outperforming baseline models and traditional ensembles, likely due to its improved uncertainty estimation capabilities.

Key Results

  • Improved Accuracy: BEA on Base-YOLOv3 achieved a 6% increase in mAP and a 3.7% increase in AP50 compared to the base YOLOv3 model. BEA on Gaussian-YOLOv3 showed even larger improvements of 14% in mAPraw and 2.8% in AP50raw.
  • Enhanced Calibration: BEA significantly improved the AP50-based retention curve area by 40% compared to Base-YOLOv3, indicating better calibration quality.
  • Reduced Uncertainty Error (UE): BEA consistently reduced the UE across different base models, demonstrating its effectiveness in distinguishing correct from incorrect detections. For instance, BEA-Gaussian-YOLOv3 achieved approximately 4% UE.
  • Superior OOD Detection: BEA models achieved higher AUC-ROC scores on near-OOD (CityPersons, BDD100K) and far-OOD (COCO) datasets compared to their respective baselines and ensembles. For example, BEA-Gaussian-YOLOv3 achieved an AUC-ROC of 98.75% on BDD100K.
  • Efficiency: While BEA introduces duplicated layers, it is more efficient than traditional ensembles, especially when compared to methods that require training multiple full networks. BEA-SSD Arch2, an optimized version, showed only a 7.8% increase in parameters over Base-SSD.

Limitations and Future Work

  • Computational Overhead: Although more efficient than traditional ensembles, BEA does introduce some computational overhead due to the duplicated detectors. The paper notes that BEA has a lower FPS than Base-YOLOv3, but suggests that parallelizing tandem layers could mitigate this.
  • Architecture Split Point: The paper mentions that the point at which detectors are duplicated can impact BEA's efficiency and performance. Further investigation into optimizing this split point is suggested.
  • Uncertainty Separation: The current uncertainty measure does not explicitly separate spatial or localization uncertainty from other forms. Future work could explore more granular uncertainty estimation.
  • Broader Integration: The authors suggest integrating BEA into other vision-based models and exploring its effectiveness in more complex scenarios like object detection in crowded or cluttered scenes.

Summary updated

BibTeX
@misc{qutub2023bea,
  author = {Syed Sha Qutub and Neslihan Köse Cihangir and Rafael Rosales and Michael Paulitsch and Korbinian Hagn and Florian Geissler and Yang Peng and Gereon Hinz and Alois C. Knoll},
  title = {{BEA: Revisiting anchor-based object detection DNN using Budding Ensemble Architecture}},
  year = {2023},
  eprint = {2309.08036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.08036},
}
Figure