Preprint
Large Language Models

ProtTrans: Toward Understanding the Language of Life Through Self-Supervised Learning

Ahmed Elnaggar(Technical University of Munich), Michael Heinzinger(Technical University of Munich), Christian Dallago(Technical University of Munich), Ghalia Rehawi(Technical University of Munich), Yu Wang, Llion Jones(Google (United States)), Tom Gibbs(Nvidia (United States)), T. Fehér(Nvidia (United States)), Christoph Angerer(Nvidia (United States)), Martin Steinegger(Seoul National University), Debsindhu Bhowmik(Oak Ridge National Laboratory), Burkhard Rost(Technical University of Munich)
July 7, 2021IEEE Transactions on Pattern Analysis and Machine Intelligence2,340 citations

2.3k

Citations

156

Influential Citations

IEEE Transactions on Pattern Analysis and Machine Intelligence

Venue

2021

Year

Abstract

Computational biology and bioinformatics provide vast data gold-mines from protein sequences, ideal for Language Models (LMs) taken from Natural Language Processing (NLP). These LMs reach for new prediction frontiers at low inference costs. Here, we trained two auto-regressive models (Transformer-XL, XLNet) and four auto-encoder models (BERT, Albert, Electra, T5) on data from UniRef and BFD containing up to 393 billion amino acids. The protein LMs (pLMs) were trained on the Summit supercomputer using 5616 GPUs and TPU Pod up-to 1024 cores. Dimensionality reduction revealed that the raw pLM-embeddings from unlabeled data captured some biophysical features of protein sequences. We validated the advantage of using the embeddings as exclusive input for several subsequent tasks: (1) a per-residue (per-token) prediction of protein secondary structure (3-state accuracy Q3=81%-87%); (2) per-protein (pooling) predictions of protein sub-cellular location (ten-state accuracy: Q10=81%) and membrane versus water-soluble (2-state accuracy Q2=91%). For secondary structure, the most informative embeddings (ProtT5) for the first time outperformed the state-of-the-art without multiple sequence alignments (MSAs) or evolutionary information thereby bypassing expensive database searches. Taken together, the results implied that pLMs learned some of the grammar of the language of life. All our models are available through https://github.com/agemagician/ProtTrans.

Analysis

Why This Paper Matters

ProtTrans represents a landmark in applying large language models to computational biology. By training on up to 393 billion amino acids—orders of magnitude larger than previous protein sequence datasets—the authors demonstrate that self-supervised learning can extract rich biophysical features directly from raw sequences. This is significant because traditional methods for protein structure and function prediction rely heavily on multiple sequence alignments (MSAs) and evolutionary information, which are computationally expensive and require large databases. ProtTrans shows that embeddings from models like ProtT5 can match or exceed those methods without any evolutionary input, drastically lowering the barrier for downstream applications.

Furthermore, the paper bridges NLP and biology by treating protein sequences as a language. The finding that raw embeddings capture properties like secondary structure and sub-cellular location suggests that the models have learned the "grammar of life"—a conceptual leap that opens avenues for generative protein design, mutation effect prediction, and drug discovery. The scale of training (using Summit supercomputer with 5616 GPUs and TPU Pods) also sets a new benchmark for computational resources in bioinformatics.

Technical Contributions

  • Model diversity: Trained both auto-regressive (Transformer-XL, XLNet) and auto-encoder (BERT, Albert, Electra, T5) architectures, enabling comparison of different self-supervised objectives for protein sequences.
  • Massive data scale: Used UniRef and BFD datasets totaling 393 billion amino acids, far exceeding prior work.
  • Dimensionality reduction analysis: Showed that raw embeddings from unlabeled data encode biophysical properties (e.g., hydrophobicity, charge) without any supervised fine-tuning.
  • State-of-the-art without MSAs: ProtT5 achieved Q3=81%-87% for secondary structure prediction, outperforming methods that rely on evolutionary information.
  • Open-source availability: All models released on GitHub for community use.

Results

  • Secondary structure (3-state): Q3=81%-87% (ProtT5 best).
  • Sub-cellular location (10-state): Q10=81%.
  • Membrane vs. water-soluble (2-state): Q2=91%.
  • First time a language model outperformed state-of-the-art without MSAs or evolutionary information.
  • Embeddings from unlabeled data alone captured biophysical features.

Significance

ProtTrans has broad implications for AI in biology. It demonstrates that large-scale self-supervised learning can replace expensive database searches, making protein prediction accessible to labs with limited computational resources. The success of Transformer-based models on protein sequences also reinforces the universality of attention mechanisms across different data modalities. This work paves the way for foundation models in biology, where a single pre-trained model can be fine-tuned for diverse tasks like function prediction, stability estimation, and protein design. The open release of models further accelerates research in drug discovery, synthetic biology, and personalized medicine.