Skip to main content
QUICK REVIEW

[Paper Review] Soft Contextual Data Augmentation for Neural Machine Translation

Jinhua Zhu, Fei Gao|arXiv (Cornell University)|May 25, 2019
Topic ModelingComputer Science17 references59 citations
TL;DR

Introduces soft contextual data augmentation for NMT by replacing a randomly chosen word with a soft distribution over the vocabulary, computed from a pretrained language model, improving BLEU across multiple translation tasks.

ABSTRACT

While data augmentation is an important trick to boost the accuracy of deep learning methods in computer vision tasks, its study in natural language tasks is still very limited. In this paper, we present a novel data augmentation method for neural machine translation. Different from previous augmentation methods that randomly drop, swap or replace words with other words in a sentence, we softly augment a randomly chosen word in a sentence by its contextual mixture of multiple related words. More accurately, we replace the one-hot representation of a word by a distribution (provided by a language model) over the vocabulary, i.e., replacing the embedding of this word by a weighted combination of multiple semantically similar words. Since the weights of those words depend on the contextual information of the word to be replaced, the newly generated sentences capture much richer information than previous augmentation methods. Experimental results on both small scale and large scale machine translation datasets demonstrate the superiority of our method over strong baselines.

Motivation & Objective

  • Motivate data augmentation for neural machine translation and address limitations of discrete word replacements.
  • Propose a soft, distribution-based augmentation that incorporates contextual information.
  • Leverage pretrained language models to derive context-aware word distributions.
  • Evaluate augmentation across multiple language pairs and dataset scales to demonstrate effectiveness.

Proposed method

  • Replace a randomly chosen word with a soft word, i.e., a probability distribution over the vocabulary.
  • Compute the soft word P(w) from a pretrained language model conditioned on preceding context.
  • Embed the soft word as an expectation over the vocabulary embeddings: e_w = P(w)E.
  • Apply augmentation with probability γ during training, using the soft representation instead of a one-hot token.
  • Keep language model parameters fixed after training; integrate with the NMT Transformer architecture.
  • Compare against baselines including random swaps, dropout, blank tokens, and unigram-based smoothing.

Experimental results

Research questions

  • RQ1Does soft contextual augmentation improve translation quality over strong baselines across multiple language pairs?
  • RQ2How does the replacement probability γ affect performance and robustness of the augmentation?
  • RQ3Is the method effective on both small-scale and large-scale MT datasets?
  • RQ4How does soft augmentation compare to discrete augmentation and to sampling-based context augmentation?

Key findings

  • Consistent BLEU gains over strong Transformer baselines across four translation tasks.
  • On WMT 2014 En→De, the method achieves +1.3 BLEU over the base system, reaching 29.70 BLEU.
  • Soft augmentation outperforms discrete augmentation methods across all tasks.
  • Performance remains robust across a range of γ values, with strongest results near γ = 0.15 on De→En.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.