Evaluating Protein Transfer Learning with TAPE

Roshan Rao, Nicholas Bhattacharya, Neil Thomas, Yan Duan, Xi Chen, John F. Canny, Pieter Abbeel, Yun S. Song

TL;DR

TAPE (Tasks Assessing Protein Embeddings) is a standardized benchmark designed to bring the rigor of NLP evaluation (like GLUE) to the world of protein biology. The researchers found that while self-supervised pretraining significantly boosts performance across diverse tasks, neural networks still struggle to outperform classical, alignment-based bioinformatics tools in structural prediction.

What Problem Does This Paper Address?

In the last decade, our ability to sequence proteins has exploded, but our ability to label them—determining their 3D structure or specific function—remains slow and expensive. This has created a massive gap between millions of unlabeled sequences and a tiny fraction of annotated ones.

While the machine learning community has turned to semi-supervised learning (pretraining on unlabeled data) to bridge this gap, the field has been fragmented. Researchers were using different datasets, inconsistent evaluation metrics, and "leaky" data splits that allowed models to memorize similarities rather than learn underlying biology. This paper introduces TAPE to provide a common ground for evaluating how well a model actually understands a protein.

Methods

The authors evaluated three representative deep learning architectures:

  • Transformer: A 12-layer model with 38 million parameters (similar to BERT).
  • LSTM: A bidirectional long short-term memory network.
  • Dilated ResNet: A convolutional model designed to capture long-range dependencies.

They trained these models using two primary self-supervised "language modeling" tasks:

  1. Next-token prediction: Predicting the next amino acid in a sequence.
  2. Masked-token prediction: Predicting missing amino acids within a sequence (similar to BERT’s training).

These were compared against two baselines: simple one-hot encoding and alignment-based features (classical bioinformatics methods that use evolutionary information from similar proteins).

Datasets and The TAPE Benchmark

For pretraining, the authors used Pfam, a database containing roughly 31 million protein domains.

To evaluate the models, they introduced the TAPE Benchmark, consisting of five supervised downstream tasks chosen to cover different aspects of protein biology:

Visual representation of three TAPE benchmark tasks: Secondary Structure, Contact Prediction, and Remote Homology.
  1. Secondary Structure (SS): Predicting local structural elements (helices, sheets).
  2. Contact Prediction: Predicting which amino acids are physically close in 3D space.
  3. Remote Homology: Identifying distantly related proteins that share the same "fold."
  4. Fluorescence: Predicting the brightness of a protein (a proxy for function).
  5. Stability: Predicting how well a protein maintains its shape under stress.

Crucially, the authors curated "biologically relevant" data splits (e.g., filtering by 25% sequence identity) to ensure models are tested on their ability to generalize to entirely new protein families.

Key Insights and Ideas

  • Pretraining is a "Rising Tide": Self-supervised pretraining improved performance for almost every model on every task, sometimes more than doubling the score compared to training from scratch.
  • The "Alignment Gap": In structural tasks (Secondary Structure and Contact Prediction), classical alignment-based methods still beat the best neural models. This suggests that current "language-style" pretraining doesn't yet capture the physical constraints of protein folding as well as traditional evolutionary search.
  • No Universal Architecture: There was no clear winner among the models. The Transformer excelled at protein engineering tasks (Fluorescence/Stability), while the LSTM was superior for detecting Remote Homology.
  • Generalization is Hard: The drop in performance when moving from "random" splits to "held-out family" splits highlights how easily models can "cheat" by memorizing evolutionary cousins rather than learning fundamental biological principles.

Key Results

  • Remote Homology: This was a major win for deep learning. The pretrained LSTM achieved 0.26 accuracy, vastly outperforming the alignment baseline of 0.09.
  • Fluorescence: Pretraining provided a massive boost. The Transformer went from a Spearman’s $\rho$ of 0.22 (no pretrain) to 0.68 (with pretrain).
  • Structural Tasks: The alignment-based baseline achieved 0.80 accuracy on Secondary Structure, while the best neural model (pretrained LSTM) only reached 0.75.

Limitations and Future Work

The authors acknowledge that while self-supervision is promising, we haven't had a "BERT moment" for proteins yet where neural models strictly dominate classical methods across the board.

Future work needs to focus on:

  • Innovative Architectures: Designing models that better incorporate the 3D inductive biases of proteins.
  • Better Pretraining Tasks: Moving beyond simple token prediction to tasks that might better capture the "signal" in biological sequences.
  • Closing the Gap: Finding ways to combine the strengths of alignment-based evolutionary information with the flexibility of deep learning.

Summary updated

BibTeX
@inproceedings{rao2019evaluating,
  author = {Roshan Rao and Nicholas Bhattacharya and Neil Thomas and Yan Duan and Xi Chen and John F. Canny and Pieter Abbeel and Yun S. Song},
  title = {{Evaluating Protein Transfer Learning with TAPE}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=x99soIJbT6O},
}
Figure