Protein Inverse Folding From Structure Feedback

Junde Xu, Zijun Gao, Xinyi Zhou, Jie Hu, Xingyi Cheng, Le Song, Guangyong Chen, Pheng-Ann Heng, Jiezhong Qiu

TL;DR

This paper introduces a fully in silico feedback loop for protein design by fine-tuning inverse folding models using Direct Preference Optimization (DPO) guided by forward folding models. By evaluating generated sequences with ESMFold and TM-Align, the method creates pairwise structural preference labels that significantly boost both sequence recovery and structural accuracy. Notably, iterative multi-round DPO achieves a massive 79.5% average TM-Score improvement on challenging, historically difficult protein structures.

What Problem Does This Paper Address?

Protein inverse folding—the task of designing an amino acid sequence that reliably folds into a target 3D structure—is a cornerstone of modern biotechnology and therapeutic design. While deep learning models have made massive strides here, they typically train on a simple objective: maximizing the probability of matching native wild-type sequences (sequence recovery).

However, sequence similarity does not always equal structural similarity; two highly similar sequences can fold into completely different shapes, and generative models frequently suffer from "hallucinations" or produce low-quality, repetitive outputs. To fix this, researchers often have to generate thousands of candidates and filter them through expensive wet-lab experiments. While preference optimization techniques like DPO can align these models, existing protein-based DPO methods rely on scarce, manually curated biochemical assays. This paper addresses this bottleneck by replacing costly wet-lab feedback with fast, scalable, in silico structural feedback.

Methods

The authors propose an end-to-end pipeline that connects the inverse folding process with the forward folding process using DPO.

Figure 1: Overview of our methods. A. We connect the inverse-folding process and folding process with DPO, utilizing the structure similarity (TM-Scores) predicted by the folding model to guide the optimization of the inverse-folding model. B. We classify generated sequences into chosen and rejected based on their TM-Scores. C. Multi-round DPO for iterative refinement of designed sequences.

The workflow consists of four main steps:

  1. Candidate Generation: An initial inverse folding model samples $N$ candidate sequences for a given target structure.
  2. Structure Prediction (Feedback): A forward folding model (like ESMFold) predicts the 3D structure of each generated sequence.
  3. Preference Labeling: The predicted structures are compared against the ground-truth target structure using TM-Align. The sequences are sorted by their TM-Scores and split 50/50 into "chosen" (high structural similarity) and "rejected" (low similarity) pairs.
  4. Optimization with Regularization: The inverse folding model is fine-tuned using the DPO objective. Crucially, because protein sequences have a small vocabulary (20 amino acids) and share high local similarities, standard DPO can cause model degeneration. To counteract this, the authors add a Supervised Fine-Tuning (SFT) loss as a regularization term to stabilize training.

Additionally, they introduce Multi-Round DPO, an iterative framework where the model is successively refined over multiple rounds using preference data generated by its own predecessor from the previous round.

Datasets

The models were trained and evaluated using several standard benchmarks:

  • CATH 4.2: The primary dataset used for training and testing structural splits (Short, Single-Chain, All).
  • TS50 and TS500: Two diverse, independent protein datasets used strictly during evaluation to test the zero-shot generalization capability of the fine-tuned models.

Key Insights and Ideas

  • Prioritizing Fold over Sequence: The fine-tuning process explicitly prioritizes structural fidelity over strict sequence recovery. The model learns to explore alternative sequence spaces that fold more accurately into the target structure, even if they deviate significantly from the native wild-type sequence.
  • The Small-Vocabulary DPO Trap: In natural language processing, DPO works well because the vocabulary is vast. In biology, with only 20 amino acids, "rejected" sequences share many identical sub-sequences with "chosen" ones. Without the SFT regularization term introduced in this paper, standard DPO inadvertently suppresses valid structural motifs, destroying model performance.
  • Data Quality > Data Quantity: When scaling up the training process, the authors discovered that increasing the number of contrastive samples per structure actually degraded structural fidelity. Generating too many samples dilutes the useful training signal with mediocre or confusing pairs, proving that smart sample selection matters more than raw data volume.

Key Results

The DPO framework was validated across both compact and massive model architectures, specifically ProteinMPNN (~1M parameters) and InstructPLM (~7B parameters).

  • Structural Similarity Boost: On the CATH 4.2 test set, InstructPLM-DPO improved the average TM-Score from 0.77 to 0.81. For single-chain proteins, it achieved a 12.5% improvement (moving from 0.56 to 0.63).
  • Sequence Recovery Gains: InstructPLM-DPO raised sequence recovery on CATH 4.2 by 3.0% (from 53.58% to 55.21%) while maintaining competitive perplexity scores. It also demonstrated strong generalization, boosting recovery rates on TS50 and TS500.
  • Conquering Hard Targets: When applied iteratively via Multi-Round DPO to 10 highly challenging protein structures, the mean TM-Score skyrocketed by 79.5% (improving from a baseline of 0.39 to 0.70).
Figure 2: Per-structure changes in TM-score vs. changes in sequence recovery on the CATH 4.2 test set. Top left: Change in TM-Score (mean TM-Score over 10 predictions) vs. change in recovery (mean Recovery over 10 predictions) for each structure. Top right: TM-Score versus recovery of 10 sequences sampled from the baseline and the DPO model, samples selected for visualization are marked by circle. Bottom: Examples structure predicted by ESMfold, ground-truth structures are shown in gray.

Limitations and Future Work

  • The Scaling Bottleneck: Simply scaling up the number of contrastive pairs per protein structure harms performance. Future work will need to focus on more sophisticated preference dataset curation, such as multi-objective scoring or active sample selection.
  • Baseline Dependency: While the model shows massive improvements on hard structures, it still struggles with extreme cases (e.g., protein 1mkn.A), indicating that the method's ultimate success remains partially bounded by the initial capacity of the baseline generative model.
  • Expanding Feedback Metrics: This work relies purely on structural similarity (TM-Score). The authors suggest that incorporating alternative in silico feedback metrics, such as predicted biological function or folding stability, is a promising next step.

Summary updated

BibTeX
@inproceedings{xu2025protein,
  author = {Junde Xu and Zijun Gao and Xinyi Zhou and Jie Hu and Xingyi Cheng and Le Song and Guangyong Chen and Pheng-Ann Heng and Jiezhong Qiu},
  title = {{Protein Inverse Folding From Structure Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ORsrbGTXQB},
}
Figure