跟踪遇上LoRA:更快的训练,更大的模型,更强的性能
Tracking Meets LoRA: Faster Training, Larger Model, Stronger Performance
AI总结:
提出LoRAT方法,通过解耦位置嵌入和设计纯MLP无锚头,将LoRA高效微调技术引入视觉跟踪,在实验室级资源下实现ViT-g骨干训练,显著缩短训练时间并提升跟踪性能与推理速度。
摘要:
受大型语言模型中参数高效微调(PEFT)的启发,我们提出了LoRAT,这是一种在实验室级资源下释放大型ViT模型在跟踪任务中潜力的方法。我们工作的核心在于将LoRA(一种仅微调模型参数的一小部分且不增加推理延迟的技术)适配到视觉跟踪领域。然而,独特的挑战和潜在的领域差距使得这种迁移并非如最初直觉般容易。首先,基于Transformer的跟踪器为模板和搜索图像构建不共享的位置嵌入。这对LoRA的迁移构成了挑战,因为LoRA在应用于预训练骨干网络到下游任务时通常要求设计上的一致性。其次,卷积头固有的归纳偏置削弱了参数高效微调在跟踪模型中的有效性。为克服这些限制,我们首先将基于Transformer的跟踪器中的位置嵌入解耦为共享的空间位置嵌入和独立的类型位置嵌入。描述多分辨率图像(即模板和搜索图像)绝对坐标的共享嵌入继承自预训练骨干网络。相反,指示每个token来源的独立嵌入则从头学习。此外,我们设计了一个完全基于MLP的无锚头以适配PETR,在更少的计算开销下实现更好的性能。通过我们的设计:1) 在仅有25.8GB显存的GPU上(批次大小为16)训练基于ViT-g骨干网络的跟踪器成为可能;2) 我们将L-224变体的训练时间从35.0个GPU小时减少到10.8个GPU小时;3) 我们使用L-224变体将LaSOT的SUC分数从0.703提升至0.742;4) 我们将L-224变体的推理速度从52 FPS提升至119 FPS。代码和模型可在https://github.com/LitingLin/LoRAT获取。
英文摘要:
Motivated by the Parameter-Efficient Fine-Tuning (PEFT) in large language models, we propose LoRAT, a method that unveils the power of large ViT model for tracking within laboratory-level resources. The essence of our work lies in adapting LoRA, a technique that fine-tunes a small subset of model parameters without adding inference latency, to the domain of visual tracking. However, unique challenges and potential domain gaps make this transfer not as easy as the first intuition. Firstly, a transformer-based tracker constructs unshared position embedding for template and search image. This poses a challenge for the transfer of LoRA, usually requiring consistency in the design when applied to the pre-trained backbone, to downstream tasks. Secondly, the inductive bias inherent in convolutional heads diminishes the effectiveness of parameter-efficient fine-tuning in tracking models. To overcome these limitations, we first decouple the position embeddings in transformer-based trackers into shared spatial ones and independent type ones. The shared embeddings, which describe the absolute coordinates of multi-resolution images (namely, the template and search images), are inherited from the pre-trained backbones. In contrast, the independent embeddings indicate the sources of each token and are learned from scratch. Furthermore, we design an anchor-free head solely based on MLP to adapt PETR, enabling better performance with less computational overhead. With our design, 1) it becomes practical to train trackers with the ViT-g backbone on GPUs with only memory of 25.8GB (batch size of 16); 2) we reduce the training time of the L-224 variant from 35.0 to 10.8 GPU hours; 3) we improve the LaSOT SUC score from 0.703 to 0.742 with the L-224 variant; 4) we fast the inference speed of the L-224 variant from 52 to 119 FPS. Code and models are available at https://github.com/LitingLin/LoRAT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。