ATTEMPT: Parameter-Efficient Multi-task Tuning via Attentional Mixtures of Soft Prompts

Akari Asai, Mohammadreza Salehi, Matthew E. Peters, Hannaneh Hajishirzi
5/24/2022
cs.CL
transformer-attentionlora-peft-merging

Official code: AkariAsai/ATTEMPT (104 stars, Python, MIT, last commit 2022-12-01).

Abstract

This work introduces a new multi-task, parameter-efficient language model (LM) tuning method that learns to transfer knowledge across different tasks via a mixture of soft prompts-small prefix embedding vectors pre-trained for different tasks. Our method, called ATTEMPT (ATTEntional Mixtures of Prompt Tuning), obtains source prompts as encodings of large-scale source tasks into a small number of parameters and trains an attention module to interpolate the source prompts and a newly initialized target prompt for every instance in the target task.

Show full abstract

During training, only the target task prompt and the attention weights, which are shared between tasks in multi-task training, are updated, while the original LM and source prompts are intact. ATTEMPT is highly parameter-efficient (e.g., updates 2,300 times fewer parameters than full fine-tuning) while achieving high task performance using knowledge from high-resource tasks. Moreover, it is modular using pre-trained soft prompts, and can flexibly add or remove source prompts for effective knowledge transfer. Our experimental results across 21 diverse NLP datasets show that ATTEMPT significantly outperforms prompt tuning and outperforms or matches fully fine-tuned or other parameter-efficient tuning approaches that use over ten times more parameters. Finally, ATTEMPT outperforms previous work in few-shot learning settings.

View on arXivView PDF

Code Implementations(1)

AkariAsai/ATTEMPTOfficial100%
MIT

This is the oficial repository for "Parameter-Efficient Multi-task Tuning via Attentional Mixtures of Soft Prompts" (EMNLP 2022)

1045PythonMay 24, 20224 years agoMIT

Similar Papers

Cite this paper

@article{asai2022attempt,
  title  = {ATTEMPT: Parameter-Efficient Multi-task Tuning via Attentional Mixtures of Soft Prompts},
  author = {Akari Asai and Mohammadreza Salehi and Matthew E. Peters and Hannaneh Hajishirzi},
  year   = {2022},
  eprint = {2205.11961},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11961}
}

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

Discussion