arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.04105cs.LGcs.CV
收藏

你的表示就在网络中:面向大规模模型的可组合并行适配

Your representations are in the network: composable and parallel adaptation for large scale models

AWS AI Labs(亚马逊云科技人工智能实验室)

Yonatan Dukler, Alessandro Achille, Hao Yang, Varsha Vivek, Luca Zancato, Benjamin Bowman, Avinash Ravichandran, Charless Fowlkes, Ashwin Swaminathan, Stefano Soatto

AI总结:

本文提出轻量级迁移学习方法 InCA,通过外部交叉注意适配器复用预训练模型多层激活,以低成本逼近全量微调并支持并行多任务。

摘要:

我们提出 InCA,这是一种用于迁移学习的轻量级方法,可对预训练模型的任意激活层进行交叉注意。训练期间,InCA 使用单次前向传播提取多个激活,并将其传递给外部交叉注意适配器;这些适配器经过重新训练,并针对下游任务进行组合或选择。我们表明,即使只选择一个得分最高的适配器,InCA 也能取得与全量微调相当的性能,而成本仅与微调最后一层相当。例如,在 11 个下游分类任务上平均而言,使用一个大小仅为预训练 ViT-L/16 模型 1.3% 的交叉注意探针,我们取得的性能与全量微调这一最佳范例相差不超过 0.2%,而训练计算成本仅为基线的 51%。与其他形式的高效适配不同,InCA 不需要通过预训练模型进行反向传播,因此在训练和推理时都不会改变其执行方式。InCA 的多功能性在细粒度任务中得到了最好体现,这类任务可能需要访问最后一层中不存在、但可在中间层激活中获得的信息。由于骨干网络固定,InCA 支持并行集成以及多个任务的并行执行。InCA 在 ImageNet-to-Sketch 多任务基准上取得了最先进的性能。

英文摘要:

We propose InCA, a lightweight method for transfer learning that cross-attends to any activation layer of a pre-trained model. During training, InCA uses a single forward pass to extract multiple activations, which are passed to external cross-attention adapters, trained anew and combined or selected for downstream tasks. We show that, even when selecting a single top-scoring adapter, InCA achieves performance comparable to full fine-tuning, at a cost comparable to fine-tuning just the last layer. For example, with a cross-attention probe 1.3% the size of a pre-trained ViT-L/16 model, we achieve performance within 0.2% of the full fine-tuning paragon at a computational training cost of 51% of the baseline, on average across 11 downstream classification. Unlike other forms of efficient adaptation, InCA does not require backpropagating through the pre-trained model, thus leaving its execution unaltered at both training and inference. The versatility of InCA is best illustrated in fine-grained tasks, which may require accessing information absent in the last layer but accessible in intermediate layer activations. Since the backbone is fixed, InCA allows parallel ensembling as well as parallel execution of multiple tasks. InCA achieves state-of-the-art performance in the ImageNet-to-Sketch multi-task benchmark.

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

↑