Skip to main content
QUICK REVIEW

[Paper Review] Towards Making the Most of ChatGPT for Machine Translation

Keqin Peng, Liang Ding|arXiv (Cornell University)|Mar 24, 2023
Topic ModelingComputer Science17 citations
TL;DR

The paper investigates how to optimize ChatGPT for machine translation by tuning temperature and using Task-Specific Prompts (TSP) and Domain-Specific Prompts (DSP), showing improved performance in many settings and highlighting hallucinations in non-English tasks and degradation with Chain-of-Thought prompts.

ABSTRACT

ChatGPT shows remarkable capabilities for machine translation (MT). Several prior studies have shown that it achieves comparable results to commercial systems for high-resource languages, but lags behind in complex tasks, e.g., low-resource and distant-language-pairs translation. However, they usually adopt simple prompts which can not fully elicit the capability of ChatGPT. In this paper, we aim to further mine ChatGPT's translation ability by revisiting several aspects: temperature, task information, and domain information, and correspondingly propose an optimal temperature setting and two (simple but effective) prompts: Task-Specific Prompts (TSP) and Domain-Specific Prompts (DSP). We show that: 1) The performance of ChatGPT depends largely on temperature, and a lower temperature usually can achieve better performance; 2) Emphasizing the task information can further improve ChatGPT's performance, particularly in complex MT tasks; 3) Introducing domain information can elicit ChatGPT's generalization ability and improve its performance in the specific domain; 4) ChatGPT tends to generate hallucinations for non-English-centric MT tasks, which can be partially addressed by our proposed prompts but still need to be highlighted for the MT/NLP community. We also explore the effects of advanced in-context learning strategies and find a (negative but interesting) observation: the powerful chain-of-thought prompt leads to word-by-word translation behavior, thus bringing significant translation degradation.

Motivation & Objective

  • Motivate and evaluate how prompt design and decoding settings affect ChatGPT's MT quality.
  • Identify optimal temperature settings for translation tasks with ChatGPT.
  • Propose Task-Specific Prompts (TSP) and Domain-Specific Prompts (DSP) to improve MT performance.
  • Examine the impact of in-context learning strategies like few-shot prompts and chain-of-thought on MT.
  • Highlight challenges such as hallucinations in non-English-centric translations.

Proposed method

  • Systematically vary ChatGPT temperature to assess translation quality across language directions.
  • Introduce Task-Specific Prompts (TSP) to emphasize translation tasks in prompts.
  • Introduce Domain-Specific Prompts (DSP) to inject domain information and assess cross-domain generalization.
  • Evaluate few-shot in-context learning (ICL) and sampling strategies (random, TopK) for MT.
  • Explore Chain-of-Thought prompting and its effect on translation quality and word-by-word translation behavior.
  • Use Flores-200 and cross-domain datasets (WMT19 Bio/News, WMT22 E-Commerce) with COMET as primary metric and BLEU/ChrF as supplementary metrics.

Experimental results

Research questions

  • RQ1How does ChatGPT's translation quality vary with temperature across languages and resource levels?
  • RQ2Do Task-Specific Prompts (TSP) improve ChatGPT's MT performance, especially for low-resource or distant languages?
  • RQ3Can Domain-Specific Prompts (DSP) enhance ChatGPT's generalization across domains (Bio, News, E-Commerce) in MT?
  • RQ4What is the impact of few-shot in-context learning and TopK sampling on MT performance?
  • RQ5Does Chain-of-Thought prompting improve or degrade ChatGPT's MT quality and why?

Key findings

  • Lower temperatures generally yield better MT performance, with larger degradation at higher temperatures for distant languages (e.g., Chinese).
  • Task-Specific Prompts (TSP) consistently improve ChatGPT performance, especially for low-resource or distant languages, with some COMET gains.
  • Domain-Specific Prompts (DSP) improve MT performance on certain domains and can surpass Google Translator in some datasets; using wrong domain information (F-DSP) degrades performance.
  • Few-shot in-context learning (ICL) improves MT performance over zero-shot, with TopK sampling sometimes surpassing Google Translator on some language pairs.
  • Chain-of-Thought prompting significantly degrades MT performance by inducing word-by-word translation behavior; zero-shot and 1-shot CoT have mixed results.
  • ChatGPT tends to hallucinate on non-English-centric MT tasks; applying DSP and post-processing can reduce but not eliminate hallucinations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.