Introduction
While Large Language Models (LLMs) like ChatGPT have demonstrated impressive translation capabilities, their proprietary nature limits open research and customization. Conversely, open-source models such as LLaMA often struggle with translation tasks out of the box, frequently exhibiting issues like hallucination, unnecessary text expansion, or failure to adhere to stylistic constraints. Furthermore, traditional machine translation (MT) workflows often separate translation, post-editing, and quality estimation into distinct models.
ParroT addresses these challenges by unifying these abilities within a single instruction-following framework. By fine-tuning open-source LLMs with human-annotated error data and a novel "Hint" field, ParroT makes these models more reliable, regulatable, and capable of learning directly from human feedback.
Methodology
The core of the ParroT framework is a specialized form of instruction tuning. The researchers reformulated standard translation data into a structured format consisting of an Instruction, Input, Response, and a novel Hint field. This structure allows the model to receive auxiliary guidance during both training and inference.
Three distinct instruction types were introduced to train the model:
- Translation Instruction: The basic task of mapping a source sentence to a target language.
- Contrastive Instruction: The model is presented with two different translations and instructed on which is preferred, acting as a form of negative sampling to help the model distinguish quality levels.
- Error-Guided Instruction: This is the framework's most innovative contribution. Using human-annotated error data from the Multidimensional Quality Metric (MQM) dataset, the model is given a hint about a specific error (e.g., "major mistranslation") and shown a response where that error is explicitly marked with
<v></v>tags. This teaches the model exactly what constitutes a mistake and how to avoid it.
Experimental Setup
The authors utilized a diverse mix of datasets for training:
- Alpaca Data: 52K general multi-task instructions to preserve the model's general conversational abilities.
- WMT Validation Data: 51.2K human-written sentence pairs for Chinese-English and German-English directions.
- MQM Human Evaluation Data: Fine-grained human feedback providing explicit error annotations.
- Synthetic Feedback: For language pairs lacking human MQM data, the authors used the COMET metric to heuristically generate error labels.
Evaluation was conducted on the Flores-101 and WMT22 test sets, comparing ParroT against vanilla base models and proprietary systems like ChatGPT.
Key Results
ParroT models showed dramatic improvements over their base counterparts. For example, on the Flores Chinese-to-English task, the vanilla LLaMA-7b model scored only 1.8 BLEU, whereas the ParroT-tuned version reached 19.2 BLEU. This score further increased to 21.5 when the model was prompted with a "No Error" hint during inference.
Notably, ParroT-13b achieved results competitive with ChatGPT and GPT-4. In several WMT22 test sets, ParroT outperformed ChatGPT in terms of the COMET score, which is widely considered to align more closely with human judgment than traditional metrics like BLEU. The framework proved robust across different model families, including both LLaMA and BLOOMZ.
Conclusion and Future Work
ParroT demonstrates that learning from failure is a powerful paradigm for improving LLM translation. By explicitly training on error-guided instructions, the model develops a deeper understanding of translation quality. The practical utility of the "Hint" field allows users to regulate outputs effectively, such as by requesting translations with "no errors."
Future research will focus on extending ParroT to document-level translation and improving the handling of named entities, which remain a challenge for current iterations. Additionally, the authors plan to explore more sophisticated contrastive learning methods to further refine the model's ability to distinguish between subtle variations in translation quality.
Summary updated