TasTe: Teaching Large Language Models to Translate through Self-Reflection

Yutong Wang, Jiali Zeng, Xuebo Liu, Fandong Meng, Jie Zhou +1 more
6/12/2024
cs.CLcs.AI

Official code: YutongWang1216/ReflectionLLMMT (12 stars, Apache-2.0, last commit 2024-08-17).

Abstract

Large language models (LLMs) have exhibited remarkable performance in various natural language processing tasks. Techniques like instruction tuning have effectively enhanced the proficiency of LLMs in the downstream task of machine translation. However, the existing approaches fail to yield satisfactory translation outputs that match the quality of supervised neural machine translation (NMT) systems. One plausible explanation for this discrepancy is that the straightforward prompts employed in these methodologies are unable to fully exploit the acquired instruction-following capabilities. To this end, we propose the TasTe framework, which stands for translating through self-reflection. The self-reflection process includes two stages of inference. In the first stage, LLMs are instructed to generate preliminary translations and conduct self-assessments on these translations simultaneously. In the second stage, LLMs are tasked to refine these preliminary translations according to the evaluation results. The evaluation results in four language directions on the WMT22 benchmark reveal the effectiveness of our approach compared to existing methods. Our work presents a promising approach to unleash the potential of LLMs and enhance their capabilities in MT. The codes and datasets are open-sourced at https://github.com/YutongWang1216/ReflectionLLMMT.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code and data realeases for the paper -- TasTe: Teaching Large Language Models to Translate through Self-Reflection

121Shell, PythonApr 24, 20242 years agoApache-2.0
instruction-tuninglarge-language-modelsmachine-translationnatural-language-processingself-reflection

Similar Papers

Cite this paper

@article{wang2024taste,
  title  = {TasTe: Teaching Large Language Models to Translate through Self-Reflection},
  author = {Yutong Wang and Jiali Zeng and Xuebo Liu and Fandong Meng and Jie Zhou and Min Zhang},
  year   = {2024},
  eprint = {2406.08434},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.08434v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.08434.svg)](https://codeofpaper.com/paper/2406.08434)

Discussion