On Losses for Modern Language Models

Stephane Aroca-Ouellette, Frank Rudzicz
10/4/2020
cs.CLcs.LG

Official code: StephAO/olfmlm (18 stars, Python, last commit 2022-11-25).

Abstract

BERT set many state-of-the-art results over varied NLU benchmarks by pre-training over two tasks: masked language modelling (MLM) and next sentence prediction (NSP), the latter of which has been highly criticized. In this paper, we 1) clarify NSP's effect on BERT pre-training, 2) explore fourteen possible auxiliary pre-training tasks, of which seven are novel to modern language models, and 3) investigate different ways to include multiple tasks into pre-training.

Show full abstract

We show that NSP is detrimental to training due to its context splitting and shallow semantic signal. We also identify six auxiliary pre-training tasks -- sentence ordering, adjacent sentence prediction, TF prediction, TF-IDF prediction, a FastSent variant, and a Quick Thoughts variant -- that outperform a pure MLM baseline. Finally, we demonstrate that using multiple tasks in a multi-task pre-training framework provides better results than using any single auxiliary task. Using these methods, we outperform BERT Base on the GLUE benchmark using fewer than a quarter of the training tokens.

View on arXivView PDF

Code Implementations(1)

StephAO/olfmlmOfficial100%
186Python, ShellJun 30, 20194 years agoNOASSERTION

Similar Papers

Cite this paper

@article{arocaouellette2020losses,
  title  = {On Losses for Modern Language Models},
  author = {Stephane Aroca-Ouellette and Frank Rudzicz},
  year   = {2020},
  eprint = {2010.01694},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.01694}
}

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

Discussion