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

基于卡尔曼滤波的 CLIP 模型贝叶斯自然梯度微调

Bayesian Natural Gradient Fine-Tuning of CLIP Models via Kalman Filtering

The University of Manchester(曼彻斯特大学)

Hossein Abdi, Mingfei Sun, Wei Pan

AI总结:

针对 CLIP 模型少样本微调中一阶优化器收敛慢及泛化差的问题,提出基于 Kalman filter 的贝叶斯自然梯度微调方法,结合二阶优化与贝叶斯推断,显著提升了模型的分布外鲁棒性与分布内性能。

摘要:

视觉-语言预训练模型(如 CLIP)在多模态数据挖掘中确立了新的基准。在此类模型中,少样本微调是在分布内(ID)和分布外(OOD)数据集上实现最佳性能的主要挑战,尤其是在标记数据稀缺时。大多数现有的微调方法依赖于一阶基于梯度的优化器,这通常会导致收敛缓慢、对步长超参数敏感以及在 OOD 环境下泛化能力差。相比之下,二阶方法利用损失景观的局部曲率信息来调整更新步长。这对于 CLIP 模型特别有利,因为其非凸损失函数通常包含尖锐的临界点。在这种情况下,当使用有限数据进行微调时,自然梯度方向可以提供更实质且高效的每次迭代更新。自然梯度下降(NGD)是通过用逆 Fisher 信息矩阵(FIM)预处理标准梯度来获得的,这对于大型模型来说计算成本很高。为了解决这个问题,我们提出了一种使用 Kalman filter 对 CLIP 模型进行 NGD 的贝叶斯近似。我们的方法结合了二阶优化与贝叶斯推断的优势,在提供不确定性量化的同时增强了泛化能力。在多样化的图像分类数据集上进行的大量实验表明,与最先进的基线相比,我们的算法始终能实现更优或可比的 ID 性能,并提升了 OOD 鲁棒性。据我们所知,这项工作代表了 Kalman filtering 在基于 CLIP 的模型微调中的首次成功应用,从而在视觉-语言任务中实现了更鲁棒和高效的学习。

英文摘要:

Vision-language pre-trained models, such as CLIP, have established new benchmarks in multimodal data mining. In such models, few-shot fine-tuning is a major challenge to achieve optimal performance on both in-distribution (ID) and out-of-distribution (OOD) datasets, especially when labeled data is scarce. Most existing fine-tuning approaches rely on first-order gradient-based optimizers, which typically suffer from slow convergence, sensitivity to step-size hyperparameters, and poor generalization in OOD settings. In contrast, second-order methods utilize local curvature information of the loss landscape to adjust the update step size. This is particularly beneficial for CLIP models, whose non-convex loss functions often contain sharp critical points. In such cases, natural gradient direction can offer more substantial and efficient per-iteration updates when fine-tuning with limited data. Natural Gradient Descent (NGD) is obtained by preconditioning the standard gradient with the inverse Fisher Information Matrix (FIM), which is computationally expensive for large models. To address this, we propose a Bayesian approximation of NGD using a Kalman filter for CLIP models. Our method combines the benefits of second-order optimization with Bayesian inference, which enhances generalization while providing uncertainty quantification. Extensive experiments conducted on diverse image classification datasets demonstrate that our algorithm consistently achieves superior--or comparable--ID performance and improved OOD robustness compared to state-of-the-art baselines. To the best of our knowledge, this work represents the first successful application of Kalman filtering to fine-tuning CLIP-based models, which enables more robust and efficient learning in vision-language tasks.

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

↑