arXiv:2511.17339cs.LG2025-11

通过引力排斥机制提升提示学习的泛化能力

ReBaPL: Repulsive Bayesian Prompt Learning

  • 用随机梯度哈密顿蒙特卡洛结合变步长策略探索提示后验分布
  • 在多个基准数据集上超越现有提示学习方法,提升泛化性能
  • 可插拔式设计,适配任意最大似然提示学习框架

提示学习已成为微调大规模基础模型的有效技术。然而,传统提示学习方法易过拟合且在外分布数据上泛化能力差。为此,贝叶斯提示学习将提示优化视为贝叶斯推断问题以增强鲁棒性。本文提出一种新型贝叶斯提示学习方法——反斥贝叶斯提示学习(ReBaPL),旨在高效探索提示后验分布中复杂且常呈多模态的结构。该方法结合循环步长调度与随机梯度哈密顿蒙特卡洛(SGHMC)算法,实现探索与利用的交替过程,以发现新模式并优化已有模式。此外,引入基于表示分布间距离度量(包括最大均值差异和沃尔德斯特距离)的势函数生成的排斥力,促进表示空间中的多样化探索,防止过早坍缩至单一模式。该方法能够更全面刻画提示后验分布,从而改善泛化性能。相比先前贝叶斯提示学习方法,本方法为基于最大似然估计的任意提示学习方法提供模块化、可插拔的贝叶斯扩展。我们在多个基准数据集上验证了ReBaPL的有效性,结果表明其性能优于当前最优提示学习方法。

原文摘要 · Abstract (English)

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.

提示学习贝叶斯方法泛化能力

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。