Quality-Aware Translation Models: Efficient Generation and Quality Estimation in a Single Model

Christian Tomani, David Vilar, Markus Freitag, Colin Cherry, Subhajit Naskar, Mara Finkelstein, Daniel Cremers, Cremers, Daniel · DOI

Abstract

Maximum-a-posteriori (MAP) decoding is the most widely used decoding strategy for neural machine translation (NMT) models. The underlying assumption is that model probability correlates well with human judgment, with better translations getting assigned a higher score by the model. However, research has shown that this assumption does not always hold, and generation quality can be improved by decoding to optimize a utility function backed by a metric or quality-estimation signal, as is done by Minimum Bayes Risk (MBR) or quality-aware decoding. The main disadvantage of these approaches is that they require an additional model to calculate the utility function during decoding, significantly increasing the computational cost. In this paper, we propose to make the NMT models themselves quality-aware by training them to estimate the quality of their own output. Using this approach for MBR decoding we can drastically reduce the size of the candidate list, resulting in a speed-up of two-orders of magnitude. When applying our method to MAP decoding we obtain quality gains similar or even superior to quality reranking approaches, but with the efficiency of single pass decoding.

The Challenge: Probability vs. Quality

In standard Neural Machine Translation (NMT), Maximum-a-posteriori (MAP) decoding is the default strategy. It operates on the assumption that the most probable sequence of words is the highest quality translation. However, NMT models are often poorly calibrated; they may assign high probability to mediocre outputs while burying better translations further down the distribution.

To address this, researchers often turn to Minimum Bayes Risk (MBR) decoding or Quality Estimation (QE) reranking. These techniques generate a large pool of candidate translations and use an external "utility" model to select the best one. While effective, these methods are computationally expensive. MBR, in particular, has a quadratic complexity relative to the number of candidates, making it impractical for real-time applications. This research explores whether quality awareness can be integrated directly into the translation model itself.

Methods: Internalizing Quality Awareness

The researchers proposed two primary strategies to make NMT models "self-aware" regarding translation quality:

  1. Quality-Aware Prompting (QA Prompting): During training, every translation in the dataset is scored using a high-quality metric (MetricX-QE). These scores are discretized into bins (e.g., 0 to 9). A "quality token" (like [9]) is prepended to the source sentence. At inference, the model is "prompted" with the highest quality token, forcing it to generate its best possible output in a single pass.
  2. Quality-Aware Prediction (QA Prediction): The quality token is appended to the target sentence during training, teaching the model to predict its own quality score. At inference, the model generates a translation followed by a predicted score.
The model's output quality (MetricX) scales directly with the quality label provided in the prompt.

These internal scores are used to pre-filter candidates for MBR decoding. Instead of comparing 100+ random samples, the model uses its internal "gut feeling" to select the top 5 candidates, drastically reducing the computational overhead of the final selection.

Key Results and Efficiency Gains

The study, conducted on high-resource language pairs (English to German and English to Japanese) and validated on Large Language Models like PaLM-2, yielded several significant findings:

  • 100x Speedup in MBR: By using QA Prediction to prune the candidate list to just 5 samples, the researchers achieved better results than standard MBR using 50 or 100 candidates. This reduces the number of expensive utility function calls from thousands to just 20.
  • Prompting as a Zero-Cost Reranker: QA Prompting achieved quality gains comparable to external reranking but with the speed of standard single-pass decoding.
  • Architecture Agnostic: When applied to PaLM-2, QA Prompting improved the BLEURT score by 1.3 points, demonstrating that the technique generalizes beyond standard NMT architectures.
Comparison of translation quality (MetricX and COMET) across different sample sizes. The proposed QA-aware methods outperform the baseline even with significantly fewer samples.

Conclusion

By teaching NMT models to judge their own outputs, this research bridges the gap between high-quality, computationally expensive decoding and efficient, single-pass generation. The ability to achieve state-of-the-art translation quality with a 100x speedup in MBR decoding makes these quality-aware models highly viable for production environments where both latency and accuracy are critical.

Summary updated

BibTeX
@inproceedings{tomani2024quality,
  author = {Christian Tomani and David Vilar and Markus Freitag and Colin Cherry and Subhajit Naskar and Mara Finkelstein and Daniel Cremers and Cremers, Daniel},
  title = {{Quality-Aware Translation Models: Efficient Generation and Quality Estimation in a Single Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.836},
}
Figure