Robust Object Detection with Multi-input Multi-output Faster R-CNN

Sebastian Cygert, Andrzej Czyzewski

TL;DR

This paper adapts the Multi-Input Multi-Output (MIMO) framework to the Faster R-CNN architecture to improve object detection robustness and uncertainty calibration. By training a single model to handle multiple independent inputs and outputs simultaneously, the authors achieve performance comparable to deep ensembles but with only a 0.5% increase in parameters and a modest 15.9% increase in inference time.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) are notoriously "brittle." While they perform exceptionally well on data similar to their training sets, their accuracy plummets when faced with out-of-distribution (OOD) scenarios—such as heavy rain, fog, or sensor noise. Furthermore, these models are often "overconfident," providing high-certainty predictions even when they are wrong.

The "gold standard" for fixing this is Deep Ensembling, where multiple models are trained and their predictions averaged. However, ensembles are computationally expensive, requiring $N$ times the memory and processing power. The authors seek a way to gain the robustness of an ensemble without the massive overhead, specifically for the complex task of object detection.

Methods

The authors implement a MIMO Faster R-CNN. Here is how they modified the standard architecture:

  1. Input Layer: The number of input channels is multiplied by $M$ (the ensemble size, usually $M=2$). This allows the network to take in multiple images at once.
  2. Shared Backbone: A single convolutional backbone processes these combined inputs. Because CNNs are often over-parameterized, the authors hypothesize that multiple "subnetworks" can coexist within this single backbone.
  3. Multi-Output Heads: The Region Proposal Network (RPN) and the final classification/regression layers are modified to output $M$ independent sets of results.
  4. Training Trick (The $p$ parameter): To prevent the network from being overwhelmed by trying to learn two completely different images at once, the authors introduce a hyperparameter $p$. With probability $p$, the network is fed the same image twice; otherwise, it gets two different images. This "relaxes" the independence and helps the model converge on difficult datasets.
  5. Inference Aggregation: At test time, the same image is fed into all $M$ input slots. The multiple outputs are then combined using Weighted Boxes Fusion (WBF), which averages the coordinates of overlapping boxes rather than just discarding them like standard Non-Maximum Suppression (NMS).

Datasets

The study utilizes three major benchmarks:

  • Cityscapes: Urban street scenes used for in-domain evaluation.
  • Cityscapes-C: A corrupted version of the dataset with 15 types of synthetic distortions (blur, noise, weather) to test OOD robustness.
  • Berkeley Deep Drive (BDD100K): Used to test natural distribution shifts (e.g., training on daytime images and testing on nighttime images).
  • MS-COCO: A large-scale general object detection dataset used to test the model in low-data regimes.

Key Insights and Ideas

  • MIMO as a Regularizer: Surprisingly, even when using only one of the $M$ output channels at test time, the MIMO-trained model outperforms a standard baseline. This suggests that the act of training on multiple inputs forces the backbone to learn more robust, generalized feature representations.
  • Efficiency vs. Diversity: Unlike Deep Ensembles, which have $N$ times the parameters, MIMO adds almost zero parameters (only 0.5% more for the modified input/output layers).
  • The Capacity Bottleneck: There is a limit to how many "subnetworks" you can cram into one backbone. While $M=2$ works great, higher values might require larger backbones to avoid a drop in accuracy.
  • Low-Data Hero: MIMO is particularly effective when training data is scarce. On MS-COCO, when using only 30% of the training data, the MIMO approach showed a significant accuracy boost over the baseline.

Key Results

  • Accuracy: On the Cityscapes dataset, MIMO ($M=2$) achieved an mAP (mean Average Precision) of 0.409, outperforming both the baseline (0.386) and a standard Deep Ensemble (0.406).
  • Robustness: In OOD settings (Cityscapes-C), MIMO achieved 0.172 mAP, significantly higher than the baseline's 0.106.
  • Calibration: MIMO significantly reduced the Expected Calibration Error (ECE), meaning its confidence scores were much more representative of its actual likelihood of being correct.
  • Overhead: Compared to a Deep Ensemble of two models (which doubles the cost), MIMO increased inference time by only 15.9% and parameters by a negligible 0.5%.

Limitations and Future Work

  • Scaling $M$: The authors primarily focused on $M=2$. Scaling to larger ensemble sizes (e.g., $M=5$) remains a challenge because the shared backbone eventually runs out of capacity to represent diverse features.
  • Hyperparameter Sensitivity: The $p$ parameter (probability of sampling the same image) requires tuning based on the complexity of the dataset. For BDD100K, $p$ had to be increased to 0.7 to see gains.
  • Future Directions: The authors suggest that this approach could be extended beyond object detection to other high-level tasks like semantic segmentation and depth estimation. They also note that optimizing hyperparameters specifically for MIMO (rather than using standard Faster R-CNN settings) could yield even better results.

Summary updated

BibTeX
@inproceedings{cygert2022robust,
  author = {Sebastian Cygert and Andrzej Czyzewski},
  title = {{Robust Object Detection with Multi-input Multi-output Faster R-CNN}},
  booktitle = {ICIAP},
  year = {2022},
  doi = {10.1007/978-3-031-06427-2\_48},
}
Figure