[Paper Review] Using natural language prompts for machine translation
This paper proposes using natural language prompts—such as 'Translate to Spanish:'—to control multilingual machine translation models, replacing traditional language tags. By fine-tuning a pre-trained model with prompts instead of tags, the method enables zero-shot translation into unseen languages using only their English names, achieving strong performance with minimal fine-tuning and no additional parameters.
We explore the use of natural language prompts for controlling various aspects of the outputs generated by machine translation models. We demonstrate that natural language prompts allow us to influence properties like formality or specific dialect of the output. We show that using language names to control the output language of multilingual translation models enables positive transfer for unseen language pairs. This unlocks the ability to translate into languages not seen during fine-tuning by using their English names. We investigate how scale, number of pre-training steps, number of languages in fine-tuning, and language similarity affect this phenomenon.
Motivation & Objective
- To explore whether natural language prompts can control output properties like formality and dialect in machine translation.
- To investigate if prompts can replace language tags in multilingual translation models without introducing new parameters.
- To evaluate whether prompting enables zero-shot translation into languages not seen during fine-tuning.
- To analyze the impact of model scale, pre-training data, number of languages, and language similarity on prompt-based transfer.
Proposed method
- Replace traditional language tags (e.g., <2es>) with natural language prompts (e.g., 'Translate to Spanish:') in the input sequence.
- Fine-tune a multilingual translation model on parallel data using prompts instead of tags, preserving the original model architecture.
- Use English language names (e.g., 'Spanish', 'German') to specify target languages during inference, even for languages not seen during fine-tuning.
- Train a prompt-adapted model by fine-tuning a language-tagged model for only 100 steps to avoid performance degradation on seen language pairs.
- Evaluate performance across four data supervision levels: fully supervised, zero-shot, one-parallel-language, and no-parallel-data pairs.
- Compare three model variants: language-tagged, prompt-trained from scratch, and prompt-adapted (fine-tuned from a language-tagged model).
Experimental results
Research questions
- RQ1Can natural language prompts effectively control the formality and dialect of translation outputs?
- RQ2Does using language names as prompts enable zero-shot translation into languages not seen during fine-tuning?
- RQ3How does model scale, pre-training data, number of languages, and language similarity affect prompt-based transfer?
- RQ4Does fine-tuning a language-tagged model to use prompts yield better performance than training from scratch with prompts?
Key findings
- Fine-tuning a language-tagged model to use prompts (Adapted model) achieved significant improvements in zero-shot translation, particularly for language pairs with no parallel data.
- The Adapted model achieved a BLEU score of 36.6 on the English→German translation task, compared to 18.6 for the language-tagged baseline, demonstrating strong zero-shot transfer.
- For the zero-shot French→Spanish pair, the Adapted model scored 34.8 BLEU, a substantial improvement over the language-tagged model’s 43.8, indicating effective prompt generalization.
- The Adapted model maintained near-identical performance on supervised language pairs (e.g., 40.4 BLEU for English→French vs. 40.0 for the language-tagged model), showing minimal negative impact on seen languages.
- Training from scratch with prompts yielded worse results than using language tags, suggesting that prompt learning benefits from pre-trained inductive biases.
- The method enables translation into unseen languages using only their English names, such as 'Gujarati' or 'Czech', without requiring additional parameters or labeled data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.