QUEST: Quality-Aware Metropolis-Hastings Sampling for Machine Translation

Gonçalo R. A. Faria, Sweta Agrawal, António Farinhas, Ricardo Rei, José G. C. de Souza +1 more
5/28/2024
cs.CLcs.LG

No official code found. Best implementation: deep-spin/quest-decoding (10 stars, Apache-2.0, last commit 2025-08-14).

Abstract

An important challenge in machine translation (MT) is to generate high-quality and diverse translations. Prior work has shown that the estimated likelihood from the MT model correlates poorly with translation quality. In contrast, quality evaluation metrics (such as COMET or BLEURT) exhibit high correlations with human judgments, which has motivated their use as rerankers (such as quality-aware and minimum Bayes risk decoding). However, relying on a single translation with high estimated quality increases the chances of "gaming the metric''. In this paper, we address the problem of sampling a set of high-quality and diverse translations. We provide a simple and effective way to avoid over-reliance on noisy quality estimates by using them as the energy function of a Gibbs distribution. Instead of looking for a mode in the distribution, we generate multiple samples from high-density areas through the Metropolis-Hastings algorithm, a simple Markov chain Monte Carlo approach. The results show that our proposed method leads to high-quality and diverse outputs across multiple language pairs (English$\leftrightarrow${German, Russian}) with two strong decoder-only LLMs (Alma-7b, Tower-7b).

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A package for sampling from Gibbs distributions during inference with LLMs.

103PythonMay 24, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{faria2024quest,
  title  = {QUEST: Quality-Aware Metropolis-Hastings Sampling for Machine Translation},
  author = {Gonçalo R. A. Faria and Sweta Agrawal and António Farinhas and Ricardo Rei and José G. C. de Souza and André F. T. Martins},
  year   = {2024},
  eprint = {2406.00049},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.00049},
  url    = {http://arxiv.org/abs/2406.00049v2},
  journal = {NEURIPS 2024 2024}
}

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.00049.svg)](https://codeofpaper.com/paper/2406.00049)

Discussion