Reinforcement learning on structure-conditioned categorical diffusion for protein inverse folding

Yasha Ektefaie, Olivia Viessmann, Siddharth Narayanan, Drew Dresser, J. Mark Kim, Armen Mkrtchyan · DOI

Protein inverse folding—the task of designing an amino acid sequence that folds into a specific 3D shape—is a cornerstone of structure-based protein design. Traditionally, researchers have trained models to maximize "sequence recovery," or how closely a designed sequence matches the one found in nature. However, inverse folding is fundamentally a one-to-many problem: many different sequences can fold into the same structure.

Existing models often struggle with a trade-off: if they are forced to be more diverse (e.g., by increasing sampling temperature), the structural integrity of the designs usually collapses. RL-DIF addresses this by shifting the optimization goal from simple sequence recovery to "foldable diversity."

The RL-DIF Framework

RL-DIF introduces a two-phase framework that combines the generative power of diffusion models with the goal-oriented optimization of reinforcement learning (RL).

  1. Categorical Diffusion (D3PM): Instead of an autoregressive approach, the model uses a discrete denoising diffusion probabilistic model. It learns to "denoise" a random sequence into a valid protein sequence, conditioned on the target backbone structure. The underlying architecture is a modified PiFold Graph Neural Network.
  2. Reinforcement Learning Fine-tuning: To ensure these diverse sequences fold correctly, the model is fine-tuned using Denoising Diffusion Policy Optimization (DDPO). The reward in this RL loop is the Self-consistency TM score (sc-TM). The model generates a sequence, an external folding model (ESMFold) predicts its 3D structure, and the model is rewarded based on how closely that prediction matches the original target backbone.

Redefining Success: Foldable Diversity

The authors propose a new metric, Foldable Diversity (FD), which measures sequence diversity only among candidates that successfully pass a structural consistency threshold (sc-TM > 0.7). This prevents models from "cheating" by generating high-entropy random noise that fails to fold. RL-DIF demonstrates that high sequence recovery is not the only path to success; by escaping the "recovery trap," the model can better explore the functional sequence space while remaining grounded in physical reality.

Figure 1: Qualitative comparison of sequence diversity and structural consistency across RL-DIF, ProteinMPNN, and PiFold. RL-DIF shows higher amino acid variation at specific positions while maintaining high-confidence predicted folds.

Experimental Results

RL-DIF was evaluated against standard benchmarks including CATH 4.2, TS50/500, and CASP15. The results indicate that RL-DIF maintains competitive structural consistency while providing significantly higher diversity than prior state-of-the-art models.

Figure 2: Performance comparison across multiple datasets. RL-DIF consistently achieves higher Foldable Diversity (FD) compared to baselines like ProteinMPNN and PiFold while maintaining strong sc-TM scores.

Key Findings:

  • Superior Diversity: On the CATH 4.2 "all" dataset, RL-DIF achieved a Foldable Diversity of 29%, outperforming the 23% achieved by ProteinMPNN and PiFold.
  • Data Efficiency: When scaled to a 100K pre-training dataset, RL-DIF approached the performance of the massive ESM-IF model, despite using 70 times less data and 30 times fewer parameters.
  • Generalizability: The model maintained high performance on de novo structures (CASP15), suggesting it can generalize beyond the natural sequences seen during training.

Limitations and Future Work

While promising, RL-DIF's performance is currently tied to the biases of its reward model, ESMFold. Future iterations could use an ensemble of folding models (like AlphaFold2 or OpenFold) to mitigate this. Additionally, the computational cost of running full folding simulations within an RL loop remains a challenge, limiting the sampling depth during training. Future work will also explore more sophisticated exploration strategies to prevent entropy collapse during longer RL training runs.

Summary updated

BibTeX
@misc{ektefaie2024reinforcement,
  author = {Yasha Ektefaie and Olivia Viessmann and Siddharth Narayanan and Drew Dresser and J. Mark Kim and Armen Mkrtchyan},
  title = {{Reinforcement learning on structure-conditioned categorical diffusion for protein inverse folding}},
  year = {2024},
  eprint = {2410.17173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.17173},
}
Figure