Seedlabs
Source research

Prompting Large Language Model for Machine Translation: A Case Study

Biao Zhang, Barry Haddow, Alexandra Birch · 2023 · 314 citationsRead the paper

Research on prompting has shown excellent performance with little or even no supervised training across many tasks. However, prompting for machine translation is still under-explored in the literature. We fill this gap by offering a systematic study on prompting strategies for translation, examining various factors for prompt template and demonstration example selection. We further explore the use of monolingual data and the feasibility of cross-lingual, cross-domain, and sentence-to-document transfer learning in prompting. Extensive experiments with GLM-130B (Zeng et al., 2022) as the testbed show that 1) the number and the quality of prompt examples matter, where using suboptimal examples degenerates translation; 2) several features of prompt examples, such as semantic similarity, show significant Spearman correlation with their prompting performance; yet, none of the correlations are strong enough; 3) using pseudo parallel prompt examples constructed from monolingual data via zero-shot prompting could improve translation; and 4) improved performance is achievable by transferring knowledge from prompt examples selected in other settings. We finally provide an analysis on the model outputs and discuss several problems that prompting still suffers from.

What the full text shows

Working prototype
  • Increasing the number of prompt examples generally improves translation performance, though 1-shot prompting can underperform zero-shot prompting. — COMET scores increased from 33.92 (zero-shot) to 51.11 (5-shot random) on Wiki Full sets (GLM-130B, high-quality pool)
  • Feature-based example selection (specifically SemScore) outperforms random selection. — COMET increased from 48.29 (random 1-shot) to 49.34 (SemScore 1-shot) on Wiki Full sets (GLM-130B, high-quality pool)
  • Pseudo-parallel prompt examples constructed from monolingual data via zero-shot prompting improve translation. — COMET scores increased for En-Zh and Zh-En directions compared to random examples (Wiki Ablation sets)
  • English prompt templates generally perform best across different language pairs, except when translating into Chinese. (GLM-130B)
  • Transferring knowledge from sentence-level demonstrations to document-level translation is possible. — d-BLEU increased from 30.2 (zero-shot) to 30.5 (SemScore 1-shot) on PDC Zh-En (PDC Zh-En Full sets)
  • A combined selection strategy (SemScore filter -> LMScore re-rank -> TLength) improves results when using low-quality data. — COMET increased from 38.86 (random) to 39.88 (Ours) on Wiki Full sets (Low-quality pool)
Setup
GLM-130B model tested on Wiki, WMT, and PDC datasets; experiments conducted on 4 A100-40G GPUs.
How
The researchers conducted a systematic study on prompting strategies for machine translation using GLM-130B, testing various template languages, example selection features (semantic similarity, length, likelihood), and transfer learning scenarios. They evaluated performance using BLEU and COMET metrics across Wiki, WMT, and PDC datasets.
Limitations
High performance variance observed under the same number of examples (K). · Weak correlation (Spearman's ρ < 0.5) between most example features and actual performance. · Poor translation quality between German and Chinese. · Susceptibility to 'prompt traps' where the model copies template phrases instead of translating.

Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it