# On Losses for Modern Language Models

Source: [On Losses for Modern Language Models](<https://www.sota2.com/research/paper/68fa68711e209131cea1c424>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:38:00.142Z

Authors: Stephane Aroca-Ouellette, Frank Rudzicz

Published: 2020-10-04T21:44:15.000Z

## 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. 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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Natural Language Processing on SuperGLUE 100 samples, excl. ReCoRD (dev)](<https://www.sota2.com/research/sota/natural-language-processing-on-superglue-100-samples-excl-record-dev.md>): Natural Language Processing; SuperGLUE 100 samples, excl. ReCoRD (dev); Macro Avg Score: 59.03.

- [Natural Language Processing on SuperGLUE 1k samples, excl. ReCoRD (dev)](<https://www.sota2.com/research/sota/natural-language-processing-on-superglue-1k-samples-excl-record-dev.md>): Natural Language Processing; SuperGLUE 1k samples, excl. ReCoRD (dev); Macro Avg Score: 65.21.

- [Natural Language Processing on SuperGLUE Full, excl. ReCoRD (dev)](<https://www.sota2.com/research/sota/natural-language-processing-on-superglue-full-excl-record-dev.md>): Natural Language Processing; SuperGLUE Full, excl. ReCoRD (dev); Macro Avg Score: 69.16.

- [Natural Language Processing on GLUE 1k samples (dev)](<https://www.sota2.com/research/sota/natural-language-processing-on-glue-1k-samples-dev.md>): Natural Language Processing; GLUE 1k samples (dev); Macro Avg Score: 75.3.

- [Natural Language Processing on GLUE (100 samples subset, dev)](<https://www.sota2.com/research/sota/natural-language-processing-on-glue-100-samples-subset-dev.md>): Natural Language Processing; GLUE 100 samples (dev); Macro Avg Score: 61.39.

- [Natural Language Understanding on GLUE (dev)](<https://www.sota2.com/research/sota/natural-language-understanding-on-glue-dev.md>): Natural Language Understanding; GLUE (dev); SST-2 (Acc): not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2010.01694>)

[PDF](<https://arxiv.org/pdf/2010.01694.pdf>)
