Soft Contextual Data Augmentation for Neural Machine Translation

Published:

Please cite:
@inproceedings{gao2019soft,
title={Soft contextual data augmentation for neural machine translation},
author={Gao, Fei and Zhu, Jinhua and Wu, Lijun and Xia, Yingce and Qin, Tao and Cheng, Xueqi and Zhou, Wengang and Liu, Tie-Yan},
booktitle={Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
pages={5539--5544},
year={2019}
}

Abstract

While data augmentation is an important trickto 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 wordby 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 ourmethod over strong baselines.

[PDF] [CODE]