Abstract
Recent advances in protein backbone generation have achieved promising results under structural, functional, or physical constraints. However, existing methods lack the flexibility for precise topology control, limiting navigation of the backbone space. We present ProtPainter, a diffusion-based approach for generating protein backbones conditioned on 3D curves. ProtPainter follows a two-stage process: curve-based sketching and sketch-guided backbone generation. For the first stage, we propose CurveEncoder, which predicts secondary structure annotations from a curve to parametrize sketch generation. For the second stage, the sketch guides the generative process in Denoising Diffusion Probabilistic Modeling (DDPM) to generate backbones. During this process, we further introduce a fusion scheduling scheme, Helix-Gating, to control the scaling factors. To evaluate, we propose the first benchmark for topology-conditioned protein generation, introducing the Protein Restoration Task and a new metric, self-consistency Topology Fitness (scTF). Experiments demonstrate ProtPainter's ability to generate topology-fit (scTF > 0.8) and designable (scTM > 0.5) backbones, with drawing and dragging tasks showcasing its flexibility and versatility.
Introduction
In the rapidly evolving field of protein design, generative models such as RFDiffusion have demonstrated remarkable capabilities in creating novel proteins from scratch. However, a significant gap remains in the ability to "steer" these models with fine-grained precision. While researchers may have a specific 3D topology in mind—such as a particular arrangement of helices to complement a binding pocket—current tools often rely on rigid parametric constraints or non-structural biochemical properties. This lack of a programmable mechanism for intuitive navigation of the protein backbone space limits the realization of complex human-designed structural visions. ProtPainter addresses this "topology control" problem by translating rough 3D sketches into physically viable, designable protein structures.
The ProtPainter Framework
ProtPainter introduces a two-stage pipeline designed to bridge the gap between human imagination and atomic-level structural precision.
1. Curve-based Sketching
The process begins with a user-provided 3D curve. This curve serves as a low-resolution proxy for the desired protein topology. The CurveEncoder module—utilizing Equivariant Graph Neural Networks and CNNs—analyzes the curve's geometry to predict Secondary Structure Elements (SSE). By determining which segments of the curve should manifest as alpha-helices, beta-strands, or loops, the system produces a "naive sketch" that serves as the blueprint for the generative model.
2. Sketch-guided Backbone Generation
This sketch is then integrated into a Denoising Diffusion Probabilistic Model (DDPM). To balance the trade-off between structural diversity and adherence to the user's sketch, ProtPainter employs a novel fusion scheduling scheme called Helix-Gating. This mechanism operates in two distinct phases:
- Confidential Phase: The model is initially given the freedom to establish internal structural consistency and realistic protein features.
- Controllable Phase: As the denoising process progresses, the guidance from the user's sketch becomes the dominant force. The model compares the "helix percentage" of the evolving structure to the target sketch, ensuring the final backbone precisely follows the intended topology.
Notably, ProtPainter is a "retraining-free" system. It can guide existing high-performance models (such as those based on RoseTTAFold) without requiring the computationally expensive process of training a diffusion model from scratch.
Benchmarking and Metrics
To rigorously evaluate topology-conditioned generation, the authors introduced the Protein Restoration Task. In this benchmark, the model must reconstruct a full protein starting only from its abstracted 3D curve. Evaluation was performed on 15,000 samples from the Protein Data Bank (PDB), with a focus on three clusters of increasing complexity: simple 3-helix bundles (HHH_ems), medium-sized proteins (100–250 residues), and complex 7-transmembrane G-protein coupled receptors (GPCRs).
Traditional metrics like TM-score are often insufficient for measuring topological fidelity. Consequently, the authors proposed self-consistency Topology Fitness (scTF). Using Procrustes analysis to align shapes, scTF specifically measures how accurately the generated fold and layout match the user's original intent.
Key Results and Versatility
ProtPainter demonstrates superior performance in following human-defined 3D topologies compared to existing conditional models like Chroma and TopoDiff. Key findings include:
- High Fidelity: The model consistently generates "topology-fit" structures (scTF > 0.8) that are also "designable" (scTM > 0.5).
- Efficiency: The sketching process is nearly instantaneous, with full backbone generation taking between 10 seconds and 2 minutes on a single GPU.
- Interactive Design: The framework supports "dragging" operations, allowing designers to manipulate existing proteins—such as pulling a loop or tilting a helix—while the model automatically repairs the surrounding structure to maintain physical plausibility.
- Broad Application: Beyond de novo design, the system excels in binder design and motif scaffolding.
Limitations and Future Directions
While ProtPainter represents a significant step forward, several areas for improvement remain. The current implementation is most robust for alpha-helical proteins; beta sheets present a greater challenge due to their reliance on long-range hydrogen bonding patterns. Additionally, while the generation speed is efficient for research, it is not yet instantaneous for real-time interactive use. Finally, as a backbone-only generator, ProtPainter requires downstream tools like ProteinMPNN to determine amino acid sequences. Future work aims to integrate sequence design and side-chain orientation into a single, end-to-end "painter" for protein architecture.
Summary updated