Make Prompts Adaptable: Bayesian Modeling for Vision-Language Prompt Learning with Data-Dependent Prior

Youngjae Cho, HeeSun Bae, Seungjae Shin, Yeo Dong Youn, Weonyoung Joo +1 more
1/9/2024
cs.CLcs.LG

Official code: youngjae-cho/APP (20 stars, Apache-2.0, last commit 2024-04-30). 1 more implementation below.

Abstract

Recent Vision-Language Pretrained (VLP) models have become the backbone for many downstream tasks, but they are utilized as frozen model without learning. Prompt learning is a method to improve the pre-trained VLP model by adding a learnable context vector to the inputs of the text encoder. In a few-shot learning scenario of the downstream task, MLE training can lead the context vector to over-fit dominant image features in the training data. This overfitting can potentially harm the generalization ability, especially in the presence of a distribution shift between the training and test dataset. This paper presents a Bayesian-based framework of prompt learning, which could alleviate the overfitting issues on few-shot learning application and increase the adaptability of prompts on unseen instances. Specifically, modeling data-dependent prior enhances the adaptability of text features for both seen and unseen image features without the trade-off of performance between them. Based on the Bayesian framework, we utilize the Wasserstein Gradient Flow in the estimation of our target posterior distribution, which enables our prompt to be flexible in capturing the complex modes of image features. We demonstrate the effectiveness of our method on benchmark datasets for several experiments by showing statistically significant improvements on performance compared to existing methods. The code is available at https://github.com/youngjae-cho/APP.

View on arXivView PDF

Code Implementations(2)

youngjae-cho/APPOfficial100%
Apache-2.0

Official PyTorch implementation for Make Prompts Adaptable: Bayesian Modeling for Vision-Language Prompt Learning with Data-Dependent Prior [AAAI 2024]

201Shell, PythonDec 10, 20232 years agoApache-2.0
aimachine-learningprompt-learningprompt-tuning
aailabkaist/APPCommunity68%
Apache-2.0

Official PyTorch implementation for Make Prompts Adaptable: Bayesian Modeling for Vision-Language Prompt Learning with Data-Dependent Prior [AAAI 2024]

91Shell, PythonApr 30, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{cho2024make,
  title  = {Make Prompts Adaptable: Bayesian Modeling for Vision-Language Prompt Learning with Data-Dependent Prior},
  author = {Youngjae Cho and HeeSun Bae and Seungjae Shin and Yeo Dong Youn and Weonyoung Joo and Il-Chul Moon},
  year   = {2024},
  eprint = {2401.06799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.06799v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.06799.svg)](https://codeofpaper.com/paper/2401.06799)

Discussion