Semantically Consistent Data Augmentation for Neural Machine Translation via Conditional Masked Language Model

Qiao Cheng, Jin Huang, Yitao Duan
9/22/2022
cs.CL

Official code: netease-youdao/cmlm_da (8 stars, Python, MIT, last commit 2022-12-01).

Abstract

This paper introduces a new data augmentation method for neural machine translation that can enforce stronger semantic consistency both within and across languages. Our method is based on Conditional Masked Language Model (CMLM) which is bi-directional and can be conditional on both left and right context, as well as the label.

Show full abstract

We demonstrate that CMLM is a good technique for generating context-dependent word distributions. In particular, we show that CMLM is capable of enforcing semantic consistency by conditioning on both source and target during substitution. In addition, to enhance diversity, we incorporate the idea of soft word substitution for data augmentation which replaces a word with a probabilistic distribution over the vocabulary. Experiments on four translation datasets of different scales show that the overall solution results in more realistic data augmentation and better translation quality. Our approach consistently achieves the best performance in comparison with strong and recent works and yields improvements of up to 1.90 BLEU points over the baseline.

View on arXivView PDF

Code Implementations(1)

MIT
82Python, LuaSep 5, 20224 years agoMIT

Similar Papers

Cite this paper

@article{cheng2022semantically,
  title  = {Semantically Consistent Data Augmentation for Neural Machine Translation via Conditional Masked Language Model},
  author = {Qiao Cheng and Jin Huang and Yitao Duan},
  year   = {2022},
  eprint = {2209.10875},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.10875}
}

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/2209.10875.svg)](https://codeofpaper.com/paper/2209.10875)

Discussion