[Paper Review] Prompting Large Language Model for Machine Translation: A Case Study
A systematic study of prompting strategies for machine translation using GLM-130B, examining prompt templates, demonstration examples, monolingual data usage, and cross-setting transfer learning.
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.
Motivation & Objective
- Assess how prompt templates influence MT quality across language pairs.
- Investigate how demonstration examples affect prompting performance and how to select them effectively.
- Explore the use of monolingual data for prompting and the potential of pseudo-parallel prompt examples.
- Examine transfer learning: cross-lingual, cross-domain, and sentence-to-document prompting effects.
Proposed method
- Use GLM-130B (INT4-quantized) as the fixed LLM for translation prompting.
- Evaluate zero-shot and few-shot prompting with multiple templates and demonstration strategies.
- Construct and analyze an Ablation set to study demonstration features and their correlation with prompting performance.
- Experiment with monolingual data, back-/forward-translation to create pseudo-parallel prompt examples.
- Study cross-setting transfer: cross-lingual, cross-domain, and document-level transfer for prompting.
- Analyze outputs for common prompting-related issues and potential mitigations.
Experimental results
Research questions
- RQ1Which MT prompting templates yield the best performance and how does the template language affect results?
- RQ2How do demonstration examples influence prompting performance and which features of demonstrations correlate with better MT prompts?
- RQ3Can monolingual data be effectively used in prompting, and how do pseudo-parallel prompt examples compare?
- RQ4To what extent do prompt demonstrations transfer across languages, domains, and output granularity (sentence vs. document)?
- RQ5What practical issues (e.g., copying, hallucinations, prompt traps) arise in prompting for MT and how can they be mitigated?
Key findings
- Template choice substantially impacts zero-shot MT; an English simple template generally performs best for translating into En/De/Zh with GLM-130B.
- Several demonstration features (length, LM score, semantic similarity) correlate with prompting performance, but correlations are weak and not consistently predictive.
- Monolingual data in prompts generally hurts MT performance; pseudo-parallel prompts via back-/forward-translation improve prompting, with back-translation more robust.
- Prompting shows some transferability, but cross-setting gains are modest and demonstrations from one setting do not reliably outperform zero-shot in another.
- Prompting still suffers from copying, entity mistranslations, hallucinations, and prompt traps, with pivoting through English offering some benefits for non-English directions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.