Bayesian Multi-Task Transfer Learning for Soft Prompt Tuning

Haeju Lee, Minchan Jeong, Se-Young Yun, Kee-Eung Kim

Abstract

Prompt Tuning (PT) is a parameter-efficient alternative to full fine-tuning for Large Language Models (LLMs), yet it often suffers from sensitivity to initialization and a performance gap compared to full-model updates. This paper introduces Bayesian Multi-Task Prompt Tuning (BMTPT), a framework that treats knowledge transfer as a Bayesian inference problem. By modeling the posterior distribution of prompts across multiple source tasks using Stein Variational Gradient Descent (SVGD), BMTPT provides a robust, distribution-aware initialization and a regularizing prior for new target tasks. Experimental results across 21 NLP datasets show that BMTPT achieves state-of-the-art performance, often outperforming full fine-tuning while updating only 0.035% of the model parameters.

Introduction

As Large Language Models (LLMs) grow in size, full fine-tuning becomes computationally prohibitive. Prompt Tuning (PT) addresses this by tuning only a small set of "soft prompt" vectors prepended to the input. However, PT's effectiveness is hampered by two main issues: extreme sensitivity to prompt initialization and a persistent performance gap relative to full fine-tuning.

To bridge this gap, researchers have turned to Multi-Task Transfer Learning, where prompts are pre-trained on source tasks to initialize target tasks. Traditional methods like SPoT or MPT aggregate source prompts via simple averaging or attention. However, these approaches often ignore complex task correlations and potential negative interference. BMTPT shifts the paradigm from finding a single "best" prompt to understanding the distribution of effective prompts across tasks.

Methods: A Bayesian Approach to Transfer

BMTPT frames prompt transfer in a Bayesian light, aiming to find the posterior distribution of prompts given a set of source tasks.

Conceptual overview of BMTPT versus standard transfer learning. BMTPT uses a distribution (prior) for task adaptation, represented by SVGD particles.

Stein Variational Gradient Descent (SVGD)

Since the true posterior is intractable, BMTPT employs SVGD, a particle-based variational inference method. It maintains a set of "particles" (multiple prompt vectors) that are iteratively updated to represent the source task distribution. To prevent "mode collapse"—where all particles converge to a single point—the authors use a Damped SVGD variant to maintain diversity.

Target Task Adaptation

When adapting to a new target task, the average of the source particles serves as the initialization. Crucially, the learned source distribution acts as a prior in the loss function. This regularizes the target prompt, encouraging it to stay within a "knowledgeable" region of the parameter space. Additionally, the method uses Two-Speed Learning, decomposing the prompt into a full-rank matrix for shared knowledge and a low-rank matrix for task-specific features, each optimized at different rates.

Experimental Results

The researchers evaluated BMTPT on 21 NLP datasets, including GLUE, SuperGLUE, and MRQA benchmarks.

Performance comparison of BMTPT against various baselines on GLUE and SuperGLUE benchmarks. BMTPT consistently achieves state-of-the-art results.

Key Findings

  • State-of-the-Art Performance: BMTPT established new SOTA results for parameter-efficient tuning on GLUE and SuperGLUE, outperforming methods like ATTEMPT and MPT.
  • Efficiency vs. Fine-Tuning: Remarkably, BMTPT frequently outperformed full fine-tuning (100% parameters) while tuning only 0.035% of the parameters.
  • Few-Shot Robustness: The Bayesian prior proved most effective in low-data regimes (4, 16, and 32-shot), where the strong inductive bias prevented overfitting.
  • Scalability: Performance gains became more pronounced as the backbone model (T5) scaled from "Base" to "3B" parameters.

Conclusion

BMTPT demonstrates that representing cross-task knowledge as a distribution rather than a single point significantly enhances the robustness and performance of soft prompt tuning. While the use of multiple particles increases the memory footprint during source training, the minimal computational overhead during adaptation makes it a highly efficient solution for large-scale LLM deployment. Future work may explore applying this Bayesian framework to other parameter-efficient techniques like LoRA or investigating more complex kernel functions for SVGD.

Summary updated

BibTeX
@inproceedings{lee2023bayesian,
  author = {Haeju Lee and Minchan Jeong and Se-Young Yun and Kee-Eung Kim},
  title = {{Bayesian Multi-Task Transfer Learning for Soft Prompt Tuning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.329},
}
Figure