Structure-informed protein language models are robust predictors for variant effects

Yuanfei Sun, Yang Shen

Predicting how a single mutation—a "variant"—might change a protein's function is a holy grail in genomics and drug discovery. While Protein Language Models (pLMs) have recently revolutionized this field by learning the "grammar" of evolution from millions of sequences, they often lack a fundamental understanding of a protein's physical 3D shape.

A new paper from researchers at Texas A&M University introduces SI-pLMs (Structure-Informed Protein Language Models), a framework that teaches models about 3D structure during training to make them more robust and accurate, even when that structural data isn't available during actual use.

TL;DR

Researchers have developed a way to "inject" structural knowledge into protein language models using a technique called cross-modality denoising. By forcing the model to predict a protein's 3D features from its sequence during training, they created a predictor that outperforms models 13 times its size, particularly in cases where evolutionary data is sparse or models are prone to overfitting.

What Problem Does This Paper Address?

Predicting variant effects is traditionally done in two ways: supervised learning (which requires expensive experimental labels) or unsupervised/zero-shot learning (which uses pLMs to see how "natural" a mutation looks compared to evolution).

However, pLMs have a "blind spot." They treat proteins as 1D strings of letters. While they implicitly learn some structure, they often overfit to specific protein families during fine-tuning, losing their general "biological common sense." Furthermore, many proteins are "orphans" with few known relatives in evolutionary databases, making it hard for sequence-only models to make accurate predictions. The authors sought a way to use the 3D "physics" of proteins to regularize these models and improve their "zero-shot" accuracy.

Methods

The core innovation is Cross-Modal Masked Learning (CMPL).

  1. The Architecture: The team started with a BERT-style protein language model. In standard training, you hide (mask) some amino acids and ask the model to guess them.
  2. The "Structure Injection": In SI-pLMs, the model is given a second task. While it tries to guess the missing amino acids, it must also predict three structural properties from the hidden sequence:
  3. Secondary Structure (SS): Is this part an alpha-helix or a beta-sheet?
  4. Relative Solvent Accessibility (RSA): Is this residue buried inside the protein or on the surface?
  5. Contact Maps: Which residues are touching each other in 3D space?
  6. The "Secret Sauce": During inference (when actually using the model to predict a mutation's effect), the structural decoders are discarded. The model only needs the sequence. The structural training acts as a "tutor" that leaves the model with a better internal representation of how sequences fold.

Datasets

  • Pre-training: The models were pre-trained on the Pfam database (RP15 and RP75 subsets), containing millions of protein domain sequences.
  • Structural Data: To provide the "ground truth" for the structural tasks, the authors used experimental structures from the Protein Data Bank (PDB) and high-quality predictions from the AlphaFold Protein Structure Database (AFDB).
  • Evaluation: The models were tested against 35 Deep Mutagenesis Scanning (DMS) datasets—benchmarks where every possible single-point mutation in a protein has been experimentally tested for fitness.

Key Insights and Ideas

  • Structure as a Regularizer: The most striking finding is that learning structure prevents the model from "memorizing" sequences. It acts as a constraint that keeps the model's predictions grounded in physical reality, mitigating the common problem of "over-finetuning."
  • The Tug-of-War: The authors identified a trade-off between "sequence awareness" and "structure awareness." By using a hyperparameter ($\lambda$), they can control how much structural context to inject, finding a "sweet spot" that maximizes prediction accuracy.
  • Better Latent Spaces: Using UMAP visualizations, the authors showed that SI-pLMs organize protein variants more logically in their internal "hidden" layers. Mutations that severely hurt the protein (low fitness) are more clearly separated from those that are harmless (high fitness) compared to sequence-only models.

Key Results

  • Punching Above Its Weight: The SI-pLM (with only 51 million parameters) outperformed much larger models, including ESM-1v (650 million parameters) and the alignment-based MSA Transformer (100 million parameters).
  • Robustness in the "Dark Matter": SI-pLMs showed significant gains in proteins with "low MSA depth"—cases where we don't have many evolutionary relatives to compare against.
  • Superior Ranking: On the DMS benchmark, SI-pLMs achieved the highest overall Spearman’s correlation ($\rho$) for ranking variant effects, proving that "structure-informed" features are more predictive of biological fitness than sequence alone.

Limitations and Future Work

  • Viral Gap: The study excluded viral proteins because structural data for them is extremely scarce and often highly variable, leaving a gap in our ability to predict mutations in rapidly evolving pathogens.
  • Model Scaling: While the 51M parameter model is efficient, the authors haven't yet explored if these structural "injections" provide diminishing returns when applied to "Gargantuan" models with billions of parameters.
  • Multi-site Mutations: The current evaluation focused heavily on single-site mutations; future work could explore how structural awareness helps in predicting the complex, synergistic effects of multiple simultaneous mutations.

Check out the code: The authors have made their data and scripts available on GitHub.

Summary updated

BibTeX
@inproceedings{sun2024structure,
  author = {Yuanfei Sun and Yang Shen},
  title = {{Structure-informed protein language models are robust predictors for variant effects}},
  booktitle = {Human},
  year = {2024},
  doi = {10.1007/s00439-024-02695-w},
}
Figure