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

面向图像-语言模型泛化的贝叶斯提示学习

Bayesian Prompt Learning for Image-Language Model Generalization

University of Amsterdam(阿姆斯特丹大学);Samsung AI Cambridge(三星人工智能剑桥研究院);Technical University of Iasi(雅西技术大学);University of Trento(特伦托大学);Queen Mary University of London(伦敦玛丽女王大学)

Mohammad Mahdi Derakhshani, Enrique Sanchez, Adrian Bulat, Victor Guilherme Turrisi da Costa, Cees G. M. Snoek, Georgios Tzimiropoulos, Brais Martinez

AI总结:

针对图像-语言模型提示学习中经验风险最小化易受分布偏移影响、泛化性差的问题,提出贝叶斯提示学习框架,将其建模为变分推断问题,通过先验分布正则化提示空间,在15个基准上验证了其跨数据集和领域的未见提示泛化能力提升效果。

摘要:

基础图像-语言模型因可通过提示学习高效适配下游任务而受到广泛关注。提示学习将语言模型的部分输入设为可训练参数,同时冻结其余部分,并优化经验风险最小化目标。然而,经验风险最小化存在分布偏移问题,会损害模型对训练期间未见提示的泛化能力。我们利用贝叶斯方法的正则化能力,从贝叶斯视角构建提示学习框架,将其形式化为变分推断问题。该方法对提示空间施加正则化,减少对已见提示的过拟合,提升模型在未见提示上的泛化表现。我们的框架通过对输入提示空间进行概率建模(将其作为先验分布)实现,这一设计使我们的方案兼容无条件提示学习方法以及以图像为条件的提示学习方法。我们在15个基准上进行了实验验证,结果表明贝叶斯提示学习能合理覆盖提示空间,防止学习到虚假特征,并能利用可迁移的不变特征。这使得模型在未见提示上的泛化能力更强,甚至能跨不同数据集和领域实现泛化。代码可在https://github.com/saic-fi/Bayesian-Prompt-Learning获取。

英文摘要:

Foundational image-language models have generated considerable interest due to their efficient adaptation to downstream tasks by prompt learning. Prompt learning treats part of the language model input as trainable while freezing the rest, and optimizes an Empirical Risk Minimization objective. However, Empirical Risk Minimization is known to suffer from distributional shifts which hurt generalizability to prompts unseen during training. By leveraging the regularization ability of Bayesian methods, we frame prompt learning from the Bayesian perspective and formulate it as a variational inference problem. Our approach regularizes the prompt space, reduces overfitting to the seen prompts and improves the prompt generalization on unseen prompts. Our framework is implemented by modeling the input prompt space in a probabilistic manner, as an a priori distribution which makes our proposal compatible with prompt learning approaches that are unconditional or conditional on the image. We demonstrate empirically on 15 benchmarks that Bayesian prompt learning provides an appropriate coverage of the prompt space, prevents learning spurious features, and exploits transferable invariant features. This results in better generalization of unseen prompts, even across different datasets and domains. Code available at: https://github.com/saic-fi/Bayesian-Prompt-Learning

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

↑