Notes

ALBERT

Pre-training a large encoder is expensive, and most of that cost sits in sheer parameter count rather than in anything clever. ALBERT — A Lite BERT — is Google Research's answer: keep the BERT architecture and its training recipe, but share and shrink the parameters so a far smaller model can be trained just as deep.

The two reductions
ALBERT changes where the weights are spent:

  • Factorised embeddings: the vocabulary embedding is projected through a small intermediate size instead of matching the hidden width directly, so a wide hidden state no longer forces a huge embedding matrix.
  • Cross-layer parameter sharing: every transformer layer reuses the same weights, cutting parameter count by an order of magnitude without cutting depth.

A harder second objective
ALBERT keeps masked language modeling but replaces BERT's next-sentence prediction with sentence-order prediction: both segments come from the same document, and the model must decide whether they are in the original order. Next-sentence prediction could be solved by spotting a topic mismatch; sentence-order prediction cannot, so it forces the model to learn discourse coherence. On GLUE and SQuAD the result matched or beat BERT-large with roughly 18 million parameters against 334 million.

What you trade
Fewer parameters mean a smaller checkpoint and less memory, not a faster model — shared weights still have to be applied at every layer, so inference cost tracks depth as before. ALBERT is the right pick when storage or pre-training budget binds rather than latency, and albert-base-v2 is a drop-in encoder in Hugging Face Transformers.

ALBERT is a parameter-efficient variant of BERT that factorises the token embedding matrix and shares weights across all transformer layers, cutting parameter count by roughly an order of magnitude at equal depth. It also replaces next-sentence prediction with sentence-order prediction, a harder objective aimed at discourse coherence. It matters where checkpoint size and pre-training cost bind rather than latency: comparable GLUE and SQuAD accuracy from a far smaller model.

Imagine a textbook that reprints the same reference table at the start of every chapter. Print it once and point back to it each time, and the book gets far thinner while saying exactly the same thing.

ALBERT does that to a language model. It is a slimmed-down version of BERT, the model that taught software to read a word with both sides of the sentence in view, and it reaches similar comprehension scores while storing a small fraction of the internal settings. That makes a capable reader cheap enough to train and easy to store — which matters a great deal when the full-size version will not fit your budget or your hardware.