ProtPainter: Draw or Drag Protein via Topology-guided Diffusion

Zhengxi Lu, Shizhuo Cheng, Tintin Jiang, Yan Zhang, Min Zhang

TL;DR

ProtPainter is a novel diffusion-based AI model that allows researchers to design proteins by simply drawing or dragging 3D curves. By translating intuitive, coarse-grained sketches into highly realistic and designable protein backbones, it offers unprecedented, fine-grained control over protein topology that previous generative models lack.

What Problem Does This Paper Address?

Recent AI models like RFdiffusion have revolutionized protein design, allowing scientists to generate entirely new proteins from scratch. However, controlling the exact 3D shape (the topology) of these generated proteins remains incredibly difficult.

If a researcher wants a protein to have a specific arrangement of helices and loops—perhaps to fit into a specific cellular receptor or to act as a mechanical hinge—they currently have to rely on rigid, parameter-heavy "blueprints" or vague point clouds. These methods limit creativity and make it hard to navigate the vast space of possible protein shapes. ProtPainter addresses this gap by introducing a highly flexible conditioning mechanism: 3D curves. It asks the question: What if you could just draw the protein you want?

Methods

ProtPainter treats protein generation somewhat like an image super-resolution task, where a simple 3D curve is "upscaled" into a complex, physically viable protein backbone. The architecture uses a two-stage process:

Overview of the ProtPainter pipeline
  1. Curve-Based Sketching (CurveEncoder): The user inputs a 3D curve. A novel neural network called CurveEncoder—combining an Equivariant Graph Neural Network (EGNN) and a 1D Convolutional Neural Network (CNN)—analyzes the curve's geometry and curvature. It predicts where secondary structure elements (like alpha-helices) should go, generating a "naive sketch."
  2. Sketch-Guided Backbone Generation: This sketch is then fed into a Denoising Diffusion Probabilistic Model (DDPM). The model uses the sketch to guide the generation of the actual amino acid backbone.
  3. Helix-Gating (Novel Scheduling): You cannot just force a diffusion model to blindly follow a shape from step one; it will generate unphysical garbage. To solve this, the authors introduce Helix-Gating, a dynamic scheduling scheme. It monitors the percentage of helices forming during the diffusion process. It starts with a "confidential phase" (low guidance, letting the model figure out basic physics) and switches to a "controllable phase" (high guidance, forcing it to match the sketch) only once the structure is stable enough.

Datasets and Evaluation

  • Training Data: The CurveEncoder was trained on 15,000 protein structures sourced from the Protein Data Bank (PDB) and generated scaffolds.
  • Evaluation Datasets: The model was tested on three clusters of increasing complexity: HHH_ems (simple 3-helix bundles), 1a0b_cluster (medium complexity), and GPCR (complex 7-transmembrane receptors).
  • New Benchmark: The authors introduce the Protein Restoration Task, challenging models to reconstruct a protein backbone given only its abstracted 3D curve.
  • New Metric: They propose scTF (self-consistency Topology Fitness), which uses Procrustes analysis to mathematically measure how well the final generated protein matches the shape of the input curve.

Key Insights and Ideas

  • Curves as a Biological UI: 3D curves are the perfect middle ground between human intuition and complex molecular structures. They contain rich geometric data (length, orientation, curvature) without bogging the user down in atomic coordinates.
  • Bridging Dimensionality: Aligning a 1D curve with a 3D atomic backbone is mathematically tricky. ProtPainter solves this elegantly by using the "naive sketch" as an intermediate bridge, allowing the diffusion model to align the generation with the reference at a lower dimension.
  • Dynamic Guidance is Crucial: The success of Helix-Gating proves that in guided diffusion for biology, timing is everything. Forcing structural constraints too early ruins the protein's physical viability; the model must be allowed to "warm up" its secondary structures first.

Key Results

ProtPainter successfully generates proteins that are both highly designable (scTM > 0.5) and closely match the user's drawn topology (scTF > 0.8).

Examples of generated proteins across different tasks
  • State-of-the-Art Control: In the Protein Restoration Task, ProtPainter significantly outperformed existing conditional models like Chroma (which uses point clouds) and TopoDiff. For example, on complex GPCR proteins, ProtPainter achieved a Fit Designability (FD) score of 0.792, whereas baselines scored near 0.000.
  • Versatile Editing: The authors demonstrated that users can successfully "drag" existing proteins into new shapes (e.g., turning a 3-helix bundle into a 2-helix scaffold), draw custom binders directly onto target proteins, and design complex multi-state hinge proteins.

Limitations and Future Work

  • Inference Speed: The authors note that the generation and refolding process is currently time-consuming, taking between 10 seconds and 2 minutes on a single NVIDIA GPU. This is too slow for true real-time, interactive protein drawing, requiring future optimization.
  • Beta-Sheet Support: The current evaluation and primary architecture heavily emphasize alpha-helical proteins. While the authors show preliminary success with beta-sheets in the appendix, fully integrating and optimizing for complex beta-sheet topologies is slated for future work.

Summary updated

BibTeX
@inproceedings{lu2025protpainter,
  author = {Zhengxi Lu and Shizhuo Cheng and Tintin Jiang and Yan Zhang and Min Zhang},
  title = {{ProtPainter: Draw or Drag Protein via Topology-guided Diffusion}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Nq7yKYL0Bp},
}
Figure