Learning to engineer protein flexibility

Petr Kouba, Joan Planas-Iglesias, Jiri Damborsky, Jiri Sedlar, Stanislav Mazurenko, Josef Sivic

Executive Summary

Researchers have developed Flexpert, a novel framework that advances protein design beyond static "snapshots" by incorporating molecular dynamics. By leveraging protein language models and fine-tuning inverse folding architectures, this tool can "steer" the design of new protein sequences toward specific flexibility profiles—a crucial step for engineering better enzymes and therapeutics.

Introduction

In the realm of computational protein design, the "Inverse Folding" problem—predicting an amino acid sequence that will fold into a specific 3D shape—has seen massive success with models like ProteinMPNN. However, these models traditionally treat proteins as static structures.

In reality, proteins are highly dynamic; they wiggle, bend, and breathe. This flexibility is essential for function: loops must move to allow substrates into an active site, and internal tunnels must expand to transport molecules. The primary challenge is that high-quality flexibility data is incredibly expensive to obtain. High-fidelity Molecular Dynamics (MD) simulations require weeks of GPU compute time, and experimental data (such as X-ray B-factors) is often distorted by the rigid environment of a crystal lattice. This paper aims to bridge the gap between static design and dynamic reality by learning to engineer protein flexibility.

Methodology

The authors introduce three main components under the Flexpert umbrella:

  1. Analysis of Ground Truth: The researchers compared various methods for quantifying flexibility, identifying Root Mean Square Fluctuation (RMSF) from MD simulations as the "gold standard." They found that Anisotropic Network Models (ANM)—a faster, physics-based "spring" model—serve as an excellent proxy when MD is unavailable.
  2. Flexpert-Seq & Flexpert-3D: These models act as flexibility predictors.
  3. Flexpert-Seq utilizes a pre-trained protein language model (ProtTrans) and LoRA (Low-Rank Adaptation) to predict flexibility directly from the amino acid sequence.
  4. Flexpert-3D incorporates structural information by using a CNN adaptor to process ANM data, effectively learning to "correct" the simpler physics model to match expensive MD results.
Architecture of Flexpert-3D and Flexpert-Seq
  1. Flexpert-Design: This is the "steerable" generative model. The authors modified the industry-standard ProteinMPNN to accept "flexibility instructions" as an additional input channel. The model was fine-tuned using a dual loss function: a sequence recovery loss (ensuring the protein still folds correctly) and a novel Flexibility Recovery Loss ($L_{Flex}$), which ensures the generated sequence exhibits the intended dynamic behavior.
Architecture of the Flexpert-Design generative model

Data Sources

  • ATLAS: A high-quality dataset of MD trajectories for 1,390 proteins, serving as the primary source for "ground truth" flexibility.
  • mdCATH: A larger dataset utilized for "stress-testing" the models' generalization capabilities across different temperatures (320K to 450K).
  • CATH4.3: The standard benchmark for protein inverse folding, used to evaluate the design capabilities of the fine-tuned ProteinMPNN.

Key Insights

  • B-factors are deceptive: The study confirms that crystallographic B-factors correlate poorly with true protein motion in solution because the crystal environment artificially restricts movement (the "crystal packing effect").
  • Language Models are "Flexibility-Aware": Even without structural input, Flexpert-Seq achieved high correlation with MD data. This suggests that protein language models implicitly learn the "physics of wiggling" from evolutionary sequence data.
  • The "Native" Anchor: To train the design model, the authors used "pseudolabels"—the predicted flexibility of native sequences—to teach the model what "normal" dynamics look like before tasking it to engineer "extra" flexibility.
  • Steerability: A significant insight is that generative models do not need to be rebuilt from scratch to incorporate new constraints. By adding a simple input channel and a targeted loss function, a pre-trained model like ProteinMPNN can be "steered" toward specific biophysical properties.

Results

  • Prediction Accuracy: Flexpert-3D achieved a Pearson Correlation Coefficient (PCC) of 0.83 against MD simulations, approaching the theoretical upper bound of 0.88 (the limit of agreement between independent MD replicas).
  • Successful Engineering: When tasked with increasing flexibility in specific regions, Flexpert-Design achieved a 1.52x median enrichment in flexibility compared to the native protein.
  • Mutation Quality: 83% of the mutations suggested by the model successfully increased flexibility in the target regions. The model often substituted larger amino acids with smaller, more flexible ones like Glycine or Alanine, aligning perfectly with biochemical intuition.

Limitations and Future Directions

The authors noted a significant "positive bias" in their results. While the model excels at increasing flexibility, it struggles to decrease it (i.e., engineering rigidity). They hypothesize this is because RMSF is a non-negative value, and the training data is naturally skewed toward flexible regions, making "negative" instructions harder for the model to interpret.

Future work may involve utilizing Flow Matching architectures to provide tighter control over the designed sequence's dynamics, as well as exploring methods to better balance the trade-off between structural stability and functional flexibility.

Summary updated

BibTeX
@inproceedings{kouba2025learning,
  author = {Petr Kouba and Joan Planas-Iglesias and Jiri Damborsky and Jiri Sedlar and Stanislav Mazurenko and Josef Sivic},
  title = {{Learning to engineer protein flexibility}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=L238BAx0wP},
}
Figure