Prompting PaLM for Translation: Assessing Strategies and Performance

David Vilar, Markus Freitag, Colin Cherry, Jiaming Luo, Viresh Ratnakar, George F. Foster

Introduction

Large Language Models (LLMs) like Google’s PaLM (Pathways Language Model) have demonstrated a remarkable ability to perform machine translation without explicit supervised training on parallel corpora. However, evaluating these capabilities rigorously is challenging due to potential data leakage in older benchmarks and the limitations of traditional metrics like BLEU. This study provides a comprehensive evaluation of PaLM for translation, focusing on few-shot prompting strategies and performance relative to state-of-the-art (SOTA) supervised systems.

Methodology

The researchers employed 5-shot prompting, providing the model with five translation examples before the target sentence. They investigated several critical variables:

  • Example Selection: Comparing Random Selection against k-Nearest Neighbor (kNN) retrieval (using Bag-of-Words or RoBERTa embeddings) to find semantically similar examples.
  • Pool Quality: Examples were drawn from three sources: a massive, noisy web-crawled set (WMT-full), a cleaner development set (WMT-dev), and a manually curated "high-end" pool of professional bilingual articles.
  • Evaluation Metrics: The study utilized BLEURT, a modern neural metric, alongside BLEU and human evaluation via Multidimensional Quality Metrics (MQM) to categorize specific error types.
Table 1: Comparison of selection strategies and pool quality for English-German translation. Note how pool quality (dev vs. full) often has a larger impact than the selection method itself.

Key Insights

Quality Over Similarity

A primary finding is that the source pool quality is more important than the similarity of the examples to the input. As shown in the evaluation of selection strategies, random examples from a high-quality, clean pool (like WMT-dev) often outperformed sophisticated kNN retrieval from a larger, noisier pool. This suggests that providing the model with "clean" instances of translation is the most effective way to prime its behavior.

The Performance Gap and Sensitivity

Despite optimized prompting, PaLM still lags behind specialized SOTA supervised systems by 1 to 3 BLEURT points. Furthermore, few-shot prompting exhibits significant "brittleness." The specific choice of examples in a prompt can lead to dramatic variations in performance for the same input sentence.

Figure 1: Distribution of BLEURT differences between different prompt choices, illustrating the high sensitivity of the model to specific few-shot examples.

Translation Characteristics

  • Directional Bias: PaLM performs significantly better when translating into English. This is likely due to the English-centric nature of its massive pre-training data, which provides a superior target language model for English prose.
  • Fluency vs. Accuracy: Human MQM evaluations revealed that while PaLM produces highly fluent and natural-sounding text, it is more prone to Major Omissions than supervised systems—occasionally omitting key facts from the source text entirely.
  • Leakage Reality Check: The study confirmed that older test sets (like WMT14) have up to 30% overlap with PaLM's training data. Using newer sets like WMT21 (<3% overlap) is essential for an accurate assessment of true generalization.

Limitations and Future Work

While PaLM shows promise, its current application for translation is constrained by high inference costs compared to smaller, dedicated models. Additionally, this study focused on sentence-level translation in high-resource languages. Future research may explore PaLM’s potential in document-level translation, where its large context window could offer advantages in maintaining consistency across long texts—a known weakness of traditional supervised systems.

Summary updated

BibTeX
@inproceedings{vilar2023prompting,
  author = {David Vilar and Markus Freitag and Colin Cherry and Jiaming Luo and Viresh Ratnakar and George F. Foster},
  title = {{Prompting PaLM for Translation: Assessing Strategies and Performance}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  url = {https://openreview.net/forum?id=OfWP8qFGEjX},
}
Figure