TL;DR
This paper introduces "transference," a novel multi-encoder transformer architecture for automatic post-editing (APE) of machine translation (MT) output. By effectively integrating source and MT information, their system significantly improves translation quality over raw MT, achieving competitive results in the WMT 2019 APE shared task.
What Problem Does This Paper Address?
Machine translation (MT) systems, while increasingly powerful, still produce errors. Human post-editing (PE) is a crucial step to correct these errors, but it's time-consuming and costly. Automatic Post-Editing (APE) aims to automate this correction process, reducing the workload for human translators. Existing neural APE systems often leverage either the source text (src) or the MT output (mt) independently, or simply concatenate them. However, effectively combining these two sources of information to better understand context and produce more accurate corrections remains a challenge. This paper tackles the problem of how to best utilize both the original source sentence and the machine-translated sentence to generate a high-quality post-edited version.
Methods
The core innovation is the "transference" architecture, a multi-source neural APE system built upon the transformer architecture. It consists of three main components:
- Source Encoder (
encsrc): A standard transformer encoder that processes the source text (src). - MT Encoder (
encsrc→mt): This is a key novelty. It's a transformer decoder block without masking in its self-attention layer. This allows it to attend to the entire MT input. Crucially, it also includes a cross-attention layer that attends to the output of theencsrc. This effectively allows the MT encoder to learn representations that are informed by both the source and the MT, acting as a combined encoder. - Decoder (
decpe): A standard transformer decoder that takes the output fromencsrc→mtand generates the post-edited output (pe). It uses cross-attention to attend to the representations from the combined encoder.
This architecture aims to create richer representations by allowing the MT encoder to learn from the source context, which then informs the final decoding process.
Datasets
The experiments were conducted using:
- WMT 2019 English-German APE data: This is the primary dataset for the shared task, consisting of English source sentences, their German MT outputs, and human post-edited versions. It's noted as being relatively small.
- eScape APE corpus: A larger, synthetic corpus (over 7 million triples) used as an additional resource to augment the WMT data, especially for training. Preprocessing steps were applied to clean this corpus.
Key Insights and Ideas
- Bridging the Gap with a "Decoder-like" Encoder: The most significant insight is the repurposing of a transformer decoder block (without masking) as an intermediate encoder (
encsrc→mt). This block's ability to perform self-attention on the MT and cross-attention on the source allows it to create a richer, contextually aware representation that is more than just a simple concatenation of source and MT encodings. - The Power of Combined Context: The architecture's success suggests that explicitly modeling the relationship between the source and MT in an intermediate layer is highly beneficial for APE. This combined context helps the decoder make more informed decisions about corrections.
- Fine-tuning Matters: Fine-tuning the models on a smaller, in-domain dataset (the first 12K segments of the provided NMT training data) after initial training on the larger eScape corpus led to further performance gains.
- Checkpoint Averaging for Robustness: Averaging the best checkpoints of the fine-tuned models further improved performance, indicating that this technique can lead to more stable and robust APE systems.
Key Results
The "transferenceALL (PRIMARY)" submission achieved strong results:
- Development Set: Improved BLEU by +0.49 and TER by -0.21 over the raw MT baseline, and significantly improved by +0.91 BLEU and -0.56 TER over the baseline after fine-tuning and averaging checkpoints.
- Test Set: Achieved +1.02 absolute BLEU points and -0.69 absolute TER improvements over the baseline.
- Ranking: The primary submission ranked 3rd in the WMT 2019 APE shared task. While not first, the paper notes that performance differences with the top two systems were not statistically significant.
- Comparison to WMT 2018 Winner: The transferenceALL model outperformed the WMT 2018 best system on the test set in terms of TER, and was competitive in BLEU.
Limitations and Future Work
- Dataset Size: The WMT 2019 APE dataset is noted as being small, which is why the larger eScape corpus was used for initial training.
- Statistical Significance: While improvements are reported, the paper emphasizes that differences with the top systems were not always statistically significant, suggesting room for further optimization.
- Future Work: The authors suggest that the proposed multi-encoder transformer architecture is generic and could be applied to other multi-modal or multi-source tasks, such as multi-modal translation or summarization. They also highlight the potential of their approach for tasks requiring combined information from multiple sources.
Summary updated