Focus on the Target's Vocabulary: Masked Label Smoothing for Machine Translation

Liang Chen, Runxin Xu, Baobao Chang
3/6/2022
8 citations
cs.CLcs.AI

Official code: pkunlp-icler/MLS (13 stars, Python, last commit 2022-04-13). Most starred: chenllliang/MLS, a community implementation (17 stars, Python, last commit 2022-05-19, 1.3× the official stars). 1 more implementation below.

Abstract

Label smoothing and vocabulary sharing are two widely used techniques in neural machine translation models. However, we argue that simply applying both techniques can be conflicting and even leads to sub-optimal performance.

Show full abstract

When allocating smoothed probability, original label smoothing treats the source-side words that would never appear in the target language equally to the real target-side words, which could bias the translation model. To address this issue, we propose Masked Label Smoothing (MLS), a new mechanism that masks the soft label probability of source-side words to zero. Simple yet effective, MLS manages to better integrate label smoothing with vocabulary sharing. Our extensive experiments show that MLS consistently yields improvement over original label smoothing on different datasets, including bilingual and multilingual translation from both translation quality and model's calibration. Our code is released at https://github.com/PKUnlp-icler/MLS

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
pkunlp-icler/MLSOfficial13Python–2022-04-13
chenllliang/MLSCommunity17Python–2022-05-19
pkunlp-icler/MLSOfficial100%

Source code of our paper "Focus on the Target’s Vocabulary: Masked Label Smoothing for Machine Translation" @ ACL 2022

131Python, ShellMar 4, 20224 years ago
chenllliang/MLSCommunity100%

Source code of our paper "Focus on the Target’s Vocabulary: Masked Label Smoothing for Machine Translation" @ACL-2022

174Python, ShellDec 5, 20214 years ago
label-smoothingmachine-translationnlp

Similar Papers

Cite this paper

@article{chen2022focus,
  title  = {Focus on the Target's Vocabulary: Masked Label Smoothing for Machine Translation},
  author = {Liang Chen and Runxin Xu and Baobao Chang},
  year   = {2022},
  eprint = {2203.02889},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.02889}
}

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

Discussion