arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02887cs.CVcs.LG
收藏

时间、内存和参数高效的视觉适配

Time-, Memory- and Parameter-Efficient Visual Adaptation

Google(谷歌);University of Tübingen(蒂宾根大学)

Otniel-Bogdan Mercea, Alexey Gritsenko, Cordelia Schmid, Anurag Arnab

AI总结:

提出一种不反向传播梯度的视觉适配方法,通过并行轻量网络利用冻结骨干特征,在参数、训练时间和内存上均高效,在VTAB基准上达到最优权衡,并成功适配40亿参数骨干用于视频分类。

摘要:

随着基础模型变得越来越流行,对下游任务进行高效微调的需求日益增长。尽管已经提出了许多适配方法,但它们仅在设计上针对训练参数的数量进行效率优化。然而,这些方法通常仍然需要在整个模型中反向传播梯度,这意味着它们的训练时间和内存成本并未显著降低。我们提出了一种适配方法,该方法不通过骨干网络反向传播梯度。我们通过设计一个轻量级并行网络来实现这一点,该网络作用于冻结的、预训练的骨干网络的特征。因此,我们的方法不仅在参数方面高效,而且在训练时间和内存使用方面也高效。我们的方法在流行的VTAB基准上实现了最先进的精度-参数权衡,并进一步展示了我们在训练时间和内存使用方面也优于先前的工作。我们进一步通过将具有40亿参数的视觉Transformer骨干网络适配到计算要求高的视频分类任务中,展示了我们方法的训练效率和可扩展性,而无需复杂的模型并行。在这里,我们优于先前基于适配器的方法,该方法只能扩展到10亿参数的骨干网络,或者完全微调较小的骨干网络,同时使用相同的GPU和更少的训练时间。

英文摘要:

As foundation models become more popular, there is a growing need to efficiently finetune them for downstream tasks. Although numerous adaptation methods have been proposed, they are designed to be efficient only in terms of how many parameters are trained. They, however, typically still require backpropagating gradients throughout the model, meaning that their training-time and -memory cost does not reduce as significantly. We propose an adaptation method which does not backpropagate gradients through the backbone. We achieve this by designing a lightweight network in parallel that operates on features from the frozen, pretrained backbone. As a result, our method is efficient not only in terms of parameters, but also in training-time and memory usage. Our approach achieves state-of-the-art accuracy-parameter trade-offs on the popular VTAB benchmark, and we further show how we outperform prior works with respect to training-time and -memory usage too. We further demonstrate the training efficiency and scalability of our method by adapting a vision transformer backbone of 4 billion parameters for the computationally demanding task of video classification, without any intricate model parallelism. Here, we outperform a prior adaptor-based method which could only scale to a 1 billion parameter backbone, or fully-finetuning a smaller backbone, with the same GPU and less training time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