Soft Contextual Data Augmentation for Neural Machine Translation

Jinhua Zhu, Fei Gao, Lijun Wu, Yingce Xia, Tao Qin +3 more
5/25/2019
cs.CL

Official code: teslacool/SCA (39 stars, Python, last commit 2024-07-25).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

teslacool/SCAOfficial100%

Soft Contextual Data Augmentation

399Python, LuaMar 15, 20192 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhu2019soft,
  title  = {Soft Contextual Data Augmentation for Neural Machine Translation},
  author = {Jinhua Zhu and Fei Gao and Lijun Wu and Yingce Xia and Tao Qin and Wengang Zhou and Xueqi Cheng and Tie-Yan Liu},
  year   = {2019},
  eprint = {1905.10523},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.10523}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1905.10523.svg)](https://codeofpaper.com/paper/1905.10523)

Discussion