AMOM: Adaptive Masking over Masking for Conditional Masked Language Model

Yisheng Xiao, Ruiyang Xu, Lijun Wu, Juntao Li, Tao Qin +2 more
3/13/2023
cs.CLcs.AI

No official code found. Best implementation: amom-nar/AMOM (4 stars, last commit 2022-08-04).

Abstract

Transformer-based autoregressive (AR) methods have achieved appealing performance for varied sequence-to-sequence generation tasks, e.g., neural machine translation, summarization, and code generation, but suffer from low inference efficiency. To speed up the inference stage, many non-autoregressive (NAR) strategies have been proposed in the past few years. Among them, the conditional masked language model (CMLM) is one of the most versatile frameworks, as it can support many different sequence generation scenarios and achieve very competitive performance on these tasks. In this paper, we further introduce a simple yet effective adaptive masking over masking strategy to enhance the refinement capability of the decoder and make the encoder optimization easier. Experiments on \textbf{3} different tasks (neural machine translation, summarization, and code generation) with \textbf{15} datasets in total confirm that our proposed simple method achieves significant performance improvement over the strong CMLM model. Surprisingly, our proposed model yields state-of-the-art performance on neural machine translation (\textbf{34.62} BLEU on WMT16 EN$\to$RO, \textbf{34.82} BLEU on WMT16 RO$\to$EN, and \textbf{34.84} BLEU on IWSLT De$\to$En) and even better performance than the \textbf{AR} Transformer on \textbf{7} benchmark datasets with at least \textbf{2.2$\times$} speedup. Our code is available at GitHub.

View on arXivView PDF

Code Implementations(1)

amom-nar/AMOMCommunity100%
42C++, LuaMay 19, 20224 years ago

Similar Papers

Cite this paper

@article{xiao2023amom,
  title  = {AMOM: Adaptive Masking over Masking for Conditional Masked Language Model},
  author = {Yisheng Xiao and Ruiyang Xu and Lijun Wu and Juntao Li and Tao Qin and Yan-Tie Liu and Min Zhang},
  year   = {2023},
  eprint = {2303.07457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.07457v1}
}

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

Discussion