Prompting PaLM for Translation: Assessing Strategies and Performance

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

Abstract: David Vilar, Markus Freitag, Colin Cherry, Jiaming Luo, Viresh Ratnakar, George Foster. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

2023.

Introduction

Large Language Models (LLMs) like Google’s PaLM (540B) have demonstrated remarkable "emergent" capabilities in machine translation (MT) through few-shot prompting. However, these capabilities are often evaluated using outdated metrics or datasets potentially present in the training data. This study provides a rigorous assessment of whether sophisticated prompting strategies can bridge the performance gap between LLMs and specialized, state-of-the-art (SOTA) supervised translation systems.

Methodology

The researchers investigated several dimensions of few-shot prompting using PaLM 540B:

  • Prompting Strategies: They compared Random Selection of examples against k-Nearest Neighbor (kNN) strategies, which use Bag-of-Words (BOW) or RoBERTa embeddings to find examples semantically similar to the input sentence.
  • Prompt Pools: Examples were drawn from three sources: the massive WMT training set (WMT-full), a smaller development set (WMT-dev), and a manually curated high-end pool of professional translations.
  • Evaluation Metrics: Beyond standard BLEU scores, the study utilized BLEURT (a neural metric) and MQM (Multidimensional Quality Metrics), where professional translators identify and weight specific errors.
Table 4: Comparison of selection strategies (random vs. kNN) across different prompt pools for English-German translation.

Key Insights

Quality Over Proximity

A significant finding was that the quality of the prompt pool is more critical than the similarity of the examples to the input. As shown in Table 4, kNN selection did not consistently outperform random selection. Instead, selecting examples from smaller, higher-quality pools (like the dev set) often yielded better results than searching through millions of sentences in the full WMT set.

The Fluency Trap and Accuracy Gaps

PaLM is exceptionally proficient at generating fluent, natural-sounding text. However, human evaluation via MQM revealed that this fluency often masks accuracy issues. Specifically, PaLM tends to omit information from the source text more frequently than supervised systems. In Chinese→English tasks, PaLM recorded 109 major omissions compared to only 42 for the SOTA system.

Performance Results

Despite its fluency, PaLM consistently lags behind specialized SOTA systems. In BLEURT scores, the gap is typically between 1 and 3 points.

Table 5: Main results for English-German translation, comparing PaLM against SOTA (WMT21 Facebook) and Google Translate using MQM, BLEURT, and BLEU.

As detailed in Table 5, the MQM scores (where lower is better) show that supervised SOTA systems (e.g., 1.18 for en→de) significantly outperform PaLM's best prompting configurations (e.g., 1.58). While PaLM's performance is often comparable to production systems like Google Translate, it struggles to match the precision of models specifically trained for translation.

Conclusion and Future Work

While PaLM is a powerful tool for translation, particularly into English, it is not yet a replacement for specialized supervised models. The study highlights the importance of using high-quality, human-curated prompt pools and modern evaluation metrics like MQM to avoid being misled by the model's high fluency. Future research may explore utilizing PaLM's large context window for document-level translation or employing "soft" prompting to further optimize performance.

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