TransMOT: Spatial-Temporal Graph Transformer for Multiple Object Tracking

Peng Chu, Jiang Wang, Quanzeng You, Haibin Ling, Zicheng Liu

Abstract

Multiple Object Tracking (MOT) in crowded scenes remains a significant challenge due to frequent occlusions and complex object interactions. This paper presents TransMOT, a novel tracking framework that leverages a Spatial-Temporal Graph Transformer to model object trajectories as sparse graphs. By factoring the transformer architecture into spatial and temporal components and utilizing a cascade association framework, TransMOT achieves state-of-the-art performance on major benchmarks, including MOT17 and MOT20, while maintaining computational efficiency.

Introduction

Multiple Object Tracking (MOT) is a fundamental task in computer vision, requiring the detection and consistent identification of objects across video frames. In dense environments, standard tracking-by-detection methods often struggle with occlusions and visually similar targets. While Transformers have shown promise in sequence modeling, their application to MOT is often hindered by the high computational cost of dense attention and a lack of inherent spatial awareness. TransMOT addresses these issues by representing object interactions through a sparse weighted graph, focusing attention on spatially proximal neighbors.

Methods

TransMOT treats tracking as a graph-based optimization problem. The framework constructs a sparse graph where nodes represent detected objects and edges connect those with significant spatial overlap.

Overview of the TransMOT architecture, illustrating the flow from tracked targets and candidate detections through the Spatial-Temporal Graph Transformer to the final assignment matrix.

The architecture is built upon several key components:

  1. Factored Transformer Design: The model decouples spatial and temporal modeling. A Spatial Graph Transformer Encoder captures intra-frame interactions between nearby objects, while a Temporal Transformer Encoder models the evolution of individual object features over time.
  2. Graph-Based Attention: By employing Graph Multi-Head Attention, the model restricts its focus to local spatial neighborhoods, reducing noise and improving efficiency.
  3. Virtual Nodes: To manage track initialization and termination, "Virtual Sink" and "Virtual Source" nodes are introduced to represent occluded or exiting objects and newly appearing targets, respectively.
  4. Cascade Association: TransMOT is integrated into a three-stage pipeline. It first uses simple motion-based matching for high-confidence associations, then applies the Graph Transformer for complex cases, and finally employs heuristics for long-term occlusion handling.

Experimental Results

The proposed method was evaluated on the MOTChallenge benchmarks (MOT15, MOT16, MOT17, and MOT20). TransMOT established new state-of-the-art results across these datasets at the time of publication.

Qualitative tracking results of TransMOT on various MOTChallenge benchmarks, demonstrating robust performance in diverse and crowded environments.

On the MOT17 benchmark, TransMOT achieved a Multiple Object Tracking Accuracy (MOTA) of 76.7 and an Identity F1 score (IDF1) of 75.1. In the highly congested MOT20 dataset, it reached 77.5 MOTA, outperforming existing methods like FairMOT. Notably, the model significantly reduced identity switches (IDS), indicating superior stability during occlusions. The sparse graph approach also ensures practical efficiency, with the pipeline running at approximately 9.6 FPS on a single V100 GPU.

Conclusion and Future Work

TransMOT demonstrates that incorporating spatial graph structures into Transformer architectures significantly enhances tracking performance in crowded scenes. By focusing on local interactions and factoring spatial-temporal modeling, the framework achieves high accuracy and robustness. While the current system relies on an external detector (YOLOv5), future work may explore tighter end-to-end integration to further improve real-time performance and eliminate dependency on external detection quality.

Summary updated

BibTeX
@inproceedings{chu2023transmot,
  author = {Peng Chu and Jiang Wang and Quanzeng You and Haibin Ling and Zicheng Liu},
  title = {{TransMOT: Spatial-Temporal Graph Transformer for Multiple Object Tracking}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00485},
}
Figure