Unless otherwise noted, the tables below show validation results for models trained for 125k steps on BooksCorpus and Wikipedia (F1 / EM for SQuAD, accuracy otherwise; Avg is the average over tasks).
BERT vs. ALBERT (Speed is training data throughput relative to BERT-Large = 1)
| Model | Parameters | SQuAD 1.1 | SQuAD 2.0 | MNLI | SST-2 | RACE | Avg | Speed |
|---|
| BERT-base | 108M | 90.4 / 83.2 | 80.4 / 77.6 | 84.5 | 92.8 | 68.2 | 82.3 | 4.7x |
| BERT-large | 334M | 92.2 / 85.5 | 85.0 / 82.2 | 86.6 | 93.0 | 73.9 | 85.2 | 1.0 |
| ALBERT-base | 12M | 89.3 / 82.3 | 80.0 / 77.1 | 81.6 | 90.3 | 64.0 | 80.1 | 5.6x |
| ALBERT-large | 18M | 90.6 / 83.9 | 82.3 / 79.4 | 83.5 | 91.7 | 68.5 | 82.4 | 1.7x |
| ALBERT-xlarge | 60M | 92.5 / 86.1 | 86.1 / 83.1 | 86.4 | 92.4 | 74.8 | 85.5 | 0.6x |
| ALBERT-xxlarge | 235M | 94.1 / 88.3 | 88.1 / 85.1 | 88.0 | 95.2 | 82.3 | 88.7 | 0.3x |
At the same shape (base, large), ALBERT scores slightly lower than BERT. ALBERT-xxlarge, widened by exploiting the smaller parameter count, clearly outperformed BERT-Large.
Embedding dimension E (ALBERT-base shape)
| Weight sharing | E | Parameters | Avg |
|---|
| None | 64 | 87M | 81.3 |
| None | 128 | 89M | 81.7 |
| None | 768 | 108M | 82.3 |
| All shared | 64 | 10M | 79.0 |
| All shared | 128 | 12M | 80.1 |
| All shared | 768 | 31M | 79.8 |
With weight sharing, E=128 was best, and all subsequent experiments use E=128.
What to share (ALBERT-base shape, E=128)
| Shared | Parameters | Avg |
|---|
| All | 12M | 80.1 |
| Attention only | 64M | 81.7 |
| Feed-forward only | 38M | 80.2 |
| Not shared | 89M | 81.6 |
Sharing everything lowers the average by 1.5, but most of the drop comes from sharing the feed-forward layers; sharing only attention caused no drop.
Inter-sentence tasks (ALBERT-base shape; the three left columns are accuracies on the pretraining tasks themselves)
| Task | MLM | NSP | SOP | SQuAD 1.1 | SQuAD 2.0 | MNLI | SST-2 | RACE | Avg |
|---|
| None | 54.9 | 52.4 | 53.3 | 88.6 / 81.5 | 78.1 / 75.3 | 81.5 | 89.9 | 61.7 | 79.0 |
| NSP | 54.5 | 90.5 | 52.0 | 88.4 / 81.5 | 77.2 / 74.6 | 81.6 | 91.1 | 62.3 | 79.2 |
| SOP | 54.0 | 78.9 | 86.5 | 89.3 / 82.3 | 80.0 / 77.1 | 82.0 | 90.3 | 64.0 | 80.1 |
SOP is especially effective on tasks with multiple sentences as input (SQuAD and RACE).
Training for the same amount of time
| Model | Steps | Training time | SQuAD 1.1 | SQuAD 2.0 | MNLI | SST-2 | RACE | Avg |
|---|
| BERT-large | 400k | 34 h | 93.5 / 87.4 | 86.9 / 84.3 | 87.8 | 94.6 | 77.3 | 87.2 |
| ALBERT-xxlarge | 125k | 32 h | 94.0 / 88.1 | 88.3 / 85.3 | 87.8 | 95.4 | 82.5 | 88.7 |
Even when training time rather than step count is matched, ALBERT-xxlarge was 1.5 points higher on average.
GLUE (single model fine-tuned per task, validation data)
| Model | MNLI | QNLI | QQP | RTE | SST-2 | MRPC | CoLA | STS-B |
|---|
| BERT-large | 86.6 | 92.3 | 91.3 | 70.4 | 93.2 | 88.0 | 60.6 | 90.0 |
| RoBERTa-large | 90.2 | 94.7 | 92.2 | 86.6 | 96.4 | 90.9 | 68.0 | 92.4 |
| ALBERT (1M steps) | 90.4 | 95.2 | 92.0 | 88.1 | 96.8 | 90.2 | 68.7 | 92.7 |
| ALBERT (1.5M steps) | 90.8 | 95.3 | 92.2 | 89.2 | 96.9 | 90.9 | 71.4 | 93.0 |
The final ALBERT has the ALBERT-xxlarge shape, is trained with MLM and SOP, and has dropout removed. On the RACE test set it scored 86.5% as a single model and 89.4% as an ensemble (RoBERTa: 83.2% as a single model).