SeqTrack: Sequence to Sequence Learning for Visual Object Tracking

Xin Chen, Houwen Peng, Dong Wang, Huchuan Lu, Han HuarXiv 2023 · DOI

Visual object tracking has traditionally been treated as a complex multi-task problem, requiring specialized architectural "heads" for classification and regression. In a collaboration between Dalian University of Technology and Microsoft Research, the authors of SeqTrack propose a paradigm shift: redefining tracking as a sequence-to-sequence (Seq2Seq) generation task. By discretizing bounding box coordinates into tokens, a standard transformer can "read out" object locations like words in a sentence, eliminating the need for task-specific engineering.

A New Paradigm for Tracking

Traditional trackers typically employ a "divide-and-conquer" strategy. They use a backbone to extract features and then rely on separate heads: one to localize the object center (classification) and another to estimate its scale (regression). This approach introduces architectural complexity and hyperparameter sensitivity, as training requires balancing multiple loss functions like cross-entropy, $\ell_1$, and IoU loss.

Comparison of traditional tracking architectures (classification/regression and corner heads) versus the proposed SeqTrack Seq2Seq framework.

SeqTrack simplifies this by treating the bounding box $[x, y, w, h]$ as a sequence of discrete tokens. This unified framework allows the model to learn tracking through a single, simple cross-entropy loss, making it more robust and easier to scale across different modalities.

Methodology: Tracking as Sequence Generation

The SeqTrack architecture consists of a standard encoder-decoder transformer.

  1. Encoder: A Vision Transformer (ViT) extracts features from the "template" (the target object) and the "search region" (the current frame).
  2. Decoder: A causal transformer generates box tokens one by one. It processes the visual features and "writes" the coordinates in the sequence $[x, y, w, h, \text{end}]$.
  3. Discretization: Continuous coordinates are mapped to discrete integers (bins). This allows the model to treat localization as a vocabulary-based generation task rather than a continuous regression problem.
The SeqTrack decoder architecture, showing the word-to-embedding process and the autoregressive generation of bounding box tokens.

A key finding of the paper is that the autoregressive nature of the decoder—generating coordinates one-by-one—is superior to bidirectional prediction. By "knowing" the $x, y$ position before estimating the $w, h$ size, the model achieves better spatial awareness.

SeqTrackv2: The Unified Multi-Modal Interface

Building on the Seq2Seq foundation, SeqTrackv2 introduces a unified interface for multi-modal tracking. Whether the input is a thermal image, a depth map, or a natural language description (e.g., "the zebra running on the grass"), it is converted into a sequence of embeddings.

To manage these diverse inputs, the model uses Task Prompting. A specific "task-prompt" token is added to the sequence to inform the model of the tracking context (e.g., RGB+Thermal vs. RGB+Language). This allows a single set of model parameters to handle vastly different sensor types without modality-specific modifications.

Key Results and Performance

SeqTrack achieves state-of-the-art performance across 14 benchmarks, demonstrating that simplicity can indeed scale:

  • RGB Tracking: SeqTrack-B256 achieved a 74.7% AO on GOT-10k, outperforming the previous state-of-the-art OSTrack by 3.7%.
  • Multi-Modal Tracking: SeqTrackv2-L384 reached a 61.0% AUC on the LasHeR (RGB+Thermal) benchmark, a significant 8.5% improvement over previous leaders like ViPT.
  • Efficiency: Despite its transformer-based architecture, SeqTrack-B256 maintains a real-time speed of 40 FPS.

Conclusion

SeqTrack demonstrates that visual tracking does not require specialized geometric heads or complex loss balancing. By framing tracking as a sequence generation task, the authors have created a versatile, high-performance framework that unifies standard RGB tracking with multi-modal inputs. While challenges remain regarding long-term occlusion and zero-shot adaptation to new sensors, SeqTrack represents a significant step toward universal visual perception models.

Summary updated

BibTeX
@misc{chen2023seqtrack,
  author = {Xin Chen and Houwen Peng and Dong Wang and Huchuan Lu and Han Hu},
  title = {{SeqTrack: Sequence to Sequence Learning for Visual Object Tracking}},
  year = {2023},
  eprint = {2304.14394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.14394},
}
Figure