Pre-training via Leveraging Assisting Languages and Data Selection for Neural Machine Translation

Haiyue Song, Raj Dabre, Zhuoyuan Mao, Fei Cheng, Sadao Kurohashi, Eiichiro SumitaarXiv 2020

TL;DR

Pre-training neural machine translation (NMT) models on massive monolingual datasets works wonders for low-resource languages, but what happens when those languages lack monolingual data too? This paper introduces a method to borrow large monolingual corpora from related "assisting" languages (like Chinese for Japanese), using script mapping and a novel length-distribution data selection technique to achieve massive translation quality boosts in truly low-resource scenarios.

What Problem Does This Paper Address?

While Neural Machine Translation (NMT) delivers state-of-the-art results for data-rich language pairs, it struggles heavily with low-resource languages. A popular workaround is sequence-to-sequence (S2S) pre-training (such as the MASS framework), which trains the model on large amounts of monolingual text before fine-tuning on limited parallel data.

However, the authors point out a critical blind spot: "truly low-resource" language pairs lack not only parallel translation data but also substantial monolingual text. To bridge this gap, the paper investigates how we can leverage the abundant monolingual data of linguistically or orthographically related assisting languages to improve translation for the target languages of interest.

Methods

The authors propose a pipeline that integrates assisting language data into standard S2S pre-training, as illustrated in Figure 1.

Figure 1: An overview of our proposed method consisting of script mapping, data selection, pre-training and fine-tuning

The core components of their approach include:

  1. Script Mapping: To maximize vocabulary overlap and cognate sharing, text from the assisting language is mapped to the target language's script. For example, Chinese characters are converted into Japanese Kanji using a one-to-one character mapping table.
  2. Data Selection: Rather than throwing uncurated text at the model, the authors filter the pre-training data to match the target domain. They compare standard Language Model (LM) scoring against a novel Length Distribution (LD) Data Selection algorithm (shown in Figure 2), which filters sentences so that the pre-training corpus mirrors the sentence-length distribution of the target domain's development set.
Algorithm 1: Length Distribution Data Selection

After pre-processing, the mixed data undergoes unsupervised S2S pre-training via MASS and is subsequently fine-tuned on the available low-resource parallel data.

Datasets

The authors evaluated their approach on Japanese–English (Ja–En) translation under simulated low-resource conditions:

  • Parallel Data: Sampled subsets (3K, 10K, 20K, and 50K sentences) from the Asian Scientific Paper Excerpt Corpus (ASPEC).
  • Monolingual Data: Common Crawl corpora for the target languages (Ja, En) and assisting languages.
  • Assisting Languages: Related pairs included Chinese (Zh) for Japanese and French (Fr) for English. Distant/unrelated control languages included Russian (Ru) and Arabic (Ar).
  • Domain LM Data: News Commentary datasets were used to train the language models for data selection.

Key Insights and Ideas

  • The OOV Trap: Skipping script mapping when using an assisting language with a different script introduces a massive flood of Out-Of-Vocabulary (OOV) tokens. This completely breaks the pre-training benefit, leading to terrible fine-tuning performance.
  • Simplicity Wins in Mapping: A straightforward 1-to-1 character mapping from Chinese to Japanese outperformed a more complex, language-model-scored many-to-many mapping.
  • The Danger of LM Bias: Surprisingly, selecting pre-training sentences based purely on the highest LM scores performed worse than random selection. The authors hypothesize that pure LM sorting introduces a data distribution bias. Enforcing a natural length distribution constraint consistently yielded the best results.
  • Assisting vs. Interfering Languages: Assisting languages provide a massive liferaft when target monolingual data is scarce (zero or low-resource settings). However, if you already have abundant (resource-rich) monolingual data for your target languages, adding assisting languages actually degrades performance, turning them into "interfering languages."

Key Results

The main experimental results are detailed in Table 1 (Figure 3).

Table 1: Low-resource pre-training experiments
  • Zero-Resource Monolingual Breakthrough: In a scenario with zero Japanese or English monolingual data, pre-training solely on Chinese data (with 1-to-1 script mapping and length distribution selection) improved the En$\rightarrow$Ja translation score by up to 8.5 BLEU points over the baseline without pre-training (D1 vs A1).
  • Script Mapping Impact: Implementing Chinese-to-Japanese script mapping boosted translation quality by up to 7.4 BLEU points compared to using raw Chinese text without mapping (B2 vs B1).
  • Data Selection Dominance: Incorporating Length Distribution (LD) selection consistently provided a 2 to 3 BLEU point boost over standard random or pure LM-based selection methods across most configurations.

Limitations and Future Work

While French and English share cognates and grammatical traits, the authors did not implement an explicit script or token-level mapping for them, leaving French's contribution less impactful than Chinese's. Additionally, when they combined Chinese and French data together during pre-training, the languages occasionally conflicted, slightly reducing overall performance.

For future work, the authors plan to explore more rigorous dictionary-based alignments instead of simple script mapping and test their framework on even more linguistically distant and challenging language pairs, such as Japanese–Russian.

Summary updated

Abstract

Sequence-to-sequence (S2S) pre-training using large monolingual data is known to improve performance for various S2S NLP tasks in low-resource settings. However, large monolingual corpora might not always be available for the languages of interest (LOI). To this end, we propose to exploit monolingual corpora of other languages to complement the scarcity of monolingual corpora for the LOI. A case study of low-resource Japanese-English neural machine translation (NMT) reveals that leveraging large Chinese and French monolingual corpora can help overcome the shortage of Japanese and English monolingual corpora, respectively, for S2S pre-training. We further show how to utilize script mapping (Chinese to Japanese) to increase the similarity between the two monolingual corpora leading to further improvements in translation quality. Additionally, we propose simple data-selection techniques to be used prior to pre-training that significantly impact the quality of S2S pre-training. An empirical comparison of our proposed methods reveals that leveraging assisting language monolingual corpora, data selection and script mapping are extremely important for NMT pre-training in low-resource scenarios.
BibTeX
@misc{song2020pre,
  author = {Haiyue Song and Raj Dabre and Zhuoyuan Mao and Fei Cheng and Sadao Kurohashi and Eiichiro Sumita},
  title = {{Pre-training via Leveraging Assisting Languages and Data Selection for Neural Machine Translation}},
  year = {2020},
  eprint = {2001.08353},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.08353},
}

Loading related content...

Figure