Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translation
Authors:
- Marjan GhazvininejadMGMarjan Ghazvininejad
- Hila GonenHGHila Gonen
- Luke ZettlemoyerLZLuke Zettlemoyer
Preprint
Abstract
Large language models (LLMs) demonstrate remarkable machine translation (MT) abilities via prompting, even though they were not explicitly trained for this task. However, even given the incredible quantities of data they are trained on, LLMs can struggle to translate inputs with rare words, which are common in low resource or domain transfer scenarios. We show that LLM prompting can provide an effective solution for rare words as well, by using prior knowledge from bilingual dictionaries to provide control hints in the prompts. We propose a novel method, DiPMT, that provides a set of possible translations for a subset of the input words, thereby enabling fine-grained phrase-level prompted control of the LLM. Extensive experiments show that DiPMT outperforms the baseline both in low-resource MT, as well as for out-of-domain MT. We further provide a qualitative analysis of the benefits and limitations of this approach, including the overall level of controllability that is achieved.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Prompting PaLM for Translation: Assessing Strategies and Performance2023
- In-context Examples Selection for Machine Translation2023
- The Flores-101 Evaluation Benchmark for Low-Resource and Multilingual Machine TranslationTransactions of the Association for Computational Linguistics, 2022
- Bilingual Lexicon Induction via Unsupervised Bitext Construction and Word Alignment2021
- Unsupervised Domain Clusters in Pretrained Language Models2020
- Training Neural Machine Translation to Apply Terminology Constraints2019
- A Call for Clarity in Reporting BLEU Scores2018
- Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation2018
- Lexically Constrained Decoding for Sequence Generation Using Grid Beam Search2017
- Incorporating Discrete Translation Lexicons into Neural Machine Translation2016