Exploring Universal Intrinsic Task Subspace via Prompt Tuning

Yujia Qin, Xiaozhi Wang, Yusheng Su, Yankai Lin, Ning Ding +8 more
10/15/2021
cs.CLcs.AI
lora-peft-merging

Official code: thunlp/Intrinsic-Prompt-Tuning (18 stars, Python, last commit 2022-11-30).

Abstract

Why can pre-trained language models (PLMs) learn universal representations and effectively adapt to broad NLP tasks differing a lot superficially? In this work, we empirically find evidence indicating that the adaptations of PLMs to various few-shot tasks can be reparameterized as optimizing only a few free parameters in a unified low-dimensional intrinsic task subspace, which may help us understand why PLMs could easily adapt to various NLP tasks with small-scale data.

Show full abstract

To find such a subspace and examine its universality, we propose an analysis pipeline called intrinsic prompt tuning (IPT). Specifically, we resort to the recent success of prompt tuning and decompose the soft prompts of multiple NLP tasks into the same low-dimensional nonlinear subspace, then we learn to adapt the PLM to unseen data or tasks by only tuning parameters in this subspace. In the experiments, we study diverse few-shot NLP tasks and surprisingly find that in a 250-dimensional subspace found with 100 tasks, by only tuning 250 free parameters, we can recover 97% and 83% of the full prompt tuning performance for 100 seen tasks (using different training data) and 20 unseen tasks, respectively, showing great generalization ability of the found intrinsic task subspace. Besides being an analysis tool, IPT could further help us improve the prompt tuning stability.

View on arXivView PDF

Code Implementations(1)

182Python, ShellApr 27, 20224 years ago

Similar Papers

Cite this paper

@article{qin2021exploring,
  title  = {Exploring Universal Intrinsic Task Subspace via Prompt Tuning},
  author = {Yujia Qin and Xiaozhi Wang and Yusheng Su and Yankai Lin and Ning Ding and Jing Yi and Weize Chen and Zhiyuan Liu and Juanzi Li and Lei Hou and Peng Li and Maosong Sun and Jie Zhou},
  year   = {2021},
  eprint = {2110.07867},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.07867}
}

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/2110.07867.svg)](https://codeofpaper.com/paper/2110.07867)

Discussion