MeMOTR: Long-Term Memory-Augmented Transformer for Multi-Object Tracking

Ruopeng Gao, Limin WangICCV 2023 · DOI

Introduction

Multi-Object Tracking (MOT) is a fundamental computer vision task that requires a model to simultaneously perform object detection and cross-frame association. While recent Transformer-based trackers, such as MOTR, have successfully unified these tasks into a single query-based framework, they often suffer from a "short-sightedness" problem. Most existing models rely solely on features from the current and immediately preceding frames. In complex scenarios—such as dancers with identical costumes or athletes experiencing frequent occlusions—this limited temporal context leads to unstable track embeddings, resulting in identity switches and lost tracks.

MeMOTR (Memory-augmented Multi-Object Tracking with TRansformer) addresses these challenges by introducing a long-term temporal context. By maintaining and injecting a stable historical representation of each object, MeMOTR achieves significant performance gains on challenging datasets like DanceTrack, where appearance cues are often ambiguous.

Architectural Innovations

MeMOTR introduces three primary architectural components designed to stabilize object representations and bridge the semantic gap between detection and tracking.

1. Separated Detection Decoder

Standard query-based trackers often process "newborn" object queries and "existing" track queries within the same decoder layers. MeMOTR employs a dedicated initial decoder layer for newborn object queries. This step provides these queries with specific semantic information before they are integrated with established track queries, effectively bridging the semantic gap between a generic detection and a known entity.

2. Long-Term Memory ($M_{tck}$)

To maintain a robust identity for every tracked object, MeMOTR maintains a memory feature updated via an exponential moving average (EMA). This ensures that an object's identity representation evolves smoothly over time, preventing abrupt jumps caused by temporary factors like motion blur or partial occlusion.

The overall architecture of MeMOTR, highlighting the flow from input video stream to the Temporal Interaction Module.

3. Temporal Interaction Module (TIM)

The Temporal Interaction Module is the core of the MeMOTR framework. It utilizes an adaptive aggregation mechanism to fuse features from current and previous frames, using channel-wise weights to prioritize reliable information. Furthermore, a customized Memory-Attention Layer treats current track features as "Queries" and long-term memory as "Keys." This allows the model to selectively retrieve historical information to reinforce the current track embedding, making it more distinguishable from neighboring objects.

Experimental Results

MeMOTR was evaluated on several major MOT benchmarks, demonstrating superior performance in association-heavy tasks.

  • DanceTrack: This dataset is characterized by uniform appearances and complex, non-linear motion. MeMOTR achieved 68.5% HOTA, a 7.9% improvement over previous state-of-the-art methods. Notably, its Association Accuracy (AssA) increased by 13.0%, validating the effectiveness of the memory mechanism.
  • MOT17: On the classic pedestrian tracking benchmark, MeMOTR reached 58.8% HOTA, outperforming other Transformer-based models like MOTR and TransTrack.
  • BDD100K: The model showed strong generalization in autonomous driving scenarios, achieving 53.6 mTETA across multiple object categories.

Analysis of Embedding Stability

The primary advantage of MeMOTR is the stability it brings to object embeddings. As shown in t-SNE visualizations, the combination of long-term memory and the attention mechanism leads to much tighter and more distinct clusters for individual object identities compared to baseline models.

t-SNE visualizations of track embeddings. (d) shows how the proposed memory and attention mechanisms create distinct, stable clusters for object identities.

Conclusion and Future Work

MeMOTR demonstrates that long-term temporal context is vital for robust multi-object tracking in complex environments. By forcing track embeddings to be a function of a long-term running average and utilizing a dedicated memory-attention mechanism, the model becomes resilient to temporary occlusions and motion blur.

While MeMOTR sets a new standard for association, detection performance remains a bottleneck in extremely crowded scenes. Future research will focus on resolving conflicts between detection and tracking queries in dense environments and optimizing the computational efficiency of long-term memory storage and retrieval.

Summary updated

BibTeX
@inproceedings{gao2023memotr,
  author = {Ruopeng Gao and Limin Wang},
  title = {{MeMOTR: Long-Term Memory-Augmented Transformer for Multi-Object Tracking}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00908},
}
Figure