TL;DR
RosettaSearch introduces a novel way to design protein sequences by using Large Language Models (LLMs) as iterative, inference-time generative optimizers. Instead of generating sequences from scratch, the algorithm uses structured feedback from structure-prediction models to fix errors in existing designs, achieving a 2.5× improvement in design success rate over state-of-the-art baselines without any model retraining.
What Problem Does This Paper Address?
In computational biology, backbone-conditioned protein sequence design is the challenge of finding an amino acid sequence that will reliably fold into a specific, predetermined 3D shape. While deep learning models like ProteinMPNN and LigandMPNN have advanced this field, they suffer from a major flaw: they operate via single-pass autoregressive decoding.
If a model makes a suboptimal choice early in the sequence generation, it has no mechanism to look back, detect the error, or self-correct. As a result, a significant portion of their generated sequences exhibit low structural fidelity—meaning that when an independent structure predictor evaluates them, they fail to match the target backbone geometry. This creates a costly bottleneck, leading to wasted time and resources when trying to synthesize these proteins in a wet lab.
Methods
RosettaSearch solves this by reframing sequence design as an iterative, discrete optimization problem guided by an LLM. Rather than asking the LLM to write a sequence from scratch, RosettaSearch uses the LLM to refine an existing candidate sequence (such as one generated by LigandMPNN).
[Initial Sequence] ➔ [Structure Predictor (RosettaFold3)] ➔ [Global Metrics + Local Text Feedback] ➔ [LLM Optimizer] ➔ [Refined Sequence]
The core architecture consists of:
- Priority Search: A parallel search algorithm that maintains a buffer of candidate sequences. In each iteration, it selects the top-$K$ performing candidates, generates new variations in parallel, and updates the buffer to prevent the search from getting stuck in local optima.
- Multi-Objective Feedback: The system evaluates candidates using a structure prediction model (RosettaFold3) and feeds the LLM two types of information: global scalar rewards (a weighted sum of pLDDT, TM-score, and Cα-RMSD) and local text feedback (e.g., "residues 45-53 have low structural similarity, focus on improving this region").
- Anti-Reward Hacking Constraints: LLMs are notorious for finding loopholes in reward functions. Left unchecked, they will optimize structural confidence scores by generating long, unrealistic repetitions (like poly-alanine tails). RosettaSearch introduces soft text constraints to penalize repetitive regions and length deviations.
- Multi-Modal Extension: The authors also experimented with Vision-Language Models (VLMs), providing the model with rendered 3D images of the predicted protein structure alongside text feedback to give the optimizer richer spatial context.
Datasets
The approach was validated across three distinct datasets:
- LigandMPNN Dataset (PDB Monomers): A curated set of ~400 monomeric structures randomly sampled from the Protein Data Bank (PDB), paired with suboptimal starting sequences generated by LigandMPNN.
- The Dayhoff Dataset (BackboneRef): A benchmark consisting of 275 de novo (computationally designed) protein backbones generated via RFDiffusion. This dataset provides a strict test because no native reference sequence is available to guide the LLM.
- BindCraft Sequences: A set of 50 highly optimized protein binders, used to see if RosettaSearch could improve designs that had already undergone intensive computational optimization.
Key Insights and Ideas
- LLMs as Critics and Editors, Not Authors: General-purpose LLMs struggle to design functional proteins from scratch because they lack an implicit, fine-grained understanding of 3D physics. However, when positioned as optimizers that read error logs and tweak text strings, they become highly effective.
- Chemistry Over Randomness: To prove the LLM was doing meaningful work, the authors ran a baseline that introduced random mutations into the exact same problematic regions flagged by the oracle. The random baseline actually degraded sequence quality, proving that the LLM's chemically informed reasoning is the critical driver of success.
- Reasoning Capability Translates to Biological Fidelity: The framework's performance scales directly with the underlying LLM's reasoning strength. Advanced reasoning models (like
o4-miniandGemini-3) significantly outperformed lighter models (likeo3-mini), showing that better logical processing directly equates to better molecular engineering.
Key Results
- Massive Success Rate Gains: When optimizing low-fidelity LigandMPNN designs, RosettaSearch improved structural fidelity metrics by 18% to 68%, translating to a 2.5× improvement in design success rate (from 7.9% to 20.5%).
- Cross-Oracle Validation: To ensure the model wasn't simply overfitting to the quirks of RosettaFold3, the final sequences were evaluated using an independent structure predictor, Chai-1. The relative performance gains held up, confirming true generalization.
- De Novo Generalization: On the Dayhoff dataset, RosettaSearch successfully optimized de novo backbones without any reference sequence context, boosting the success rate from 72.4% to 89.5%.
- Refining the Best: Even on the already highly optimized BindCraft binder dataset, RosettaSearch managed to improve average Cα-RMSD from 1.37Å down to a near-perfect 0.99Å.
Limitations and Future Work
The primary limitation of RosettaSearch is its focus on optimizing a single sequence per target backbone. In practical protein engineering, scientists usually prefer a diverse ensemble of distinct candidate sequences to test in the lab. Because the current search strategy prioritizes raw score maximization, it tends to converge on similar sequence spaces.
The authors note that incorporating diversity-aware reward formulations and explicit sequence-clustering objectives into the priority search algorithm is a vital next step for making the tool fully practical for real-world laboratory workflows.
Summary updated