GanLM: Encoder-Decoder Pre-training with an Auxiliary Discriminator

Jian Yang, Shuming Ma, Li Dong, Shaohan Huang, Haoyang Huang +5 more
12/20/2022
cs.CL

Official code: CSJianYang/GanLM (5 stars, Python, MIT, last commit 2023-07-13).

Abstract

Pre-trained models have achieved remarkable success in natural language processing (NLP). However, existing pre-training methods underutilize the benefits of language understanding for generation.

Show full abstract

Inspired by the idea of Generative Adversarial Networks (GANs), we propose a GAN-style model for encoder-decoder pre-training by introducing an auxiliary discriminator, unifying the ability of language understanding and generation in a single model. Our model, named as GanLM, is trained with two pre-training objectives: replaced token detection and replaced token denoising. Specifically, given masked source sentences, the generator outputs the target distribution and the discriminator predicts whether the target sampled tokens from distribution are incorrect. The target sentence is replaced with misclassified tokens to construct noisy previous context, which is used to generate the gold sentence. In general, both tasks improve the ability of language understanding and generation by selectively using the denoising data. Extensive experiments in language generation benchmarks show that GanLM with the powerful language understanding capability outperforms various strong pre-trained language models (PLMs) and achieves state-of-the-art performance.

View on arXivView PDF

Code Implementations(1)

CSJianYang/GanLMOfficial100%
MIT
50Python, ShellDec 20, 20223 years agoMIT

Similar Papers

Cite this paper

@article{yang2022ganlm,
  title  = {GanLM: Encoder-Decoder Pre-training with an Auxiliary Discriminator},
  author = {Jian Yang and Shuming Ma and Li Dong and Shaohan Huang and Haoyang Huang and Yuwei Yin and Dongdong Zhang and Liqun Yang and Furu Wei and Zhoujun Li},
  year   = {2022},
  eprint = {2212.10218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10218}
}

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

Discussion