Abstract
Polyglot Prompting (PolyPrompt) is a unified framework that reformulates diverse NLP tasks across 49 languages into a single sequence-to-sequence format. By training a monolithic mT5 model on a combination of target and high-resource expanding datasets, the framework enables cross-task and cross-lingual knowledge transfer. Experimental results show that PolyPrompt consistently outperforms vanilla mT5 baselines, particularly in zero-shot scenarios, and reveals that English-language prompts often serve as the most effective instructions even for non-English tasks.
Introduction
In traditional multilingual Natural Language Processing (NLP), models typically utilize task-specific "heads" or language-specific adapters. While effective for individual tasks, this architecture keeps different types of knowledge isolated. A model trained for English Named Entity Recognition (NER) might improve Spanish NER, but it rarely benefits from a conceptually different task like Sentiment Analysis in another language.
The researchers behind Polyglot Prompting (PolyPrompt) address this by asking: Can diverse tasks from different languages communicate and help each other? By moving away from isolated modules toward a "monolithic" model, they aim to create a unified semantic space where knowledge "spills over" across both linguistic and task boundaries.
The PolyPrompt Framework
The core of PolyPrompt is the reformulation of every NLP task—whether classification, extraction, or generation—into a common sequence-to-sequence problem using prompts.
Using mT5 (a multilingual encoder-decoder model) as the backbone, the framework processes inputs through a prompt template. For instance, a sentiment analysis task is converted into a question-answering format: Answer the question based on the review. | Question: Is this review positive? | Review: [Text]. The model then generates a simple text response like "Yes" or "No." This approach allows the model to treat all datasets as a single stream of instruction-following data.
Experimental Setup
The study evaluated PolyPrompt across an extensive suite of 24 datasets and 49 languages.
- Target Datasets: Included benchmarks for Question Answering (XQuAD, TyDiQA, MLQA), Sentiment Classification (MARC), Topic Classification (MLDOC), and Sentence Pair Classification (PAWS-X, XNLI).
- Expanding Datasets: To maximize transfer, the model was also trained on 17 high-resource datasets, including multilingual summarization (XL-Sum), NER (WikiAnn), and English-only benchmarks like SQuAD 2.0 and SNLI.
Key Insights and Results
PolyPrompt consistently outperformed the vanilla mT5 baseline. In "In-language" training, average scores rose from 73.00 to 74.31. The gains were even more pronounced in cross-lingual zero-shot scenarios, where performance jumped from 62.45 to 65.42.
One of the most surprising findings involved the choice of prompt language. The researchers compared "In-lingual" prompts (matching the target data's language) with "Cross-lingual" prompts (using English instructions for all languages).
As shown in the analysis, using English prompts for non-English tasks often yielded superior results. This suggests that because mT5 was exposed to significantly more English during pre-training, it is more sensitive to instructions in English, even when processing content in other languages. Furthermore, the use of unified prompt templates across different datasets helped bridge the gap between tasks, effectively reducing their "distance" in the model's latent space.
Conclusion
Polyglot Prompting demonstrates that a monolithic, multitask approach can significantly enhance multilingual NLP. By unifying tasks through prompts, models can leverage high-resource data (like English) to improve performance in low-resource or even "unseen" languages. Future work may explore scaling this approach to larger models like mT5-XXL and automating the prompt engineering process through soft prompts or automated searches.
Summary updated