All models

albert

A BERT-style text encoder that shares parameters across layers and factorizes its embeddings.

Language · 383 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (69 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
albert
Parameters
206.4M
Operations
383
Framework
PyTorch
Recurrent
Yes
Published
ICLR (arXiv 2019)
Cited by
8,487 (as of 25 November 2026)
Authors
Zhenzhong Lan, Mingda Chen, Sebastian Goodman and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3503
Graph hash
9a2a265b5c20e3bf8c4b2acee9961f7a0f159ad082d0ce8e8123db7a0749191e
Skeleton hash
9dbccf9c43aa107192a3f00a5e31c0f006138b44692d00a76ce62b0899554c01
Architecture hash
c4947cecabb5788926e8326d40b287339d727e1de767fdd169bc36081fd23ce8
Diagram SHA-256
ea554a3924f8e25a3ddec2796965aa5f67b97a012a179e1e649ffe75f9913623
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForMaskedLM.from_config()

What it is

About this model's family

ALBERT, short for A Lite BERT, is a redesign of BERT with significantly fewer parameters. The motivation is practical: larger pre-trained language models tend to do better on downstream tasks, but at some point GPU and TPU memory limits and longer training times make further growth hard.

ALBERT uses two techniques to reduce parameters. Factorized embedding parameterization decomposes the large vocabulary embedding matrix into two small matrices, which separates the size of the hidden layers from the size of the vocabulary embedding. Cross-layer parameter sharing, by default, shares all parameters across layers, so the parameter count does not grow with the depth of the network. ALBERT is also trained with a sentence-order prediction loss that focuses on inter-sentence coherence: the negative examples are two consecutive segments with their order swapped.

The paper reports that ALBERT-large has about 18x fewer parameters than BERT-large, 18M versus 334M. It also reports that an ALBERT configuration similar to BERT-large can be trained about 1.7x faster.

Key idea. ALBERT reduces the parameter count of BERT with factorized embedding parameterization and cross-layer parameter sharing, and adds a sentence-order prediction loss for inter-sentence coherence.

  • albert
  • a lite bert
  • lite bert
  • factorized embedding parameterization
  • cross-layer parameter sharing
  • sentence-order prediction
  • masked language model
  • language representation
  • rxnmapper
  • atom mapping

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lan2020albertlitebertselfsupervised,
      title={ALBERT: A Lite BERT for Self-supervised Learning of Language Representations}, 
      author={Zhenzhong Lan and Mingda Chen and Sebastian Goodman and Kevin Gimpel and Piyush Sharma and Radu Soricut},
      year={2020},
      eprint={1909.11942},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/1909.11942}, 
}