TL;DR — Inverse-folding models are trained to copy curated sequence–structure data, which is not the same objective as designing a sequence that actually folds and stays stable. ProteinZero closes that loop with online RL: the model samples its own designs, scores them with ESMFold and a self-derived fast ddG predictor, and improves continuously — with an embedding-level diversity regularizer that stops the usual collapse onto a few safe sequences. All evaluation is computational.

WATCH THE FILM

The problem

Supervised inverse folding optimizes sequence recovery against curated datasets. The design goal is different: a sequence that refolds to the target backbone and is predicted to be stable. Preference-based fine-tuning (DPO) narrows that gap, but it learns from a fixed, pre-collected preference set — and in our runs it pays for its gains with diversity.

ProteinZero: the supervised objective versus the design goal An inverse-folding model takes a target backbone and writes a sequence. Supervised training scores the sequence by sequence recovery, comparing it letter by letter with the curated native sequence. The design goal is different: the designed sequence should refold to the target backbone, checked with ESMFold, and be predicted stable, checked with the fast ddG predictor. ProteinZero rewards that goal directly, so the model can learn from its own designs without labeled data. Target backbone the input structure Inverse-folding model writes a sequence for it Designed sequence one sample (illustrative) M K T L E V A G R W L E Supervised training sequence recovery designcurated native M M K K T S L L E E V I A A G G R K W W L L E D objective: match the curated sequence, letter by letter Design goal what ProteinZero rewards ESMFold refolds to target ✓ fast ddG predicted stable ✓ Reward the design goal itself — the model learns from its own designs, without labeled data ProteinZero: the supervised objective versus the design goal An inverse-folding model takes a target backbone and writes a sequence. Supervised training scores the sequence by sequence recovery, comparing it letter by letter with the curated native sequence. The design goal is different: the designed sequence should refold to the target backbone, checked with ESMFold, and be predicted stable, checked with the fast ddG predictor. ProteinZero rewards that goal directly, so the model can learn from its own designs without labeled data. Target backbone the input structure Inverse-folding model writes a sequence for it Designed sequence one sample (illustrative) M K T L E V A G R W L E Supervised training sequence recovery designcurated native M M K K T S L L E E V I A A G G R K W W L L E D objective: match the curated sequence, letter by letter Design goal what ProteinZero rewards ESMFold refolds to target ✓ fast ddG predicted stable ✓ Reward the design goal itself — the model learns from its own designs, without labeled data
How to read it. Given a target backbone, an inverse-folding model writes a sequence. Supervised training grades it by sequence recovery — how many letters match the curated native sequence. The design goal is different: the sequence should refold to the target backbone (ESMFold) and be predicted stable (fast ddG). ProteinZero rewards that goal directly, which needs no curated label, so the model can keep learning from its own designs. Schematic; the sequences are illustrative.

Offline fine-tuning

Learns from a fixed preference set. The model cannot explore beyond it, and under repeated rounds it concentrates on a narrow set of high-reward sequences — measured diversity falls below the base model.

ProteinZero (online RL)

The model generates, scores and learns from its own designs each round. A diversity term defined on sequence embeddings keeps the policy spread out, so designability and predicted stability improve without collapsing.

Method

ProteinZero: the online RL loop Four stages repeat. The policy samples protein sequences; each design is scored with ESMFold for structure and a fast ddG predictor for stability; an embedding-level diversity term pushes designs apart instead of letting them bunch together; GRPO updates the policy, and the next round samples from the updated model. 1 Sample the policy's own designs 2 Score structure + stability 3 Stay diverse embedding-level term 4 Update GRPO, KL to reference M K T A Y I A K Q R Q I S F V K S H F S R Q L E E R L G L I illustrative sequence ESMFold ✓ fast ddG ✓ policy updated weights next round samples from the updated policy — no fixed dataset
How to read it. Each round the model samples its own designs, scores them with ESMFold and the fast ddG proxy, is kept from collapsing onto near-identical sequences by a separate embedding-level diversity term, and takes a GRPO (or RAFT) step — then samples again from the updated model. Schematic; the sequence is illustrative.

The fast ddG predictor is what makes this affordable: physics-based stability evaluation would dominate training cost, so it is replaced by a learned proxy inside the loop. A complete run fits on one 8-GPU node in about three days, including reward computation and data generation.

Scope: fast ddG is a training proxy. Its experimental validation is moderate and based on single-point mutations, while it is applied here to full-sequence redesign, so it is not a calibrated predictor of absolute folding stability.

Results on CATH-4.3

90.1%
success rate, 0–150 residues
91.2%
success rate, 150–300 residues
36–48%
fewer design failures vs. prior models
3 days
one 8-GPU node per run
2026-10-12T17:32:06.184338 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ ESM-IF ProteinMPNN InstructPLM (base) DPO Multi-Round DPO ProteinZero (RAFT) ProteinZero (GRPO) 75 80 85 90 95 success rate (%) 80.7 82.0 84.5 86.4 86.9 89.3 90.1 82.8 84.7 86.4 87.7 88.0 89.4 91.2 0–150 residues 150–300 residues
Figure 1. Success rate on held-out CATH-4.3 backbones — a backbone counts as a success when the mean over its 64 sampled designs satisfies both criteria (scRMSD < 2 Å and FoldX ddG < 0). Both ProteinZero variants pass every supervised and preference-based baseline; GRPO is the stronger of the two.

