Chain-of-Dictionary Prompting Elicits Translation in Large Language Models
Hongyuan Lu, Haoran Yang, Haoyang Huang, Dongdong Zhang, Wai Lam, Furu Wei
TL;DR
<p>We address the challenge of translating rare words in low-resource languages using large language models. The paper introduces Chain-of-Dictionary Prompting (CoD), which appends chains of multilingual dictionary translations to the translation prompt to provide the model with lexical priors in a zero-shot setting. Extensive experiments on FLORES-200 show large gains for many language directions, with CoD outperforming few-shot demonstrations and, in some cases, approaching or surpassing state-of-the-art translators. The approach is validated across multiple models, languages, and directions, and ablations confirm the importance of chaining and auxiliary languages, while practical considerations like stopword truncation reduce compute. This work offers a viable, data-efficient method to improve MNMT in real-world, low-resource scenarios.</p>
Abstract
Large language models (LLMs) have shown surprisingly good performance in multilingual neural machine translation (MNMT) even when trained without parallel data. Yet, despite the fact that the amount of training data is gigantic, they still struggle with translating rare words, particularly for low-resource languages. Even worse, it is usually unrealistic to retrieve relevant demonstrations for in-context learning with low-resource languages on LLMs, which restricts the practical use of LLMs for translation -- how should we mitigate this problem? To this end, we present a novel method, CoD, which augments LLMs with prior knowledge with the chains of multilingual dictionaries for a subset of input words to elicit translation abilities for LLMs. Extensive experiments indicate that augmenting ChatGPT with CoD elicits large gains by up to 13x chrF++ points for MNMT (3.08 to 42.63 for English to Serbian written in Cyrillic script) on FLORES-200 full devtest set. We further demonstrate the importance of chaining the multilingual dictionaries, as well as the superiority of CoD to few-shot demonstration for low-resource languages.
