Abstract
Inverse protein folding—the design of amino acid sequences that fold into a predefined 3D backbone—is a cornerstone of de novo protein engineering. While recent "one-shot" generative models offer significant speed, they often lack the structural precision required for high-fidelity design and struggle to incorporate complex, non-differentiable constraints. This paper introduces BO-IF, a pipeline that reframes inverse folding as an iterative Bayesian Optimization problem within a continuous latent space. By optimizing sequences against high-fidelity folding simulators, BO-IF reduces structural errors by 48% compared to state-of-the-art generative baselines and enables the integration of "black-box" constraints such as "humanness" for therapeutic applications.
Introduction
In the traditional "top-down" approach to protein design, researchers first define a functional 3D structure and then seek a sequence that will fold into that specific shape. This inverse folding problem is typically addressed by generative models like ESM-IF. However, these models face two major hurdles: reliability and constraint handling. Independent draws from generative models often fail to fold precisely into the target backbone when validated by simulators. Furthermore, real-world design requires sequences to be soluble, non-toxic, or "human-like" to avoid immune responses—constraints that are difficult to bake into standard generative architectures.
Methods: The BO-IF Framework
BO-IF shifts the paradigm from one-shot generation to iterative optimization. The pipeline utilizes a Transformer Variational Autoencoder (VAE) with 47 million parameters, pretrained on 1.5 million protein sequences. This VAE maps discrete amino acid sequences into a smooth, continuous latent space where optimization is more tractable.
The search process employs Bayesian Optimization (BO) to navigate this latent space. For each candidate sequence suggested by the BO, the system "folds" it using ESMFold to evaluate how closely it matches the target backbone (measured by TM-score or RMSD). This feedback loop allows the model to refine its predictions iteratively, ensuring high structural faithfulness.
Results
Structural Accuracy and Reliability
BO-IF was tested on 24 entirely new protein backbones generated by RFdiffusion. The method demonstrated superior performance, reducing structural error (1-TM score) by an average of 48% and RMSD by 28% compared to the gold-standard ESM-IF.
The optimization process proved highly reliable, consistently improving upon initial generative samples across all test structures. Even with a significantly smaller parameter count than its competitors, the search-based strategy of BO-IF allowed it to find "bullseye" sequences that generative models missed.
Multi-Objective Design: The Humanness Constraint
A significant advantage of BO-IF is its flexibility in handling additional design objectives. In a case study for therapeutic design, the authors integrated a "humanness" classifier into the optimization loop. While only 0.2% of sequences from standard models met both structural and humanness thresholds, BO-IF successfully navigated the search space to identify sequences at this rare intersection. Additionally, using an extension called ROBOT, the framework generated sets of sequences that were both high-performing and chemically diverse (minimum edit distance of 20).
Discussion and Conclusion
While BO-IF is computationally more intensive than one-shot generation—requiring roughly 50 GPU hours for 150,000 evaluations—it offers a level of precision and constraint flexibility that is currently unmatched. The method's reliance on the accuracy of the underlying folding model (ESMFold) remains a limitation, as the optimizer may "overfit" to systematic biases in the simulator. Future research will focus on joint training of the VAE and the BO surrogate model to further enhance efficiency. Ultimately, BO-IF provides a robust path forward for designing high-precision, functional proteins with complex real-world requirements.
Summary updated