Skip to main content
QUICK REVIEW

[Paper Review] Unbalanced Optimal Transport: A Unified Framework for Object Detection

Henri De Plaen, Pierre-François De Plaen|arXiv (Cornell University)|Jul 5, 2023
Advanced Neural Network ApplicationsComputer Science3 citations
TL;DR

This paper proposes Unbalanced Optimal Transport (UOT) as a unified framework for object detection matching, subsuming traditional strategies like nearest-neighbor, Hungarian matching, and one-to-many matching. By introducing learnable constraints and entropic regularization, UOT enables faster, more stable training with state-of-the-art AP and AR on both COCO and a synthetic Color Boxes dataset, while being highly parallelizable on GPU.

ABSTRACT

During training, supervised object detection tries to correctly match the predicted bounding boxes and associated classification scores to the ground truth. This is essential to determine which predictions are to be pushed towards which solutions, or to be discarded. Popular matching strategies include matching to the closest ground truth box (mostly used in combination with anchors), or matching via the Hungarian algorithm (mostly used in anchor-free methods). Each of these strategies comes with its own properties, underlying losses, and heuristics. We show how Unbalanced Optimal Transport unifies these different approaches and opens a whole continuum of methods in between. This allows for a finer selection of the desired properties. Experimentally, we show that training an object detection model with Unbalanced Optimal Transport is able to reach the state-of-the-art both in terms of Average Precision and Average Recall as well as to provide a faster initial convergence. The approach is well suited for GPU implementation, which proves to be an advantage for large-scale models.

Motivation & Objective

  • To unify disparate object detection matching strategies—such as nearest-neighbor, Hungarian matching, and one-to-many matching—into a single, coherent framework.
  • To address the limitations of existing methods, including redundancy, non-uniqueness, slow convergence, and poor GPU parallelization.
  • To enable fine-grained control over matching behavior via tunable constraints on prediction and ground truth masses.
  • To improve training convergence speed and final performance through regularization in the UOT formulation.
  • To provide a scalable, GPU-friendly implementation of UOT for large-scale object detection models.

Proposed method

  • Formulates object detection matching as an Unbalanced Optimal Transport (UOT) problem, where prediction-to-ground-truth assignment is derived from minimizing a regularized transport cost.
  • Introduces two key constraints: a mass constraint on predictions (controlled by τ₁) and a mass constraint on ground truth (controlled by τ₂), allowing interpolation between different matching regimes.
  • Employs entropic regularization (ε) to enable fast, differentiable, and GPU-parallelizable Sinkhorn iterations for scalable inference.
  • Uses 1 - GIoU as the cost matrix between predictions and ground truth boxes, with a background cost (c∅) set to 0.8.
  • Applies the UOT solution as a differentiable differentiable matching layer in the training pipeline, replacing hand-crafted matching heuristics.
  • Uses a fixed number of Sinkhorn iterations (e.g., 10–20) in practice, as convergence is rapid and further iterations yield diminishing returns.
(a) Image №163 from the VOC training dataset. The ground truth boxes are colored, and the predictions are outlined in black.
(a) Image №163 from the VOC training dataset. The ground truth boxes are colored, and the predictions are outlined in black.

Experimental results

Research questions

  • RQ1Can Unbalanced Optimal Transport unify diverse object detection matching strategies into a single, continuous framework?
  • RQ2How do the hyperparameters τ₁ (prediction mass constraint) and τ₂ (ground truth mass constraint) affect matching behavior and model performance?
  • RQ3Does UOT improve training convergence speed and final detection accuracy compared to standard matching baselines?
  • RQ4Can UOT be efficiently implemented on GPU to accelerate training in large-scale object detectors?
  • RQ5What is the impact of entropic regularization and the number of Sinkhorn iterations on final detection metrics?

Key findings

  • UOT achieves state-of-the-art Average Precision (AP) and Average Recall (AR) on the COCO dataset, outperforming standard baselines.
  • On the Color Boxes dataset, UOT with τ₁ = 10 and τ₂ = 0.01 achieved 47.8 AP and 63.8 AR with NMS, and 45.0 AP and 72.6 AR without NMS.
  • The balanced UOT case (τ₁ → ∞) achieved the highest performance: 48.1 AP and 64.3 AR with NMS, indicating that balanced mass constraints improve accuracy.
  • Training with UOT led to faster initial convergence compared to Hungarian matching, particularly in DETR-based models.
  • The number of Sinkhorn iterations had minimal impact beyond 10 iterations: performance saturated quickly, with only marginal gains after 10–20 iterations.
  • GPU-based UOT reduced training time by nearly 50% compared to Hungarian matching in SSD300, with a 18.3ms match time reduced to 1.5ms using UOT.
(b) Costs between the predictions and the ground truth ( $1-\mathrm{GIoU}$ ). The background cost is $c_{\varnothing}=0.8$ .
(b) Costs between the predictions and the ground truth ( $1-\mathrm{GIoU}$ ). The background cost is $c_{\varnothing}=0.8$ .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.