Robustness Tests for Automatic Machine Translation Metrics with Adversarial Attacks

Yichen Huang, Timothy Baldwin

TL;DR

Popular machine translation (MT) evaluation metrics like BERTScore, BLEURT, and COMET are surprisingly brittle. By using adversarial attacks to introduce minor, meaning-preserving changes to translations, researchers found that these metrics frequently "overpenalize" errors that humans barely notice, leading to significant drops in correlation with human judgment.

What Problem Does This Paper Address?

In the world of Machine Translation, we rely heavily on automatic metrics to tell us if a model is improving. These metrics have evolved from simple n-gram matching (like BLEU) to sophisticated neural models (like COMET and BLEURT) that aim to mimic human judgment.

However, as these metrics are increasingly used not just for evaluation but also as training objectives, a critical question arises: How robust are they? If a metric is easily "fooled" or overreacts to minor perturbations, it becomes a poor proxy for quality. This paper investigates whether adversarial attacks—deliberate, small changes to text—can expose systematic weaknesses and "overpenalization" in state-of-the-art MT metrics.

Methods

The authors stress-tested three heavyweights in MT evaluation: BERTScore, BLEURT, and COMET. They employed four types of Textual Adversarial Attacks (TAAs) to generate challenging translation hypotheses:

  • Word-level attacks: Using CLARE (mask-filling with pre-trained models), the Faster Genetic Algorithm (synonym substitution), and Input Reduction (deleting unimportant words).
  • Character-level attacks: Using DeepWordBug (swapping or deleting characters).

The researchers explored two main failure modes:

  1. Overpenalization: Searching for cases where a small perturbation causes a massive drop in the metric score (>1 standard deviation) while maintaining fluency (measured by GPT-2 perplexity).
  2. Self-Inconsistency (specifically for BERTScore): Finding instances where BERTScore identifies the original and perturbed sentences as nearly identical, yet gives them wildly different scores when compared to the reference translation.

To validate these findings, they collected over 10,000 human annotations to see if people agreed with the metrics' harsh penalties.

Datasets

The study utilized German-to-English system outputs from the WMT (Workshop on Machine Translation) shared tasks for the years 2012, 2017, and 2022.

  • They sampled 19,000 (source, translation, reference) tuples in total.
  • The inclusion of WMT 22 data is significant because it represents modern, high-quality MT outputs that were likely not in the training sets of metrics like BLEURT and COMET.

Key Insights and Ideas

  • Metrics are "Hyper-Sensitive": Automatic metrics are far more sensitive to minor changes than humans. While a human might see a word substitution as a minor stylistic shift, a metric might treat it as a catastrophic failure.
  • The "New Data" Vulnerability: BLEURT and COMET showed the greatest drops in performance on WMT 22 data. This suggests that these learned metrics struggle to generalize to high-quality translations that fall outside their original training distribution.
  • Word-level > Character-level: Metrics are relatively robust to character-level typos (DeepWordBug) but are easily misled by sophisticated word-level changes (CLARE and Genetic Algorithms).
  • Sentence Length Matters: Shorter sentences are more prone to severe overpenalization, likely because a single word change represents a larger percentage of the total sequence.
Figure 1: Examples of overpenalization and self-inconsistency. In (a), the metric drops significantly for a minor word change that humans find acceptable. In (b), BERTScore fails its own consistency check.

Key Results

The adversarial attacks successfully degraded the reliability of all tested metrics:

  • Correlation Drop: Pearson correlation with human ratings plummeted after attacks. For COMET on WMT 22 data, the correlation dropped by over 0.4 when faced with CLARE attacks.
  • Significant Overpenalization: In 25 out of 36 tested scenarios (combinations of metric, year, and attack), the degradation measured by the metrics was significantly larger than that measured by humans (p < 0.05).
  • Inconsistency: BERTScore exhibited self-inconsistency in up to 5.78% of cases for certain attack types, proving that even embedding-based similarity isn't a guarantee of robust evaluation.
Figure 2: The Pearson correlation (r) with human ratings for different metrics, years, and attack methods on original and perturbed translations. The error bars show the standard error as computed through bootstraping with 10K resamples.

Limitations and Future Work

The authors acknowledge several constraints:

  • Language Pair: The study was limited to German-to-English. Robustness might vary significantly for low-resource or morphologically rich languages.
  • Domain: The focus was strictly on the news domain.
  • Attack Scope: Only word and character-level attacks were used; sentence-level paraphrasing attacks remain an open area for investigation.

The researchers suggest that the adversarial data generated in this study could be used for adversarial training to help future metrics become more resilient to minor perturbations and out-of-distribution text.

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