Introduction
Transformer-based models have set new benchmarks in visual object tracking due to their superior ability to model long-range dependencies. However, their high computational cost poses significant challenges for deployment on edge devices. In the paper "General Compression Framework for Efficient Transformer Object Tracking," researchers from Fudan University and Lenovo Research present CompressTracker, a model-agnostic framework designed to compress transformer trackers while maintaining high performance and simplifying the training process.
Problem Statement
Visual object tracking requires real-time localization of a target across video frames. While Transformers excel at this task, existing compression methods often fall short in three critical areas:
- Accuracy Loss: Lightweight models frequently suffer from underfitting when designed from scratch.
- Training Complexity: Techniques like knowledge distillation often involve multi-stage, time-consuming pipelines that can take weeks to train.
- Structural Constraints: Many methods require the student model to mirror the teacher's architecture exactly, limiting design flexibility for specific hardware.
Methodology: The CompressTracker Framework
CompressTracker introduces a "structurally agnostic" approach to compression through three core innovations:
1. Stage Division
The teacher model is partitioned into sequential stages. For instance, a 12-layer teacher can be divided into four stages of three layers each to match a 4-layer student. This allows for granular, stage-wise learning regardless of the internal architecture of the student layers.
2. Replacement Training
During training, the framework randomly replaces student stages with corresponding frozen teacher stages using Bernoulli sampling. This "replacement training" forces student layers to act as functional substitutes for high-performing teacher components within the full model context.
3. Progressive Replacement
A "warmup" strategy is employed where teacher stages are used frequently early in training. As training progresses, the probability of using student layers increases to 100%, ensuring the student can eventually perform independently during inference.
4. Auxiliary Supervision
To further refine the student model, the authors incorporate Prediction Guidance, which aligns the student's final output with the teacher's predictions, and Stage-wise Feature Mimicking, which ensures intermediate feature representations are consistent across the models.
Experimental Setup
The framework was evaluated on major tracking benchmarks, including LaSOT, LaSOT_ext, TrackingNet, TNL2K, and UAV123. Training utilized standard datasets such as GOT-10k and COCO to ensure broad generalization.
Key Results and Discussion
CompressTracker demonstrates significant improvements in both efficiency and performance across various base models like OSTrack and SUTrack.
- Efficiency: CompressTracker-SUTrack achieved a 2.42× speedup while retaining 99% of the original teacher's AUC (72.2%) on LaSOT.
- Training Speed: The framework significantly reduces training time. For example, CompressTracker-OSTrack-4 requires only 20 hours of training on 8× NVIDIA RTX 3090 GPUs, compared to 120 hours for previous state-of-the-art methods like MixFormerV2.
- Generalization: The framework successfully compressed models into various configurations (2, 3, 4, 6, and 8 layers), proving its structural agnosticism and scalability.
Conclusion
CompressTracker offers a robust solution for deploying high-performance transformer trackers on resource-constrained devices. By breaking structural dependencies and utilizing replacement training, it achieves a superior balance of accuracy, speed, and training efficiency. Future research may extend this framework to two-stream architectures and further optimize the resource requirements of the compression process itself.
Summary updated