Prot2Text: Multimodal Protein's Function Generation with GNNs and Transformers

Hadi Abdine, Michail Chatzianastasis, Costas Bouyioukos, Michalis Vazirgiannis

Abstract

Predicting protein function is traditionally framed as a multi-label classification task using predefined ontologies. However, these labels often fail to capture the intricate mechanisms and conditional nuances of biological activity. We present Prot2Text, a multimodal framework that generates detailed natural language descriptions of protein functions. By integrating 3D structural information via Relational Graph Convolutional Networks (RGCN) and sequence data through pretrained protein language models (ESM2), Prot2Text leverages a GPT-2 decoder to translate biological data into human-readable text. Our results demonstrate that Prot2Text significantly outperforms unimodal baselines, achieving a BLEU score of 35.11 and a BERTScore of 84.30 on a curated SwissProt dataset.

Introduction

Understanding protein function is fundamental to biology and drug discovery. Most computational approaches rely on Gene Ontology (GO) terms, which simplify complex biological roles into discrete tags. This "lossy" representation ignores the specific contexts in which proteins operate. Prot2Text addresses this by treating function prediction as a translation task: converting the "language" of protein structure and sequence into natural language.

To support this task, a comprehensive multimodal dataset was constructed from SwissProt, comprising 256,690 proteins. Each entry includes an amino acid sequence, a 3D structure predicted by AlphaFold, and a curated textual description. Data partitioning was performed using the CD-HIT algorithm at a 40% similarity threshold to ensure robust evaluation of generalization.

Methods

Prot2Text employs an encoder-decoder architecture designed for multimodal fusion.

Prot2Text Architecture: A multimodal encoder-decoder framework combining graph and sequence data.
  1. Graph Encoding (Structure): Proteins are represented as heterogeneous graphs. A Relational Graph Convolutional Network (RGCN) processes sequential, spatial, and hydrogen bond edges to capture local and long-range structural interactions.
  2. Sequence Encoding: The model utilizes ESM2-35M, a pretrained protein language model, to extract evolutionary and biochemical features from raw amino acid sequences.
  3. Multimodal Fusion: An iterative Fusion Block performs element-wise addition and projection of sequence and graph representations. This process is repeated four times to create a deeply integrated "fused" representation.
  4. Text Generation: The fused representation is fed into a modified GPT-2 decoder via cross-attention, trained using a Causal Language Modeling (CLM) objective.

Results and Key Insights

Prot2Text-Base achieved superior performance across all standard NLP metrics compared to unimodal and vanilla Transformer baselines.

Quantitative performance comparison of Prot2Text against various baselines.

Key findings from the experimental evaluation include:

  • Structural Importance: The unimodal RGCN outperformed a vanilla sequence-based Transformer by over 5 BLEU points, confirming that 3D geometry provides critical functional signals that sequence alone cannot fully capture.
  • Fusion Efficacy: Iterative fusion outperformed simple concatenation, allowing the model to contextually enrich amino acids with their structural environments.
  • Pretraining Benefits: Integrating the pretrained ESM2 model provided a massive 16-point BLEU boost over training a sequence encoder from scratch, highlighting the value of learned "evolutionary grammar."
  • Qualitative Success: Case studies demonstrated the model's ability to reconstruct technical details, such as specific complex involvements (e.g., ESCRT-III) and cellular roles, even for highly specialized proteins.

Conclusion

Prot2Text demonstrates the power of multimodal AI in biological annotation. While the sequence and text components benefit from extensive pretraining, the structural GNN is currently trained from scratch, representing a key area for future improvement. Future work will explore self-supervised pretraining for the structural encoder and the application of this framework to de novo protein design and drug discovery, where generating a description of a newly designed protein could be invaluable.

Summary updated

BibTeX
@inproceedings{abdine2024prot,
  author = {Hadi Abdine and Michail Chatzianastasis and Costas Bouyioukos and Michalis Vazirgiannis},
  title = {{Prot2Text: Multimodal Protein's Function Generation with GNNs and Transformers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.28948},
}
Figure