ALBERT: A Lite BERT for Self-supervised Learning of Language Representations

Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, Radu Soricut

Introduction

In the world of Natural Language Processing (NLP), the prevailing wisdom has long been "bigger is better." Pre-training larger models typically leads to better performance on downstream tasks. However, this scaling eventually hits a practical wall due to memory constraints and training speed limitations. Massive models with hundreds of millions or billions of parameters often exceed the memory limits of available GPUs and TPUs. Furthermore, distributed training is hampered by communication overhead, which scales directly with the number of parameters being synchronized across the network.

To address this, researchers introduced ALBERT (A Lite BERT). ALBERT significantly reduces the parameter count of the original BERT model through factorized embedding parameterization and cross-layer parameter sharing. By becoming more parameter-efficient, ALBERT can scale to much larger "hidden" sizes, ultimately setting new state-of-the-art records on major NLP benchmarks while remaining easier to fit into memory.

Core Innovations

The authors introduce three main techniques that distinguish ALBERT from the original BERT architecture:

1. Factorized Embedding Parameterization

In standard BERT, the WordPiece embedding size ($E$) is tied directly to the hidden layer size ($H$). ALBERT decouples them. By projecting the large vocabulary into a lower-dimensional space ($E$) first, and then projecting that into the hidden space ($H$), the model reduces embedding parameters from $O(V \times H)$ to $O(V \times E + E \times H)$. This is a crucial optimization because the hidden size $H$ needs to be large to capture complex context, but the context-independent embedding size $E$ does not.

2. Cross-Layer Parameter Sharing

Instead of each Transformer layer having its own unique set of weights, ALBERT shares all parameters across all layers. This prevents the parameter count from growing linearly with the depth of the network, drastically reducing the model's memory footprint.

Table comparing BERT and ALBERT architectural configurations.

3. Sentence Order Prediction (SOP) Loss

The original BERT used a Next Sentence Prediction (NSP) task during pre-training. However, many researchers found NSP ineffective because it conflated topic prediction with coherence prediction—and since topic prediction is relatively easy, the model didn't effectively learn discourse coherence. ALBERT replaces NSP with Sentence Order Prediction (SOP). SOP uses two consecutive segments from the same document as positive examples, and the exact same segments in reverse order as negative examples. This forces the model to learn finer-grained distinctions about logical flow and coherence.

Key Insights

  • Parameter Efficiency $\neq$ Computational Efficiency: While ALBERT-xxlarge has fewer parameters than BERT-large, it is actually more computationally expensive. It features a much larger hidden size ($H=4096$) and still performs the same number of operations per layer. The "Lite" in ALBERT refers to memory footprint and communication overhead, not necessarily raw FLOPs.
  • Hidden Size Matters Most: By saving parameters in the embeddings and across layers, ALBERT can afford a massive hidden size. ALBERT-xxlarge uses a hidden size four times larger than BERT-large, providing a massive boost in representational capacity.
  • Dropout is Optional at Scale: Surprisingly, the authors found that removing dropout from the largest ALBERT models actually improved performance on the masked language modeling (MLM) task. This suggests that the shared-parameter structure might act as its own form of regularization.

Key Results

Pre-trained on the same data as the original BERT (BookCorpus and English Wikipedia), ALBERT was evaluated on standard NLP benchmarks including GLUE, SQuAD (v1.1 and v2.0), and RACE.

Performance comparison of BERT and ALBERT models on downstream tasks.
  • State-of-the-Art Performance: ALBERT-xxlarge established new records across the board, achieving 89.4 on GLUE, 92.2 F1 on SQuAD 2.0, and 89.4% on RACE.
  • Massive Parameter Reduction: An ALBERT-large configuration has 18x fewer parameters than BERT-large (18M vs. 334M) while performing comparably, and it can be trained about 1.7x faster.
  • Scaling Success: The results demonstrate that ALBERT scales much better than BERT. While increasing the size of a standard BERT model eventually leads to diminishing returns or even performance degradation, ALBERT continues to improve as its hidden size expands.

Limitations and Future Work

Despite its successes, ALBERT has limitations. Because ALBERT-xxlarge is physically "large" in terms of its hidden dimension, it is slower during inference than smaller models. The authors suggest that future work should focus on speeding up the model through methods like sparse attention or block attention. Additionally, while parameter sharing reduces communication overhead, the actual computation required for a deep network with a 4096-wide hidden state remains very high. Finally, the authors hypothesize that there may be other dimensions of language representation beyond sentence order that could be captured by novel self-supervised losses in the future.

Summary updated

BibTeX
@inproceedings{lan2020albert,
  author = {Zhenzhong Lan and Mingda Chen and Sebastian Goodman and Kevin Gimpel and Piyush Sharma and Radu Soricut},
  title = {{ALBERT: A Lite BERT for Self-supervised Learning of Language Representations}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=BxZbbz6mW5},
}
Figure