Abstract
Transformer-based architectures have significantly advanced the state-of-the-art in visual tracking but often at the cost of high computational overhead, making them unsuitable for edge deployment. This paper explores HiT, a family of lightweight hierarchical vision transformers designed specifically for high-performance tracking on resource-constrained devices. By introducing a novel Bridge Module to recover spatial details and a dual-image position encoding to enhance spatial awareness, HiT achieves a 64.6% AUC on the LaSOT benchmark while maintaining a real-time speed of 61 FPS on an Nvidia Jetson AGX Xavier.
1. Introduction
Visual object tracking is a fundamental task in computer vision, yet the transition from high-end desktop GPUs to edge devices like drones and mobile robots remains a significant challenge. While Transformer-based trackers have set new records for accuracy, their heavy computational requirements often prevent them from reaching real-time speeds on mobile hardware.
Existing attempts to optimize these models typically involve using lightweight hierarchical backbones, such as LeViT. However, these backbones utilize large-stride downsampling to reduce computation, which inadvertently discards the fine-grained spatial information essential for precise object localization. This research addresses the gap between the efficiency of hierarchical transformers and the spatial precision required for robust tracking.
2. Methodology
HiT adopts a one-stream architecture, where the template and search region are processed simultaneously within a single backbone. This design facilitates early feature interaction, which is more efficient than traditional two-branch Siamese approaches. The framework introduces two primary innovations to overcome the limitations of hierarchical backbones.
2.1 The Bridge Module
The Bridge Module serves as a spatial recovery unit. In hierarchical transformers, deeper stages provide high-level semantic features ("what" the object is) but lose resolution. The Bridge Module fuses these semantic features back into the shallow, high-resolution features from earlier layers. This ensures the tracking head receives a feature map that combines rich semantics with the precise spatial detail ("where" the object is) necessary for accurate bounding box prediction.
2.2 Dual-Image Position Encoding
Standard position encodings can lead to confusion when the template and search images are processed together, as the model may struggle to distinguish between the two coordinate spaces. HiT introduces a "diagonal arrangement" for position encoding. By placing the template and search regions in a virtual, non-overlapping coordinate space, every pixel in both images is assigned a unique coordinate. This simple shift significantly improves the model's discriminative power without adding computational complexity.
2.3 Backbone Integration
The framework is primarily built upon LeViT, a transformer-based backbone optimized for fast inference. To demonstrate the flexibility of the HiT framework, the authors also successfully integrated PVT-Small, showing that the Bridge Module and dual-encoding benefits are not limited to a single architecture.
3. Experiments
3.1 Implementation Details
The HiT models were trained on standard large-scale tracking datasets, including TrackingNet, GOT-10k, LaSOT, and COCO2017. Evaluation was conducted across diverse benchmarks such as UAV123 (low-altitude drone footage) and VOT2021 to test performance in varied environmental conditions.
3.2 Performance on Edge Hardware
Testing on the Nvidia Jetson AGX Xavier—a common platform for edge robotics—revealed that HiT-Base runs at 61 FPS. In comparison, the high-performance TransT tracker achieves only 13 FPS on the same hardware. HiT-Base also demonstrates superior efficiency compared to STARK-ST50, delivering comparable accuracy while being 4.7x faster.
3.3 Benchmark Results
On the LaSOT benchmark, HiT-Base achieved a 64.6% AUC, outperforming previous efficient tracking models. The authors also released HiT-Small and HiT-Tiny variants, which allow for further speed increases (up to 77 FPS) with only marginal decreases in tracking accuracy.
4. Discussion and Insights
A key finding of this research is that for the tracking task, the loss of spatial resolution in hierarchical transformers is a more significant bottleneck than model depth. The success of the Bridge Module suggests that recycling high-resolution features from earlier layers is a more efficient path to accuracy than simply adding more layers. Furthermore, the diagonal position encoding proves that spatial awareness can be improved through coordinate system design rather than increased parameter counts.
5. Conclusion and Future Work
HiT provides a minimalist yet effective framework for bringing Transformer-based tracking to the edge. While the model excels in efficiency, it currently lacks an explicit module for handling complex distractors—objects that closely resemble the target. Future research will focus on developing lightweight distractor-filtering modules and exploring transformer architectures designed from the ground up for tracking rather than adapting classification-based backbones.
Summary updated