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 emerged as a powerful technique for few-shot learning in Pre-trained Language Models (PLMs). However, extending these benefits to multilingual contexts remains challenging due to the need for manual prompt engineering or error-prone 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 templates from universal semantics and a soft label initialization strategy to align category representations. Experimental results on the Multilingual Amazon Reviews Corpus (MARC) demonstrate that UniPrompt consistently outperforms standard fine-tuning and existing prompt-based methods in few-shot scenarios across diverse languages.

Introduction

The success of Pre-trained Language Models (PLMs) in natural language processing is often contingent on the availability of labeled data. Prompt-based tuning has mitigated this dependency by reformulating downstream tasks as cloze-style objectives, allowing models to leverage pre-training knowledge effectively in few-shot settings. Despite its efficacy, applying prompt-based tuning to a multilingual landscape introduces a "trilemma": manual design requires expensive native expertise for every language; machine translation introduces noise and propagation errors; and soft prompts often fail to align with the model's original pre-training space.

The core challenge addressed here is zero-shot cross-lingual transfer. The goal is to train a prompt-based model on a source language (e.g., English) and deploy it immediately on target languages (e.g., Chinese, French, German) without additional target-language training data or manual prompt engineering.

Methods

UniPrompt addresses these challenges through two primary architectural innovations: the Two-tower Prompt Encoder and Soft Label Word Initialization.

The Two-tower Prompt Encoder

Traditional prompt-tuning concatenates the template (e.g., "It was [MASK].") and the context ("The food was great.") before feeding them into the PLM. UniPrompt, however, maintains their separation in the initial layers.

  • Template and Context Towers: The lower layers of the PLM are split into two parallel "towers." One tower encodes the template, while the other encodes the input text. This design is motivated by the observation that lower layers of PLMs typically capture language-specific syntactic features.
  • Fusion Tower: The outputs from both towers are merged and processed by the upper layers of the PLM. By decoupling the template from the specific language of the input text at lower levels, the model can learn more language-agnostic representations in the fusion stage.
The UniPrompt architecture featuring Template, Context, and Fusion towers.

Soft Label Word Initialization

Instead of relying on discrete, language-dependent label words (like "good" or "bad"), UniPrompt employs artificial soft tokens. To ensure these tokens are meaningful, they are initialized using the average representation of the [MASK] token across all source-language training samples for a given category. This "prototype" initialization places the soft labels in a vector space region that already encapsulates the semantic essence of the category (e.g., "positivity") according to the PLM's internal knowledge.

Experimental Setup

The framework was evaluated using the Multilingual Amazon Reviews Corpus (MARC), focusing on a 5-star sentiment classification task. The study included English (En) as the source language and German (De), Spanish (Es), French (Fr), Japanese (Ja), and Chinese (Zh) as target languages. Experiments were conducted across various "k-shot" settings, where k represents the number of training samples per class (ranging from 4 to 256).

Key Insights and Results

UniPrompt demonstrates superior performance and stability compared to vanilla fine-tuning and other prompt-based baselines.

  • Optimal Layer Division: Ablation studies revealed that the optimal split between the two-tower and fusion architectures occurs around layer 9 of a 12-layer model. This suggests that approximately 75% of the model's depth is best utilized for language-specific processing, while the final 25% facilitates universal semantic fusion.
  • Performance Gains: In the 32-shot scenario, UniPrompt achieved an average accuracy of 46.61% across all target languages, representing a significant improvement over the Vanilla Finetune baseline.
  • Robustness to Scale: While some methods like "English Prompt" (using English templates for all languages) perform well at very low k, their relative advantage often diminishes as more data becomes available. UniPrompt maintains a consistent lead as the training set grows.
Performance comparison of UniPrompt against various baselines across different k-shot settings and languages.

Conclusion

UniPrompt provides an effective solution for zero-shot cross-lingual transfer in prompt-based tuning. By architectural decoupling and strategic label initialization, it enables models to bridge the gap between languages without manual intervention. While its advantages are most pronounced in low-resource and few-shot scenarios, future work could explore its application to generative tasks and its dependence on the underlying cross-lingual alignment of the base PLM.

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