Zero-shot Cross-lingual Transfer of Prompt-based Tuning with a Unified Multilingual Prompt

Lianzhe Huang, Shuming Ma, Dongdong Zhang, Furu Wei, Houfeng Wang
2/23/2022
cs.CL

Official code: mojave-pku/UniPrompt (10 stars, Python, MIT, last commit 2022-10-17).

Abstract

Prompt-based tuning has been proven effective for pretrained language models (PLMs). While most of the existing work focuses on the monolingual prompts, we study the multilingual prompts for multilingual PLMs, especially in the zero-shot cross-lingual setting.

Show full abstract

To alleviate the effort of designing different prompts for multiple languages, we propose a novel model that uses a unified prompt for all languages, called UniPrompt. Different from the discrete prompts and soft prompts, the unified prompt is model-based and language-agnostic. Specifically, the unified prompt is initialized by a multilingual PLM to produce language-independent representation, after which is fused with the text input. During inference, the prompts can be pre-computed so that no extra computation cost is needed. To collocate with the unified prompt, we propose a new initialization method for the target label word to further improve the model's transferability across languages. Extensive experiments show that our proposed methods can significantly outperform the strong baselines across different languages. We release data and code to facilitate future research.

View on arXivView PDF

Code Implementations(1)

MIT
103Python, ShellOct 12, 20224 years agoMIT

Similar Papers

Cite this paper

@article{huang2022zeroshot,
  title  = {Zero-shot Cross-lingual Transfer of Prompt-based Tuning with a Unified Multilingual Prompt},
  author = {Lianzhe Huang and Shuming Ma and Dongdong Zhang and Furu Wei and Houfeng Wang},
  year   = {2022},
  eprint = {2202.11451},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.11451}
}

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

Discussion