All models

ProGen2 small

An autoregressive transformer that models protein sequences by predicting the next amino acid token.

Molecules, proteins and genomics · 189 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 (26 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
ProGen2
Parameters
3.3M
Operations
189
Framework
PyTorch
Recurrent
No
Published
Cell Systems (arXiv 2022)
Cited by
480 (as of 29 October 2026)
Authors
Erik Nijkamp, Jeffrey Ruffolo, Eli N. Weinstein and others
License
BSD-3-Clause
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
m2276
Graph hash
95b3064a5865aaa37317c922d7f07a6e8f21c0887e58851ff127a8cd8f193090
Skeleton hash
131858e1136824276dd5335d546019daa26eeacb888d0b14121d044f345e5530
Architecture hash
4942dddb6b7623bccc9d92ecf6d05adef3521dd3f9ba44cce88ca0675a00d416
Diagram SHA-256
bb0a5cd0068087a236f2037a8b44ce910ac7d02e327d8ab9e683594c5644f5d8
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.AutoModelForCausalLM.from_config()

What it is

ProGen2 is a suite of protein language models: each one reads a protein as a sequence of amino acids and learns to predict the next one. The authors treat raw amino acid sequences as the observed data and cast conditional protein generation as next-token prediction. The paper trains models ranging from 151M to 6.4B parameters on training sets that together hold about a billion protein sequences.

The paper describes the architecture as a standard transformer decoder with left-to-right causal masking and rotary positional encodings. In its forward pass the self-attention and feed-forward computations of a layer run in parallel instead of one after the other. Compared with the language models that informed its hyper-parameters, the paper uses fewer layers and a small number of wide attention heads, chosen to make better use of the training hardware.

The authors report that the models capture the distribution of observed evolutionary sequences, generate novel viable sequences and predict protein fitness without additional finetuning. Their conclusion concerns data more than size: they argue that growing emphasis should go to the data distribution a protein sequence model is given. The standard ProGen2 models are pretrained on a mixture of the Uniref90 and BFD30 databases.

Key idea. ProGen2 scales autoregressive protein language models up to 6.4B parameters and trains them on over a billion protein sequences from genomic, metagenomic and immune repertoire databases.

  • ProGen2
  • ProGen
  • ProGen2-small
  • protein language model
  • protein sequence generation
  • protein design
  • protein fitness prediction
  • autoregressive transformer

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

Cite the paper

@misc{nijkamp2022progen2exploringboundariesprotein,
      title={ProGen2: Exploring the Boundaries of Protein Language Models}, 
      author={Erik Nijkamp and Jeffrey Ruffolo and Eli N. Weinstein and Nikhil Naik and Ali Madani},
      year={2022},
      eprint={2206.13517},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2206.13517}, 
}