Introduction
In protein engineering, the "inverse folding" problem is a foundational challenge: given a specific three-dimensional backbone structure, what amino acid sequence will reliably fold into that shape? While deep learning models like ProteinMPNN have made significant strides, they are traditionally trained to maximize sequence recovery—the likelihood of matching the exact amino acids found in nature for a given backbone.
However, sequence recovery is often a flawed metric. Because the protein landscape is characterized by degeneracy, multiple sequences can fold into the same structure, and conversely, minor sequence variations can lead to total structural collapse. This discrepancy often results in models that "hallucinate" sequences which appear plausible during training but fail to fold correctly in physical or simulated environments. To bridge this gap, this research introduces a framework that utilizes Direct Preference Optimization (DPO) to fine-tune inverse folding models using explicit structural feedback.
Methodology: Structural Feedback via DPO
The authors propose a "closed-loop" training pipeline that treats a protein folding model as a critic for an inverse folding "actor." This approach shifts the optimization objective from simple pattern matching to the prioritization of structural viability. The process consists of five primary stages:
- Sampling: An initial inverse folding model (such as ProteinMPNN or InstructPLM) generates a diverse set of candidate sequences for a target backbone.
- Feedback (In Silico Validation): Each candidate sequence is processed by a folding model (ESMFold) to predict its resulting 3D structure.
- Preference Labeling: The predicted structures are compared against the original target backbone using the TM-Score (Template Modeling Score). Sequences are then ranked; the top-performing 50% are labeled as "chosen" (positive examples), while the bottom 50% are labeled as "rejected" (negative examples).
- Optimization: The model is fine-tuned using the DPO objective, which encourages the model to increase the probability of generating "chosen" sequences while decreasing the probability of "rejected" ones. To maintain the model's general knowledge of protein chemistry and prevent degeneration, a Supervised Fine-Tuning (SFT) loss is included as a regularizer.
- Iterative Refinement: For complex or "hard-to-design" structures, the process is repeated across multiple rounds, progressively narrowing the search space toward high-fidelity sequences.
Experimental Results
The framework was evaluated using the CATH 4.2 dataset for training, with TS50 and TS500 serving as independent benchmarks to test generalization.
Structural Accuracy and Sequence Recovery
On the CATH 4.2 test set, the DPO-tuned model demonstrated a clear improvement in structural fidelity, raising the average TM-Score from 0.77 to 0.81. Interestingly, although sequence recovery was not the primary optimization target, it also saw a modest increase (e.g., from 53.58% to 55.21% for the InstructPLM baseline). This suggests that structural feedback helps the model better understand the underlying physical constraints that define natural sequences.
Success on "Hard" Targets
The most significant impact was observed on challenging protein structures where baseline models typically fail (defined as a TM-Score < 0.5). For a subset of 10 such targets, the iterative DPO approach resulted in a 79.5% increase in average TM-Score compared to the baseline. This indicates that structural feedback is particularly effective at guiding the model through the "dark matter" of the protein landscape where traditional sequence-based training provides insufficient signal.
Key Insights
- Structure Over Sequence: The research confirms that structural feedback provides a more robust signal for design than sequence similarity. By penalizing sequences that fold incorrectly, the model learns the physical "rules" of folding rather than just memorizing amino acid distributions.
- The Necessity of Ground Truth: Smaller models like ProteinMPNN were found to struggle when learning solely from their own generated samples. To stabilize training, the authors included "wild-type" (natural) sequences as "chosen" examples, providing a necessary ground-truth anchor.
- Signal Quality: Scaling experiments revealed that the quality of contrastive pairs is more important than the quantity of data. Including too many low-quality "rejected" samples can dilute the training signal, suggesting that active learning strategies for sample selection are a promising future direction.
Limitations and Future Directions
While the DPO framework represents a significant advance, it is inherently limited by the accuracy of the folding model used for feedback. If ESMFold possesses specific biases, the inverse folding model may learn to exploit those biases rather than learning true physics. Additionally, the computational cost of folding every sampled sequence remains high, presenting a bottleneck for very large-scale applications.
Future work may involve incorporating multi-objective feedback—such as predicted stability, solubility, or binding affinity—to create a more comprehensive design tool for synthetic biology.
Summary updated