Unbabel's Submission to the WMT2019 APE Shared Task: BERT-based Encoder-Decoder for Automatic Post-Editing

António V. Lopes, M. Amin Farajian, Gonçalo M. Correia, Jonay Trénous, André F. T. Martins

TL;DR

This paper introduces a novel BERT-based encoder-decoder model for Automatic Post-Editing (APE) that significantly improves machine translation quality. By incorporating a "conservativeness penalty," the system learns to make fewer, more impactful edits, achieving state-of-the-art results on the WMT2019 English-German APE task.

What Problem Does This Paper Address?

Automatic Post-Editing (APE) aims to fix errors in machine translations (MT) by learning from human-corrected examples. While effective for older Statistical Machine Translation (SMT) systems, APE has struggled to significantly improve the output of modern, high-quality Neural Machine Translation (NMT) systems. This is because NMT systems make fewer errors, leaving less room for improvement and posing a challenge for APE systems that might over-correct or introduce new errors. The WMT2019 APE task specifically focused on this challenge, requiring participants to improve already strong NMT outputs.

Methods

The core of Unbabel's submission is a BERT-based Encoder-Decoder (BED) model. Instead of separate encoders for the source and machine-translated sentences, they use a single BERT encoder that takes both as input, concatenated with a special [SEP] token. This allows BERT's powerful contextual understanding to be applied to both inputs simultaneously. The decoder is also initialized with BERT weights, sharing self-attention mechanisms with the encoder.

A key innovation is the conservativeness penalty. This mechanism is designed to prevent the APE system from making excessive edits, especially when the original MT is already good. It penalizes tokens that are not present in the original source or machine translation, encouraging the model to stick closer to the input. This penalty can be applied to either the raw model outputs (logits) or the probabilities, and the authors found applying it to log probabilities yielded better results. They also experimented with a data weighting strategy, giving more importance to samples with fewer MT errors, which aligns with the goal of making conservative edits.

Datasets

The authors trained their models on a combination of two datasets:

  • In-domain training set: Provided by the WMT2019 APE task organizers, consisting of 13k <source, MT, post-edited> triplets from the IT domain.
  • Synthetic training set: A custom corpus created by the authors using parallel data from the Quality Estimation shared task. They trained 5 LSTM models on different folds of the data and used each model to translate the held-out fold, generating approximately 3.3 million <source, MT, post-edited> triplets.

The in-domain data was oversampled 20 times and combined with the synthetic data for training.

Key Insights and Ideas

  • BERT for APE is powerful, but needs control: While BERT's pre-trained knowledge is beneficial for APE, simply applying it in an encoder-decoder setup isn't enough to improve strong NMT outputs. It can even degrade performance without proper control.
  • Conservativeness is key for high-quality NMT: The "conservativeness penalty" is crucial for making APE effective on top-tier NMT systems. It directly addresses the problem of over-correction by guiding the model to make minimal, impactful changes.
  • Data augmentation is essential: The creation of a large synthetic corpus was vital, as in-domain data alone was insufficient for training a robust APE system for high-quality NMT.
  • Log probabilities are the sweet spot for penalties: Applying the conservativeness penalty to log probabilities, rather than logits, proved more effective, suggesting that pruning after normalization is beneficial.

Key Results

Unbabel's submission achieved state-of-the-art results on the WMT2019 English-German APE task, ranking first ex aequo with three other systems.

  • The BED system with the conservativeness penalty improved translations by -0.78 TER and +1.23 BLEU compared to a strong NMT baseline.
  • On the official test set, their primary submission achieved a TER of 16.08 and a BLEU of 75.96.
  • They outperformed last year's winning systems by approximately -0.4 TER and +0.5 BLEU.

Limitations and Future Work

  • Ablation study limitations: The authors mention not performing a full ablation study due to time constraints, but hypothesize that the synthetic corpus, data weighting, and conservativeness factor were all influential.
  • Future work on penalty application: Further investigation into the impact of applying penalties before and after logit normalization, as well as exploring renormalization of log probabilities, is suggested.
  • Domain-agnostic APE: The authors note that applying APE to engines in generic, domain-agnostic settings is a more challenging future direction, requiring greater robustness and generalization.

Summary updated

BibTeX
@inproceedings{lopes2019unbabel,
  author = {António V. Lopes and M. Amin Farajian and Gonçalo M. Correia and Jonay Trénous and André F. T. Martins},
  title = {{Unbabel's Submission to the WMT2019 APE Shared Task: BERT-based Encoder-Decoder for Automatic Post-Editing}},
  booktitle = {WMT},
  year = {2019},
  doi = {10.18653/v1/w19-5413},
}
Figure