BERT Paper Ablations (1810.04805): What the Tables Show About Pre-Training Tasks and Model Size
BERT paper (arXiv 1810.04805): Table 5 shows BERT BASE 0.6 to 10.7 points ahead of a left-to-right model with no NSP. RoBERTa later disputed NSP.
The BERT paper (arXiv 1810.04805) reports that masked language modeling and next sentence prediction (NSP) are useful pre-training tasks, and that larger models score higher. Its ablation tables carry much of that case. In Table 5, BERT BASE scores above a left-to-right model with no NSP on all five tasks listed, by 0.6 to 10.7 points (differences computed from the table values). RoBERTa, posted in July 2019, later reported that removing NSP matched or slightly improved results, so the NSP question is still open.
What did the BERT paper claim, and what did it report?
BERT, introduced by Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova of Google AI Language, reports new state-of-the-art results on eleven natural language processing tasks. The three headline results below are the authors' own claims. The gains are absolute improvements the paper states.
| Benchmark | BERT result (authors' claim) | Reported absolute gain |
|---|---|---|
| GLUE score | 80.5% | 7.7 points |
| MultiNLI accuracy | 86.7% | 4.6 points |
| SQuAD v1.1 Test F1 | 93.2 | 1.5 points |
Source: arXiv 1810.04805, headline results section.
The paper pre-trains with two objectives, masked language model (MLM) and NSP. The ablations are how it argues that each part earns its place.
What does Table 5 show about next sentence prediction?
Table 5 shows BERT BASE ahead of a left-to-right model with no NSP on every task listed. The paper's text says that removing NSP "hurts performance significantly on QNLI, MNLI, and SQuAD 1.1" (Table 5, page 11).
| Task | BERT BASE | LTR and No NSP | Difference (computed here) |
|---|---|---|---|
| MNLI-m | 84.4 | 82.1 | 2.3 |
| QNLI | 88.4 | 84.3 | 4.1 |
| MRPC | 86.7 | 77.5 | 9.2 |
| SST-2 | 92.7 | 92.1 | 0.6 |
| SQuAD (F1) | 88.5 | 77.8 | 10.7 |
Source: Table 5, arXiv 1810.04805 (ar5iv HTML rendering). Differences are BERT BASE minus the LTR row.
The comparison row is not a clean test of NSP. The LTR and No NSP model also drops the masked objective and uses a left-to-right one, so the gap reflects both changes. The gap on SST-2 is small (0.6), while SQuAD F1 shows the widest gap (10.7). Read the table as evidence that BERT's full recipe beats this alternative, not as a measure of NSP alone.
What does the BERT paper show about model size?
The paper reports that larger models lead to a strict accuracy improvement across all four datasets in its model-size ablation (Table 6). The two BERT sizes compared differ in depth, width and parameter count.
| Model | Layers (L) | Hidden size (H) | Attention heads (A) | Total parameters |
|---|---|---|---|---|
| BERT BASE | 12 | 768 | 12 | 110M |
| BERT LARGE | 24 | 1024 | 16 | 340M |
| RoBERTa LARGE | 24 | 1024 | 16 | 355M |
Sources: BERT parameter counts, ar5iv; RoBERTa hyperparameters, arXiv 1907.11692v1. The RoBERTa paper says it follows the BERT large architecture, but lists 355M parameters where BERT lists 340M.
This post cites the direction of Table 6, not individual scores. The paper's claim is the authors' own, and the per-dataset values are not reproduced here.
What did RoBERTa change about NSP?
RoBERTa's authors report that removing the NSP loss matches or slightly improves downstream task performance, in contrast to Devlin et al. (2019). The paper also states that BERT "was significantly undertrained", and it lists four changes: longer training with bigger batches and more data, no NSP, longer sequences, and dynamic masking.
| Setting (RoBERTa Table 2, page 8) | SQuAD 2.0 F1 |
|---|---|
| Segment-pair input with NSP loss | 78.7 |
| Full-sentences input without NSP loss | 79.1 |
| Doc-sentences input without NSP loss | 79.7 |
Source: RoBERTa, arXiv 1907.11692v1, Table 2. These are the authors' results. They compare input formats inside RoBERTa's recipe, so they do not re-run BERT's Table 5.
The RoBERTa paper is itself a replication study, but these are still the authors' numbers. No independent rerun appears in the sources used for this post.
Why do BERT and RoBERTa disagree on NSP?
The two papers answer different questions under different setups. BERT's Table 5 asks whether its full recipe beats a left-to-right alternative. RoBERTa's Table 2 asks whether the input format matters once training is changed. Both can be true at once: NSP may help under BERT's setup while removing it costs nothing under RoBERTa's.
Our reading is that BERT's model-size conclusions depend on training budget. If BERT was undertrained, as RoBERTa argues, a larger model trained with the same budget may not show the same gains. For the wider debate on how model size and training data trade off, see Chinchilla vs Kaplan Scaling Laws. The Transformer architecture behind BERT's name is covered in Attention Is All You Need Explained.
What's still unclear?
- Isolated NSP effect. Table 5 in the full arXiv PDF also has a "No NSP" row: MNLI-m 83.9, QNLI 84.9, MRPC 86.5, SST-2 92.6, SQuAD (F1) 87.9. Against BERT BASE, that is a drop of 0.5, 3.5, 0.2, 0.1 and 0.6 points. The LTR and No NSP row changes two things at once, so the No NSP row is the closer test.
- Variance. The Table 5 caption gives no seed count or variance. The paper's appendix says some dev and test scores are averaged over five random restarts, but it does not say which tables that covers. Gaps of a point or less should not be treated as settled.
- Parameter totals. BERT LARGE is listed at 340M and RoBERTa LARGE at 355M for the same layers, hidden size and heads. The sources do not explain the difference.
- Table 6 detail. The sources support the direction of the model-size result. They do not give per-dataset scores for each size in this post.
- Replication. Every number here is the authors' own result. RoBERTa re-examines BERT's training, but the sources used do not contain an independent rerun of Table 5.
Source note: the full arXiv PDF text was checked for the Table 5 and Table 6 values and the headline results, and the Table 5 values match it. The RoBERTa Table 2 values come from the arXiv HTML rendering of 1907.11692v1.
The weakest point of this argument is the NSP comparison. The strongest evidence against BERT's NSP claim is RoBERTa's Table 2, but that table tests a different model and input setup.
What should a working researcher take from the BERT ablations?
- Check what a row changes. The LTR and No NSP row in Table 5 changes the objective and NSP together. Treat it as a bundle, not a single-factor test.
- Compare across papers with setup in view. BERT's Table 5 and RoBERTa's Table 2 use different recipes, data and input formats. A direct comparison of their NSP numbers is not like-for-like.
- Look for missing rows before citing a component. If a paper claims one component matters, check for a row that removes only that component.
- Note the authors' own figures. Headline gains such as GLUE 80.5% are the paper's reported results. Confirm them against independent reruns before using them as a baseline.
Frequently asked questions
What did the BERT paper's ablation show about next sentence prediction?
In Table 5, BERT BASE scores higher than a left-to-right model with no NSP on all five tasks listed, with the largest gap on SQuAD F1 (88.5 vs 77.8). The paper states that removing NSP 'hurts performance significantly' on QNLI, MNLI and SQuAD 1.1. That row also swaps the masked objective, so it does not isolate NSP alone.
Did the BERT paper show that larger models perform better?
The authors report that Table 6 shows strict accuracy improvements for larger models across all four datasets in the ablation. BERT BASE has 110M parameters and BERT LARGE has 340M. This post cites the direction of the result, not per-dataset scores, and the figures are the authors' own results.
Did RoBERTa confirm that NSP helps?
No. RoBERTa's authors report that removing the NSP loss 'matches or slightly improves downstream task performance, in contrast to Devlin et al. (2019).' On SQuAD 2.0, RoBERTa's Table 2 (page 8) gives F1 of 78.7 with NSP and 79.1 without it. Those runs use RoBERTa's own training recipe, not BERT's.
How many tasks did BERT set new results on, and what were its headline scores?
The authors report new state-of-the-art results on eleven natural language processing tasks. Their headline scores are a GLUE score of 80.5%, MultiNLI accuracy of 86.7% and SQuAD v1.1 Test F1 of 93.2. These are self-reported by the authors and were not re-run for this post.
Who wrote the BERT paper?
The paper lists Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova, with the affiliation Google AI Language. It was first posted to arXiv in October 2018 and last revised on 24 May 2019, according to the arXiv record for 1810.04805.
Sources
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (arXiv:1810.04805), arXiv (2019-05-24)
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (HTML rendering, arXiv:1810.04805), arXiv.org (ar5iv) (2018-10-10)
- RoBERTa: A Robustly Optimized BERT Pretraining Approach (arXiv:1907.11692v1), arXiv (2019-07-26)