Multi-Task Learning for Multiple Language Translation

Daxiang Dong, Hua Wu, Wei He, Dianhai Yu, Haifeng Wang

Abstract

Recent advancements in Neural Machine Translation (NMT) have primarily focused on bilingual pairs. This paper presents a multi-task learning framework that enables a single NMT model to translate from one source language to multiple target languages. By utilizing a shared encoder and task-specific decoders, the proposed architecture improves translation quality, particularly for low-resource languages, and accelerates training convergence.

Introduction

The transition from Statistical Machine Translation (SMT) to Neural Machine Translation (NMT) marked a significant shift in the field. However, early NMT systems remained largely siloed, requiring separate models for every language pair. This approach is inefficient and fails to exploit the linguistic commonalities between different languages. Furthermore, "minority" or low-resource language pairs often suffer from a lack of sufficient parallel data to train robust individual models.

This research addresses these challenges by proposing a multi-task learning (MTL) framework. The goal is to determine if a single neural network can learn a universal representation of a source language that benefits multiple translation tasks simultaneously, thereby improving efficiency and performance across the board.

Methodology

The proposed framework is built upon the RNN encoder-decoder architecture, modified for multi-tasking.

Shared Encoder

The model employs a bidirectional Gated Recurrent Unit (GRU) to encode the source sentence into a fixed-length vector. This encoder is shared across all translation tasks. By forcing the encoder to serve multiple decoders, it is encouraged to learn a more stable, semantic representation of the source language that transcends the idiosyncrasies of any single target language.

Task-Specific Decoders and Attention

While the encoder is shared, each target language is assigned its own dedicated decoder. This allows the model to specialize in the unique vocabulary, syntax, and grammar of each language. Additionally, a soft alignment (attention) mechanism is unique to each encoder-decoder pair, allowing the model to focus on relevant parts of the source sentence during the decoding process for a specific language.

Architecture of the multi-task NMT model with a shared bidirectional encoder and language-specific decoders.

Alternating Optimization

Training involves a modified stochastic gradient descent where the model cycles through mini-batches of different language pairs. This alternating optimization ensures the shared encoder parameters are updated to reflect a generalized understanding of the source language.

Experimental Setup

The model was evaluated using the Europarl corpus, focusing on English as the source and four target languages: Spanish (Es), French (Fr), Portuguese (Pt), and Dutch (Nl). To simulate low-resource conditions, sub-sampled versions of the Dutch and Portuguese datasets were created, using only 15% of the original data. Benchmarking was also performed against the WMT 2013 test sets and the traditional Moses SMT system.

Results and Discussion

The multi-task model consistently outperformed single-task NMT baselines across various metrics and scenarios.

Performance Gains

In full-data scenarios, the MTL model achieved BLEU score increases of +1.38 for English-Spanish and +1.25 for English-French. The most significant improvements were observed in low-resource settings; for English-Portuguese (15% data), the MTL model outperformed the single-task model by +1.06 BLEU points. This suggests that the shared encoder acts as a regularizer, allowing low-resource tasks to "borrow" linguistic knowledge from high-resource tasks.

Convergence and Efficiency

A key advantage of the multi-task approach is the speed of convergence. As shown in Figure 4, the MTL models reached higher BLEU scores significantly faster than their single-task counterparts. By processing a more diverse range of target language data, the shared encoder settles on optimal parameters much earlier in the training process.

Comparison of BLEU scores over training iterations for single-task vs. multi-task models.

Qualitative Insights

Analysis of word embeddings revealed that the MTL model developed more semantically accurate representations. For instance, the nearest neighbors for the word "crime" in the MTL model were more relevant (e.g., "terrorism", "criminal") compared to those in single-task models, indicating a deeper understanding of source-language semantics.

Conclusion

This work demonstrates the efficacy of multi-task learning for NMT. By sharing a source-language encoder across multiple target-language decoders, the model achieves superior translation quality and faster training. While currently limited to one-to-many translation and specific domains, this framework provides a foundational step toward truly universal, massively multilingual translation systems. Future research will explore many-to-many architectures and cross-domain adaptation.

Summary updated

BibTeX
@inproceedings{dong2015multi,
  author = {Daxiang Dong and Hua Wu and Wei He and Dianhai Yu and Haifeng Wang},
  title = {{Multi-Task Learning for Multiple Language Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1166},
}
Figure