Segment Anything with Motion, Geometry, and Semantic Adaptation for Complex Nonlinear Visual Object Tracking

Deyi Zhu, Yuji Wang, Yong Liu, Yansong Tang, Bingyao Yu, Jiwen Lu, Jie ZhouarXiv 2026

TL;DR

SAMOSA adapts Meta’s Segment Anything Model 2 (SAM 2) for complex, nonlinear visual object tracking by explicitly incorporating motion, geometry, and semantic cues. By introducing a lightweight nonlinear motion predictor and an error recovery loop, it achieves state-of-the-art tracking accuracy on challenging benchmarks with minimal computational overhead.

What Problem Does This Paper Address?

Visual Object Tracking (VOT) requires a system to continuously lock onto and localize a target throughout a video based on its initial position. While recent vision foundation models like SAM 2 excel at zero-shot video object segmentation due to massive pretraining, they are not natively optimized for tracking. Specifically, SAM 2 lacks explicit mechanisms to model target motion dynamics or enforce geometric and semantic consistency across frames.

This limitation becomes glaringly obvious in real-world scenarios featuring nonlinear motion—such as sudden drone accelerations, sharp direction changes, camera shakes, or temporary occlusions. Traditional tracking adaptations often rely on linear assumptions (like a standard Kalman Filter) which assume a constant velocity and fail when a target moves erratically. SAMOSA bridges this gap by turning SAM 2's implicit video priors into explicit, tracking-oriented constraints.

Methods

The SAMOSA framework introduces three lightweight, plug-and-play modules to the frozen SAM 2 backbone:

  1. Motion Predictor (MP): Instead of assuming constant velocity, the MP uses a higher-order Markov framework implemented via a 4-layer LSTM. Crucially, it is trained only on bounding-box trajectory coordinates (no video pixels required), making it incredibly fast. It predicts the target's next bounding box based on a sliding window of the past 5 frames.
  2. Error Detection-Recovery Module (EDRM): Acting as a safeguard, the EDRM maintains a "Target Prototype" built from the geometric (area, aspect ratio) and semantic features (mask-gated average pooling of image embeddings) of recent reliable frames. If the tracked output deviates sharply from this prototype, the system enters a recovery mode, scanning all candidate masks generated by SAM 2 to find a perfect match and rectify the drift.
  3. Target-Aware Memory Bank (TAMB): Rather than using a simple first-in, first-out (FIFO) memory queue, TAMB adaptively selects and retains historical frames based on mask quality, target visibility (occlusion detection), and motion consistency.

The overall architecture and the interaction of these components can be seen in the pipeline diagram below:

SAMOSA Framework Pipeline

Datasets

The authors evaluated SAMOSA across two distinct categories of benchmarks:

  • General-purpose VOT Benchmarks: LaSOT_ext (150 long videos), OTB (100 videos), and TrackingNet (511 videos). These test typical tracking challenges like deformation and short-term occlusion.
  • Anti-UAV Tracking Benchmarks: Anti-UAV300, Anti-UAV410, Anti-UAV600, and DUT Anti-UAV. These datasets specifically feature small targets, fast camera movements, and highly nonlinear motion profiles across both RGB and Thermal Infrared (TIR) modalities.

Key Insights and Ideas

  • Trajectory-Only Training Works: One of the most elegant findings is that the Motion Predictor does not need to look at video frames to understand motion dynamics. Training it purely on coordinate sequences allows it to remain lightweight while generalizing perfectly across completely unseen video domains.
  • Explicit Cues Prevent Foundation Model Drift: Foundation models possess deep implicit knowledge, but without explicit structural boundaries, they easily fall prey to "target shift" errors (e.g., switching tracking from one skater's shoe to another nearby shoe). Explicitly scoring candidates based on geometry and semantics prevents this drift.
  • The EDRM Architecture: Separating error detection from recovery allows the tracker to run smoothly under stable conditions and only deploy heavy verification mechanisms when a potential failure is flagged.
Error Detection-Recovery Module (EDRM) Detail

Key Results

SAMOSA consistently outperformed both task-specific supervised trackers and existing SAM 2-based adaptations:

  • Accuracy Boost in Nonlinear Scenes: On the highly erratic nonlinear split of the Anti-UAV300 RGB dataset, SAMOSA achieved a massive +11.0% accuracy improvement over the baseline SAM 2.1.
  • General Benchmarks: On the challenging LaSOT_ext dataset, SAMOSA achieved an AUC of 62.97%, noticeably outperforming SAM 2.1 (58.19%) and other recent extensions like SAMITE (62.22%).
  • Efficiency: While some long-video tracking methods (like SAM2Long) incur a massive latency penalty (+357.2 ms), SAMOSA delivers its performance gains with a marginal overhead of just +10.7 ms, making it highly practical for real-time deployment.
Accuracy vs Latency Comparison on Linear and Nonlinear Scenes

Limitations and Future Work

While SAMOSA successfully tackles the challenges of single-object nonlinear tracking, the authors note that the framework is currently limited to tracking a single target at a time.

For future work, they plan to expand the SAMOSA framework to handle more complex multi-object tracking (MOT) environments, referring video object segmentation (where targets are specified via natural language prompts), and 3D object segmentation.

Summary updated

BibTeX
@misc{zhu2026segment,
  author = {Deyi Zhu and Yuji Wang and Yong Liu and Yansong Tang and Bingyao Yu and Jiwen Lu and Jie Zhou},
  title = {{Segment Anything with Motion, Geometry, and Semantic Adaptation for Complex Nonlinear Visual Object Tracking}},
  year = {2026},
  eprint = {2605.22538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.22538},
}
Figure