NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

How to Train Your Deep Multi-Object Tracker

Yihong Xu, Aljosa Osep, Yutong Ban, Radu Horaud, Laura Leal-Taixé, Xavier Alameda-Pineda

Abstract

The recent trend in vision-based multi-object tracking (MOT) is heading towards leveraging the representational power of deep learning to jointly learn to detect and track objects. However, existing methods train only certain sub-modules using loss functions that often do not correlate with established tracking evaluation measures such as Multi-Object Tracking Accuracy (MOTA) and Precision (MOTP). As these measures are not differentiable, the choice of appropriate loss functions for end-to-end training of multi-object tracking methods is still an open research problem. In this paper, we bridge this gap by proposing a differentiable proxy of MOTA and MOTP, which we combine in a loss function suitable for end-to-end training of deep multi-object trackers. As a key ingredient, we propose a Deep Hungarian Net (DHN) module that approximates the Hungarian matching algorithm. DHN allows estimating the correspondence between object tracks and ground truth objects to compute differentiable proxies of MOTA and MOTP, which are in turn used to optimize deep trackers directly. We experimentally demonstrate that the proposed differentiable framework improves the performance of existing multi-object trackers, and we establish a new state of the art on the MOTChallenge benchmark.

Introduction

Multi-Object Tracking (MOT) is a critical task in computer vision, typically evaluated using the CLEAR-MOT metrics: Multi-Object Tracking Accuracy (MOTA) and Multi-Object Tracking Precision (MOTP). These metrics rely on the Hungarian algorithm to find an optimal assignment between predicted tracks and ground-truth objects. However, the Hungarian algorithm is a discrete combinatorial optimization process, making it non-differentiable.

Consequently, most deep learning-based trackers are trained using proxy losses—such as bounding box regression or triplet losses for appearance matching—rather than the tracking metrics themselves. This creates a disconnect between the training objective and the final evaluation criteria. To address this, we introduce DeepMOT, a framework that enables end-to-end training of trackers by making MOTA and MOTP differentiable.

The Deep Hungarian Net (DHN)

The core of the DeepMOT framework is the Deep Hungarian Net (DHN). This module is designed to approximate the Hungarian algorithm's behavior in a differentiable manner. It takes a distance matrix as input and outputs a "soft" assignment matrix.

Architecture of the Deep Hungarian Net (DHN), which uses Bi-RNNs to process distance matrices and output soft assignments.

The DHN employs Bi-directional Recurrent Neural Networks (Bi-RNNs) to capture global context. By processing the distance matrix row-wise and then column-wise, the network can consider all potential matches simultaneously, mimicking the global optimization of the original Hungarian algorithm. The resulting soft assignment matrix allows for the calculation of differentiable proxies for tracking errors, such as false positives (FP), false negatives (FN), and identity switches (IDS).

End-to-End Training with DeepMOT

DeepMOT acts as a meta-framework that can be wrapped around various tracking architectures. Unlike standard training pipelines that optimize sub-tasks in isolation, DeepMOT allows gradients to flow from the final tracking loss back to the tracker's internal parameters.

Comparison between (i) an assignment-less baseline and (ii) the proposed Full-MOT back-propagation framework using DHN.

By using the DHN to produce soft assignments, we can formulate differentiable versions of the MOT metrics ($dMOTA$ and $dMOTP$). This enables the joint optimization of different tracker components, such as appearance embeddings and motion models, directly for the tracking task.

Experimental Evaluation

We evaluated DeepMOT on the MOT15, MOT16, and MOT17 benchmarks. The DHN module itself was pre-trained on a large synthetic dataset, achieving a 92.88% accuracy in approximating optimal assignments.

When integrated with the Tracktor baseline, DeepMOT-Tracktor achieved state-of-the-art results. Notably, the framework significantly reduced Identity Switches (IDS)—for instance, from 152 to 118 on the validation set—by allowing the model to learn better appearance features specifically for the tracking objective. The framework's versatility was further demonstrated by improving performance across different base trackers, including GOTURN and SiamRPN.

Conclusion

DeepMOT bridges the gap between training and evaluation in multi-object tracking. By introducing a differentiable proxy for the Hungarian algorithm, we enable trackers to be optimized directly for the metrics they are judged by. This approach not only improves overall accuracy but also provides a principled way to jointly train complex, multi-component tracking systems.

Summary updated

BibTeX
@inproceedings{xu2020how,
  author = {Yihong Xu and Aljosa Osep and Yutong Ban and Radu Horaud and Laura Leal-Taixé and Xavier Alameda-Pineda},
  title = {{How to Train Your Deep Multi-Object Tracker}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=TErOFVn7-zr},
}
Figure