Abstract
Reliable uncertainty quantification is essential for deploying deep learning models in safety-critical domains such as autonomous driving and medical imaging. While Deep Ensembles provide high-quality uncertainty estimates, their computational cost is often prohibitive for real-time object detection. This paper presents EfficientEnsemble, a novel architecture for Faster R-CNN that achieves the benefits of ensembling with significantly reduced overhead. By sharing the backbone and Region Proposal Network (RPN) across ensemble members and only duplicating the final prediction heads, EfficientEnsemble achieves a 40% reduction in inference time while maintaining the accuracy and calibration of full ensembles.
Introduction
Deep neural networks are frequently criticized for being "black boxes" that exhibit overconfidence, even when making incorrect predictions. In applications where a false positive or negative can have dire consequences, it is imperative that a model provides a measure of its own predictive uncertainty.
The current gold standard for uncertainty estimation is the Deep Ensemble approach, which involves training multiple independent models and aggregating their outputs. However, for complex tasks like object detection, running an ensemble of five or more detectors is computationally expensive, often exceeding the latency requirements of real-time systems. This study addresses this bottleneck by proposing a more efficient ensembling strategy tailored to two-stage detectors.
Methodology: The EfficientEnsemble Architecture
The authors focus on the Faster R-CNN framework, a popular two-stage object detector. Standard Faster R-CNN consists of a feature-extracting backbone, a Region Proposal Network (RPN) that identifies potential object locations, and a Fast R-CNN head that performs final classification and bounding box refinement.
The proposed EfficientEnsemble architecture optimizes the ensembling process by identifying redundant computations. Instead of duplicating the entire network, the model shares a single backbone and a single RPN across all ensemble members. Diversity is introduced by training multiple independent Fast R-CNN prediction heads. This design is based on the insight that the variance required for effective uncertainty quantification primarily stems from the final classification and regression stages rather than the initial feature extraction or proposal generation.
In contrast, a traditional Deep Ensemble requires running multiple complete instances of the detector, which scales the computational cost linearly with the number of ensemble members. This traditional approach is illustrated below for comparison.
Decision Fusion and Calibration
A critical component of any ensemble is the method used to aggregate predictions from multiple heads. The authors evaluate three "Decision Fusion" strategies:
- Non-Maximum Suppression (NMS): The standard greedy approach that selects the highest-confidence box and removes overlapping candidates.
- Soft NMS: A variation that reduces the confidence of overlapping boxes instead of removing them entirely.
- Weighted Boxes Fusion (WBF): A more sophisticated technique that calculates a weighted average of the coordinates of overlapping boxes based on their confidence scores.
The study finds that WBF is particularly effective for calibration. Unlike NMS, which discards information from "disagreeing" ensemble members, WBF leverages the consensus of the ensemble to smooth predictions, resulting in confidence scores that more accurately reflect the model's true precision.
Experimental Results
The EfficientEnsemble was benchmarked against traditional ensembles and other uncertainty methods (like MC Dropout and Gaussian YOLOv3) across three diverse datasets: MOT17Det (pedestrians), KITTI (autonomous driving), and BDD100K (large-scale urban environments).
Performance and Efficiency
The primary advantage of EfficientEnsemble is its efficiency. It achieves approximately a 40% speedup in inference time compared to traditional deep ensembles. Despite this reduction in complexity, the model maintains parity in both Average Precision (AP) and Expected Calibration Error (ECE).
Comparative Analysis
- vs. MC Dropout: EfficientEnsemble significantly outperformed Monte Carlo Dropout, which often produces less reliable uncertainty estimates in object detection tasks.
- vs. Gaussian YOLOv3: While Gaussian YOLOv3 offers competitive calibration, EfficientEnsemble provided superior detection accuracy (AP), making it a more robust choice for high-performance applications.
Conclusion
EfficientEnsemble demonstrates that ensembling the second stage of a two-stage detector is sufficient to capture high-quality uncertainty information. By combining this architectural efficiency with Weighted Boxes Fusion, the authors provide a practical pathway for deploying well-calibrated, ensemble-based object detectors in real-time, safety-critical environments. Future research may extend this "partial ensembling" principle to one-stage detectors or transformer-based architectures like DETR.
Summary updated