FPT: Improving Prompt Tuning Efficiency via Progressive Training

Yufei Huang, Yujia Qin, Huadong Wang, Yichun Yin, Maosong Sun +2 more
11/13/2022
cs.CLcs.AI
lora-peft-merging

Official code: thunlp/FastPromptTuning (8 stars, Python, MIT, last commit 2022-11-15).

Abstract

Recently, prompt tuning (PT) has gained increasing attention as a parameter-efficient way of tuning pre-trained language models (PLMs). Despite extensively reducing the number of tunable parameters and achieving satisfying performance, PT is training-inefficient due to its slow convergence.

Show full abstract

To improve PT's training efficiency, we first make some novel observations about the prompt transferability of "partial PLMs", which are defined by compressing a PLM in depth or width. We observe that the soft prompts learned by different partial PLMs of various sizes are similar in the parameter space, implying that these soft prompts could potentially be transferred among partial PLMs. Inspired by these observations, we propose Fast Prompt Tuning (FPT), which starts by conducting PT using a small-scale partial PLM, and then progressively expands its depth and width until the full-model size. After each expansion, we recycle the previously learned soft prompts as initialization for the enlarged partial PLM and then proceed PT. We demonstrate the feasibility of FPT on 5 tasks and show that FPT could save over 30% training computations while achieving comparable performance.

View on arXivView PDF

Code Implementations(1)

MIT

Source code for Findings of EMNLP 2022 paper "FPT: Improving Prompt Tuning Efficiency via Progressive Training"”

80Python, ShellOct 14, 20224 years agoMIT

Similar Papers

Cite this paper

@article{huang2022fpt,
  title  = {FPT: Improving Prompt Tuning Efficiency via Progressive Training},
  author = {Yufei Huang and Yujia Qin and Huadong Wang and Yichun Yin and Maosong Sun and Zhiyuan Liu and Qun Liu},
  year   = {2022},
  eprint = {2211.06840},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.06840}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.06840.svg)](https://codeofpaper.com/paper/2211.06840)

Discussion