MOTR: End-to-End Multiple-Object Tracking with Transformer

Fangao Zeng, Bin Dong, Yuang Zhang, Tiancai Wang, Xiangyu Zhang, Yichen Wei

TL;DR

MOTR is a fully end-to-end Multiple-Object Tracking (MOT) framework that treats tracking as a set-of-sequences prediction problem. By extending the DETR architecture with temporal "track queries" that update frame-by-frame, MOTR bypasses traditional hand-crafted association heuristics and post-processing steps entirely.

What Problem Does This Paper Address?

Traditional Multiple-Object Tracking (MOT) systems predominantly follow the "tracking-by-detection" paradigm. This approach splits the problem into two distinct steps: first, an independent detector locates objects in each frame; second, a separate association algorithm links these detections across frames using heuristics like spatial overlap (IoU), Kalman filtering, or appearance similarity (Re-ID).

This separation creates a major bottleneck. Because association happens as a disconnected post-processing step, the network cannot learn to exploit temporal variations in the video end-to-end. Furthermore, relying on hand-crafted matching heuristics makes these systems fragile when dealing with complex motions or severe occlusions. The authors of MOTR aim to bridge this gap by creating a truly end-to-end tracking framework where motion and appearance modeling are learned jointly.

Methods

MOTR builds upon the DEtection Transformer (DETR) architecture, adapting it from static image object detection to sequential video tracking.

Fig. 1: (a) DETR achieves end-to-end detection by interacting object queries with image features and performs one-to-one assignment between the updated queries and objects. (b) MOTR performs set of sequence prediction by updating the track queries. Each track query represents a track. Best viewed in color.

The core innovations include:

  • Track Queries: While DETR uses static "object queries" to detect objects in a single image, MOTR introduces dynamic "track queries." These queries act as the hidden states of active object tracks, passing sequentially from frame to frame and updating their representations via self-attention and cross-attention mechanisms within the Transformer decoder.
  • Tracklet-Aware Label Assignment (TALA): To ensure consistency, MOTR splits queries into two types: detect queries (responsible only for discovering newborn objects) and track queries (responsible for following already-tracked objects). TALA enforces a target-consistent assignment strategy where a track query is consistently supervised by the same ground-truth object identity over time.
  • Entrance and Exit Mechanism: The track query set dynamically changes in length. Newborn objects detected by object queries are appended to the track query set for the next frame, while tracks that disappear or drop below a classification confidence threshold for $M$ consecutive frames are removed.
Fig. 2: Update process of detect (object) queries and track queries under some typical MOT cases. Track query set is updated dynamically, and the length is variable. Track query set is initialized to be empty, and the detect queries are used to detect newborn objects. Hidden states of all detected objects are concatenated to produce track queries for the next frame. Track queries assigned to terminated objects are removed from the track query set.
  • Temporal Aggregation Network (TAN) & Collective Average Loss (CAL): To enhance long-range temporal modeling, TAN aggregates historical track query states. Meanwhile, instead of calculating loss frame-by-frame, CAL optimizes the model over an entire video clip simultaneously, normalizing the total loss by the number of ground-truth objects.

Datasets

The authors evaluated MOTR on three major benchmarks:

  1. DanceTrack: A dataset characterized by uniform appearance (e.g., dancers in similar outfits) but highly diverse and complex motion. This makes it an ideal testbed for evaluating a tracker's true temporal and motion modeling capabilities.
  2. MOT17: A standard pedestrian tracking benchmark featuring crowded public spaces.
  3. BDD100K: A large-scale autonomous driving dataset used to validate MOTR's generalization to multi-class tracking scenarios (e.g., cars, pedestrians, bicycles).

Key Insights and Ideas

  • Tracking as Sequence Prediction: By treating MOT as a sequence prediction task, the network naturally learns the continuous trajectories of objects rather than treating tracking as a series of discrete matching problems.
  • Implicit Duplicate Suppression: Thanks to the self-attention mechanism in the Transformer decoder, track queries and detect queries interact with each other. If a track query is already tracking an object, it naturally suppresses nearby detect queries from triggering on the same object, eliminating the need for Non-Maximum Suppression (NMS) during tracking.
  • The Power of Video-Clip Training: Training on multi-frame video clips using CAL allows the network to learn how to handle challenging scenarios like temporary occlusions, significantly reducing identity switches (IDS).

Key Results

  • DanceTrack Breakthrough: On the challenging DanceTrack dataset, MOTR achieved a 54.2% HOTA and 40.2% AssA (Association Accuracy), significantly outperforming the state-of-the-art heuristic tracker, ByteTrack, by 6.5% and 8.1% respectively.
  • MOT17 Performance: MOTR outperformed concurrent Transformer-based trackers (TrackFormer and TransTrack) in association performance, achieving an IDF1 of 68.6%. However, its overall MOTA (73.4%) lagged slightly behind ByteTrack (80.3%), primarily due to lower detection performance on newborn objects.
  • Multi-Class Robustness: On BDD100K, MOTR demonstrated strong multi-class capabilities, achieving 32.0% mMOTA and drastically reducing identity switches compared to competing methods.

Limitations and Future Work

Despite its strong association capabilities, MOTR suffers from a few limitations:

  1. Suboptimal Newborn Detection: Because detect queries and track queries share the same Transformer decoder, active track queries tend to suppress detect queries. This occasionally prevents the network from detecting newly appearing objects promptly.
  2. Training Efficiency: Query passing in MOTR is strictly frame-by-frame, which limits the parallelization of model learning during training and increases computational overhead.

The authors suggest that resolving the conflict between detection and tracking queries within the shared decoder will be a crucial direction for future Transformer-based MOT research.

Summary updated

BibTeX
@inproceedings{zeng2022motr,
  author = {Fangao Zeng and Bin Dong and Yuang Zhang and Tiancai Wang and Xiangyu Zhang and Yichen Wei},
  title = {{MOTR: End-to-End Multiple-Object Tracking with Transformer}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19812-0\_38},
}
Figure