Robustness Tests for Automatic Machine Translation Metrics with Adversarial Attacks

Yichen Huang, Timothy Baldwin

Abstract: We investigate MT evaluation metric performance on adversarially-synthesized texts, to shed light on metric robustness. We experiment with word- and character-level attacks on three popular machine translation metrics: BERTScore, BLEURT, and COMET. Our human experiments validate that automatic metrics tend to overpenalize adversarially-degraded translations. We also identify inconsistencies in BERTScore ratings, where it judges the original sentence and the adversarially-degraded one as similar, while judging the degraded translation as notably worse than the original with respect to the reference. We identify patterns of brittleness that motivate more robust metric development.

Introduction

Modern machine translation (MT) metrics like BERTScore, BLEURT, and COMET are surprisingly brittle when faced with small, adversarial changes. While these metrics are widely used as proxies for human judgment and even as loss functions for training models, they are typically evaluated on standard system outputs. This research investigates how these metrics perform on "out-of-distribution" text—specifically, translations subtly altered by adversarial attacks. If a metric overreacts to a single word change that doesn't affect meaning, it could lead to unreliable evaluations and poor model development.

Methods

The authors employed Textual Adversarial Attacks (TAAs) to probe the robustness of three state-of-the-art metrics using four distinct strategies:

  • CLARE: Uses a pre-trained language model to replace, insert, or merge words via mask-filling.
  • Faster Alzantot Genetic Algorithm: A population-based search for word substitutions within a semantic neighborhood.
  • Input Reduction: A "leave-one-out" strategy that iteratively deletes the least important words.
  • DeepWordBug: A character-level attack simulating typos (swaps, deletions, or insertions).

The study utilized German-to-English system outputs from the WMT (Workshop on Machine Translation) 12, 17, and 22 datasets. To validate findings, the authors collected 2,800 new human ratings to measure meaning preservation in perturbed translations.

Key Insights

Overpenalization and the "High-Quality" Trap

Automatic metrics are significantly more sensitive to word-level changes than humans. In 25 out of 36 tested combinations, the metrics' perceived degradation was significantly larger than human-rated degradation. Interestingly, metrics were more brittle on the WMT 22 data (the highest quality translations), suggesting that as MT systems improve, current metrics become less reliable because they lack exposure to high-quality examples during training.

Length Sensitivity

Shorter sentences are more prone to severe overpenalization. A single word change in a short sentence is often treated as a catastrophe by the metric, even if the meaning remains intact. Analysis shows that the instances where metrics and humans disagree most significantly tend to involve shorter MT outputs.

Figure 5: MT length comparison showing that cases of most disagreement between metrics and humans occur at shorter sentence lengths.

BERTScore’s Internal Conflict

The authors identified "self-inconsistency" in BERTScore. The metric would often rate a perturbed sentence as over 90% similar to the original, yet penalize that same perturbed sentence heavily when compared to the reference.

Key Results

Word-level attacks (CLARE and Genetic) were far more successful at breaking metrics than character-level attacks. COMET proved particularly sensitive to word deletions, with over 50% of deletions resulting in a score drop of more than one standard deviation.

Crucially, adversarial attacks caused the Pearson correlation between metrics and human judgments to plummet. For example, on high-quality WMT 22 data, correlations for BERTScore across various attack types show significant variance and vulnerability.

Figure 6: Pearson correlation (r) for BERTScore on WMT 22 across different adversarial attack scenarios.

Conclusion

This study highlights critical vulnerabilities in modern MT metrics, specifically regarding overpenalization and length sensitivity. While focused on German-to-English translation, the findings suggest a broad need for more robust evaluation tools. The researchers generated over 102,000 perturbed translations to aid future metric hardening. The immediate takeaway for the community is the necessity of incorporating adversarially-synthesized examples into the training loops of metrics like BLEURT and COMET to ensure the next generation of MT evaluation is truly robust.

Summary updated

BibTeX
@inproceedings{huang2023robustness,
  author = {Yichen Huang and Timothy Baldwin},
  title = {{Robustness Tests for Automatic Machine Translation Metrics with Adversarial Attacks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=hl6TVdQjeh},
}
Figure