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

TrackFormer: Multi-Object Tracking with Transformers

Tim Meinhardt, Alexander Kirillov, Laura Leal-Taixé, Christoph Feichtenhofer

Abstract

The challenging task of multi-object tracking (MOT) requires simultaneous reasoning about track initialization, identity, and spatio-temporal trajectories. We formulate this task as a frame-to-frame set prediction problem and introduce TrackFormer, an end-to-end trainable MOT approach based on an encoder-decoder Transformer architecture. Our model achieves data association between frames via attention by evolving a set of track predictions through a video sequence. The Transformer decoder initializes new tracks from static object queries and autoregressively follows existing tracks in space and time with the conceptually new and identity preserving track queries. Both query types benefit from self- and encoder-decoder attention on global frame-level features, thereby omitting any additional graph optimization or modeling of motion and/or appearance. TrackFormer introduces a new tracking-by-attention paradigm and while simple in its design is able to achieve state-of-the-art performance on the task of multi-object tracking (MOT17) and segmentation (MOTS20). The code is available at https://github.com/timmeinhardt/TrackFormer

Introduction

Multi-object tracking (MOT) has traditionally been approached as a fragmented multi-stage process. Most existing systems adhere to the "tracking-by-detection" paradigm, which involves two distinct steps: first, an object detector identifies entities in individual frames; second, an association algorithm (such as the Hungarian method or Kalman filters) links these detections over time.

This disjointed approach often leads to identity switches and struggles with occlusions, as the detector lacks temporal awareness and the associator relies on hand-crafted heuristics. While "tracking-by-regression" methods have attempted to bridge this gap, they often lack global reasoning capabilities. TrackFormer addresses these issues by framing tracking as a core component of the neural network's internal attention mechanism, creating a unified "tracking-by-attention" paradigm.

Methodology

TrackFormer extends the DEtection TRansformer (DETR) architecture from static images to video sequences. The system utilizes a CNN backbone for feature extraction, followed by a Transformer encoder that reasons about global image context.

The TrackFormer architecture: CNN features are processed by a Transformer to produce track-specific queries.

The core innovation lies in the Transformer decoder's use of two simultaneous query types:

  1. Static Object Queries: Learned embeddings that identify new objects entering the scene, facilitating track initialization.
  2. Track Queries: Autoregressive embeddings that carry identity across frames. When an object is detected in frame $t-1$, its output embedding is passed to frame $t$ as a track query. This query "follows" the object by attending to the new frame's features.

To ensure robustness, the model is trained with Track Augmentations, including sampling non-adjacent frames to simulate camera motion and injecting synthetic false positives/negatives to train reliable track lifecycle management.

Datasets and Evaluation

The performance of TrackFormer was rigorously evaluated on several benchmark datasets:

  • MOT17 & MOT20: Standard benchmarks for pedestrian tracking in high-density environments.
  • MOTS20: A challenging extension of MOT requiring pixel-level segmentation masks for tracked objects.
  • CrowdHuman: Utilized for large-scale pretraining. To compensate for the scarcity of video tracking data, the authors simulated video sequences from this static image dataset using random cropping and jittering.

Discussion of Key Insights

  • Identity as an Embedding: TrackFormer treats object identity as a high-dimensional vector (the query) that evolves over time. Self-attention naturally prevents multiple queries from converging on the same physical object.
  • Tracking-by-Attention: Data association is integrated directly into the decoder layers. Track queries compete for image features, eliminating the need for external motion models or separate ReID networks.
  • Unified Logic: The model treats "finding a new person" and "following an existing person" as identical mathematical operations within the same decoder.
  • Temporal Resilience: The model maintains "inactive" track queries over a "patience window," allowing it to re-identify objects after short-term occlusions based on spatial and appearance cues stored in the embedding.

Experimental Results

TrackFormer achieved state-of-the-art or highly competitive results across major benchmarks:

  • MOT17: Achieved a 74.1 MOTA (Multi-Object Tracking Accuracy) in the private detection setting, outperforming previous tracking-by-regression baselines.
  • MOT20: Demonstrated effectiveness in extremely dense crowds with a 68.6 MOTA.
  • MOTS20: Set a new standard for tracking-by-segmentation with 54.9 sMOTSA.
  • Ablation Study: Results indicated that joint training for tracking and segmentation improves tracking performance (a +1.2 IDF1 boost), suggesting that mask information aids in resolving ambiguous occlusions.

Conclusion and Future Work

TrackFormer represents a significant advancement toward unified, end-to-end multi-object tracking. However, challenges remain regarding computational overhead, as Transformer complexity scales with the number of objects. Additionally, while the patience window handles short-term occlusions, the model lacks a persistent long-term memory for objects that disappear for extended periods. Future research may focus on integrating sophisticated temporal memory and optimizing the architecture for real-time performance in high-density scenarios.

Summary updated

BibTeX
@misc{meinhardt2021trackformer,
  author = {Tim Meinhardt and Alexander Kirillov and Laura Leal-Taixé and Christoph Feichtenhofer},
  title = {{TrackFormer: Multi-Object Tracking with Transformers}},
  year = {2021},
  eprint = {2101.02702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.02702},
}
Figure