An Empirical Study of Translation Hypothesis Ensembling with Large Language Models

António Farinhas, José G. C. de Souza, André F. T. MartinsarXiv 2023 · DOI

TL;DR

This paper empirically investigates how ensembling multiple translation hypotheses generated by Large Language Models (LLMs) can improve translation quality and reduce hallucinations. They found that Minimum Bayes Risk (MBR) decoding is a highly effective ensembling strategy, and that instruction tuning significantly impacts the relationship between hypothesis diversity and translation quality.

What Problem Does This Paper Address?

While LLMs like GPT and LLaMA show promise for machine translation (MT) without task-specific training, they can sometimes produce unreliable output or "hallucinate." Traditional MT systems often rely on complex architectures and extensive training data. This paper explores whether ensembling multiple translation outputs from a single LLM can bridge this gap, offering a simpler yet effective way to enhance translation quality and robustness, similar to how ensembling is used in other NLP tasks.

Methods

The authors explore two main stages: generating multiple translation hypotheses and then ensembling them.

Hypothesis Generation: * Sampling: Using temperature-based sampling to generate diverse outputs. * Beam Search: A standard decoding strategy for MT, used here as a single-hypothesis baseline. * Prompting: Investigating different prompt templates and strategies for generating multiple translations from a single prompt.

Hypothesis Ensembling: * LLM-based: * ChooseBest: Using the LLM itself to select the best hypothesis from a set. * GenerateBest: Asking the LLM to generate a final translation based on the provided hypotheses. * External Model-based: * Quality-based Reranking: Using a quality estimation model (COMETKIWI) to score and select the best hypothesis. * Minimum Bayes Risk (MBR) Decoding: Using an MT evaluation metric (COMET) as a utility function to find the hypothesis that maximizes expected utility.

They also introduce a metric for measuring the semantic diversity between hypotheses.

Datasets

The experiments were conducted using the WMT22 test sets, which are described as recent and less likely to have been part of the LLMs' training data. The paper also mentions using the FLORES-200 dev set for few-shot learning experiments.

Key Insights and Ideas

  • MBR Decoding is King: Minimum Bayes Risk (MBR) decoding consistently emerges as the most effective ensembling strategy for improving translation quality across various LLMs and language pairs.
  • Diversity Matters, But How? Instruction tuning (as seen in Alpaca) significantly alters the relationship between hypothesis diversity and sampling temperature, directly impacting the final translation quality. This helps explain performance differences between instruction-tuned and non-instruction-tuned models.
  • Small Ensembles are Powerful: Even a small number of sampled hypotheses (e.g., 20) can lead to significant improvements in translation quality, often reaching "oracle" scores.
  • Hallucinations are Reduced: Ensembling hypotheses effectively mitigates hallucinations, making LLM-based translation more robust to source text perturbations.
  • LLM-based Ensembling is Costly: While using the LLM itself for ensembling (ChooseBest, GenerateBest) is explored, it significantly increases computational cost and doesn't perform as well as external model-based methods.

Key Results

  • Quality Improvement: Ensembling, particularly with MBR decoding, consistently improved translation quality as measured by COMET and BLEURT scores compared to single-hypothesis baselines (greedy or beam search).
  • LLaMA vs. Alpaca: Alpaca, being instruction-tuned, generally showed better performance and more stable behavior with ensembling, especially concerning the impact of sampling temperature on diversity and quality. LLaMA, particularly without instruction tuning, struggled more with generating translations in non-English languages and was more prone to hallucinations.
  • Cost-Effectiveness: Ensembling with a small number of samples (around 20) provided substantial quality gains with a manageable increase in computational cost, especially for ChatGPT where costs grew sublinearly.
  • Hallucination Reduction: For EN-CS and EN-UK, ensembling hypotheses reduced hallucination rates, indicating improved robustness.

Limitations and Future Work

  • Model Size Generalization: The study primarily focused on 7B parameter models for LLaMA and Alpaca, with some results for a 30B model. It's unclear how these findings generalize to even larger LLMs.
  • ChatGPT's Black Box Nature: The closed-source nature of ChatGPT makes it difficult to ascertain if its training data overlapped with the evaluation benchmarks, and its API limitations prevented the use of beam search.
  • Human Evaluation: Due to cost and time constraints, human evaluation was not performed, relying instead on automatic metrics.
  • Future Work: The authors suggest exploring improved methods for uncertainty quantification and calibration in LLMs, investigating few-shot learning scenarios more deeply, and further analyzing the impact of instruction tuning on hypothesis diversity and sampling temperature.

Summary updated

BibTeX
@misc{farinhas2023empirical,
  author = {António Farinhas and José G. C. de Souza and André F. T. Martins},
  title = {{An Empirical Study of Translation Hypothesis Ensembling with Large Language Models}},
  year = {2023},
  eprint = {2310.11430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11430},
}
Figure