Stability Oracle: A Structure-Based Graph-Transformer for Identifying Stabilizing Mutations

Daniel J. Diaz, Chengyue Gong, Jeffrey Ouyang-Zhang, James M. Loy, J.m. Wells, David Yang, Andrew D. Ellington, Alex Dimakis, Adam R. KlivansbioRxiv 2023

Abstract

Stabilizing proteins is a fundamental challenge in protein engineering and a prerequisite for developing industrial and pharmaceutical biotechnologies. We present Stability Oracle, a structure-based graph-transformer framework that achieves state-of-the-art performance in predicting the effect of point mutations on thermodynamic stability ($\Delta\Delta G$). Stability Oracle excels at identifying rare stabilizing mutations by leveraging several innovations: self-supervised pretraining on over 2M masked microenvironments and a novel data augmentation technique called Thermodynamic Permutations (TP). TP expands a curated 120K mutation dataset into over 2M thermodynamically valid measurements, balancing all 380 mutation types for the first time. Notably, the model does not require mutant structures, using amino acid structural embeddings instead, which accelerates inference to ~50ms per site. Benchmarked on the T2837 test set, Stability Oracle correctly identifies 48% of stabilizing mutations, with 74% of its stabilizing predictions being accurate. Despite being 548 times smaller than sequence-based models like ESM2, Stability Oracle demonstrates the superior efficiency and accuracy of learning directly from protein structures.

Introduction

In protein engineering, stability is often a prerequisite for function. Whether designing industrial enzymes or pharmaceutical antibodies, proteins must remain folded under various stressors. However, predicting the change in thermodynamic stability ($\Delta\Delta G$) after a mutation is notoriously difficult due to data scarcity, inherent biases in experimental datasets (where most mutations are destabilizing), and the high computational cost of modeling mutant structures.

Stability Oracle addresses these challenges by utilizing a lightweight graph-transformer architecture that operates on local "microenvironments" and employs a novel thermodynamic data augmentation strategy to surface rare stabilizing "gems" in the mutational landscape.

Architectural Design

Stability Oracle utilizes a graph-transformer architecture (MutComputeXGT) where individual atoms are treated as tokens. Pairwise distances between atoms are used to inject structural bias directly into the attention mechanism. The model focuses on the "microenvironment"—the local chemistry within 8Å of the mutation site—rather than the entire protein structure.

Crucially, the model does not require a predicted structure for the mutant. It represents the "from" and "to" amino acids using structural embeddings learned during a self-supervised pretraining phase. This design allows for rapid Deep Mutational Scanning (DMS), predicting the stability of all 20 possible amino acids at a specific site in just ~50ms.

The Stability Oracle architecture featuring (a) the classification head for pretraining on masked microenvironments and (b) the regression head for ΔΔG prediction.

Overcoming Bias with Thermodynamic Permutations

A major hurdle in stability prediction is the "Alanine bias," where most experimental data comes from mutating residues to alanine. To overcome this, the authors introduced Thermodynamic Permutations (TP). Based on the laws of thermodynamics, if the stability relationship between Amino Acid A vs. B and A vs. C is known, the relationship between B and C can be mathematically derived.

This technique allowed the expansion of the 120K-mutation cDNA display dataset into over 2 million valid data points. As shown in the heatmaps below, TP successfully balances the distribution of all 380 possible mutation types, enabling the model to learn the nuances of complex amino acid swaps beyond simple alanine scans.

Impact of Thermodynamic Permutations (TP) on dataset balance. (a) Heatmaps show how TP fills in missing mutation types across different datasets. (b) Density plots illustrate the shift toward a more balanced ΔΔG distribution.

Key Results and Performance

Stability Oracle was rigorously tested on the T2837 test set, which aggregates common benchmarks (SSym, S669, p53, and Myoglobin) while strictly removing proteins with more than 30% sequence similarity to the training data to prevent data leakage.

  • High Precision for Engineering: When the model predicts a mutation is stabilizing ($\Delta\Delta G < -0.5$ kcal/mol), it is correct 74% of the time. This is a significant improvement over previous state-of-the-art tools.
  • Efficiency and Scale: Despite being 548 times smaller in parameters than sequence-based models like ESM2 (Prostata-IFML), Stability Oracle consistently outperformed them. This highlights that structural context is a much more efficient "teacher" for stability than raw sequence data.
  • Thermodynamic Reversibility: By design, the model subtracts the "from" embedding from the "to" embedding, forcing it to respect the physical reality that a mutation from A $\rightarrow$ B must have the exact opposite $\Delta\Delta G$ of B $\rightarrow$ A.

Conclusion

Stability Oracle represents a shift toward efficient, structure-aware models for protein engineering. By combining graph-transformers with thermodynamic principles, it provides a robust tool for identifying stabilizing mutations using only wild-type structures. Future work will aim to extend this framework to protein-protein interfaces and the synergistic effects of higher-order multiple mutations.

Summary updated

BibTeX
@misc{diaz2023stability,
  author = {Daniel J. Diaz and Chengyue Gong and Jeffrey Ouyang-Zhang and James M. Loy and J.M. Wells and David Yang and Andrew D. Ellington and Alex Dimakis and Adam R. Klivans},
  title = {{Stability Oracle: A Structure-Based Graph-Transformer for Identifying Stabilizing Mutations}},
  year = {2023},
  doi = {10.1101/2023.05.15.540857},
  howpublished = {bioRxiv},
}
Figure