A Simple and Effective Approach to Automatic Post-Editing with Transfer Learning

Gonçalo M. Correia, André F. T. Martins

Abstract

Automatic Post-Editing (APE) aims to improve the quality of machine translation (MT) outputs by learning from human corrections. A significant challenge in APE is the scarcity of human-edited data, typically requiring the generation of millions of synthetic triplets. This paper presents a novel approach that leverages pre-trained multilingual BERT models for both encoding and decoding. By utilizing parameter-sharing and smart initialization strategies, the proposed model achieves state-of-the-art performance on the WMT 2018 APE task while demonstrating remarkable data efficiency.

Introduction

Automatic Post-Editing (APE) serves as a "quick fix" for black-box machine translation systems. The goal is to map a source sentence (src) and its machine-translated output (mt) to a human-corrected version (pe). However, the high cost of human post-editing leads to a data bottleneck. While researchers often use back-translation to create massive synthetic datasets, this process is computationally expensive. This paper addresses this bottleneck by applying transfer learning from pre-trained BERT models to build high-performing APE systems with significantly less data and training time.

Methods: Dual-Source BERT Architecture

The authors introduce a Dual-Source BERT architecture based on the Transformer framework, repurposing pre-trained multilingual BERT (mBERT) for the APE task.

The Dual-Source BERT architecture for Automatic Post-Editing, showing the flow from input tokens to output probabilities.

Key Innovations:

  1. Cross-Lingual Encoding: mBERT, pre-trained on over 100 languages, encodes the bilingual src and mt pair as a single sequence. Segment embeddings are used to distinguish between the two languages.
  2. Autoregressive Decoding: Although BERT is bidirectional, the authors fine-tune it for generation by applying a mask to the self-attention mechanism, ensuring the decoder remains autoregressive.
  3. Parameter Sharing and Initialization: To optimize the model, self-attention weights are shared between the encoder and decoder. Crucially, the decoder’s context attention layers are initialized with weights from BERT’s pre-trained self-attention layers rather than random values.

Experimental Setup

The models were evaluated on the WMT 2018 APE Shared Task dataset (23,000 English-German triplets) and the eSCAPE Corpus (8 million synthetic triplets). Performance was measured using TER (Translation Edit Rate, lower is better) and BLEU (higher is better).

Key Results and Discussion

The proposed BERT-based architecture demonstrates superior performance across various data scales.

Comparison of the proposed BERT-based models against baselines and previous state-of-the-art systems on WMT test sets.

State-of-the-Art Performance

When trained on the full 8M synthetic dataset, the model achieved a TER of 17.15 and a BLEU score of 73.60 on the WMT 2018 test set, setting a new state-of-the-art record.

Data Efficiency

One of the most striking findings is the model's efficiency. Using only the 23K human-edited triplets, the model outperformed the uncorrected MT baseline by -4.9 TER and +7.4 BLEU. Furthermore, the model trained on just 23K sentences was competitive with previous state-of-the-art systems that required 5 million artificial sentences.

The Power of Initialization

Ablation studies revealed that initializing the decoder's context attention with BERT's self-attention weights was critical. This allowed the model to leverage deep linguistic representations immediately, leading to faster convergence—the model can be trained in just 3 hours on a single GPU.

Conclusion

This work demonstrates that pre-trained BERT models can be effectively adapted for APE, providing a simple yet powerful solution to the data scarcity problem. By aligning languages in a shared latent space and utilizing smart initialization, the Dual-Source BERT architecture achieves state-of-the-art results with high computational efficiency. Future research will explore the model's performance on higher-quality NMT outputs and a wider variety of language pairs.

Summary updated

BibTeX
@inproceedings{correia2019simple,
  author = {Gonçalo M. Correia and André F. T. Martins},
  title = {{A Simple and Effective Approach to Automatic Post-Editing with Transfer Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1292},
}
Figure