Source-linked AI summary

When and Why are Pre-trained Word Embeddings Useful for Neural Machine Translation?

Ye Qi, Devendra Singh Sachan, Matthieu Felix, Sarguna Janani Padmanabhan, Graham Neubig

arXiv:1804.06323v2cs.CL

TL;DR

NMT performance suffers when parallel data is scarce, while the usefulness of pre-trained embeddings in NMT has remained insufficiently understood. The paper conducts five experiments across data, language similarity, alignment, and multilingual settings, finding that embeddings are most effective in particular low-resource conditions and can yield large gains.

  • Problem

    The paper asks when and why pre-trained word embeddings are useful for NMT, especially when bilingual data is limited.

  • Method

    The paper conducts five controlled experiments using multilingual TED-talk translation data and pre-trained embeddings to examine language, data-size, similarity, alignment, and multilingual effects.

  • Results

    Pre-trained embeddings are most effective with very little but sufficient training data, more similar translation pairs, and aligned multilingual systems; reported gains reach up to 11 BLEU points in the examined results.

  • Takeaways & Limitations

    Embedding usefulness depends on the resource level, language similarity, and training configuration, with alignment not necessarily needed bilingually but helpful in multilingual training.

  • Takeaways & Limitations

    The language-similarity experiment uses Portuguese as the target, selects source languages along its family tree, and fixes all pairs at 40,000 sentences.

Abstract

from arXiv · show

The performance of Neural Machine Translation (NMT) systems often suffers in low-resource scenarios where sufficiently large-scale parallel corpora cannot be obtained. Pre-trained word embeddings have proven to be invaluable for improving performance in natural language analysis tasks, which often suffer from paucity of data. However, their utility for NMT has not been extensively explored. In this work, we perform five sets of experiments that analyze when we can expect pre-trained word embeddings to help in NMT tasks. We show that such embeddings can be surprisingly effective in some cases -- providing gains of up to 20 BLEU points in the most favorable setting.

1 Introduction

Pre-trained word embeddings are well established in several NLP tasks but less explored in NMT, especially where parallel data is scarce. The paper addresses when and why they help through five experimental questions spanning language properties, data size, alignment, and multilinguality.

  • Motivation: Pre-trained embeddings have improved sequence tagging and text classification, but their use in NMT remains less common.The paper attributes this partly to the much larger corpora typically used for NMT than for annotated NLP tasks.
  • Motivation: Low-resource languages and domains make monolingual data a more desirable resource because abundant bilingual data may be unavailable.
  • Research gap: Prior NMT studies report potential BLEU improvements from integrating pre-trained embeddings or using them to learn unsupervised translation lexicons.
  • Research gap: The paper investigates when pre-trained embeddings are useful and why they improve performance in NMT.
  • Research questions: The experiments examine language families and linguistic features, training-data size, source-target language similarity, embedding-space alignment, and multilingual versus bilingual systems.

2 Experimental Setup

The experiments use controlled TED-talk parallel data across English and three similar low- and higher-resource language pairs from Romance, Turkic, and Slavic families. A standard attention-based NMT model is evaluated with 300-dimensional fastText Wikipedia embeddings initialized on the embedding layer.

  • Data: The corpus covers English paired with Galician-Portuguese, Azerbaijani-Turkish, and Belarusian-Russian.Each pair contains similar languages with one relatively lower-resource member, enabling controlled transfer comparisons.
  • Data and comparisons: Table 1 reports the number of sentences for each language pair, while Table 2 compares random initialization and pre-training on source and target sides.
  • Data: The language pairs span Romance, Turkic, and Slavic families while controlling for vocabulary, grammar, and sentence structure.
  • Model and evaluation: The NMT system is a standard 1-layer attention-based encoder-decoder with beam size 5, trained using Adam and evaluated with BLEU.
  • Pre-training: The embedding layer is initialized with 300-dimensional fastText word vectors trained on Wikipedia for each language.The vectors incorporate character-level, phrase-level, and positional information and are compared with randomly initialized baselines.

3 Q1: Efficacy of Pre-training

Pre-training improves BLEU to some degree across the examined languages, with the largest contribution coming from source-side embeddings. Gains are consistent in higher-resource languages but vary sharply among extremely low-resource languages.

  • Overall efficacy: Pre-training source and/or target embeddings increases BLEU scores across the examined language pairs.
  • Source versus target: Source-side pre-training produces a substantially larger increase than target-side pre-training.The authors interpret most of the gain as arising from better encoding of the source sentence.
  • Resource level: ≈3 BLEU points are gained consistently in the higher-resource languages across all three language pairs.
  • Resource level: Up to 11 BLEU points are gained for Galician, whereas Azerbaijani and Belarusian show quite small gains in the extremely low-resource setting.The result suggests embeddings can bootstrap models near the threshold of producing reasonable translations.

4 Q2: Effect of Training Data Size

