paper-with-me

홈 › Papers

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

2025-01-03 · Lei Tang, Jinghui Qin, Wenxuan Ye, Hao Tan, Zhijing Yang

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.

📄 PDF Abstract BibTeX arXiv:2501.01679

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningMachine TranslationRetrievalTranslation

Similar Papers 제목 키워드 기반

Decomposed Prompting for Machine Translation Between Related Languages using Large Language Models

2023-05-22 · Ratish Puduppully, Anoop Kunchukuttan, Raj Dabre, Ai Ti Aw 외

This study investigates machine translation between related languages i.e., languages within the same family that share linguistic characteristics such as word order and lexical similarity. Machine translation through fe…

Machine TranslationTranslation

TreePrompt: Leveraging Hierarchical Few-Shot Example Selection for Improved English-Persian and English-German Translation

2025-10-04 · Ramtin Kakavand, Ebrahim Ansari arxiv

Large Language Models (LLMs) have consistently demonstrated strong performance in machine translation, especially when guided by high-quality prompts. Few-shot prompting is an effective technique to improve translation q…

Machine Translation

Advancing Dialectal Arabic to Modern Standard Arabic Machine Translation

2025-07-27 · Abdullah Alabdullah, Lifeng Han, Chenghua Lin arxiv

Dialectal Arabic (DA) poses a persistent challenge for natural language processing (NLP), as most everyday communication in the Arab world occurs in dialects that diverge significantly from Modern Standard Arabic (MSA). …

Machine Translation

What do Large Language Models Need for Machine Translation Evaluation?

2024-10-04 · Shenbin Qian, Archchana Sindhujan, Minnie Kabra, Diptesh Kanojia 외

Leveraging large language models (LLMs) for various natural language processing tasks has led to superlative claims about their performance. For the evaluation of machine translation (MT), existing research shows that LL…

Machine TranslationTranslation

Multilingual LLM Prompting Strategies for Medical English-Vietnamese Machine Translation

2025-09-19 · Nhu Vo, Nu-Uyen-Phuong Le, Dung D. Le, Massimo Piccardi 외 arxiv

Medical English-Vietnamese machine translation (En-Vi MT) is essential for healthcare access and communication in Vietnam, yet Vietnamese remains a low-resource and under-studied language. We systematically evaluate prom…

Machine Translation