arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10099cs.CV
收藏

面向分布泛化的任意分布偏移提示

Any-Shift Prompting for Generalization over Distributions

University of Amsterdam(阿姆斯特丹大学);Core42

Zehao Xiao, Jiayi Shen, Mohammad Mahdi Derakhshani, Shengcai Liao, Cees G. M. Snoek

AI总结:

针对提示学习过拟合训练分布的问题,提出任意分布偏移提示框架,通过分层架构与伪偏移训练机制连接训练与测试分布,指导 CLIP 模型泛化至任意测试分布,在二十三个数据集上验证了有效性。

摘要:

具有提示学习的图像-语言模型在众多下游视觉任务中取得了显著进展。然而,传统的提示学习方法会过拟合其训练分布,并丧失在测试分布上的泛化能力。为了提升在各种分布偏移下的泛化能力,我们提出了任意分布偏移提示:一种通用的概率推理框架,在提示学习过程中考虑训练分布与测试分布之间的关系。我们通过在分层架构中构建训练和测试提示,在潜在空间中显式连接训练与测试分布。在该框架内,测试提示利用分布关系来指导 CLIP 图像-语言模型从训练分布到任意测试分布的泛化。为了有效编码分布信息及其关系,我们进一步引入了带有伪偏移训练机制的 transformer 推理网络。该网络通过一次前向传播,结合训练与测试信息生成定制的测试提示,避免了测试时产生额外训练成本。在二十三个数据集上的大量实验证明了任意分布偏移提示在各种分布偏移泛化上的有效性。

英文摘要:

Image-language models with prompt learning have shown remarkable advances in numerous downstream vision tasks. Nevertheless, conventional prompt learning methods overfit their training distribution and lose the generalization ability on test distributions. To improve generalization across various distribution shifts, we propose any-shift prompting: a general probabilistic inference framework that considers the relationship between training and test distributions during prompt learning. We explicitly connect training and test distributions in the latent space by constructing training and test prompts in a hierarchical architecture. Within this framework, the test prompt exploits the distribution relationships to guide the generalization of the CLIP image-language model from training to any test distribution. To effectively encode the distribution information and their relationships, we further introduce a transformer inference network with a pseudo-shift training mechanism. The network generates the tailored test prompt with both training and test information in a feedforward pass, avoiding extra training costs at test time. Extensive experiments on twenty-three datasets demonstrate the effectiveness of any-shift prompting on the generalization over various distribution shifts.

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

↑