Patch-Prompt Aligned Bayesian Prompt Tuning for Vision-Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Xinyang, Wang, Dongsheng, Fang, Bowei, Li, Miaoge, Duan, Zhibin, Xu, Yishi, Chen, Bo, Zhou, Mingyuan
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916307913408512
author Liu, Xinyang
Wang, Dongsheng
Fang, Bowei
Li, Miaoge
Duan, Zhibin
Xu, Yishi
Chen, Bo
Zhou, Mingyuan
author_facet Liu, Xinyang
Wang, Dongsheng
Fang, Bowei
Li, Miaoge
Duan, Zhibin
Xu, Yishi
Chen, Bo
Zhou, Mingyuan
contents For downstream applications of vision-language pre-trained models, there has been significant interest in constructing effective prompts. Existing works on prompt engineering, which either require laborious manual designs or optimize the prompt tuning as a point estimation problem, may fail to describe diverse characteristics of categories and limit their applications. We introduce a Bayesian probabilistic resolution to prompt tuning, where the label-specific stochastic prompts are generated hierarchically by first sampling a latent vector from an underlying distribution and then employing a lightweight generative model. Importantly, we semantically regularize the tuning process by minimizing the statistical distance between the visual patches and linguistic prompts, which pushes the stochastic label representations to faithfully capture diverse visual concepts, instead of overfitting the training categories. We evaluate the effectiveness of our approach on four tasks: few-shot image recognition, base-to-new generalization, dataset transfer learning, and domain shifts. Extensive results over 15 datasets show promising transferability and generalization performance of our proposed model, both quantitatively and qualitatively.
format Preprint
id arxiv_https___arxiv_org_abs_2303_09100
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Patch-Prompt Aligned Bayesian Prompt Tuning for Vision-Language Models
Liu, Xinyang
Wang, Dongsheng
Fang, Bowei
Li, Miaoge
Duan, Zhibin
Xu, Yishi
Chen, Bo
Zhou, Mingyuan
Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
For downstream applications of vision-language pre-trained models, there has been significant interest in constructing effective prompts. Existing works on prompt engineering, which either require laborious manual designs or optimize the prompt tuning as a point estimation problem, may fail to describe diverse characteristics of categories and limit their applications. We introduce a Bayesian probabilistic resolution to prompt tuning, where the label-specific stochastic prompts are generated hierarchically by first sampling a latent vector from an underlying distribution and then employing a lightweight generative model. Importantly, we semantically regularize the tuning process by minimizing the statistical distance between the visual patches and linguistic prompts, which pushes the stochastic label representations to faithfully capture diverse visual concepts, instead of overfitting the training categories. We evaluate the effectiveness of our approach on four tasks: few-shot image recognition, base-to-new generalization, dataset transfer learning, and domain shifts. Extensive results over 15 datasets show promising transferability and generalization performance of our proposed model, both quantitatively and qualitatively.
title Patch-Prompt Aligned Bayesian Prompt Tuning for Vision-Language Models
topic Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
url https://arxiv.org/abs/2303.09100