On Transferability of Prompt Tuning for Natural Language Understanding

YuSheng Su, Xiaozhi Wang, Yujia Qin, Chi-Min Chan, Yankai Lin, Zhiyuan Liu, Peng Li, Juanzi Li, Lei Hou, Maosong Sun, Jie Zhou

Introduction

Prompt tuning (PT) has emerged as a powerful, parameter-efficient alternative to full-parameter fine-tuning for adapting large-scale pre-trained language models (PLMs). By keeping the model weights frozen and optimizing only a small set of continuous "soft prompt" vectors, PT significantly reduces storage and computational overhead. However, PT is often criticized for its slow convergence compared to traditional fine-tuning. This research investigates the transferability of these soft prompts across different tasks and model architectures to address this efficiency gap.

Methodology

The authors explore two primary dimensions of prompt transfer:

  1. Cross-Task Transfer: Reusing a prompt trained on a source task for a target task using the same PLM.
  2. Cross-Model Transfer: Transferring prompts between different model architectures (e.g., from RoBERTa to T5). To bridge the gap between different semantic spaces, a small neural "Projector" is employed to map prompt vectors from the source model to the target model.
Figure 1: Overview of cross-task and cross-model prompt transfer strategies.

The study introduces Transferable Prompt Tuning (TPT), where transferred prompts serve as initializations for target task training, rather than starting from random vectors. To analyze the underlying mechanisms of transfer, the researchers propose the overlapping rate of activated neurons (ON) metric, which quantifies how similarly different prompts stimulate the model's internal feed-forward layers.

Experimental Setup

The evaluation spans 17 diverse NLP tasks, including sentiment analysis, natural language inference, ethical judgment, paraphrase identification, question answering, and summarization. The experiments utilize a range of models, including RoBERTa (Base/Large) and T5 (Small to XXL).

Key Findings

The investigation yields several critical insights into the nature of soft prompts:

  • Task-Specific Transferability: Prompts exhibit high transferability within similar task categories (e.g., between different sentiment analysis datasets) but show limited success when transferred across disparate task types.
  • Stimulation vs. Representation: The physical values of prompt embeddings are less critical than their functional impact on the model. The ON metric proved to be a superior predictor of transfer success compared to traditional vector similarity measures, suggesting that prompts work by activating specific latent capabilities within the PLM.
  • Efficiency Gains: TPT significantly accelerates convergence. On massive models like T5-XXL, TPT can achieve performance parity with vanilla PT while being up to 219x faster in specific scenarios.
  • Zero-Shot Potential: In many instances, prompts transferred from related tasks provide strong zero-shot performance, rivaling task-specific training.
Figure 2: Heatmaps illustrating zero-shot transfer performance across various tasks for RoBERTa and T5 models.

Conclusion

This research demonstrates that soft prompts are highly transferable assets that can be leveraged to overcome the training inefficiencies of prompt tuning. By treating prompts as "keys" that unlock specific model behaviors rather than just static input features, TPT offers a scalable path for deploying massive language models across a wide array of downstream applications. Future work will focus on developing more robust projectors and exploring the limits of model stimulation.

Summary updated

BibTeX
@inproceedings{su2022transferability,
  author = {YuSheng Su and Xiaozhi Wang and Yujia Qin and Chi-Min Chan and Yankai Lin and Zhiyuan Liu and Peng Li and Juanzi Li and Lei Hou and Maosong Sun and Jie Zhou},
  title = {{On Transferability of Prompt Tuning for Natural Language Understanding}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.290},
}
Figure