Discrete and Soft Prompting for Multilingual Models

Mengjie Zhao, Hinrich Schütze
9/8/2021
cs.CL

Official code: mprompting/xlmrprompt (11 stars, Python, MIT, last commit 2022-06-23).

Abstract

It has been shown for English that discrete and soft prompting perform strongly in few-shot learning with pretrained language models (PLMs). In this paper, we show that discrete and soft prompting perform better than finetuning in multilingual cases: Crosslingual transfer and in-language training of multilingual natural language inference.

Show full abstract

For example, with 48 English training examples, finetuning obtains 33.74% accuracy in crosslingual transfer, barely surpassing the majority baseline (33.33%). In contrast, discrete and soft prompting outperform finetuning, achieving 36.43% and 38.79%. We also demonstrate good performance of prompting with training data in multiple languages other than English.

View on arXivView PDF

Code Implementations(1)

MIT
110Python, ShellSep 4, 20214 years agoMIT

Similar Papers

Cite this paper

@article{zhao2021discrete,
  title  = {Discrete and Soft Prompting for Multilingual Models},
  author = {Mengjie Zhao and Hinrich Schütze},
  year   = {2021},
  eprint = {2109.03630},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03630}
}

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

Discussion