[Paper Review] TrTr: Visual Tracking with Transformer
TrTr introduces a Transformer encoder-decoder architecture for visual tracking, replacing cross-correlation with self- and cross-attention to capture global contextual dependencies, and adds an online update module to boost robustness.
Template-based discriminative trackers are currently the dominant tracking methods due to their robustness and accuracy, and the Siamese-network-based methods that depend on cross-correlation operation between features extracted from template and search images show the state-of-the-art tracking performance. However, general cross-correlation operation can only obtain relationship between local patches in two feature maps. In this paper, we propose a novel tracker network based on a powerful attention mechanism called Transformer encoder-decoder architecture to gain global and rich contextual interdependencies. In this new architecture, features of the template image is processed by a self-attention module in the encoder part to learn strong context information, which is then sent to the decoder part to compute cross-attention with the search image features processed by another self-attention module. In addition, we design the classification and regression heads using the output of Transformer to localize target based on shape-agnostic anchor. We extensively evaluate our tracker TrTr, on VOT2018, VOT2019, OTB-100, UAV, NfS, TrackingNet, and LaSOT benchmarks and our method performs favorably against state-of-the-art algorithms. Training code and pretrained models are available at https://github.com/tongtybj/TrTr.
Motivation & Objective
- Motivate improving tracking robustness and accuracy beyond local cross-correlation by capturing global context.
- Propose a Transformer-based architecture to perform both target classification and bounding-box regression for tracking.
- Incorporate an online update module to adapt to appearance changes during tracking.
- Evaluate on major benchmarks to demonstrate competitive performance and real-time speed.
Proposed method
- Use a Transformer encoder to process template features with self-attention.
- Use a Transformer decoder to process search features with self-attention and cross-attention to template features.
- Replace traditional cross-correlation with multi-head attention to model global relations.
- Apply shape-agnostic anchor-based heads for classification and regression.
- Incorporate an online update branch to adapt classification during tracking.
- Train end-to-end on large video datasets with focal loss for classification and L1-based regression losses.
Experimental results
Research questions
- RQ1Can Transformer-based attention mechanisms enable global context reasoning to improve tracking accuracy and robustness over local cross-correlation?
- RQ2Does a shape-agnostic anchor-based regression head improve localization under appearance changes and distractors?
- RQ3What is the impact of adding an online update module on tracking performance and robustness?
- RQ4How does a reduced Transformer depth (1 encoder + 1 decoder) affect performance and speed in tracking?
- RQ5Can this approach achieve real-time tracking while competing with state-of-the-art Siamese-based trackers across benchmarks?
Key findings
- TrTr-offline achieves strong accuracy and robustness on VOT2018/2019, outperforming several Siamese-based trackers in accuracy.
- Adding an online update module (TrTr-online) significantly improves EAO on VOT benchmarks compared to offline alone.
- On OTB-100, TrTr-online achieves the highest reported AUC among evaluated methods.
- On UAV123 and NfS, TrTr-online ranks among the top methods, with notable gains over several baselines.
- On TrackingNet and LaSOT, TrTr shows competitive performance but larger-scale datasets reveal areas for improvement.
- The model runs in real-time, with offline ~50 FPS and ~35 FPS when online update is integrated.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.