NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A framework for conditional diffusion modelling with applications in motif scaffolding for protein design

Kieran Didi, Francisco Vargas, Simon Mathis, Vincent Dutordoir, Emile Mathieu, Urszula Julia Komorowska, Pietro Lio

TL;DR

Researchers have introduced a unifying mathematical framework for conditional diffusion models based on Doob’s $h$-transform. By reframing conditional generation as a formal stochastic process, they developed a novel "amortized training" protocol that significantly outperforms standard heuristic methods in both image outpainting and the complex task of protein motif scaffolding.

What Problem Does This Paper Address?

Generative diffusion models are the current gold standard for creating high-fidelity data, from DALL-E’s images to new protein structures. However, many real-world applications require conditional generation—creating data that satisfies specific constraints (e.g., "complete this image" or "build a protein around this specific functional site").

In protein design, this is known as motif scaffolding. You have a "motif" (a small, functional part of a protein) and need to generate a "scaffold" (the rest of the protein) that holds that motif in the correct shape. Current methods for doing this are often heuristic—they rely on "hacks" during the sampling process or analogies to physics that lack a rigorous mathematical foundation. This lack of a unifying theory makes it hard to compare methods or understand why some work better than others.

Methods

The authors bridge this gap using Doob’s $h$-transform, a classic tool from probability theory used to condition a stochastic differential equation (SDE) to hit a specific event at a specific time.

  1. The Framework: They show that most existing conditional diffusion methods (like "Replacement" or "Reconstruction Guidance") are actually different ways of approximating the $h$-transform.
  2. Amortized Training (The New Approach): Instead of trying to "force" a pre-trained model to satisfy constraints during sampling (which is computationally expensive and often inaccurate), the authors propose training the model to learn the $h$-transform directly.
  3. The Secret Sauce: During training, the model is given the "measurement operator" (e.g., a mask showing which part of the protein is the motif) as an input. This allows the neural network to learn the relationship between the noisy state and the target condition across all timesteps.

Datasets

The researchers evaluated their framework across two distinct domains:

  • Computer Vision: They used the CELEBA (faces) and FLOWERS datasets for image outpainting tasks.
  • Protein Design:
    • RFDiffusion Benchmark: A standard set of 11 design targets used to evaluate motif scaffolding.
  • SCOPe Benchmark (New): The authors introduced a new benchmark based on the Structural Classification of Proteins (SCOPe) database. This dataset uses a hierarchical split (fold, family, superfamily) to test how well the model generalizes to protein structures it has never seen before.

Key Insights and Ideas

  • The "Aha!" Moment: The $h$-transform drift decomposes into two parts: the prior score (what the data usually looks like) and the conditional score (how to move toward the constraint). Most current methods only focus on one or try to approximate the second poorly.
  • Training vs. Sampling: The paper argues that "amortizing" the constraint—teaching the model about the operator during training—is more robust than "guidance" (inference-time optimization). When the model "knows" what it's trying to preserve from the start, it produces more physically plausible results.
  • Efficiency: Their amortized version of the "Genie" protein model has only ~4.1M parameters (about 10% of the size of the famous RFDiffusion model) and was trained in a fraction of the time, yet it remains highly competitive.

Key Results

  • Image Outpainting: The Amortized approach achieved lower Mean Squared Error (MSE) and better perceptual scores (LPIPS) on CelebA (0.14) compared to Replacement (0.17) and Reconstruction Guidance (0.15).
  • Protein Scaffolding: On the RFDiffusion benchmark, the Amortized method achieved a 20% success rate, vastly outperforming Reconstruction Guidance (1.5%) and Replacement (0.5%).
  • Generalization: The new SCOPe benchmark revealed that while alpha-helices are easy to scaffold, other protein classes remain a significant challenge, providing a clear roadmap for where the field needs to go next.

Limitations and Future Work

While the framework is powerful, the authors note a few hurdles:

  • Contiguous Motifs: The current implementation was primarily tested on motifs that are a single continuous chain of amino acids. Real-world "functional sites" are often non-contiguous (made of pieces from different parts of the protein string), which the authors plan to address in future updates.
  • Model Scale: Their model still lags behind the massive RFDiffusion on some complex targets, likely due to the sheer difference in parameter count and training data volume.
  • Validation: The protein results were validated in silico (via software like ESMFold). The ultimate test will be "wet lab" experimental validation to see if these generated proteins actually fold and function in a test tube.

Summary updated

BibTeX
@inproceedings{didi2023framework,
  author = {Kieran Didi and Francisco Vargas and Simon Mathis and Vincent Dutordoir and Emile Mathieu and Urszula Julia Komorowska and Pietro Lio},
  title = {{A framework for conditional diffusion modelling with applications in motif scaffolding for protein design}},
  booktitle = {AI4D3 @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=k2PA7CUUJH},
}
Figure