End-to-End Multi-Object Detection with a Regularized Mixture Model

Jaeyoung Yoo, Hojun Lee, Seunghyeon Seo, Inseop Chung, Nojun Kwak

TL;DR

D-RMM (Detection with a Regularized Mixture Model) simplifies end-to-end object detection by treating it as a probabilistic density estimation problem. By replacing complex bipartite matching and heuristic loss functions with a simple Negative Log-Likelihood (NLL) and a novel "Maximum Component Maximization" (MCM) loss, the authors achieve superior accuracy on MS COCO and produce significantly more reliable confidence scores.

The Problem: Heuristics and Unreliable Confidence

While "end-to-end" detectors like DETR and Sparse R-CNN successfully removed the need for hand-crafted post-processing (like Non-Maximum Suppression), they didn't truly escape heuristics. During training, these models rely on the Hungarian algorithm for bipartite matching—a discrete, hand-crafted process to pair predictions with ground truth objects.

This approach has two major downsides:

  1. Heuristic Complexity: The training objective is a weighted sum of multiple disparate losses (L1, GIoU, Cross-Entropy), requiring careful hyperparameter tuning.
  2. Unreliable Confidence: Because the matching is discrete and the losses are heuristically balanced, the "confidence score" a model outputs often doesn't correspond to its actual accuracy. A model might be 90% "confident" but only correct 60% of the time, making it difficult to trust in safety-critical applications.
Comparison of training pipelines between previous end-to-end methods and the proposed D-RMM.

D-RMM: Detection as Density Estimation

The authors propose D-RMM, which reformulates detection as estimating the probability density of ground truth boxes.

  • The Mixture Model: Instead of discrete predictions, the network outputs parameters for a mixture model. It uses Cauchy distributions to model bounding box coordinates (chosen for their "heavy tails," which handle outliers better than Gaussians) and Categorical distributions for class labels.
  • The Loss Function: Training is simplified to just two terms:
  • Negative Log-Likelihood (NLL): A standard probabilistic loss that encourages the model to place high probability density where ground truth objects actually exist.
  • Maximum Component Maximization (MCM) Loss: This is the key innovation. NLL alone might encourage multiple "components" (predictions) to crowd around a single object. MCM acts as a regularizer that forces the model to pick only one best component to represent each ground truth, effectively performing deduplication during the training process itself.
  • Architecture: D-RMM is designed as a "head" that can be plugged into existing iterative detectors like Sparse R-CNN or AdaMixer. It uses the "objectness score" (derived from normalized mixing coefficients) to rank predictions.

Key Insights

  • Modeling over Matching: The most profound shift is moving away from discrete "matching" and toward continuous "modeling." If you model the distribution correctly, the "best" prediction emerges naturally from the probability density.
  • Soft Deduplication: Unlike the Hungarian matcher, which is a "hard" assignment, the MCM loss provides a "soft" gradient-based way to ensure only one prediction is high-confidence for one object.
  • Efficiency in Training: Because it removes the Hungarian matching step, the time required to calculate the training loss is drastically reduced (from 37ms to 6.7ms per iteration in their tests).

Results and Calibration

The model was evaluated on the MS COCO 2017 dataset, using the standard 118K images for training and reporting results on the 5K validation and 20K test-dev sets.

  • Accuracy Boost: D-RMM consistently outperforms its baselines. When applied to Sparse R-CNN (ResNet-50), it improved Average Precision (AP) from 45.0 to 47.0. When paired with AdaMixer (Swin-Small), it reached 52.4 AP.
  • Superior Calibration: The authors measured the Expected Calibration Error (ECE). By using a mathematically grounded probabilistic framework, the model's output scores are "well-calibrated." This means if the model says it's 80% sure, it's actually correct roughly 80% of the time. D-RMM showed a much tighter correlation between confidence and accuracy compared to DETR or Sparse R-CNN, which tend to be overconfident.
Reliability diagrams comparing confidence calibration across DETR, Sparse R-CNN, Deformable-DETR, and D-RMM.
  • No NMS Required: Like other end-to-end models, D-RMM requires zero post-processing at inference time, maintaining high frames-per-second (FPS) comparable to its baselines.

Limitations and Future Work

  • Iterative Dependency: While D-RMM simplifies the loss and matching, it still relies on the multi-stage iterative architecture of Sparse R-CNN to refine predictions. A "single-pass" version of this mixture model remains an open challenge.
  • Hyperparameter $\beta$: Although it reduces heuristics, the model still introduces one balancing parameter ($\beta$) between the NLL and MCM losses, though the authors found the model wasn't overly sensitive to its exact value.
  • Future Directions: The authors suggest this probabilistic approach could be extended to other tasks like instance segmentation or even 3D object detection, where reliable confidence scores are even more critical.

Summary updated

BibTeX
@inproceedings{yoo2023end,
  author = {Jaeyoung Yoo and Hojun Lee and Seunghyeon Seo and Inseop Chung and Nojun Kwak},
  title = {{End-to-End Multi-Object Detection with a Regularized Mixture Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=fwT1ivw3Px},
}
Figure