Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language Models
Lei Tang, Jinghui Qin, Wenxuan Ye, Hao Tan, Zhijing Yang

TL;DR
This paper introduces an adaptive few-shot prompting framework that automatically selects relevant translation demonstrations for large language models, significantly improving neural machine translation quality across datasets.
Contribution
It proposes a novel retrieval-based adaptive prompting method using LLM embeddings and candidate reranking, enhancing translation performance in low-resource scenarios.
Findings
Outperforms fixed prompts in translation tasks
Effective on Chinese-English and UN datasets
Improves semantic consistency and translation accuracy
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Multimodal Machine Learning Applications
