All models

RXNMapper

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

Language · 291 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 (55 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
767.6K
Operations
291
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
m13906
Graph hash
613fb8eac063c614d3cf490dce1a4fc77789c4e7f48f598883d2552dc3500cce
Skeleton hash
a15bd2197c9880b3ebed379c53827557fa5b2c1a6e0605f62f417b6c24d980e9
Architecture hash
9d143abe67d0e6646ccfdc3265c282af720c544deda88d7769423de5ad063481
Diagram SHA-256
bad052edc76dcd77ca6bf891ab6c3bfdfd486fb1769def3bfb81f5eda8a681ee
TorchLens version
2.36.0
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.AlbertModel()

What it is

This model is the ALBERT encoder used by RXNMapper, a tool for atom mapping on reaction SMILES; the atom-mapping information was learned by an ALBERT model trained in an unsupervised fashion on a large dataset of chemical reactions.

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}, 
}