[Paper Review] Contrastive Learning for Multi-Object Tracking with Transformers
This paper proposes ContrasTR, a lightweight multi-object tracking method that transforms DETR-like object detectors into end-to-end trackers using instance-level contrastive learning. By introducing a contrastive loss, revised frame sampling, and a projection head, it achieves state-of-the-art performance with +2.6 mMOTA on BDD100K and comparable results to SOTA on MOT17, while preserving detection quality and avoiding complex architectural extensions.
The DEtection TRansformer (DETR) opened new possibilities for object detection by modeling it as a translation task: converting image features into object-level representations. Previous works typically add expensive modules to DETR to perform Multi-Object Tracking (MOT), resulting in more complicated architectures. We instead show how DETR can be turned into a MOT model by employing an instance-level contrastive loss, a revised sampling strategy and a lightweight assignment method. Our training scheme learns object appearances while preserving detection capabilities and with little overhead. Its performance surpasses the previous state-of-the-art by +2.6 mMOTA on the challenging BDD100K dataset and is comparable to existing transformer-based methods on the MOT17 dataset.
Motivation & Objective
- To develop a simple yet effective method to adapt DETR-based object detectors into multi-object tracking models without adding heavy components.
- To improve object re-identification across frames by learning discriminative instance-level embeddings through contrastive learning.
- To enable scalable pre-training on detection-only datasets to boost tracking performance without requiring tracking annotations.
- To demonstrate that joint detection and tracking can be achieved via a unified set of object representations, reducing architectural complexity.
- To show that careful sampling of non-consecutive frames enhances robustness under motion and appearance variation.
Proposed method
- The method employs an instance-level contrastive loss to train the model to distinguish between positive (same object across frames) and negative (different objects) pairs.
- A revised sampling strategy selects non-consecutive frames from multiple videos to increase appearance and scene diversity in the training batch.
- A lightweight feed-forward network (FFN) projection head is introduced to generate tracking embeddings from DETR's object representations, decoupling tracking from detection heads.
- The model is pre-trained on detection datasets using contrastive learning without tracking IDs, leveraging large-scale detection data for better embedding space quality.
- Training uses a multi-task objective combining detection loss and contrastive loss, with a learnable weighting coefficient for the contrastive term.
- Bipartite matching is used during inference to assign predictions to tracks based on the learned embeddings.
Experimental results
Research questions
- RQ1Can a DETR-based detector be effectively adapted into a multi-object tracking system with minimal architectural modifications?
- RQ2How does instance-level contrastive learning improve object re-identification in complex tracking scenarios?
- RQ3What sampling strategy maximizes robustness to motion, occlusion, and appearance variation in tracking?
- RQ4Can pre-training on detection-only datasets improve tracking performance without requiring tracking annotations?
- RQ5What components are essential for learning joint detection and association features, and how do they interact?
Key findings
- ContrasTR achieves a +2.6 mMOTA improvement over the previous SOTA on the challenging BDD100K dataset, reaching 35.1 mMOTA.
- On the MOT17 benchmark, ContrasTR performs comparably to existing transformer-based methods, demonstrating strong generalization.
- The ablation study shows that the contrastive loss, projection head, and pre-training are all critical: removing any component reduces mHOTA by over 3 points.
- The best performance is achieved with 4 videos and 10 frames per video (Nv=4, Nf=10), yielding 36.2 mHOTA and 33.6 mMOTA on BDD100K.
- A contrastive loss weight of λ_contr = 0.5 yields optimal performance, balancing detection and tracking objectives.
- Pre-training with contrastive learning on detection data improves tracking metrics even when fine-tuning on tracking datasets, showing strong transferability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.