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

贝叶斯跨模态对齐学习用于少样本分布外泛化

Bayesian Cross-Modal Alignment Learning for Few-Shot Out-of-Distribution Generalization

Lin Zhu, Xinbing Wang, Chenghu Zhou, Nanyang Ye

AI总结:

针对少样本分布外泛化困境,提出贝叶斯跨模态对齐学习方法(Bayes-CAL),通过贝叶斯微调文本表示和专用损失解耦图像特征,在二维分布偏移上取得最先进性能,且对未见类泛化更稳定。

摘要:

近期大型预训练模型的进展在少样本学习方面展现了有前景的结果。然而,它们在二维分布外(OoD)数据(即相关性偏移和多样性偏移)上的泛化能力尚未得到彻底研究。研究表明,即使拥有大量训练数据,也很少有方法能在OoD泛化中取得优于标准经验风险最小化方法(ERM)的性能。这种少样本OoD泛化困境成为深度神经网络泛化研究中的一个挑战性方向,其性能受到少样本示例过拟合和OoD泛化误差的影响。本文利用更广泛的监督来源,探索了一种新颖的贝叶斯跨模态图像-文本对齐学习方法(Bayes-CAL)来解决这一问题。具体而言,模型设计为仅通过贝叶斯建模方法微调文本表示,并采用梯度正交化损失和不变风险最小化(IRM)损失。引入贝叶斯方法主要是为了避免对训练中观察到的基类过拟合,并提高对更广泛未见类的泛化能力。引入专门的损失是为了通过解耦图像特征的因果和非因果部分来实现更好的图像-文本对齐。数值实验表明,Bayes-CAL在二维分布偏移上取得了最先进的OoD泛化性能。此外,与CLIP类模型相比,Bayes-CAL在未见类上产生了更稳定的泛化性能。我们的代码可在https://github.com/LinLLLL/BayesCAL获取。

英文摘要:

Recent advances in large pre-trained models showed promising results in few-shot learning. However, their generalization ability on two-dimensional Out-of-Distribution (OoD) data, i.e., correlation shift and diversity shift, has not been thoroughly investigated. Researches have shown that even with a significant amount of training data, few methods can achieve better performance than the standard empirical risk minimization method (ERM) in OoD generalization. This few-shot OoD generalization dilemma emerges as a challenging direction in deep neural network generalization research, where the performance suffers from overfitting on few-shot examples and OoD generalization errors. In this paper, leveraging a broader supervision source, we explore a novel Bayesian cross-modal image-text alignment learning method (Bayes-CAL) to address this issue. Specifically, the model is designed as only text representations are fine-tuned via a Bayesian modelling approach with gradient orthogonalization loss and invariant risk minimization (IRM) loss. The Bayesian approach is essentially introduced to avoid overfitting the base classes observed during training and improve generalization to broader unseen classes. The dedicated loss is introduced to achieve better image-text alignment by disentangling the causal and non-casual parts of image features. Numerical experiments demonstrate that Bayes-CAL achieved state-of-the-art OoD generalization performances on two-dimensional distribution shifts. Moreover, compared with CLIP-like models, Bayes-CAL yields more stable generalization performances on unseen classes. Our code is available at https://github.com/LinLLLL/BayesCAL.

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

↑