arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.06466cs.CV
收藏

面向冻结视觉Transformer输入空间自适应的提示生成网络

Prompt Generation Networks for Input-Space Adaptation of Frozen Vision Transformers

University of Amsterdam(阿姆斯特丹大学);BrainCreators;University of Oxford(牛津大学)

Jochem Loedeman, Maarten C. Stol, Tengda Han, Yuki M. Asano

AI总结:

本文提出提示生成网络PGN,为每个数据点生成视觉提示以适配冻结的预训练视觉Transformer,在12个数据集上大幅超越已有方法且参数量减少100倍,并引入提示反演技巧实现潜在空间训练与RGB空间推理部署。

摘要:

随着Transformer架构被引入计算机视觉,增大模型规模已被证明是实现性能和鲁棒性提升的明确路径。然而,当模型参数量达到数十亿级别时,传统的微调方法正变得越来越受限,甚至在模型像自然语言处理中那样以推理API形式托管时变得不可行。视觉输入提示学习是一种自适应技术,通过学习视觉(RGB)空间中的额外输入来适应冻结的、云端托管的模型,既不需要访问前向传播过程,也不需要后处理。但迄今为止,这些约束条件已显著降低了自适应性能。为此,我们提出了提示生成网络(Prompt Generation Network,PGN),它为每个数据点生成不同的提示,然后利用该提示将冻结的预训练视觉模型适配到目标任务。我们表明,PGN能够有效地将预训练模型适配到各种新数据集:它在12个数据集中的12个上大幅超越先前方法,甚至在12个数据集中的5个上优于完全微调,同时所需参数量减少100倍。最后,我们引入了“提示反演”技巧,借助该技巧,PGN可以在潜在空间中高效训练,但在推理时部署于RGB输入空间。

英文摘要:

With the introduction of the transformer architecture in computer vision, increasing model scale has been demonstrated as a clear path to achieving performance and robustness gains. However, with model parameter counts reaching the billions, classical finetuning approaches are becoming increasingly limiting and even unfeasible when models become hosted as inference APIs, as in NLP. Visual input-prompt learning, an adaptation technique in which additional inputs in visual (RGB) space are learned, has emerged as a potential solution for adapting frozen and cloud-hosted models, requiring neither access to the forward pass, nor post-processing. Yet so far, these constraints have deteriorated adaptation performances significantly. To this end, we propose the Prompt Generation Network (PGN) that generates a different prompt for every data point, which is then used to adapt a frozen pretrained vision model to a target task. We show that the PGN effectively adapts pretrained models to various new datasets: It surpasses previous methods by a large margin on 12/12 datasets and even outperforms full-finetuning on 5/12, while requiring 100x fewer parameters. Lastly, we introduce the "prompt inversion" trick, with which PGNs can be efficiently trained in a latent space but deployed in RGB input space for inference.

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

↑