Efficient Motion Prompt Learning for Robust Visual Tracking

Jie Zhao, Xin Chen, Yongsheng Yuan, Michael Felsberg, Dong Wang, Huchuan Lu

Introduction

Modern Visual Object Tracking (VOT) has seen significant progress through appearance-based models that match a template image to a search region. However, these trackers often struggle with temporal coherence—the ability to understand an object's trajectory over time. When faced with occlusions or similar-looking distractors, appearance-only models frequently drift. While some temporal trackers attempt to solve this, they typically rely on heavy sequential training, which demands substantial GPU memory and long training cycles.

This paper introduces Motion Prompt-based Tracking (MPT), a lightweight, plug-and-play module that equips existing visual trackers with a "sense of motion." By treating historical trajectories as prompts rather than requiring exhaustive retraining of the base model, MPT achieves robust tracking with minimal computational overhead.

The MPT Framework

The MPT module is designed to be integrated into state-of-the-art trackers (such as OSTrack or SeqTrack) without modifying their original weights. This "prompt learning" approach allows the base tracker to remain frozen while the MPT module is fine-tuned to interpret temporal context.

Motion Encoding

The core of the module is a Motion Encoder that transforms bounding boxes from the previous $T$ frames into "motion tokens." This process utilizes three specialized types of positional encoding:

  1. Spatial Positional Encoding (PE): Maps 2D coordinates into a high-dimensional space.
  2. Point Embedding: Enables the model to distinguish between the top-left and bottom-right corners of a bounding box.
  3. Non-Linear Temporal PE: A novel approach based on Nyquist frequency theory. Unlike standard linear mappings, this prioritizes recent frames using a logarithmic scale, reflecting the reality that immediate history is often more predictive of near-future motion.

Fusion and Adaptive Weighting

Once motion tokens are generated, a Fusion Decoder—a lightweight Transformer—blends these tokens with the visual features from the base tracker. To ensure the model doesn't over-rely on potentially noisy motion data, the authors implemented an Adaptive Weight Mechanism. This mechanism dynamically predicts a weight ($W_M$) to balance motion and visual cues. If the motion prediction is high-quality, the model leans on it; if the motion data appears unreliable, it reverts to appearance-based tracking.

Experimental Results

The researchers evaluated MPT across seven major tracking benchmarks, including VOT2018, VOT2022, and LaSOT. The module was tested on five different base models across three distinct architectures (OSTrack, SeqTrack, and ARTrack).

Performance Gains

The addition of MPT yielded substantial improvements, particularly in challenging scenarios:

  • VOT2018: MPT achieved a 10.2% average gain in Expected Average Overlap (EAO).
  • Robustness in Complexity: On the "hard" subset of the LaSOT dataset, MPT improved performance by 4.4%. Interestingly, the performance gains were most pronounced in difficult cases (occlusions, distractors), while remaining neutral in "easy" cases where motion cues are less critical.

Training and Inference Efficiency

One of the most compelling aspects of MPT is its efficiency. For an OSTrack-B base model, training the MPT module required only 5 hours and 6GB of GPU memory. In contrast, training the original base model took 38 hours and 35GB. Furthermore, the impact on inference speed is negligible; for example, OSTrack-B's speed only decreased from 94 FPS to 86 FPS, remaining well above real-time requirements.

Conclusion and Future Work

The MPT module demonstrates that heavy sequential training is not a prerequisite for capturing temporal relations in video. By utilizing trajectories as prompts, researchers can significantly enhance the robustness of frozen visual models. Qualitatively, MPT allows trackers to "see through" occlusions by maintaining a search window on the predicted path, enabling immediate re-acquisition once the target reappears.

A current limitation is the potential for error propagation: if a tracker begins following the wrong object, the MPT module will treat that incorrect path as a valid prompt. Future research will focus on outlier detection to recognize when historical data has become unreliable and exploring more complex, non-linear dynamic relations within the prompting framework.

Summary updated

BibTeX
@inproceedings{zhao2025efficient,
  author = {Jie Zhao and Xin Chen and Yongsheng Yuan and Michael Felsberg and Dong Wang and Huchuan Lu},
  title = {{Efficient Motion Prompt Learning for Robust Visual Tracking}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=aDVzd958YY},
}
Figure