All models

esm

A BERT-style encoder trained on protein sequences with masked language modeling.

Molecules, proteins and genomics · 343 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 (31 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
ESM-2
Parameters
7.5M
Operations
343
Framework
PyTorch
Recurrent
No
Published
2022, Science
Cited by
5,562 (as of 29 October 2026)
Authors
Zeming Lin, Halil Akin, Roshan Rao and others
License
MIT
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
m4730
Graph hash
e17a9d7eda0378e6e32753bd26d1c98df47b44bce60d8f9e1dcb88ac45ffa416
Skeleton hash
f1919dc00d68e5d23bea2925c81412701ca49bc60c19ac6e7ba2ae06cadc8118
Architecture hash
dfb172a82e5de1c18ff74e54960177bbc087b6672a85cecca540852ee8e72b95
Diagram SHA-256
2ecc775d7fcf9c6901d1a9118223a20bc77f3c7b8788787bfc053189de8897f3
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

What it is

This model includes the masked language modeling head, which predicts the identity of amino acids from their context in the rest of the sequence.

About this model's family

ESM-2 is a family of Transformer protein language models, which the paper trains at scales from 8 million up to 15 billion parameters. The models are trained with masked language modeling: they predict the identity of randomly selected amino acids in a protein sequence from their context in the rest of the sequence.

The architecture is a BERT-style encoder-only Transformer with modifications. The number of layers, the number of attention heads and the hidden sizes change with model scale. Where the earlier ESM-1b used a learned positional encoding, ESM-2 uses Rotary Position Embedding so that the model can extrapolate beyond the context window it was trained on.

The paper's central finding is that as the language models are scaled they learn information that enables prediction of a protein's three-dimensional structure at the resolution of individual atoms. That finding is the basis of ESMFold, a single-sequence structure predictor built by training a folding head for ESM-2. On unsupervised contact prediction, the paper reports that the 150M parameter ESM-2 model is comparable to the 650M parameter ESM-1b model.

Key idea. The paper shows that protein language models, scaled up to 15B parameters, learn enough about structure to predict it at atomic resolution directly from a single sequence.

  • ESM-2
  • ESM
  • ESM-1b
  • protein language model
  • evolutionary scale modeling
  • protein structure prediction
  • masked language modeling
  • protein embeddings

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

Cite the paper

@article{Lin_2022, title={Evolutionary-scale prediction of atomic level protein structure with a language model}, url={http://dx.doi.org/10.1101/2022.07.20.500902}, DOI={10.1101/2022.07.20.500902}, publisher={openRxiv}, author={Lin, Zeming and Akin, Halil and Rao, Roshan and Hie, Brian and Zhu, Zhongkai and Lu, Wenting and Smetanin, Nikita and Verkuil, Robert and Kabeli, Ori and Shmueli, Yaniv and dos Santos Costa, Allan and Fazel-Zarandi, Maryam and Sercu, Tom and Candido, Salvatore and Rives, Alexander}, year={2022}, month=July }