MambaTrack: A Simple Baseline for Multiple Object Tracking with State Space Model

Changcheng Xiao, Qiong Cao, Zhigang Luo, Long Lan

TL;DR

MambaTrack replaces the traditional linear Kalman Filter in multi-object tracking with a data-driven, bidirectional Mamba architecture to model complex, non-linear motions. By combining this with an autoregressive tracklet patching module, it achieves state-of-the-art tracking performance on challenging datasets like DanceTrack and SportsMOT while maintaining low computational overhead.

What Problem Does This Paper Address?

Most modern Multi-Object Tracking (MOT) systems follow the "tracking-by-detection" paradigm: a detector finds objects in each frame, and an association algorithm links them across frames to form trajectories. To predict where an object will move next, these systems heavily rely on the Kalman Filter (KF).

However, the Kalman Filter assumes linear, uniform motion. This assumption completely breaks down in complex scenarios like dancing or team sports, where human movement is highly non-linear, rapid, and erratic. Furthermore, when tracking crowds where everyone looks similar (e.g., dancers in identical costumes or athletes in team uniforms), trackers cannot rely on appearance cues to fix motion mistakes. When objects are occluded or missed by the detector, traditional trackers frequently lose the trajectory, leading to fragmented tracks and identity switches.

Methods

MambaTrack introduces a divide-and-conquer framework to handle active and lost trajectories separately using State Space Models (SSMs).

Figure 1: Overall architecture of the proposed methods. First, we employ the proposed Mamba Motion Predictor (MTP) to predict the bounding boxes ˆB𝑡of active tracklets in the subsequent frame. These predictions are then matched with the detection results B𝑡of the current frame 𝑡based on Intersection-over-Union (IoU) similarity. Subsequently, the Tracklet Patching Module (TPM) predicts the bounding box ˆP of lost tracklets through autoregression and pairs it with the remaining detections B𝑢. Finally, the results of the matching steps are combined to derive the tracking results T. Different colored bounding boxes represent objects of different identities.

The core components include:

  1. Mamba moTion Predictor (MTP): Instead of relying on hand-crafted linear filters, MTP learns motion patterns directly from historical bounding box data. It tokenizes past trajectory coordinates and passes them through a Bi-Mamba Encoding Layer. Because standard Mamba is unidirectional (causal), the authors introduce bidirectional Mamba blocks (one forward, one backward) to fully capture the spatial-temporal context before predicting the next frame's bounding box offsets.
  2. Tracklet Patching Module (TPM): To handle occlusions or detector failures, MambaTrack treats missing data as a generation problem. When a tracklet is lost, TPM runs the MTP module autoregressively—feeding its own future position predictions back into itself as inputs. This allows the tracker to "hallucinate" the object's path through the occlusion zone until it can be successfully re-associated with a real detection.
Figure 2: Overview of the proposed Mamba motion predictor.

Datasets

The authors evaluated MambaTrack on two challenging benchmarks specifically designed to test tracking under complex motion and uniform appearance constraints:

  • DanceTrack: 100 videos (40 train, 25 val, 35 test) featuring group dance routines. Dancers move fast, cross paths frequently, and wear identical outfits.
  • SportsMOT: 240 videos (45 train, 45 val, 150 test) covering basketball, football, and volleyball matches, characterized by rapid, diverse athlete movements.

Key Insights and Ideas

  • Linearity is a Poor Assumption for Humans: The massive performance jump over Kalman Filter baselines proves that data-driven sequence models are essential for tracking complex human behavior.
  • Mamba Fits Tracking Perfectly: While Transformers can model long-term dependencies, their quadratic computational complexity ($O(N^2)$) makes them too heavy for real-time tracking applications. Mamba's near-linear complexity provides Transformer-level modeling power at a fraction of the computational cost.
  • Autoregressive Infilling Restores Broken Tracks: Using the motion model to generate virtual observations during occlusions significantly improves trajectory consistency without requiring complex, heavy re-identification (Re-ID) networks.

Key Results

MambaTrack achieves state-of-the-art results on both evaluation benchmarks:

  • DanceTrack: On the test set, MambaTrack achieved a HOTA of 56.8 and an IDF1 of 57.8, outperforming the previous best motion-based tracker, OC_SORT (54.6 HOTA, 54.6 IDF1), without any post-processing.
  • SportsMOT: It achieved a HOTA of 72.6 and an IDF1 of 72.8, outperforming ByteTrack by nearly 10 percentage points in HOTA.
Table 3: Ablation studies on MTP and TPM.

Ablation studies show that replacing the baseline Kalman Filter with the MTP module yields a massive 9.0 percentage point boost in HOTA on the DanceTrack validation set, while the TPM module further refines trajectory consistency (IDF1).

  • Efficiency: Tested on a laptop with an RTX 4060 GPU, the entire pipeline runs at 17 FPS. Crucially, the tracking component takes only 19% (11.37 ms) of the total processing time per frame, proving that MambaTrack adds negligible computational overhead to the underlying object detector.

Limitations and Future Work

While MambaTrack excels by relying purely on motion cues, the authors note that it completely ignores appearance information. In scenarios where objects have highly distinct visual features, ignoring appearance is a missed opportunity. A promising future direction is to combine Mamba's efficient motion forecasting with lightweight visual embeddings to create an even more robust, general-purpose tracker. Additionally, the system's overall speed remains bottlenecked by the object detector (which takes up 81% of the runtime), leaving room for optimization with faster detection backbones.

Summary updated

BibTeX
@inproceedings{xiao2024mambatrack,
  author = {Changcheng Xiao and Qiong Cao and Zhigang Luo and Long Lan},
  title = {{MambaTrack: A Simple Baseline for Multiple Object Tracking with State Space Model}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=b6VJWTQKLF},
}
Figure