Enabling Multi-Source Neural Machine Translation By Concatenating Source Sentences In Multiple Languages

Raj Dabre, Fabien Cromieres, Sadao KurohashiarXiv 2017

TL;DR

Multi-source neural machine translation (MSNMT) typically requires complex architectural changes or computationally expensive ensembling. This paper demonstrates that a remarkably simple preprocessing trick—concatenating source sentences from different languages into a single input string—allows standard NMT models to achieve state-of-the-art results without any modifications to the underlying code.

What Problem Does This Paper Address?

In many real-world scenarios, we have the same content available in multiple languages (e.g., European Parliament proceedings or international news). Multi-source machine translation aims to leverage these multiple inputs to produce a higher-quality translation in a target language.

However, existing approaches to MSNMT are often cumbersome. "Multi-encoder" methods require a separate encoder for every source language, significantly increasing the number of model parameters. "Ensembling" methods require training multiple separate models and then combining their outputs, which is computationally expensive and prevents the languages from "interacting" during the encoding process. The authors sought a "black-box" solution that could work with any standard NMT architecture while remaining parameter-efficient.

Methods

The proposed method is elegantly simple: concatenation.

Instead of changing the model, the authors change the data. For a given target sentence, they take the corresponding source sentences in $N$ different languages and glue them together into one long sequence. Interestingly, they do not use special delimiters to mark where one language ends and the next begins.

Figure 1: The Multi-Source NMT Approach We Explored.

The model is a standard attention-based encoder-decoder (specifically using the KyotoNMT toolkit). To handle the increased vocabulary and data sparsity, they use Byte Pair Encoding (BPE). They compared this "concatenation" approach against two established baselines:

  1. Multi-Encoder: A model with a dedicated encoder and attention mechanism for each source language.
  2. Multi-Source Ensembling: Averaging the predictions of multiple single-source models.

Datasets

The authors evaluated their method across three distinct settings to test its robustness in both low-resource and high-resource scenarios:

  • ILCI Corpus: A 6-way multilingual corpus of Indian languages (Hindi, English, Tamil, Telugu, Marathi, and Bengali). The target was Hindi.
  • IWSLT Corpus: A collection of bilingual corpora (French, German, Arabic, Czech) translated into English.
  • United Nations (UN) Corpus: A massive high-resource corpus. The authors used 2 million 6-lingual sentences, focusing on English as the target and Spanish, French, Arabic, and Russian as sources.

Key Insights and Ideas

  • Implicit Boundary Learning: Despite the lack of delimiters, the NMT system's attention mechanism successfully learned to identify sentence boundaries between different languages.
  • Linguistic Affinity Matters: By visualizing attention vectors, the authors found that the model naturally prioritizes source languages that are linguistically closer to the target. For example, when translating to Hindi, the model focused heavily on Marathi and Bengali while virtually ignoring English.
  • Parameter Efficiency: Because the architecture remains a standard single-encoder system, the model size does not increase with the number of source languages (unlike multi-encoder approaches).
  • Interaction is Key: Unlike ensembling, concatenation allows the encoder to capture cross-lingual correlations, which appears to be particularly beneficial in resource-rich settings.

Key Results

The simple concatenation method proved surprisingly competitive, often outperforming much more complex architectures.

  • ILCI (Low Resource): Using 5 source languages to translate into Hindi, the concatenation method achieved 31.56 BLEU, a massive jump from the best single-source baseline of 24.60.
  • UN (High Resource): In the Spanish+French to English task, the method reached 49.93 BLEU, outperforming both the multi-encoder (47.39) and ensembling (46.65) approaches.
Table 2: ILCI corpus results showing BLEU scores for various language combinations.

As shown in Table 3 below, the method consistently provided gains across different test sets in the IWSLT setting, though the authors noted that ensembling sometimes performed better in extremely low-resource scenarios.

Table 3: IWSLT corpus results: BLEU scores for the single source and N source settings using the IWSLT corpus. The languages are French (Fr), German (De), Arabic (Ar), Czech (Cs) and English (En). We give the BLEU scores for two test sets tst2010 and tst2013 which we translate using a. Our proposed approach (our), b. Multi source ensembling approach (ens) and c. Multi Encoder Multi Source approach (me). The best BLEU score is in bold. The train corpus sizes are given in tiny font size. Refer to Table 1 for details on corpora sizes.

Limitations and Future Work

While effective, the authors noted a few areas for further exploration:

  • Diminishing Returns: There is a limit to how much additional languages help, and the authors plan to investigate the point of diminishing returns in BLEU scores.
  • Missing Sources: The current model assumes all $N$ source languages are present. Future work will look at how to make the model robust when some source sentences are missing.
  • Dictionary Extraction: The authors suggest that the high-quality attention links could be used to automatically extract multilingual dictionaries.
  • Anomalies: In one specific IWSLT test case (tst2013 4-lingual), the method did not show gains, an anomaly they intend to investigate.

Summary updated

Abstract

In this paper, we explore a simple solution to "Multi-Source Neural Machine Translation" (MSNMT) which only relies on preprocessing a N-way multilingual corpus without modifying the Neural Machine Translation (NMT) architecture or training procedure. We simply concatenate the source sentences to form a single long multi-source input sentence while keeping the target side sentence as it is and train an NMT system using this preprocessed corpus. We evaluate our method in resource poor as well as resource rich settings and show its effectiveness (up to 4 BLEU using 2 source languages and up to 6 BLEU using 5 source languages). We also compare against existing methods for MSNMT and show that our solution gives competitive results despite its simplicity. We also provide some insights on how the NMT system leverages multilingual information in such a scenario by visualizing attention.
BibTeX
@misc{dabre2017enabling,
  author = {Raj Dabre and Fabien Cromieres and Sadao Kurohashi},
  title = {{Enabling Multi-Source Neural Machine Translation By Concatenating Source Sentences In Multiple Languages}},
  year = {2017},
  eprint = {1702.06135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.06135},
}

Loading related content...

Figure