TAPE transformer/LSTM baselines
A protein sequence encoder pretrained on Pfam as a baseline for the TAPE benchmark.
Molecules, proteins and genomics · 63 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
- 44.1M
- Operations
- 63
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2019
- Cited by
- 332 (as of 29 October 2026)
- Authors
- Roshan Rao, Nicholas Bhattacharya, Neil Thomas and others
- Source
- GitHub: songlab-cal/tape
- 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 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
- m20733
- Graph hash
- be3e135d3a4abb7a09924c39bf997a60dcd06641989399e3acfcb5d531642f63
- Skeleton hash
- 8492722be7da1381495085732216d80874feb745f02ce8fada7ef5dbb07d37ae
- Architecture hash
- f2ffc1bfd19d03b6e69572595c5c01251a987e40a830a97ffefc157ac68840b4
- Diagram SHA-256
- 238f86ac24ccf3ae772a85e5988a62adf0bce5cbe80402952a3d661015f50cd1
- 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 is the TAPE LSTM: two three-layer LSTMs with 1024 hidden units for the forward and backward language models, with their outputs concatenated in the final layer.
TAPE (Tasks Assessing Protein Embeddings) is a benchmark of five biologically relevant semi-supervised learning tasks for models of protein sequences. To benchmark it, the paper implements three architectures: an LSTM, a Transformer and a dilated residual network.
The TAPE Transformer has 12 layers, a hidden size of 512 units and 8 attention heads, which the paper reports as a 38M-parameter model. The TAPE LSTM is two three-layer LSTMs with 1024 hidden units, one for the forward and one for the backward language model, whose outputs are concatenated in the final layer. The paper says the hyperparameters of the other models were chosen to approximately match the number of parameters in the Transformer.
Both models are pretrained on Pfam, a database of thirty-one million protein domains. The Transformer is trained with masked-token prediction and the LSTM with next-token prediction. The paper finds that self-supervised pretraining is helpful for almost all models on all tasks. It also reports that in several cases the learned features still lag behind features extracted by non-neural techniques.
Key idea. The paper introduces TAPE, five protein-biology tasks with fixed splits, and benchmarks LSTM, Transformer and ResNet protein models pretrained with self-supervision on them.
- tape
- tasks assessing protein embeddings
- tape transformer
- tape lstm
- tape_proteins
- protein language model
- protein embeddings
- protein transfer learning
- pfam
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{rao2019evaluatingproteintransferlearning,
title={Evaluating Protein Transfer Learning with TAPE},
author={Roshan Rao and Nicholas Bhattacharya and Neil Thomas and Yan Duan and Xi Chen and John Canny and Pieter Abbeel and Yun S. Song},
year={2019},
eprint={1906.08230},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1906.08230},
}