Bayesian Principles Improve Prompt Learning In Vision-Language Models
Mingyu Kim, Jongwoo Ko, Mijung Park
TL;DR
This work tackles overfitting in prompt learning for vision–language models by introducing a Bayesian objective that balances task adaptation with retention of pre-trained knowledge. It combines a Gaussian-process-like prior over class logits, a one-vs-each softmax likelihood, and Polya–Gamma data augmentation to yield tractable, conjugate updates, with the mean of the prior anchored to pre-trained logits. Empirical results across ten unseen-prompt datasets and ViT-based setups show improved unseen/generalization and cross-dataset transfer, with robust performance across a moderate regularization strength. The method remains simple and compatible with existing prompt-learning approaches, offering a practical route to better generalization without extra network parameters. These findings highlight the value of integrating distributional logit learning and knowledge distillation in a unified Bayesian framework for VLMs.
Abstract
Prompt learning is a popular fine-tuning method for vision-language models due to its efficiency. It requires a small number of additional learnable parameters while significantly enhancing performance on target tasks. However, most existing methods suffer from overfitting to fine-tuning data, yielding poor generalizability. To address this, we propose a new training objective function based on a Bayesian learning principle to balance adaptability and generalizability. We derive a prior over the logits, where the mean function is parameterized by the pre-trained model, while the posterior corresponds to the fine-tuned model. This objective establishes a balance by allowing the fine-tuned model to adapt to downstream tasks while remaining close to the pre-trained model.
