Enhancing Cross-lingual Prompting with Dual Prompt Augmentation

Meng Zhou, Xin Li, Yue Jiang, Lidong Bing

This paper from researchers at Carnegie Mellon University and Alibaba DAMO Academy tackles a persistent challenge in Natural Language Processing: how to make models perform well in many languages when we only have a tiny amount of training data in one language (usually English).

The authors introduce Universal Prompting (UP), a simplified, language-agnostic baseline, and Dual Prompt Augmentation (DPA), a framework that uses multilingual label translations and hidden-state interpolation to significantly boost performance in few-shot cross-lingual settings.

TL;DR

The researchers propose a dual-pronged approach to cross-lingual prompting that eliminates discrepancies between training and inference while augmenting scarce data. Their method, DPA, achieves a massive 11.5% absolute gain over standard fine-tuning on the XNLI benchmark using only 16 English training examples per class.

What Problem Does This Paper Address?

Prompting—the technique of reformulating classification tasks as "fill-in-the-blank" language modeling problems—has revolutionized few-shot learning in English. However, applying it to cross-lingual transfer (training on English, testing on Turkish, for example) is tricky.

Previous methods often translated the "prompt templates" (the text surrounding the input) into the target language during testing. This creates a source-target discrepancy: the model is asked to process Turkish template words at inference time that it never saw during its English-only training phase. Furthermore, few-shot scenarios suffer from extreme data scarcity, making it hard for models to generalize across linguistic boundaries.

Methods

The authors propose two main innovations:

1. Universal Prompting (UP)

To solve the discrepancy issue, the authors developed Universal Prompting. As shown in the comparison below, UP simplifies the process by:

  • Removing template words: Instead of "Question: [A] Answer: [B]?", it uses a minimal structure like "[A] . [B] ? [MASK]".
  • Language-agnostic verbalizers: It keeps the predicted tokens (e.g., "yes" or "no") in English, even when testing on other languages. This ensures the model operates in a familiar semantic space.
Table 1: Prompt templates and verbalizers in English (EN) and Turkish (TR). A and B indicate two sentences of a sentence pair. For XNLI, A is the premise and B is the hypothesis. With the proposed language-agnostic Universal Prompting, we could treat source-language training and target-language inference in a unified fashion.

2. Dual Prompt Augmentation (DPA)

Building on UP, the DPA framework introduces two types of data augmentation:

  • Prompt Answer Augmentation (Multilingual Verbalizers): During training, the model is taught that the label "Entailment" corresponds not just to the English word "yes," but also to its translations in other languages (e.g., "Evet" in Turkish). This provides additional supervision and helps the model bridge languages.
  • Prompt Input Augmentation (Prompt Mixup): The authors adapt the "Mixup" technique to prompting. Instead of mixing raw text, they interpolate the hidden representations of the [MASK] tokens from two different training examples. This creates "virtual" training data that helps the model learn more robust decision boundaries.

Datasets

The authors evaluated their methods on two major cross-lingual benchmarks:

  • XNLI: A cross-lingual Natural Language Inference dataset covering 15 languages.
  • PAWS-X: A multilingual paraphrase identification dataset covering 7 languages.

In both cases, the model was trained only on English data (zero-shot transfer) using varying "shots" (16, 32, 64, 128, or 256 examples per class).

Key Insights and Ideas

  • Translation can be a trap: Surprisingly, translating templates into the target language for inference often hurts performance because of the distribution shift. Keeping things language-agnostic (UP) is a much stronger baseline.
  • The [MASK] token is the key: In prompting, the hidden state at the [MASK] position contains the most critical information for classification. By performing Mixup specifically on these mask representations rather than the whole sequence, the authors avoided the performance drops seen in previous NLP Mixup attempts.
  • Verbalizers as Paraphrases: Treating translated labels as additional targets acts as a high-quality semantic anchor, effectively giving the model "free" multilingual supervision from English-only examples.

Key Results

The results demonstrate that DPA consistently outperforms both standard fine-tuning (FT) and previous state-of-the-art prompting methods like PCT.

  • XNLI Performance: In the ultra-low-resource 16-shot setting, DPA achieved an average accuracy of 46.54% across 15 languages, compared to just 34.99% for standard fine-tuning.
  • Consistency: As shown in the detailed results table, DPA provides stable improvements across a wide variety of languages, from high-resource ones like Spanish (ES) to lower-resource ones like Swahili (SW) or Urdu (UR).
Table 3: Zero-shot cross-lingual transfer accuracy on XNLI. FT: finetuning; MV: Multilingual Verbalizer. Reported results are averaged with 5 random seeds.

Limitations and Future Work

While highly effective for classification, the authors note a few limitations:

  • Task Scope: The current framework is designed for sentence-pair classification. Adapting DPA to more complex tasks like sequence tagging (NER) or Question Answering will require further research.
  • Translation Dependency: The multilingual verbalizer still relies on an external machine translation tool to generate label translations.
  • Language Sets: The study limited the multilingual verbalizers to the languages present in the specific datasets; expanding this to a broader "universal" set of languages might yield even better results.

Summary updated

BibTeX
@inproceedings{zhou2023enhancing,
  author = {Meng Zhou and Xin Li and Yue Jiang and Lidong Bing},
  title = {{Enhancing Cross-lingual Prompting with Dual Prompt Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.700},
}
Figure