Lune

AAAI2025Top-tier venue

Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language Models

Lei Tang, Jinghui Qin, Wenxuan Ye, Hao Tan, Zhijing Yang

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 translation demonstrations from aligned parallel translation corpus. Rather than using other embedding models for semantic demonstration retrieval, we build a hybrid demonstration retrieval module based on the embedding layer of the deployed LLM to build better input representation for retrieving more semantic-related translation demonstrations. Then, to ensure better semantic consistency between source inputs and target outputs, we force the deployed LLM itself to generate multiple output candidates in the target language with the help of translation demonstrations and rerank these candidates. Besides, to better evaluate the effectiveness of our AFSP framework on the latest language and extend the research boundary of neural machine translation, we construct a high-quality diplomatic Chinese-English parallel dataset that consists of 5,528 parallel Chinese-English sentences. Finally, extensive experiments on the proposed diplomatic Chinese-English parallel dataset and the United Nations Parallel Corpus (Chinese-English part) show the effectiveness and superiority of our proposed AFSP.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Unreasonable Effectiveness of Few-shot Learning for Machine Translation cites Prompting PaLM for Translation: Assessing Strategies and Performance
  • Prompting PaLM for Translation: Assessing Strategies and Performance cites The Unreasonable Effectiveness of Few-shot Learning for Machine Translation
  • Prompting PaLM for Translation: Assessing Strategies and Performance cites Document-Level Machine Translation with Large Language Models
  • Document-Level Machine Translation with Large Language Models cites Prompting PaLM for Translation: Assessing Strategies and Performance
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. AdaDPI: Document-level Translation Adaptive Agent via Dynamic Parametric InternalizationHong Ren, Liting Deng, Shaolin Zhu, Deyi XiongACL 2026

Builds on9

  1. Understanding the Effects of RLHF on LLM Generalisation and DiversityRobert Kirk, Ishita Mediratta, Christoforos Nalmpantis, Jelena Luketina et al.ICLR 2024 · 332 citations
  2. Many-Shot In-Context LearningRishabh Agarwal, Avi Singh, Lei Zhang, Bernd Bohnet et al.NeurIPS 2024 · 271 citations
  3. The Unreasonable Effectiveness of Few-shot Learning for Machine TranslationXavier Garcia, Yamini Bansal, Colin Cherry, George F. Foster et al.ICML 2023 · 133 citations
  4. Document-Level Machine Translation with Large Language ModelsLongyue Wang, Chenyang Lyu, Tianbo Ji, Zhirui Zhang et al.EMNLP 2023 · 129 citations
  5. Prompting PaLM for Translation: Assessing Strategies and PerformanceDavid Vilar, Markus Freitag, Colin Cherry, Jiaming Luo et al.ACL 2023 · 70 citations

Related papers

  1. Dissecting In-Context Learning of Translations in GPT-3Vikas Raunak, Arul Menezes, Hany Hassan AwadallaEMNLP Findings 2023 · 2 citations
  2. Compositional Translation: A Novel LLM-based Approach for Low-resource Machine TranslationArmel Randy Zebaze, Benoît Sagot, Rachel BawdenEMNLP Findings 2025 · 4 citations
  3. Efficiently Exploring Large Language Models for Document-Level Machine Translation with In-context LearningMenglong Cui, Jiangcun Du, Shaolin Zhu, Deyi XiongACL Findings 2024 · 12 citations
  4. Enhancing Automatic Term Extraction with Large Language Models via Syntactic RetrievalYongchan Chun, Minhyuk Kim, Dongjun Kim, Chanjun Park et al.ACL Findings 2025 · 3 citations
  5. On Bilingual Lexicon Induction with Large Language ModelsYaoyiran Li, Anna Korhonen, Ivan VulicEMNLP 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines