Enhancing Protein Language Models with Structure-based Encoder and Pre-training

Zuobai Zhang, Minghao Xu, Vijil Chenthamarakshan, Aurélie C. Lozano, Payel Das, Jian Tang · OpenReview

Abstract

Protein language models (PLMs) pre-trained on large-scale protein sequence corpora have achieved impressive performance on various downstream protein understanding tasks. Despite the ability to implicitly capture inter-residue contact information, transformer-based PLMs cannot encode protein structures explicitly for better structure-aware protein representations. Besides, the power of pre-training on available protein structures has not been explored for improving these PLMs, though structures are important to determine functions. To tackle these limitations, in this work, we enhance the PLMs with structure-based encoder and pre-training. We first explore feasible model architectures to combine the advantages of a state-of-the-art PLM (i.e., ESM-1b1) and a state-of-the-art protein structure encoder (i.e., GearNet). We empirically verify the ESM-GearNet that connects two encoders in a series way as the most effective combination model. To further improve the effectiveness of ESM-GearNet, we pre-train it on massive unlabeled protein structures with contrastive learning, which aligns representations of co-occurring subsequences so as to capture their biological correlation. Extensive experiments on EC and GO protein function prediction benchmarks demonstrate the superiority of ESM-GearNet over previous PLMs and structure encoders, and clear performance gains are further achieved by structure-based pre-training upon ESM-GearNet.

Introduction

In the field of protein machine learning, two primary modalities dominate: sequence and structure. Sequence-based models, such as ESM-2, leverage massive datasets of amino acid sequences to capture evolutionary patterns. Conversely, structure-based models like GearNet utilize Graph Neural Networks (GNNs) to interpret the 3D geometry of proteins, which is critical for understanding biological function. However, these modalities are often treated in isolation. Sequence models lack explicit geometric awareness, while structure models are constrained by the relatively limited availability of high-resolution 3D structures. This research introduces ESM-GearNet, a framework designed to fuse these two "languages" and leverage massive structure databases like AlphaFold DB for pre-training.

Methodology

Fusion Architectures

The researchers investigated the optimal way to integrate a PLM (ESM-2) with structure encoders (GearNet, GVP, CDConv). Three architectural paradigms were evaluated:

  1. Serial Fusion: The PLM's output embeddings serve as initial node features for the structure encoder.
  2. Parallel Fusion: Both encoders operate independently, with their final representations concatenated.
  3. Cross Fusion: A multi-head attention mechanism facilitates bidirectional communication between sequence and structure encoders during the encoding process.
Comparison of (a) Serial, (b) Parallel, and (c) Cross Fusion strategies for integrating sequence and structure encoders.

Empirical results identified Serial Fusion as the most effective approach, suggesting that providing the structure encoder with a rich, evolutionarily-informed "alphabet" from the PLM significantly enhances geometric reasoning.

Pre-training Objectives

To further refine ESM-GearNet, the model was pre-trained on 365,000 structures from the AlphaFold Database. The pre-training utilized several self-supervised objectives designed to capture biological correlations across modalities:

  • Self-prediction: Tasks such as residue type, distance, and angle prediction.
  • Multiview Contrastive Learning: Aligning representations of different subsequences (crops) from the same protein.
  • SiamDiff: A diffusion-based denoising method for protein structures.
The pre-training framework encompasses self-prediction learning, multiview contrastive learning, and the SiamDiff diffusion model.

Downstream evaluation was conducted on benchmarks including Enzyme Commission (EC) for reaction catalysis, Gene Ontology (GO) for biological functions, Protein Structure Ranking (PSR), and Mutation Stability Prediction (MSP).

Key Insights and Results

Preventing Catastrophic Forgetting

A critical finding was the necessity of a differentiated learning rate. Fine-tuning the PLM at the same rate as the structure encoder led to "catastrophic forgetting" of the PLM's pre-trained evolutionary knowledge. Implementing a 0.1 learning rate ratio (tuning the PLM 10x slower) was essential to preserve performance and achieve synergy between the models.

Performance Benchmarks

ESM-GearNet established new state-of-the-art (SOTA) results across multiple tasks:

  • Enzyme Commission (EC): Achieved an $F_{max}$ of 0.897, outperforming the previous SOTA of 0.888.
  • Ablation Gains: ESM-GearNet (0.890) significantly outperformed the standalone GearNet (0.730), demonstrating the "force multiplier" effect of sequence information.
  • Structural Precision: The model also showed competitive performance on structure-heavy tasks like PSR and MSP, where traditional PLMs typically struggle.

Conclusion

ESM-GearNet successfully bridges the gap between sequence-based evolutionary intelligence and structure-based geometric precision. While the model excels in functional prediction, challenges remain in predicting Cellular Components (GO-CC), likely due to the influence of external environmental factors not captured in static structures. Future work will explore scaling to larger PLMs and incorporating environmental context.

Summary updated

BibTeX
@misc{zhang2023enhancing,
  author = {Zuobai Zhang and Minghao Xu and Vijil Chenthamarakshan and Aurélie C. Lozano and Payel Das and Jian Tang},
  title = {{Enhancing Protein Language Models with Structure-based Encoder and Pre-training}},
  year = {2023},
  eprint = {2303.06275},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.06275},
}
Figure