TL;DR
SAMURAI++ is a training-free framework that successfully adapts the Segment Anything Model 2 (SAM2) foundation model for Multi-Object Tracking (MOT). By elegantly merging the structured tracklet management of tracking-by-detection with the strong associative power of tracking-by-query, it introduces a novel hierarchical trajectory memory that achieves state-of-the-art zero-shot tracking performance on complex benchmarks.
What Problem Does This Paper Address?
Multi-Object Tracking (MOT) has traditionally been divided into two competing paradigms:
- Tracking-by-Detection (TbD): Detects objects frame-by-frame and links them using heuristic association rules (like motion or appearance). While simple, it hits a performance ceiling if the detector misses an object due to occlusions.
- Tracking-by-Query (TbQ): Uses end-to-end transformers to propagate object queries across frames. It handles complex scenarios better but requires massive amounts of domain-specific training data and generalizes poorly to new environments.
Recently, foundation models like SAM2 have shown remarkable success in single-object tracking. However, naively applying them to MOT fails. Because SAM2 is track-agnostic and lacks explicit tracklet lifecycle management, it suffers from a many-to-one matching problem—where multiple independent trackers drift and lock onto the same prominent object. SAMURAI++ addresses this gap, creating a robust, training-free MOT pipeline out of a single-object foundation model.
Methods
The authors bridge the two paradigms by introducing a hybrid pipeline guided by a novel Hierarchical Trajectory Memory.
1. Hybrid Candidate Expansion & Matching
Instead of relying solely on an external detector, SAMURAI++ uses a two-way approach. For every frame, it combines raw object detections with supplementary mask predictions generated by SAM2's internal query propagation. It then applies Non-Maximum Suppression (NMS) to clean up overlaps and uses the Hungarian algorithm to enforce strict one-to-one bipartite matching between existing tracks and new candidates. This resolves the many-to-one ambiguity and prevents tracks from fragmenting when a detector misses an object.
2. Hierarchical Trajectory Memory
To prevent error propagation, the authors replace SAM2's standard first-in, first-out (FIFO) memory queue with a structured, per-track memory system:
- Short-Term Motion-Aware Memory: Incoming candidates are strictly filtered based on mask affinity, object confidence, and motion consistency (via a Kalman filter).
- Nearest-Memory Compression: High-frame-rate videos contain highly redundant information. SAMURAI++ condenses consecutive valid short-term memories into a single, informative feature vector using a softmax-weighted aggregation based on mask reliability.
- Long-Term Instance Memory: Each track maintains a private long-term bank. If an object exhibits high spatio-temporal stability over a specific window, it is promoted to long-term memory. Crucially, these promoted memories act as new conditional frames (identity anchors), allowing the model to successfully re-identify objects after long occlusions or disappearances.
Datasets
The framework was evaluated in a zero-shot, training-free setting on two distinct MOT benchmarks:
- DanceTrack: A dataset characterized by uniform appearance (dancers wearing similar clothes), close interactions, frequent occlusions, and highly non-linear, complex motion.
- MOT17: A crowded urban pedestrian dataset dominated by linear motion, dense crowds, and frequent object occlusions.
Key Insights and Ideas
- Synergy Over Separation: The paper proves that TbD and TbQ are not mutually exclusive. TbD’s explicit assignment rules fix TbQ’s identity drift, while TbQ’s predictive mask generation overcomes TbD’s reliance on perfect object detections.
- Private vs. Global Memory: While standard SAM2 treats memory passively, giving each track its own private hierarchical memory prevents cross-object interference—a necessity when tracking identical-looking targets like dancers.
- Re-anchoring Identity: By dynamically promoting stable memories to act as new conditional frames, the architecture effectively resets the "drift clock" for the foundation model, ensuring long-term tracking consistency without any fine-tuning.
Key Results
Despite being entirely training-free and using frozen SAM2 weights, SAMURAI++ achieved outstanding results:
- DanceTrack: Achieved a 72.8% HOTA (Higher Order Tracking Accuracy) score on the test set, outperforming state-of-the-art end-to-end models specifically trained on DanceTrack, such as MOTRv2 (69.9%) and MOTIP (72.0%).
- MOT17: Achieved 64.0% HOTA, outperforming all tracking-by-query baselines and matching the performance of heavily optimized tracking-by-detection methods.
- Ablation Impact: Disabling the long-term memory promotion caused the largest performance drop (HOTA fell from 72.6% to 66.2% on the validation set), proving that long-term identity anchors are vital for handling occlusions.
Limitations and Future Work
- Computational Overhead: Because each object query is passed independently and sequentially through the SAM2 encoder, the system suffers from high computational overhead, making real-time deployment challenging. The authors note that batch-wise processing could mitigate this.
- Detector Dependency: The framework still relies on an external object detector to initialize new tracks. The authors suggest that replacing the detector with a training-free open-world grounding model (moving toward a "tracking-by-grounding" paradigm) is a promising direction for future scalability.
Summary updated