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.
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.
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
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
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
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.
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.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}
}