Uncertainty-Guided Inference-Time Depth Adaptation for Transformer-Based Visual Tracking
Organizations: ∗University of Illinois at Chicago
Abstract
Transformer-based single-object trackers achieve state-of-the-art accuracy but rely on fixed-depth inference, executing the full encoder--decoder stack for every frame regardless of visual complexity, thereby incurring unnecessary computational cost in long video sequences dominated by temporally coherent frames. We propose UncL-STARK, an architecture-preserving approach that enables dynamic, uncertainty-aware depth adaptation in transformer-based trackers without modifying the underlying network or adding auxiliary heads. The model is fine-tuned to retain predictive robustness at multiple intermediate depths using random-depth training with knowledge distillation, thus enabling safe inference-time truncation. At runtime, we derive a lightweight uncertainty estimate directly from the model's corner localization heatmaps and use it in a feedback-driven policy that selects the encoder and decoder depth for the next frame based on the prediction confidence by exploiting temporal coherence in video. Extensive experiments on GOT-10k and LaSOT demonstrate up to 12% GFLOPs reduction, 8.9% latency reduction, and 10.8% energy savings while maintaining tracking accuracy within 0.2% of the full-depth baseline across both short-term and long-term sequences.
Figures & tables
| Combination | GOT-10k (val) | LaSOT (test) | Average | Avg (%) |
| (1,1) | 0.7670 | 0.6102 | 0.6886 | – |
| (2,2) | 0.7930 | 0.6459 | 0.7195 | +4.48 |
| (3,3) | 0.8012 | 0.6545 | 0.7279 | +1.17 |
| (4,4) | 0.8031 | 0.6587 | 0.7309 | +0.41 |
| (5,5) | 0.8084 | 0.6581 | 0.7333 | +0.33 |
| Dataset | AO / AUC | GFLOPs | Lat./En. | |
| LaSOT (test) | 65.69 / 64.60 | 0.20 / 0.17 | 12.0 | 8.9 / 10.8 |
| GOT-10k (val) | 0.8198 / 80.42 | 0.19 / 0.17 | 11.9 | 7.1 / 4.3 |
| GOT-10k (test) | 0.672 / – | 1.04 / – | 11.4 | 7.8 / 6.1 |
| Dataset | Method | Acc. | Drop (%) | FLOPs | Latency | Energy | Adapt. vs. Fixed (3,3) |
| LaSOT (test) | Baseline (5,5) | 64.71 (AUC) | |||||
| Fixed (3,3) | 64.38 (AUC) | 0.50 | 12.7% | 9.4% | 11.5% | ✓ | |
| Adaptive Tracker | 64.60 (AUC) | 0.17 | 12.0% | 8.9% | 10.8% | ||
| GOT-10k (val) | Baseline (5,5) | 0.8213 (AO) | |||||
| Fixed (3,3) | 0.8162 (AO) | 0.62 | 12.6% | 7.3% | 4.5% | ✓ | |
| Adaptive Tracker | 0.8198 (AO) | 0.19 | 11.9% | 7.1% | 4.3% |
| Dataset | Metric | Random | Threshold | (%) |
| GOT-10k (val) | Mean IoU (seq.) | 0.8015 | 0.8038 | +0.29 |
| AO (frames) | 0.8171 | 0.8198 | +0.33 | |
| Mean Loss | 1.8841 | 1.8819 | +0.11 | |
| GFLOPs (mean) | 21.98 | 21.61 | -1.7 | |
| Latency (ms) | 23.09 | 22.91 | -1.2 | |
| Energy (J) | 234.46 | 237.61 | +3.3 |
Visual Object Tracking
Visual object tracking follows objects across video frames, maintaining their locations and identities despite motion, occlusion, and changing appearance.
See all 175 papers