The reward uses ESMFold and fast ddG, but the gains also appear under independent evaluators (AlphaFold3 for structure, FoldX for stability) that were never part of training — evidence that the improvements are not simply fitted to the reward models. All of this is in-silico; no wet-lab validation is performed.

Diversity is the part that usually breaks

2026-10-12T17:32:06.204237 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ InstructPLM (base) DPO Multi-Round DPO ProteinZero (GRPO) 0.26 0.28 0.30 0.32 sequence diversity 0.281 0.274 0.266 0.306 base model
Figure 2. Sequence diversity among generated designs (0–150 residues). Both DPO variants end up below the base model — the classic collapse onto a few high-reward sequences — while ProteinZero raises diversity and success rate together.

The regularizer acts on the decoder's sequence embeddings rather than on raw token overlap, so it spreads designs apart in representation space while the reward keeps pulling them toward foldable, stable candidates. Where the diversity signal enters turns out to matter far more than whether it is present: pushing it into the reward instead costs more than ten points of success rate.

ProteinZero: three terms acting on the designs ProteinZero's objective has three terms. A cloud of designs starts at the reference model. The reward from ESMFold and the fast ddG predictor pulls it toward foldable, stable designs, and on its own lets the designs bunch together; the KL term to the reference model keeps the policy from drifting far; the separate embedding-level diversity term spreads the designs apart inside the foldable, stable region. Kept as its own term, diversity comes at roughly no cost in success rate, while adding diversity to the reward instead costs more than ten points of success rate. The spread is exaggerated for visibility: measured diversity is 0.306 with the term, 0.268 without it, and 0.281 for the base model. Reward: ESMFold + fast ddG pulls toward foldable, stable designs KL to the reference model keeps the policy from drifting far Diversity term on embeddings pushes the designs apart designs in embedding space foldable & stable reference model reward KL designs bunch up As its own term, diversity spreads the designs at roughly no cost in success rate Folding diversity into the reward instead costs more than ten points of success rate. ProteinZero: three terms acting on the designs ProteinZero's objective has three terms. A cloud of designs starts at the reference model. The reward from ESMFold and the fast ddG predictor pulls it toward foldable, stable designs, and on its own lets the designs bunch together; the KL term to the reference model keeps the policy from drifting far; the separate embedding-level diversity term spreads the designs apart inside the foldable, stable region. Kept as its own term, diversity comes at roughly no cost in success rate, while adding diversity to the reward instead costs more than ten points of success rate. The spread is exaggerated for visibility: measured diversity is 0.306 with the term, 0.268 without it, and 0.281 for the base model. Reward: ESMFold + fast ddG pulls toward foldable, stable designs KL to the reference model keeps the policy from drifting far Diversity term on embeddings pushes the designs apart designs in embedding space foldable & stable reference model reward KL designs bunch up As its own term, diversity spreads the designs at roughly no cost in success rate Folding diversity into the reward instead costs more than ten points of success rate.
How to read it. Each dot is a design. The reward (ESMFold + fast ddG) pulls the designs toward foldable, stable sequences, but on its own lets them bunch up; the KL term keeps the policy near the reference model; the diversity term, defined on sequence embeddings and kept separate from the reward, spreads them apart. Measured diversity is 0.306 with the term and 0.268 without it (base model 0.281) — the spread in the picture is exaggerated for visibility. Schematic.
2026-10-12T17:35:09.292066 image/svg+xml Matplotlib v3.10.8, https://matplotlib.org/ Hamming distance as reward diversity as reward embedding-level regularizer (ours) 70 75 80 85 90 95 success rate (%) 74.63 78.65 90.13 Hamming distance as reward diversity as reward embedding-level regularizer (ours) 0.26 0.28 0.30 0.32 sequence diversity 0.276 0.284 0.306
Figure 3. Three ways to ask for diversity (0–150 residues). Rewarding Hamming distance or adding diversity to the reward drags the policy away from foldable, stable designs; keeping it as a separate embedding-level term does not.

Reported honestly: dropping the diversity term altogether leaves success essentially unchanged (90.23% vs. 90.13%) while diversity falls from 0.306 to 0.268. The term buys sequence diversity at roughly no cost in success rate — it is not what produces the headline number.

Code

ProteinZero is open source at github.com/ziwenwang28/ProteinZero. It is usable as a component in a larger pipeline — for example as a design tool called by an agent — and collaborations are welcome.

BibTeX

@article{wang2026proteinzero,
  title   = {ProteinZero: Self-Improving Protein Generation via Online
             Reinforcement Learning},
  author  = {Ziwen Wang and Jiajun Fan and Ruihan Guo and Thao Nguyen
             and Heng Ji and Ge Liu},
  journal = {Transactions on Machine Learning Research},
  year    = {2026},
  url     = {https://arxiv.org/abs/2506.07459}
}