Prompting Large Language Model for Machine Translation: A Case Study
Authors: Biao Zhang, Barry Haddow, Alexandra Birch
Abstract
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.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Design and Evaluation of Prompts for Large Language Model Translations in Specialized DomainsRui Yang, Ping Wang, Xing-Yu Xiang et al. · 2024 · 2024 5th International Conference on Information Science and Education (ICISE-IE) · Not summarized yet
This study tests prompt strategies for translation in specialized domains, while the paper systematically examines prompt choices for machine translation.
Abstract
In recent years, Large Language Models (LLMs) have made significant breakthroughs in natural language processing. However, effectively applying them in domain-specific translation remains a significant challenge. This study aims to enhance the translation quality of LLMs in specialized domains by investigating the impact of different prompt strategies. We constructed four domain-specific corpora and assessed the efficacy of four prompting strategies—code-based, natural language-based, CRISPE mode, and comprehensive mode—using automated metrics such as BLEU, ChrF, and TER on the ChatGPT 3.5 model. Results indicate that different prompting strategies significantly affect LLM translation qualit…
-
MSP: Multi-Stage Prompting for Making Pre-trained Language Models Better TranslatorsZhi-Xing Tan, Xiang-Wen Zhang, Shuo Wang et al. · 2021 · Annual Meeting of the Association for Computational Linguistics · cited 60 times · Not summarized yet
MSP uses separate continuous prompts for encoding, re-encoding, and decoding in translation, unlike the paper’s study of prompting strategies and example selection.
Abstract
Prompting has recently been shown as a promising approach for applying pre-trained language models to perform downstream tasks. We present Multi-Stage Prompting, a simple and automatic approach for leveraging pre-trained language models to translation tasks. To better mitigate the discrepancy between pre-training and translation, MSP divides the translation process via pre-trained language models into three separate stages: the encoding stage, the re-encoding stage, and the decoding stage. During each stage, we independently apply different continuous prompts for allowing pre-trained language models better shift to translation tasks. We conduct extensive experiments on three translation task…
-
Prompting PaLM for Translation: Assessing Strategies and PerformanceDavid Vilar, Markus Freitag, Colin Cherry et al. · 2022 · Annual Meeting of the Association for Computational Linguistics · cited 264 times · Not summarized yet
This study evaluates few-shot example-selection strategies and translation performance with PaLM, overlapping with the paper’s analysis of translation prompts and demonstrations.
Abstract
Large language models (LLMs) that have been trained on multilingual but not parallel text exhibit a remarkable ability to translate between languages. We probe this ability in an in-depth study of the pathways language model (PaLM), which has demonstrated the strongest machine translation (MT) performance among similarly-trained LLMs to date. We investigate various strategies for choosing translation examples for few-shot prompting, concluding that example quality is the most important factor. Using optimized prompts, we revisit previous assessments of PaLM’s MT capabilities with more recent test sets, modern MT metrics, and human evaluation, and find that its performance, while impressive, …
-
Reasoning for Translation: Comparative Analysis of Chain-of-Thought and Tree-of-Thought Prompting for LLM TranslationLam Nguyen, Yang Xu · 2025 · Annual Meeting of the Association for Computational Linguistics · cited 10 times · Not summarized yet
This paper compares zero-shot, few-shot, chain-of-thought, and tree-of-thought prompting for translation quality across language pairs and domains.
Abstract
As Large Language Models (LLMs) continue to advance in capability, prompt engineering has emerged as a crucial method for optimizing their performance on specialized tasks. While prompting strategies like Zero-shot, Few-shot, Chain-of-Thought, and Tree-of-Thought have demonstrated significant improvements in reasoning tasks, their application to machine translation has received relatively less attention. This paper systematically evaluates these prompting techniques across diverse language pairs and domains, measuring their effect on translation quality. Our findings reveal substantial performance variations between prompting methods, with certain strategies offering consistent improvements …
-
Transfer-Prompting: Enhancing Cross-Task Adaptation in Large Language Models via Dual-Stage Prompts OptimizationYu-Peng Chang, Yi Chang, Yuan Wu · 2025 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
Transfer-Prompting optimizes prompts for cross-task adaptation, whereas the paper examines transferring prompt-example knowledge across translation settings.
Abstract
Large language models (LLMs) face significant challenges when balancing multiple high-level objectives, such as generating coherent, relevant, and high-quality responses while maintaining efficient task adaptation across diverse tasks. To address these challenges, we introduce Transfer-Prompting, a novel two-stage framework designed to enhance cross-task adaptation in prompt generation. The framework comprises two key components: (1) source prompt construction, which refines the original prompts on source task datasets to generate source prompts with enhanced generalization ability, and (2) target prompt generation, which enhances cross-task adaptation of target prompts by fine-tuning a set …
-
The Role of Prompt Language and Translation-Theory-Driven Prompts in Large Language Models: A Case Study on Spanish-Chinese Journalistic TranslationHaohong Lai, Weijia Li · 2026 · European Association for Machine Translation Conferences/Workshops · Not summarized yet
This study tests prompt language and theory-driven prompt designs for Spanish-Chinese journalistic translation, another investigation of prompt effects on translation.
Abstract
This study examines how prompt language and translation theory-driven prompt design influence the quality of Spanish-Chinese journalistic translations generated by GPT-5.2. A parallel corpus of four editorials from El Pais was translated under 48 experimental conditions (4 prompt types, 3 prompt languages, and 4 articles). Translation quality was assessed using BLEU and BERTScore-F1 for automated evaluation, alongside human evaluation based on the Multidimensional Quality Metrics (MQM) framework. Automated metrics identified the baseline prompt (BASE) as the best-performing condition, whereas human evaluation ranked the brief-oriented prompt (BRIEF) highest (MQM: 8.66 vs. 7.84), a reversal l…
-
Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language ModelsLei Tang, Jing-Hui Qin, Wenxuan Ye et al. · 2025 · AAAI Conference on Artificial Intelligence · cited 15 times · Not summarized yet
AFSP retrieves semantically similar demonstrations for each input sentence, addressing the paper’s concern with selecting effective translation examples through an adaptive method.
Abstract
Recently, Large Language Models (LLMs) with in-context learning have demonstrated remarkable potential in handling neural machine translation. However, existing evidence shows that LLMs are prompt-sensitive and it is sub-optimal to apply the fixed prompt to any input for downstream machine translation tasks. To address this issue, we propose an adaptive few-shot prompting (AFSP) framework to automatically select suitable translation demonstrations for various source input sentences to further elicit the translation capability of an LLM for better machine translation. First, we build a translation demonstration retrieval module based on LLM's embedding to retrieve top-k semantic-similar trans…
-
Augmenting Large Language Model Translators via Translation MemoriesYong-Yu Mu, Abudurexiti Reheman, Zhiquan Cao et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 36 times · Not summarized yet
This work uses high-quality translation-memory matches as prompts to improve LLM translation, a specific demonstration source related to the paper’s example-selection study.
Abstract
Using translation memories (TMs) as prompts is a promising approach to in-context learning of machine translation models. In this work, we take a step towards prompting large language models (LLMs) with TMs and making them better translators. We find that the ability of LLMs to ``understand'' prompts is indeed helpful for making better use of TMs. Experiments show that the results of a pre-trained LLM translator can be greatly improved by using high-quality TM-based prompts. These results are even comparable to those of the state-of-the-art NMT systems which have access to large-scale in-domain bilingual data and are well tuned on the downstream tasks.
Prior work it builds on
-
Using natural language prompts for machine translationXavier García, O. Firat · 2022 · arXiv.org · preprint, not peer reviewed · cited 38 times · Not summarized yet
This earlier study uses natural-language prompts to control translation outputs and enable transfer to unseen language pairs, topics relevant to the paper’s prompting study.
Abstract
We explore the use of natural language prompts for controlling various aspects of the outputs generated by machine translation models. We demonstrate that natural language prompts allow us to influence properties like formality or specific dialect of the output. We show that using language names to control the output language of multilingual translation models enables positive transfer for unseen language pairs. This unlocks the ability to translate into languages not seen during fine-tuning by using their English names. We investigate how scale, number of pre-training steps, number of languages in fine-tuning, and language similarity affect this phenomenon.
-
Prompt Programming for Large Language Models: Beyond the Few-Shot ParadigmLaria Reynolds, Kyle McDonell · 2021 · Computation and Language · cited 1,458 times · AI summary available
This GPT-3 study analyzes zero-shot and few-shot prompts and argues examples can locate learned tasks, informing the paper’s examination of demonstrations.
Abstract
Prevailing methods for mapping large generative language models to supervised tasks may fail to sufficiently probe models' novel capabilities. Using GPT-3 as a case study, we show that 0-shot prompts can significantly outperform few-shot prompts. We suggest that the function of few-shot examples in these cases is better described as locating an already learned task rather than meta-learning. This analysis motivates rethinking the role of prompts in controlling and evaluating powerful language models. In this work, we discuss methods of prompt programming, emphasizing the usefulness of considering prompts through the lens of natural language. We explore techniques for exploiting the capacity …
-
Least-to-Most Prompting Enables Complex Reasoning in Large Language ModelsDenny Zhou, Nathanael Schärli, Le Hou et al. · 2022 · Artificial Intelligence · cited 2,006 times · Not summarized yet
Least-to-most prompting breaks complex reasoning into sequential subproblems, applying prompting to reasoning rather than the paper’s machine-translation problem.
Abstract
We propose a novel prompting strategy, least-to-most prompting, that enables large language models to better perform multi-step reasoning tasks. Least-to-most prompting first reduces a complex problem into a list of subproblems, and then sequentially solves the subproblems, whereby solving a given subproblem is facilitated by the model's answers to previously solved subproblems. Experiments on symbolic manipulation, compositional generalization and numerical reasoning demonstrate that least-to-most prompting can generalize to examples that are harder than those seen in the prompt context, outperforming other prompting-based approaches by a large margin. A notable empirical result is that the…
-
TransPrompt: Towards an Automatic Transferable Prompting Framework for Few-shot Text ClassificationCheng-Yu Wang, J. Wang, Minghui Qiu et al. · 2021 · Conference on Empirical Methods in Natural Language Processing · cited 67 times · Not summarized yet
TransPrompt transfers continuous prompt knowledge across few-shot text-classification tasks, unlike the paper’s transfer of translation examples across settings.
Abstract
Recent studies have shown that prompts improve the performance of large pre-trained language models for few-shot text classification. Yet, it is unclear how the prompting knowledge can be transferred across similar NLP tasks for the purpose of mutual reinforcement. Based on continuous prompt embeddings, we propose TransPrompt, a transferable prompting framework for few-shot learning across similar tasks. In TransPrompt, we employ a multi-task meta-knowledge acquisition procedure to train a meta-learner that captures cross-task transferable knowledge. Two de-biasing techniques are further designed to make it more task-agnostic and unbiased towards any tasks. After that, the meta-learner can b…
-
Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans et al. · 2022 · Computation and Language · cited 23,480 times · AI summary available
This paper introduces chain-of-thought prompting for reasoning tasks, providing prompting background rather than studying machine translation.
Abstract
We explore how generating a chain of thought -- a series of intermediate reasoning steps -- significantly improves the ability of large language models to perform complex reasoning. In particular, we show how such reasoning abilities emerge naturally in sufficiently large language models via a simple method called chain of thought prompting, where a few chain of thought demonstrations are provided as exemplars in prompting. Experiments on three large language models show that chain of thought prompting improves performance on a range of arithmetic, commonsense, and symbolic reasoning tasks. The empirical gains can be striking. For instance, prompting a 540B-parameter language model with just…
Papers that cite it
-
A Survey of Prompt Engineering Methods in Large Language Models for Different NLP TasksShubham Vatsal, Harsh Dubey · 2024 · arXiv.org · preprint, not peer reviewed · cited 131 times · Not summarized yet
This survey reviews prompt-engineering methods across NLP tasks, including the broader prompting field in which the paper studies translation.
Abstract
Large language models (LLMs) have shown remarkable performance on many different Natural Language Processing (NLP) tasks. Prompt engineering plays a key role in adding more to the already existing abilities of LLMs to achieve significant performance gains on various NLP tasks. Prompt engineering requires composing natural language instructions called prompts to elicit knowledge from LLMs in a structured way. Unlike previous state-of-the-art (SoTA) models, prompt engineering does not require extensive parameter re-training or fine-tuning based on the given NLP task and thus solely operates on the embedded knowledge of LLMs. Additionally, LLM enthusiasts can intelligently extract LLMs' knowled…
-
Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMsSamuel Frontull, Thomas Ströhle · 2025 · arXiv.org · preprint, not peer reviewed · cited 4 times · Not summarized yet
This later work develops fragment-based demonstration retrieval for low-resource translation and cites the paper’s study of translation prompting.
Abstract
Large Language Models (LLMs) have demonstrated strong capabilities in multilingual machine translation, sometimes even outperforming traditional neural systems. However, previous research has highlighted the challenges of using LLMs, particularly with prompt engineering, for low-resource languages. In this work, we introduce Fragment-Shot Prompting, a novel in-context learning method that segments input and retrieves translation examples based on syntactic coverage, along with Pivoted Fragment-Shot, an extension that enables translation without direct parallel data. We evaluate these methods using GPT-3.5, GPT-4o, o1-mini, LLaMA-3.3, and DeepSeek-R1 for translation between Italian and two La…
-
S2LPP: Small-to-Large Prompt Prediction across LLMsLiang Cheng, Tianyi Li, Zhao-Wei Wang et al. · 2025 · Conference on Empirical Methods in Natural Language Processing · cited 2 times · Not summarized yet
S2LPP predicts effective prompt templates across model sizes for question answering and related tasks, rather than for machine translation.
Abstract
The performance of pre-trained Large Language Models (LLMs) is often sensitive to nuances in prompt templates, requiring careful prompt engineering, adding costs in terms of computing and human effort. In this study, we present experiments encompassing multiple LLMs variants of varying sizes aimed at probing their preference with different prompts. Through experiments on Question Answering, we show prompt preference consistency across LLMs of different sizes. We also show that this consistency extends to other tasks, such as Natural Language Inference. Utilizing this consistency, we propose a method to use a smaller model to select effective prompt templates for a larger model. We show that …
-
Prompting LLMs: Length Control for Isometric Machine TranslationD'avid Javorsk'y, Ondrej Bojar, François Yvon · 2025 · International Workshop on Spoken Language Translation · cited 2 times · Not summarized yet
This later study examines few-shot examples and prompt wording for isometric translation, and cites the paper’s work on translation prompting.
Abstract
In this study, we explore the effectiveness of isometric machine translation across multiple language pairs (En$\to$De, En$\to$Fr, and En$\to$Es) under the conditions of the IWSLT Isometric Shared Task 2022. Using eight open-source large language models (LLMs) of varying sizes, we investigate how different prompting strategies, varying numbers of few-shot examples, and demonstration selection influence translation quality and length control. We discover that the phrasing of instructions, when aligned with the properties of the provided demonstrations, plays a crucial role in controlling the output length. Our experiments show that LLMs tend to produce shorter translations only when presented…
-
Refining Translations with Large Language Models: A Constraint-Aware Iterative Prompting ApproachShangfeng Chen, Xia-Yang Shi, Pu Li et al. · 2025 · Data Intelligence · cited 2 times · Not summarized yet
This later method iteratively prompts LLMs using critical keywords and dictionary translations to refine output, and cites the paper’s translation-prompting study.
Abstract
Large Language Models (LLMs) have shown impressive capabilities in Machine Translation (MT), even when translating languages not specifically included in their training data. However, accurately translating rare words in low-resource or domain-specific contexts remains a significant challenge for LLMs. To address this limitation, we propose a multi-step prompt engineering approach that enhances translation accuracy by prioritizing the identification and precise rendering of critical keywords essential to semantic understanding. Our method first identifies these high-importance keywords and retrieves their translations from a bilingual dictionary, which are then integrated into the model’s co…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 2 November 2026.