SPMTrack: Spatio-Temporal Parameter-Efficient Fine-Tuning with Mixture of Experts for Scalable Visual Tracking

Wenrui Cai, Qingjie Liu, Yunhong Wang

Abstract

Most state-of-the-art trackers adopt one-stream paradigm, using a single Vision Transformer for joint feature extraction and relation modeling of template and search region images. However, relation modeling between different image patches exhibits significant variations. For instance, background regions dominated by target-irrelevant information require reduced attention allocation, while foreground, particularly boundary areas, need to be be emphasized. A single model may not effectively handle all kinds of relation modeling simultaneously. In this paper, we propose a novel tracker called SPMTrack based on mixture-of-experts tailored for visual tracking task (TMoE), combining the capability of multiple experts to handle diverse relation modeling more flexibly. Benefiting from TMoE, we extend relation modeling from image pairs to spatio-temporal context, further improving tracking accuracy with minimal increase in model parameters. Moreover, we employ TMoE as a parameter-efficient fine-tuning method, substantially reducing trainable parameters, which enables us to train SPMTrack of varying scales efficiently and preserve the generalization ability of pretrained models to achieve superior performance. We conduct experiments on seven datasets, and experimental results demonstrate that our method significantly outperforms current state-of-the-art trackers. The source code is available at https://github.com/WenRuiCai/SPMTrack.

Introduction

Visual tracking has recently converged on the "one-stream" paradigm, where a single Vision Transformer (ViT) jointly extracts features and models relations between a template and search region. While effective, this approach treats all image patches uniformly. In reality, background regions contain target-irrelevant distractors that require less attention, while target boundaries demand high-precision modeling. Standard transformers lack the flexibility to adapt their processing to these diverse requirements. Furthermore, fully fine-tuning large-scale ViTs for tracking is computationally intensive and risks losing the general-purpose features learned during pretraining.

The TMoE Architecture

To address these challenges, we introduce SPMTrack, featuring a Tailored Mixture of Experts (TMoE) module. Unlike traditional MoE architectures that typically replace only the Feed-Forward Network (FFN), TMoE is integrated into both the self-attention and FFN blocks.

The TMoE module architecture utilizes a frozen Shared Expert to preserve general knowledge and multiple trainable Routed Experts to learn tracking-specific features, optimized by a Compression Expert.

As shown in the TMoE architecture (Figure 3), the module consists of a frozen "Shared Expert" and several small, trainable "Routed Experts." This design serves as a Parameter-Efficient Fine-Tuning (PEFT) strategy: the shared expert maintains the backbone's pretrained knowledge, while the routed experts specialize in tracking nuances. A key finding was that applying MoE to the Query, Key, and Value projections in the attention layers yielded significantly higher gains than applying it only to the FFN, confirming that "relation modeling" is the most critical component to adapt for tracking. To maintain computational efficiency, a "Compression Expert" reduces the input dimensionality before it reaches the routed experts, ensuring that performance gains do not come at the cost of excessive overhead.

Spatio-Temporal Relation Modeling

SPMTrack extends relation modeling beyond simple image pairs by incorporating spatio-temporal context. Instead of just comparing the current frame to the initial template, SPMTrack integrates a sequence of historical "reference frames." It also introduces a learnable target state token that propagates information about the object's status across the entire video timeline. This allows the tracker to handle long-term dependencies and maintain target identity more effectively, ensuring the model is aware of the target's evolution over time.

Experimental Results

We evaluated SPMTrack across seven major benchmarks, including LaSOT, GOT-10k, and TrackingNet. Our results demonstrate that SPMTrack achieves state-of-the-art performance while remaining highly parameter-efficient.

SPMTrack variants (Base, Large, Giant) demonstrate a superior performance-to-parameter ratio on the LaSOT dataset compared to existing state-of-the-art trackers.

As illustrated in the performance comparison (Figure 1), SPMTrack-B (Base) achieves a 74.9% AUC on LaSOT with only 29.2M trainable parameters, outperforming larger models like OSTrack and GRM. The "Giant" version, SPMTrack-G, sets a new benchmark on GOT-10k with an Average Overlap (AO) of 81.0%. Qualitative analysis further shows that TMoE effectively suppresses background distractors and sharpens attention on target boundaries during challenging scenarios like partial occlusion or motion blur.

Conclusion

SPMTrack demonstrates that Mixture of Experts is a powerful tool for visual tracking, providing both flexibility in relation modeling and efficiency in fine-tuning. While the model shows slight limitations in high-frequency temporal consistency on datasets like NfS, its overall robustness and scalability mark a significant advancement in the field. Future work will explore varying expert configurations to further optimize the balance between attention and FFN adaptation, potentially extending this architecture to other video-based tasks like action recognition or video object segmentation.

Summary updated

BibTeX
@inproceedings{cai2025spmtrack,
  author = {Wenrui Cai and Qingjie Liu and Yunhong Wang},
  title = {{SPMTrack: Spatio-Temporal Parameter-Efficient Fine-Tuning with Mixture of Experts for Scalable Visual Tracking}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=K2cvp0onpR},
}
Figure