Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

ReBaPL: Repulsive Bayesian Prompt Learning

About

Prompt learning has emerged as an effective technique for fine-tuning large-scale foundation models for downstream tasks. However, conventional prompt learning methods are prone to overfitting and can struggle with out-of-distribution generalization. To address these limitations, Bayesian prompt learning has been proposed, which frames prompt optimization as a Bayesian inference problem to enhance robustness. This paper introduces Repulsive Bayesian Prompt Learning (ReBaPL), a novel method for Bayesian prompt learning, designed to efficiently explore the complex and often multimodal posterior landscape of prompts. Our method integrates a cyclical step-size schedule with a stochastic gradient Hamiltonian Monte Carlo (SGHMC) algorithm, enabling alternating phases of exploration to discover new modes, and exploitation to refine existing modes. Furthermore, we introduce a repulsive force derived from a potential function over probability metrics (including Maximum Mean Discrepancy and Wasserstein distance) computed on the distributions of representations produced by different prompts. This representation-space repulsion diversifies exploration and prevents premature collapse to a single mode. Our approach allows for a more comprehensive characterization of the prompt posterior distribution, leading to improved generalization. In contrast to prior Bayesian prompt learning methods, our method provides a modular plug-and-play Bayesian extension of any existing prompt learning method based on maximum likelihood estimation. We demonstrate the efficacy of ReBaPL on several benchmark datasets, showing superior performance over state-of-the-art prompt learning methods.

Yassir Bendou, Omar Ezzahir, Eduardo Fernandes Montesuma, Gabriel Mahuas, Victoria Shevchenko, Mike Gartrell• 2025

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet 1k (test)
Top-1 Accuracy71
848
Image ClassificationFGVC-Aircraft (test)--
305
Image ClassificationImageNet V2 (test)
Top-1 Accuracy62.5
216
Image ClassificationImageNet-A (test)--
175
Image ClassificationCaltech101 (test)--
159
Image ClassificationEuroSAT (test)--
141
Image ClassificationImageNet-R (test)
Accuracy75.63
118
Image ClassificationUCF101
Base Classes Acc88.33
100
Image ClassificationFood101 (test)--
91
Image ClassificationStanfordCars (test)
Base Accuracy81.2
20
Showing 10 of 15 rows

Other info

Follow for update