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

Lianzhe Huang, Shuming Ma, Dongdong Zhang, Furu Wei, Houfeng Wang

Abstract

Prompt-based tuning has revolutionized the application of Pre-trained Language Models (PLMs) in few-shot scenarios. However, its extension to multilingual settings is hindered by the scalability of manual prompt design and the noise introduced by machine translation. This paper introduces UniPrompt, a framework designed for zero-shot cross-lingual transfer. UniPrompt utilizes a two-tower encoder architecture to decouple language-specific prompts from multilingual context and employs a data-driven initialization for soft label words. Experimental results on the Multilingual Amazon Reviews Corpus (MARC) demonstrate that UniPrompt significantly outperforms traditional fine-tuning and translation-based prompting, particularly in low-data regimes.

Introduction

Prompt-based tuning allows PLMs to perform tasks by filling in templates (e.g., appending "It was [MASK]." to a review). While effective for few-shot learning, applying this to multiple languages presents significant hurdles. Manual prompt creation for every target language is expensive, while machine translation often introduces errors that degrade performance. Furthermore, continuous "soft prompts" often fail to align with the model's pre-trained distribution in low-resource settings. UniPrompt addresses these challenges by creating a unified, language-agnostic prompt mechanism that bridges the gap between the source language (English) and various target languages.

Methodology

UniPrompt introduces two core structural innovations to facilitate cross-lingual transfer:

Two-tower Prompt Encoder

Instead of processing the prompt and input text together, UniPrompt bifurcates the lower layers of the PLM into two distinct towers: a Template Tower for the English prompt and a Context Tower for the target-language input. These towers are initialized from the lower layers of a multilingual PLM (e.g., XLM-R), which typically capture language-specific syntax. The outputs are then merged in a higher-level Fusion Tower, where universal semantic representations are processed. This architecture effectively decouples the task-specific English prompt from the language-specific context.

The UniPrompt architecture illustrating the Template and Context towers feeding into a Fusion Tower and LM Head.

Soft Label Word Initialization

To avoid the vocabulary constraints of specific languages, UniPrompt uses artificial tokens (soft labels) in the verbalizer. To ensure these tokens are well-grounded, they are initialized by averaging the [MASK] representations of training samples from the corresponding class. This data-driven initialization provides a superior starting point compared to random initialization, enhancing the model's transferability.

Experimental Setup

The framework was evaluated using the Multilingual Amazon Reviews Corpus (MARC) across six languages: English (En), German (De), Spanish (Es), French (Fr), Japanese (Ja), and Chinese (Zh). The task involved predicting star ratings (1-5). Models were trained solely on English data with varying sample sizes ($k$ per class, from 4 to 256) and tested directly on the other five languages to measure zero-shot transfer performance.

Results and Discussion

UniPrompt consistently achieved superior performance across all tested languages and shot counts. As shown in the results table, UniPrompt maintains a robust lead over vanilla fine-tuning and translation-based methods. While "English Prompting" (using English prompts with foreign text) is competitive at $k=4$, UniPrompt quickly establishes dominance as $k$ increases, demonstrating better scalability.

Comprehensive results table showing UniPrompt's performance compared to baselines across multiple languages and few-shot settings (k).

Key Findings

  • Optimal Layer Split: Analysis revealed that splitting the architecture at layer 9 (of 12) is optimal. This provides sufficient decoupling in the lower layers while leaving enough upper layers for effective semantic fusion.
  • Robustness in Few-shot Settings: In the 32-shot setting ($k=32$), UniPrompt reached an average accuracy of 46.61%, significantly higher than vanilla fine-tuning (42.59%) and translation-based prompts (34.83%).
  • Initialization Impact: The use of averaged data representations for soft label initialization was found to be a critical factor in the model's success, providing a grounded latent space for cross-lingual mapping.

Conclusion

UniPrompt offers a scalable and effective solution for zero-shot cross-lingual transfer in prompt-based tuning. By architectural decoupling and intelligent label initialization, it bypasses the need for manual translation or language-specific experts. Future work may explore the application of this architecture to generative tasks and its performance as training data scales beyond few-shot scenarios.

Summary updated

BibTeX
@inproceedings{huang2022zero,
  author = {Lianzhe Huang and Shuming Ma and Dongdong Zhang and Furu Wei and Houfeng Wang},
  title = {{Zero-shot Cross-lingual Transfer of Prompt-based Tuning with a Unified Multilingual Prompt}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.790},
}
Figure