SMTrack: State-Aware Mamba for Efficient Temporal Modeling in Visual Tracking

Yinchao Ma, Dengqing Yang, Zhangyu He, Wenfei Yang, Tianzhu Zhang

TL;DR

SMTrack introduces a highly efficient visual tracking paradigm based on State Space Models (Mamba) that bypasses the quadratic computational explosion of Transformers and the complex online tuning of CNNs. By proposing a Selective State-aware Space Model (SASM) with state-wise timescale parameters, it captures diverse temporal cues across video frames with linear complexity, achieving state-of-the-art tracking accuracy at 34 FPS.

What Problem Does This Paper Address?

Visual object tracking requires a model to follow a target across a video sequence, adapting to challenges like occlusions, deformations, and confusing backgrounds. To do this reliably, trackers must remember past frames (temporal cues).

Historically, researchers have relied on two main architectures, both of which have major drawbacks:

  1. CNN-based trackers often require complex, hand-crafted online optimizers to update target filters on the fly, leading to cumbersome training and deployment pipelines.
  2. Transformer-based trackers excel at modeling long-range relationships but suffer from quadratic computational complexity ($O(L^2)$) relative to sequence length. Concatenating multiple historical templates causes the computational cost to skyrocket.

Recently, State Space Models (SSMs) like Mamba have emerged as a linear-complexity alternative to Transformers. However, early attempts to apply Mamba to tracking used cross-frame bidirectional scanning. This forced the model to repeatedly re-scan all historical templates every time a new search frame arrived, severely bottlenecking inference speed.

Comparison of different temporal modeling paradigms for visual tracking, highlighting SMTrack's neat pipeline and state-aware selection mechanism.

Methods

The authors introduce SMTrack (State-aware Mamba Tracker), which rethinks how temporal data flows through a tracker using two core innovations:

1. Selective State-aware Space Model (SASM)

In a standard Mamba block, a single timescale parameter ($\Delta$) acts as a generic gating mechanism shared across all hidden states. This forces the model to either uniformly ignore or consider features across its entire memory.

SASM introduces state-wise timescale parameters ($\Delta_{state}$). By giving each hidden state its own independent gating mechanism, different states can specialize in capturing distinct environmental cues—such as tracking the target's shape changes, isolating the background, or suppressing specific distractors. SASM also introduces explicit interactions between these hidden states to build dense dependencies.

2. Temporal Causal Scanning

To eliminate the need to repeatedly scan old templates, SMTrack decouples history from the current frame. It enforces strict temporal causality across frames (scanning strictly forward in time) while maintaining bidirectional scanning intra-frame to preserve spatial awareness.

During inference, historical frames are compressed into a fixed-size hidden state memory bank. When a new frame arrives, the search region interacts directly with this compressed state. New target templates are simply ingested to update the hidden state vector, keeping the tracking pipeline clean and computationally lightweight.

Datasets

The model was trained and evaluated on standard large-scale tracking benchmarks:

  • Training: COCO, LaSOT, GOT-10k, and TrackingNet.
  • Evaluation: GOT-10k, TrackingNet, LaSOT, LaSOT_ext, UAV123, and NFS.

No new datasets were introduced in this work.

Key Insights and Ideas

  • Memory Partitioning via State-Wise Parameters: Standard SSMs treat hidden states uniformly. By modulating the timescale parameter per state, the network naturally learns to partition its memory structure, dedicating specific hidden pathways to target appearance versus background clutter.
  • Causality as an Efficiency Tool: While bidirectional attention is popular in vision, enforcing strict temporal causality across video frames allows the model to treat historical context as a fixed-size recurrent state. This breaks the $O(N)$ template-scaling bottleneck common to Transformer trackers.

Key Results

SMTrack achieves an excellent balance of accuracy and computational efficiency across all major benchmarks:

  • GOT-10k: SMTrack-M384 achieved a state-of-the-art Average Overlap (AO) of 74.7%, outperforming competitive Transformer models like OSTrack-384 (73.7%).
  • TrackingNet & LaSOT: It achieved 85.2% AUC on TrackingNet and 71.9% AUC on LaSOT.
  • Efficiency Gains: SMTrack-M384 runs at 34 FPS while requiring only 48.7 GFLOPs. For comparison, the autoregressive Transformer tracker SeqTrack-B384 scores lower (83.9% on TrackingNet) while consuming 148 GFLOPs and running at a sluggish 15 FPS.

Limitations and Future Work

  • Hardware Parallelization Bottlenecks: Because SSMs rely on sequential scanning operations rather than massive parallel matrix multiplications, they do not fully exploit the hardware acceleration units (like Tensor Cores) on modern GPUs as efficiently as Transformers do. This limits their raw execution speed advantages on current hardware.
  • Reliance on Pure Appearance: SMTrack localizes objects based almost entirely on visual features. If a target is fully occluded or leaves the frame entirely, the tracker can drift. The authors note that integrating explicit motion models into the Mamba framework could provide the necessary cues to handle these failure cases.

Summary updated

BibTeX
@article{ma2026smtrack,
  author = {Yinchao Ma and Dengqing Yang and Zhangyu He and Wenfei Yang and Tianzhu Zhang},
  title = {{SMTrack: State-Aware Mamba for Efficient Temporal Modeling in Visual Tracking}},
  journal = {IEEE Trans. Image Process.},
  year = {2026},
  doi = {10.1109/tip.2026.3661393},
}
Figure