On the Copying Behaviors of Pre-Training for Neural Machine Translation

Xuebo Liu, Longyue Wang, Derek F. Wong, Liang Ding, Lidia S. Chao +2 more
7/17/2021
cs.CLcs.LG

Official code: SunbowLiu/CopyingPenalty (8 stars, Python, last commit 2021-09-29).

Abstract

Previous studies have shown that initializing neural machine translation (NMT) models with the pre-trained language models (LM) can speed up the model training and boost the model performance. In this work, we identify a critical side-effect of pre-training for NMT, which is due to the discrepancy between the training objectives of LM-based pre-training and NMT.

Show full abstract

Since the LM objective learns to reconstruct a few source tokens and copy most of them, the pre-training initialization would affect the copying behaviors of NMT models. We provide a quantitative analysis of copying behaviors by introducing a metric called copying ratio, which empirically shows that pre-training based NMT models have a larger copying ratio than the standard one. In response to this problem, we propose a simple and effective method named copying penalty to control the copying behaviors in decoding. Extensive experiments on both in-domain and out-of-domain benchmarks show that the copying penalty method consistently improves translation performance by controlling copying behaviors for pre-training based NMT models. Source code is freely available at https://github.com/SunbowLiu/CopyingPenalty.

View on arXivView PDF

Code Implementations(1)

On the Copying Behaviors of Pre-Training for Neural Machine Translation (Findings of ACL 2021)

83Python, CudaJul 17, 20215 years ago

Similar Papers

Cite this paper

@article{liu2021copying,
  title  = {On the Copying Behaviors of Pre-Training for Neural Machine Translation},
  author = {Xuebo Liu and Longyue Wang and Derek F. Wong and Liang Ding and Lidia S. Chao and Shuming Shi and Zhaopeng Tu},
  year   = {2021},
  eprint = {2107.08212},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.08212}
}

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

Discussion