A Case Study on Context-Aware Neural Machine Translation with Multi-Task Learning
Ramakrishna Appicharla, Baban Gain, Santanu Pal, Asif Ekbal, Pushpak Bhattacharyya
TL;DR
This paper investigates context-aware neural machine translation (DocNMT) through cascade multi-task learning (MTL), treating context reconstruction as an auxiliary task alongside the main translation objective. By using a single encoder and two decoders, the model explicitly models context encoding via the reconstruction of the source from its context, with the objective $\mathcal{L} = \alpha \log p(y|x,c_x;\theta) + (1-\alpha) \log p(x|c_x;\theta)$ and $\alpha=0.5$. Experimental results on German→English across News, TED, and Europarl show that MTL improves translation quality in low-resource settings and that the context encoder tends to behave like a noise generator, similar to multi-encoder DocNMT, while failing to reconstruct the source from context, suggesting current document-level corpora may not be sufficiently context-aware. The study also finds that MTL is more sensitive to context choice than Inside-Context multi-encoder baselines, and pronoun translation accuracy (APT) generally benefits from the MTL approach in certain contexts. Overall, the work provides insights into the benefits and limitations of explicit context modeling via MTL in DocNMT, highlighting the potential and the need for dynamic training strategies and richer context data for robust context-aware translation.
Abstract
In document-level neural machine translation (DocNMT), multi-encoder approaches are common in encoding context and source sentences. Recent studies \cite{li-etal-2020-multi-encoder} have shown that the context encoder generates noise and makes the model robust to the choice of context. This paper further investigates this observation by explicitly modelling context encoding through multi-task learning (MTL) to make the model sensitive to the choice of context. We conduct experiments on cascade MTL architecture, which consists of one encoder and two decoders. Generation of the source from the context is considered an auxiliary task, and generation of the target from the source is the main task. We experimented with German--English language pairs on News, TED, and Europarl corpora. Evaluation results show that the proposed MTL approach performs better than concatenation-based and multi-encoder DocNMT models in low-resource settings and is sensitive to the choice of context. However, we observe that the MTL models are failing to generate the source from the context. These observations align with the previous studies, and this might suggest that the available document-level parallel corpora are not context-aware, and a robust sentence-level model can outperform the context-aware models.
