Pretraining Text Encoders with Adversarial Mixture of Training Signal Generators

Yu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary, Paul Bennett +2 more
4/7/2022
cs.CLcs.LG

Official code: microsoft/AMOS (27 stars, Python, MIT, last commit 2023-07-26).

Abstract

We present a new framework AMOS that pretrains text encoders with an Adversarial learning curriculum via a Mixture Of Signals from multiple auxiliary generators. Following ELECTRA-style pretraining, the main encoder is trained as a discriminator to detect replaced tokens generated by auxiliary masked language models (MLMs).

Show full abstract

Different from ELECTRA which trains one MLM as the generator, we jointly train multiple MLMs of different sizes to provide training signals at various levels of difficulty. To push the discriminator to learn better with challenging replaced tokens, we learn mixture weights over the auxiliary MLMs' outputs to maximize the discriminator loss by backpropagating the gradient from the discriminator via Gumbel-Softmax. For better pretraining efficiency, we propose a way to assemble multiple MLMs into one unified auxiliary model. AMOS outperforms ELECTRA and recent state-of-the-art pretrained models by about 1 point on the GLUE benchmark for BERT base-sized models.

View on arXivView PDF

Code Implementations(1)

microsoft/AMOSOfficial100%
MIT

[ICLR 2022] Pretraining Text Encoders with Adversarial Mixture of Training Signal Generators

272Python, ShellMar 11, 20223 years agoMIT
adversarial-machine-learningdeep-learninglanguage-modelnatural-language-processingnatural-language-understanding+4 more

Similar Papers

Cite this paper

@article{meng2022pretraining,
  title  = {Pretraining Text Encoders with Adversarial Mixture of Training Signal Generators},
  author = {Yu Meng and Chenyan Xiong and Payal Bajaj and Saurabh Tiwary and Paul Bennett and Jiawei Han and Xia Song},
  year   = {2022},
  eprint = {2204.03243},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.03243}
}

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

Discussion