Contextual protein and antibody encodings from equivariant graph transformers

Sai Pooja Mahajan, Jeffrey A. Ruffolo, Jeffrey J. GraybioRxiv 2023 · DOI

TL;DR

This paper introduces a novel deep learning approach that leverages both protein sequence and structure to predict amino acid identities, demonstrating that structural context alone can often determine residue identity. This method, inspired by masked language modeling, shows promise for designing novel proteins and antibodies with native-like properties and binding energies.

What Problem Does This Paper Address?

Proteins are complex molecules where the identity of each amino acid is influenced by its structural, evolutionary, and functional context. Accurately predicting or designing protein sequences, especially for specialized applications like antibody engineering, is challenging. Existing models often struggle with data-sparse contexts like antibody-antigen interfaces. This work aims to develop a unified framework that can learn from both general protein structures and specific biological contexts, improving sequence prediction and enabling de novo design.

Methods

The authors adapt Masked Language Modeling (MLM), a technique successful in natural language processing, to protein sequences and structures. Their model, an equivariant graph transformer (E(n)Transformer), takes both 3D structural information and sequence context as input. During training, a portion of amino acid identities are masked, and the model learns to predict them based on the surrounding unmasked residues and their structural environment. They explore different pretraining and fine-tuning strategies, moving from general protein contexts to more specific interfaces (protein-protein and antibody-antigen). For sequence generation, they use a sampling strategy with temperature to explore sequence space, and for interface design, they employ Rosetta for binding energy calculations.

Datasets

  • ProteinTS50: A set of 50 proteins for general protein sequence recovery.
  • PPI300: A dataset of protein-protein interfaces, derived from MaSIF-search, excluding antibody-antigen pairs.
  • AbAg70: A curated dataset of antibody-antigen complexes.
  • SAbDAb database: Used for antibody structures.
  • AlphaFold2-generated antibody structures: Used to augment antibody datasets.
  • Trastuzumab-HER2 CDR H3 set: Used for antibody-antigen complex analysis.

Key Insights and Ideas

  • Structure speaks volumes: The model demonstrates that a significant portion of amino acid identity can be predicted from structural context alone, even without knowing the sequence of neighboring residues. This highlights the strong correlation between protein structure and sequence.
  • Transfer learning is key: Pretraining on large, general protein datasets significantly improves performance on specialized, data-limited tasks like antibody-antigen interface prediction.
  • Context matters for design: While general protein models can predict sequences, fine-tuning on specific contexts (like antibody-antigen interfaces) is crucial for capturing nuanced biological patterns and designing functional molecules.
  • Sampling temperature controls exploration: The temperature parameter in sequence sampling allows the model to explore either the immediate evolutionary neighborhood of a wildtype sequence or to generate more diverse, potentially novel sequences.

Key Results

  • The model achieved 37.4% native sequence recovery even when inferring solely from structure (100% masking).
  • Pretraining on proteins and fine-tuning on antibody-antigen complexes (ProtAbAgEnT) showed the most significant improvement in sequence recovery for antibody-antigen interfaces compared to models trained only on proteins or antibodies.
  • Generated protein sequences folded into target structures with high TM-scores, with 96% of sequences for the Mannose transporter retaining their fold.
  • Designed protein interfaces recapitulated native-like binding energies for a wide range of binding strengths, particularly for one-sided interface designs.
  • For antibody CDR H3 sequences, models trained on antibody datasets generated sequences with higher "naturalness" compared to protein-only models.

Limitations and Future Work

  • Data scarcity: The authors note that experimental antibody-antigen datasets are often insufficient for robust binding prediction, highlighting the need for transfer learning.
  • Full-interface design challenges: Full-interface designs, where both partners are masked, showed weaker binding energies than wildtype, suggesting that a sequence decoder might be needed to overcome this.
  • Future directions: The authors suggest exploring different model architectures, representations (coarse-grained to fine-grained), masking schemes, pretraining/fine-tuning strategies, and the use of pretrained or context-specific sequence decoders for sequence generation. They also emphasize the need for further work on understanding specific structural and sequence patterns in binding surfaces for de novo antibody design.

Summary updated

Abstract

The optimal residue identity at each position in a protein is determined by its structural, evolutionary, and functional context. We seek to learn the representation space of the optimal amino-acid residue in different structural contexts in proteins. Inspired by masked language modeling (MLM), our training aims to transduce learning of amino-acid labels from non-masked residues to masked residues in their structural environments and from general (e.g., a residue in a protein) to specific contexts (e.g., a residue at the interface of a protein or antibody complex). Our results on native sequence recovery and forward folding with AlphaFold2 suggest that the amino acid label for a protein residue may be determined from its structural context alone (i.e., without knowledge of the sequence labels of surrounding residues). We further find that the sequence space sampled from our masked models recapitulate the evolutionary sequence neighborhood of the wildtype sequence. Remarkably, the sequences conditioned on highly plastic structures recapitulate the conformational flexibility encoded in the structures. Furthermore, maximum-likelihood interfaces designed with masked models recapitulate wildtype binding energies for a wide range of protein interfaces and binding strengths. We also propose and compare fine-tuning strategies to train models for designing CDR loops of antibodies in the structural context of the antibody-antigen interface by leveraging structural databases for proteins, antibodies (synthetic and experimental) and protein-protein complexes. We show that pretraining on more general contexts improves native sequence recovery for antibody CDR loops, especially for the hypervariable CDR H3, while fine-tuning helps to preserve patterns observed in special contexts.
BibTeX
@misc{mahajan2023contextual,
  author = {Sai Pooja Mahajan and Jeffrey A. Ruffolo and Jeffrey J. Gray},
  title = {{Contextual protein and antibody encodings from equivariant graph transformers}},
  year = {2023},
  doi = {10.1101/2023.07.15.549154},
  howpublished = {bioRxiv},
}
Figure