The Transference Architecture for Automatic Post-Editing

Santanu Pal, Hongfei Xu, Nico Herbig, Sudip Kumar Naskar, Antonio Krüger, Josef van GenabithCOLING 2019

Abstract

In automatic post-editing (APE) it makes sense to condition post-editing (pe) decisions on both the source (src) and the machine translated text (mt) as input. This has led to multi-source encoder based APE approaches. A research challenge now is the search for architectures that best support the capture, preparation and provision of src and mt information and its integration with pe decisions. In this paper we present a new multi-source APE model, called transference. Unlike previous approaches, it (i) uses a transformer encoder block for src, (ii) followed by a decoder block, but without masking for self-attention on mt, which effectively acts as second encoder combining src -> mt, and (iii) feeds this representation into a final decoder block generating pe. Our model outperforms the state-of-the-art by 1 BLEU point on the WMT 2016, 2017, and 2018 English–German APE shared tasks (PBSMT and NMT). We further investigate the importance of our newly introduced second encoder and find that a too small amount of layers does hurt the performance, while reducing the number of layers of the decoder does not matter much.

Introduction

Machine Translation (MT) has significantly advanced, yet achieving "publishable quality" often requires human Post-Editing (PE) to correct errors in machine-generated drafts. Automatic Post-Editing (APE) seeks to automate this refinement process. The primary technical hurdle in APE is effective multi-source integration: the system must simultaneously process the original source text ($src$) and the flawed machine translation ($mt$). Previous architectures often struggled to fuse these streams, relying on simple concatenation or complex, custom attention mechanisms that were difficult to optimize.

The Transference Architecture

The proposed Transference architecture utilizes standard Transformer building blocks rearranged to better mimic a professional translator's workflow. The model consists of three primary components:

  1. Source Encoder ($enc_{src}$): A standard Transformer encoder that processes the original source text.
  2. Transference Encoder ($enc_{src \to mt}$): This is the core innovation. It utilizes a Transformer decoder block but removes the self-attention masking. By eliminating masking, this block acts as a second encoder that can observe the entire $mt$ sentence globally while performing cross-attention on the $src$ representation.
  3. PE Decoder ($dec_{pe}$): A final, standard decoder that takes the integrated representation from the Transference Encoder to generate the corrected text.
The Transference architecture featuring a source encoder, a transference encoder (unmasked decoder block), and a final PE decoder.

Experimental Results

The model was evaluated on the WMT APE shared tasks from 2016 to 2018, covering both Statistical MT (PBSMT) and Neural MT (NMT) outputs. To address the scarcity of APE-specific data, the authors utilized large-scale synthetic datasets, including 4.5M sentences of artificial PE data and the ~7M triple eScape corpus.

Transference established a new state-of-the-art for English–German APE. On the PBSMT task, it improved upon previous benchmarks by 1.15 BLEU points and reduced the Translation Edit Rate (TER) by 0.47 on the WMT 2017 test set. For the more challenging NMT task (WMT 2018), the model achieved a +1.02 BLEU improvement over the raw NMT baseline.

Performance on WMT 2016/2017 tasks and ablation study on layer sizes (Exp 5.1 and 5.2).

Key Insights and Ablation Studies

A critical finding of this research is the dominance of the encoders in the APE task. Ablation studies (shown in the table above as Exp 5.1 and 5.2) revealed that reducing the number of layers in the second encoder ($enc_{mt}$) significantly hurt performance, whereas reducing the depth of the final decoder ($dec_{pe}$) had a negligible impact. This suggests that the "heavy lifting" of APE lies in the cross-source error detection and representation rather than the generation phase.

Furthermore, the use of unmasked attention in the second encoder allows the model to gain a global view of errors. Instead of fixing words in isolation, the model understands the context of the entire flawed sentence relative to the source. While the model is highly effective at substitutions and deletions, qualitative analysis indicates it still faces challenges with word shifts in NMT outputs, sometimes introducing unnecessary reordering.

Conclusion

The Transference model demonstrates that logical rearrangement of standard Transformer components can outperform more complex, specialized architectures. By treating a decoder block as an unmasked encoder for the $mt$ input, the system effectively integrates multi-source information. Future work will focus on "shift-aware" mechanisms to further refine the model's performance on high-quality neural machine translation outputs.

Summary updated

BibTeX
@inproceedings{pal2019transference,
  author = {Santanu Pal and Hongfei Xu and Nico Herbig and Sudip Kumar Naskar and Antonio Krüger and Josef van Genabith},
  title = {{The Transference Architecture for Automatic Post-Editing}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=_whVLjdlKsM},
}
Figure