视觉查询调优:面向参数与内存高效迁移学习的中间表示有效利用
Visual Query Tuning: Towards Effective Usage of Intermediate Representations for Parameter and Memory Efficient Transfer Learning
AI总结:
本文提出视觉查询调优(VQT),通过每层少量可学习查询token汇总Vision Transformers中间特征,在内存约束下提升迁移学习准确率,并可与参数高效微调方法互补结合。
摘要:
预训练模型的中间特征已被证明有助于在下游任务上做出准确预测,即使模型骨干保持冻结也是如此。关键挑战在于,鉴于这些中间特征数量庞大,应如何利用它们。我们提出视觉查询调优(visual query tuning,VQT),这是一种简单而有效的方法,用于聚合 Vision Transformers 的中间特征。通过向每一层引入少量可学习的“查询”token,VQT 利用 Transformers 的内部机制来“总结”每一层丰富的中间特征,随后这些特征可用于训练下游任务的预测头。由于 VQT 保持中间特征不变,并且仅学习对其进行组合,因此与许多其他学习适配特征并需要通过整个骨干进行反向传播的参数高效微调方法相比,它在训练中具备内存效率。这也表明 VQT 与这些方法在迁移学习中具有互补作用。实验上,VQT 始终优于利用中间特征进行迁移学习的最先进方法,并在许多情况下超过全量微调。与适配特征的参数高效方法相比,VQT 在内存约束下实现了高得多的准确率。最重要的是,VQT 可与这些方法兼容以获得更高准确率,使其成为进一步提升迁移学习的简单附加组件。
英文摘要:
Intermediate features of a pre-trained model have been shown informative for making accurate predictions on downstream tasks, even if the model backbone is kept frozen. The key challenge is how to utilize these intermediate features given their gigantic amount. We propose visual query tuning (VQT), a simple yet effective approach to aggregate intermediate features of Vision Transformers. Through introducing a handful of learnable ``query'' tokens to each layer, VQT leverages the inner workings of Transformers to ``summarize'' rich intermediate features of each layer, which can then be used to train the prediction heads of downstream tasks. As VQT keeps the intermediate features intact and only learns to combine them, it enjoys memory efficiency in training, compared to many other parameter-efficient fine-tuning approaches that learn to adapt features and need back-propagation through the entire backbone. This also suggests the complementary role between VQT and those approaches in transfer learning. Empirically, VQT consistently surpasses the state-of-the-art approach that utilizes intermediate features for transfer learning and outperforms full fine-tuning in many cases. Compared to parameter-efficient approaches that adapt features, VQT achieves much higher accuracy under memory constraints. Most importantly, VQT is compatible with these approaches to attain even higher accuracy, making it a simple add-on to further boost transfer learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。