Down-sampling higher-resource training data tests how data size changes the effect of pre-training. Across all three languages, gains peak when baseline performance is poor but not too poor.

  • Experimental manipulation: The higher-resource languages are down-sampled to 1/2, 1/4, and 1/8 of their original training-data sizes.
  • Results: The BLEU gain is highest when the baseline system is poor but not too poor, usually at a baseline BLEU score of 3-4.This trend appears across all three languages and matches the earlier Galician result.
  • Interpretation: The pattern suggests that a moderately effective system is needed before pre-training takes effect.Once enough data captures basic language characteristics, pre-training can become highly effective.

5 Q3: Effect of Language Similarity

The experiments test whether linguistic similarity between source and target languages affects the usefulness of pre-trained embeddings. Results broadly support the hypothesis for similar languages, but larger gains for dissimilar languages are attributed to their lower baselines.

  • Hypothesis: Pre-training gains are expected to be larger when source and target languages have more similar semantic neighborhoods.The hypothesis links linguistic similarity to more similar cross-lingual semantic distinctions and polysemy.
  • Results: ES, FR, and IT generally follow the predicted relationship between linguistic similarity and BLEU.The comparison uses source languages selected across Portuguese’s language-family tree, with all pairs trained on 40,000 sentences.
  • Results: RU and HE show larger gains than the more similar FR and IT, largely because their baseline BLEU scores are very low.The authors attribute the larger increases to greater room for improvement rather than linguistic similarity alone.

6 Q4: Effect of Word Embedding Alignment

This section tests whether aligning independently trained source and target embedding spaces improves bilingual NMT. Alignment is not beneficial in bilingual systems, suggesting that NMT can learn a useful projection during ordinary training.

  • Motivation: Independent source and target embeddings may lack direct correspondence, motivating orthogonal alignment between their spaces.The proposed alignment is intended to make source-target correspondences easier for NMT to learn.
  • Results: Embedding alignment produces gains or losses that are essentially insignificant across bilingual translation languages.The result comes from the bilingual BLEU comparison summarized in Table 4.
  • Interpretation: NMT can already learn a reasonable projection of word embeddings during normal training, so priori alignment may be unnecessary.This conclusion is specific to the bilingual setting examined here.

7 Q5: Effect of Multilinguality

The multilingual experiments evaluate pre-trained embeddings in systems sharing an encoder or decoder across related languages. Gains broadly track language similarity, and alignment helps multilingual systems even though it did not help bilingual systems.

  • Setup: Multilingual systems share an encoder or decoder across multiple languages and use another language’s data to improve low-resource translation.The experiments test each low-resource language using paired similar low- and higher-resource languages.
  • Results: Pre-training gains roughly follow language similarity: GL/PT gains most, while BE/RU shows a small decrease.The language pairs are ordered from highest similarity for GL/PT to lowest for BE/RU.
  • Alignment: Unlike the bilingual setting, aligning embeddings increases BLEU for all three multilingual tasks.A shared encoder benefits from placing the source languages’ embeddings in similar vector spaces.
  • Boundary: BE →EN does not benefit from multilingual pre-training, which the authors hypothesize reflects partial mutual intelligibility and rich morphology in the Slavic languages.These properties may make sparsity in trained embeddings a larger problem.

8 Analysis

Qualitative and frequency-based analyses show that pre-training improves rare-word handling and grammaticality, while its comparative advantages extend to low-frequency and some function-word outputs. The analyses contrast systems with and without pre-trained embeddings.

  • 8.1 Qualitative Analysis: Pre-training helps GL →EN produce rarer vocabulary and more grammatically well-formed sentences.Examples include the name “chris” and the phrases “big lawyer” and “patent legislation.”
  • 8.1 Qualitative Analysis: Without pre-trained embeddings, the bilingual model substitutes or drops rare phrases and can generate grammatically incorrect sentences.The passage links misunderstood core vocabulary with semantic deviation, uncertainty, and phrasal loops.
  • 8.2 Analysis of Frequently Generated n-grams.: Pre-training helps with low-frequency words and function words such as prepositions in the GL →EN n-gram comparison.The comparison examines the top 10 n-grams each system generates better.
  • 8.2 Analysis of Frequently Generated n-grams.: Pre-training improves target-word translation accuracy across the vocabulary, particularly for words with low training-corpus frequency.Figure 2 reports target-word f-measure bucketed by training frequency.

9 Conclusion

The paper evaluates pre-trained word embeddings in NMT from multiple angles and derives practical guidance for when they are effective, particularly in low-resource scenarios.

  • Pre-trained embeddings are most effective with very little training data, provided there is enough data for the NMT system to train.The paper identifies this range as a sweet spot rather than a uniformly beneficial low-resource condition.
  • Pre-trained embeddings seem more effective for translation pairs with greater language similarity.
  • A priori embedding alignment may be unnecessary for bilingual training but helpful for multilingual training.
Loading 1804.06323v2…