[Paper Review] Confidence through Attention
This paper proposes using attention distributions from neural machine translation (NMT) models as a confidence metric to assess translation quality. By quantifying misalignments such as under-translation, over-translation, and unaligned tokens, the method improves translation filtering and hybrid system selection, achieving up to 2.22 BLEU gains in filtering and 0.99 BLEU in hybrid selection on English–German and English–Latvian tasks.
Attention distributions of the generated translations are a useful bi-product of attention-based recurrent neural network translation models and can be treated as soft alignments between the input and output tokens. In this work, we use attention distributions as a confidence metric for output translations. We present two strategies of using the attention distributions: filtering out bad translations from a large back-translated corpus, and selecting the best translation in a hybrid setup of two different translation systems. While manual evaluation indicated only a weak correlation between our confidence score and human judgments, the use-cases showed improvements of up to 2.22 BLEU points for filtering and 0.99 points for hybrid translation, tested on EnglishGerman and EnglishLatvian translation.
Motivation & Objective
- To develop a confidence metric for NMT outputs using attention distributions as a proxy for translation quality.
- To address the challenge of identifying low-quality translations in large-scale back-translation pipelines.
- To improve hybrid translation systems by selecting the best output between two NMT systems using attention-based confidence.
- To provide a post-hoc, model-agnostic method for confidence estimation that does not require retraining or additional supervision.
- To evaluate the metric’s alignment with human judgments and automated metrics like BLEU.
Proposed method
- Define attention-based confidence scores by measuring under-translation (missing source tokens), over-translation (excess target tokens), and unaligned input/output tokens.
- Compute three components: CDP (coverage deviation penalty), AP_in (average attention per input token), and AP_out (average attention per output token) to quantify misalignment.
- Apply the confidence score to filter low-quality translations in a back-translation pipeline by discarding the worst 50% by score.
- Use the confidence score to perform hybrid selection between two NMT systems by choosing the output with the higher confidence score.
- Implement and release open-source tools for scoring, filtering, hybrid selection, and visualizing attention alignments.
- Use manual human evaluation on 200 sentences to compare confidence-based selections against human preferences.
Experimental results
Research questions
- RQ1Can attention distributions from NMT models serve as a reliable confidence metric for translation quality?
- RQ2How effective is the attention-based confidence score in filtering low-quality back-translated translations?
- RQ3To what extent does the confidence score improve hybrid translation selection compared to using BLEU scores alone?
- RQ4How well does the confidence score correlate with human judgments of translation quality?
- RQ5Can the confidence score be used effectively in low-resource settings or with systems of varying quality?
Key findings
- The attention-based confidence score achieved up to 2.22 BLEU point improvement in back-translation filtering on English–German and English–Latvian translation tasks.
- In hybrid translation selection, the method improved BLEU scores by 0.99 points, demonstrating effectiveness in combining outputs from two NMT systems.
- The confidence score showed moderate correlation with human judgments, with 57% to 62.5% overlap in preferred translations between human evaluators and the confidence-based selection on four language pairs.
- Human evaluators preferred the lower-BLEU system more than the higher-BLEU system in three of four translation directions, indicating that BLEU alone is a poor proxy for quality.
- The confidence metric outperformed simple BLEU-based selection in hybrid settings, especially when systems had similar performance.
- The method is effective even when systems differ significantly in quality, though confidence from weaker systems can be misleading, suggesting need for integration with quality estimation models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.