SAMOFT: Robust Multi-Object Tracking via Region and Flow

Yanchao Wang, Dawei Zhang, Chengzhuan Yang, Wei Liu, Minglu Li, Hua Wang, Zhonglong Zheng, Ming-Hsuan Yang · DOI

TL;DR

This paper introduces SAMOFT, a novel multi-object tracking (MOT) framework that significantly enhances robustness in challenging scenarios by leveraging fine-grained pixel-level cues from segmentation and optical flow. By integrating these cues into a tracking-by-detection pipeline, SAMOFT achieves state-of-the-art performance on demanding benchmarks.

What Problem Does This Paper Address?

Multi-object tracking (MOT) aims to follow multiple objects in a video while maintaining their identities. The dominant "tracking-by-detection" approach relies on associating detected objects across frames. However, existing methods primarily use instance-level information (like bounding boxes and appearance features), which struggle with complex situations like object deformation, non-linear motion, and occlusions. This leads to degraded performance and identity switches. The paper addresses this by proposing a method that utilizes richer, pixel-level information to improve the association stage, making tracking more resilient to these challenging conditions.

Methods

SAMOFT builds upon the tracking-by-detection paradigm but introduces several novel modules that leverage pixel-level information:

  • Pixel Motion Matching (PMM): This module uses the Segment Anything Model (SAM) to generate precise object masks and dense optical flow to estimate instantaneous pixel motion. This pixel-level motion refines the Kalman filter's (KF) motion predictions, making them more robust to deformation and non-linear movements than traditional bounding-box-based predictions.
  • Centroid Distance Matching (CDM): For low-confidence detections (often due to occlusion), this module uses the centroids derived from SAM-generated masks. This provides more stable localization than using bounding-box centers, improving association for partially occluded objects.
  • Distribution-Based Correction (DBC): This module models the statistical distribution of optical flow magnitudes. It identifies and corrects "long-tailed" motion patterns (sudden, unusual movements often caused by deformation) by adaptively adjusting trajectory states, further enhancing robustness. This is a training-free approach.
  • Cluster-Aware ReID (CA-ReID): To improve appearance-based matching, this module clusters detections based on IoU connectivity. It then uses only the highest-confidence detection's embedding within each cluster to update the trajectory's appearance feature. This strategy reduces noise from unreliable detections and enhances feature discriminability.

These modules work in concert within a multi-stage Hungarian association framework to produce more accurate tracking results.

Datasets

The paper evaluates SAMOFT on the following datasets:

  • DanceTrack: A challenging benchmark known for its complex target motion and uniform appearance.
  • MOT17: A widely used benchmark for pedestrian tracking.
  • MOT20: Another pedestrian tracking benchmark, characterized by denser scenes and higher target density than MOT17.

The authors note that their method is trained-free for the proposed modules, relying on pre-trained models for SAM and optical flow.

Key Insights and Ideas

  • Pixel-level cues are crucial for robustness: The core insight is that relying solely on instance-level (bounding box) information is insufficient for robust tracking in complex scenarios. Fine-grained pixel motion and masks offer a more stable and informative representation.
  • SAM is a powerful tool for MOT: Leveraging SAM's zero-shot segmentation capabilities allows for high-quality mask generation without the need for pixel-level annotations during training, making it practical for MOT.
  • Motion anomalies can be detected and corrected: The DBC module's approach to modeling optical flow distributions to identify and correct "long-tailed" motion events is a clever way to handle sudden, unpredictable movements that often break traditional trackers.
  • Selective appearance updates improve stability: The CA-ReID strategy of clustering detections and updating appearance features only from the most reliable ones in a cluster is a smart way to combat noise and maintain consistent identity representation.

Key Results

SAMOFT consistently improves baseline trackers (OC-SORT and Hybrid-SORT) across all tested metrics (HOTA, IDF1, MOTA, AssA, DetA).

  • DanceTrack: SAMOFT integrated with OC-SORT achieved +9.2 HOTA, +11.3 IDF1, and +2.0 MOTA improvements. When integrated with Hybrid-SORT, it showed +6.0 HOTA and +5.2 IDF1 gains.
  • MOT17: SAMOFT improved OC-SORT by +0.8 HOTA and +1.3 IDF1. With Hybrid-SORT, it gained +0.7 HOTA, +1.0 IDF1, and +0.7 MOTA.
  • MOT20: SAMOFT improved OC-SORT by +1.9 HOTA and +3.0 IDF1. With Hybrid-SORT, it gained +1.7 HOTA, +2.7 IDF1, and +0.4 MOTA.

Qualitative results show SAMOFT maintaining consistent identities in challenging scenarios where the baseline tracker suffers from identity switches due to occlusion, deformation, and overlap.

Limitations and Future Work

  • Computational Overhead: The integration of SAM and an optical flow model (SEA-RAFT) increases computational cost. While SAMOFT achieves 14.1 FPS on an RTX 4090, this is slower than some purely instance-level trackers. The authors believe this gap will narrow with more efficient models.
  • Near-complete Occlusion: While SAM can handle partial occlusion, extreme cases of near-complete occlusion remain a challenge for segmentation-based modules.
  • Future Directions: The authors suggest exploring more lightweight segmentation and optical flow models tailored for MOT, developing advanced interaction mechanisms between motion and segmentation, and investigating learnable fusion strategies. They also envision a future where fully pixel-level cue-driven trackers might replace traditional bounding-box-based approaches.

Summary updated

BibTeX
@misc{wang2026samoft,
  author = {Yanchao Wang and Dawei Zhang and Chengzhuan Yang and Wei Liu and Minglu Li and Hua Wang and Zhonglong Zheng and Ming-Hsuan Yang},
  title = {{SAMOFT: Robust Multi-Object Tracking via Region and Flow}},
  year = {2026},
  eprint = {2605.09417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.09417},
}
Figure