
RXNMapper
Language291 ops767.6K params
A BERT-style text encoder that shares parameters across layers and factorizes its embeddings.
Language · 383 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}