MSA Transformer
A protein language model that reads a multiple sequence alignment with interleaved row and column attention.
Molecules, proteins and genomics · 522 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.
At a glance
- Parameters
- 115.6M
- Operations
- 522
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2021 (PMLR 139)
- Paper
- MSA Transformer
- Cited by
- 350 (as of 22 October 2026)
- Authors
- Roshan Rao, Jason Liu, Robert Verkuil and others
- Source
- GitHub: facebookresearch/esm
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m1686
- Graph hash
- dd37eb3d28bb0a4acc71841f414d59bb1586327d29ba63a812b10d832c70c177
- Skeleton hash
- 518ad607ede1f47553f2833882c268718f0d2bc92f772a586fe580dd9752a350
- Architecture hash
- 3647ffa2948c86d3a85459870cb15744f0e66706bc247e1876d36d3231b9ea16
- Diagram SHA-256
- b299303dce46a9566c798acc14581536a4de595b4aef9c6954de05a61a993e22
- 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
MSA Transformer is a protein language model that takes a set of sequences as input, in the form of a multiple sequence alignment (MSA), rather than one sequence at a time. The paper presents this as a combination of two approaches. Protein language models had been trained to perform inference from individual sequences, while the long-standing approach in computational biology fits a separate model to each family of evolutionarily related sequences.
The model interleaves row and column attention across the input sequences and is trained with a variant of the masked language modeling objective across many protein families. In the ESM repository, contact prediction with this model uses its tied row self-attention maps. The paper reports that the model surpassed the unsupervised structure learning methods of its time by a wide margin, with far greater parameter efficiency than earlier protein language models.
The ESM repository lists two releases, ESM-MSA-1 and ESM-MSA-1b, each with 12 layers and an embedding dimension of 768. ESM-MSA-1b carries a minor fix in the row positional embeddings and is described there as usable for extracting embeddings from an MSA.
Key idea. MSA Transformer is a protein language model that takes a multiple sequence alignment as input and interleaves row and column attention across its sequences.
- msa transformer
- esm-msa-1b
- esm-msa-1
- protein language model
- multiple sequence alignment
- msa
- contact prediction
- protein structure
- esm
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Rao_2021, title={MSA Transformer}, url={http://dx.doi.org/10.1101/2021.02.12.430858}, DOI={10.1101/2021.02.12.430858}, publisher={openRxiv}, author={Rao, Roshan and Liu, Jason and Verkuil, Robert and Meier, Joshua and Canny, John F. and Abbeel, Pieter and Sercu, Tom and Rives, Alexander}, year={2021}, month=Feb }