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

Composable Score-based Graph Diffusion Model for Multi-Conditional Molecular Generation

Anjie Qiao, Zhen Wang, Chuan Chen, Defu Lian, Enhong ChenarXiv 2025 · OpenReview

Abstract

Controllable molecular graph generation is essential for material and drug discovery, where generated molecules must satisfy diverse property constraints. While recent advances in graph diffusion models have improved generation quality, their effectiveness in multi-conditional settings remains limited due to reliance on joint conditioning or continuous relaxations that compromise fidelity. To address these limitations, we propose Composable Score-based Graph Diffusion model (CSGD), the first model that extends score matching to discrete graphs via concrete scores, enabling flexible and principled manipulation of conditional guidance. Building on this foundation, we introduce two score-based techniques: Composable Guidance (CoG), which allows fine-grained control over arbitrary subsets of conditions during sampling, and Probability Calibration (PC), which adjusts estimated transition probabilities to mitigate train-test mismatches. Empirical results on four molecular datasets show that CSGD achieves state-of-the-art performance, with a 15.3% average improvement in controllability over prior methods, while maintaining high validity and distributional fidelity. Our findings highlight the practical advantages of score-based modeling for discrete graph generation and its capacity for flexible, multi-property molecular design.

Introduction

Controllable molecular graph generation is a cornerstone of modern drug and material discovery. The goal is to design molecules that satisfy a complex set of property constraints, such as high synthesizability, specific binding affinities, or target physical properties. However, current graph diffusion models face significant challenges in multi-conditional settings. They often rely on "joint conditioning," which lacks flexibility and requires retraining for new property combinations, or "continuous relaxations" that attempt to apply image-based gradient guidance to discrete graphs, often at the cost of molecular validity.

The CSGD Framework

To overcome these hurdles, we introduce the Composable Score-based Graph Diffusion (CSGD) model. CSGD is the first framework to extend score matching to discrete graphs through the use of "concrete scores." Unlike traditional gradients, concrete scores represent the log-ratio of transition probabilities between discrete states, allowing for principled manipulation of conditional guidance in a discrete space.

Comparison of conditioning strategies: (A) Joint conditioning, (B) Graph relaxation, (C) Classifier-free guidance, and (D) the proposed Composable Score Guidance.

Composable Guidance (CoG)

A key innovation of CSGD is Composable Guidance (CoG). By leveraging the additive nature of scores, CoG allows the generation process to be decomposed into a sum of independent property scores. This modularity enables users to select arbitrary subsets of properties and adjust their relative weights during inference without any additional training. To handle high-dimensional property sets efficiently, we also introduce fast-CoG, which uses mean-pooling of property embeddings to maintain constant computational overhead.

Probability Calibration (PC)

Applying strong guidance in diffusion models can often lead to "out-of-distribution" sampling, resulting in chemically invalid structures. To mitigate this, CSGD employs Probability Calibration (PC). This technique uses dynamic thresholding and temperature scaling to normalize transition probabilities, ensuring the model remains within the manifold of valid molecular graphs even under intense multi-property constraints.

The CSGD framework illustrating the sampling process with Composable Guidance (CoG) and Probability Calibration (PC).

Experimental Evaluation

We evaluated CSGD on four molecular datasets, including material science benchmarks (Polymers) and drug discovery tasks (MoleculeNet: BACE, BBBP, HIV). These datasets encompass a mix of numerical properties (e.g., gas permeability, synthesizability) and categorical labels (e.g., bioactivity).

Key Results

  • Superior Controllability: CSGD achieves a 15.3% average relative improvement in property targeting accuracy (MAE) compared to state-of-the-art baselines like GraphDiT.
  • High Fidelity and Validity: On the Polymers dataset, the model maintains a 99.38% validity rate while satisfying four simultaneous constraints, demonstrating the effectiveness of Probability Calibration.
  • Sampling Flexibility: CSGD allows for zero-shot adaptation to various property combinations, a feat that typically requires multiple specialized models in traditional joint-conditioning frameworks.

Discussion and Future Work

The success of CSGD highlights the power of probability ratios for discrete graph modeling. By treating multi-property generation as a composition of independent "forces," we achieve unprecedented control. However, a current limitation is the assumption of conditional independence between properties. Future work will focus on explicitly modeling property correlations to further enhance generation accuracy in complex chemical spaces. Additionally, the "concrete score" framework holds promise for other discrete domains beyond chemistry, such as social network synthesis.

Summary updated

BibTeX
@misc{qiao2025composable,
  author = {Anjie Qiao and Zhen Wang and Chuan Chen and Defu Lian and Enhong Chen},
  title = {{Composable Score-based Graph Diffusion Model for Multi-Conditional Molecular Generation}},
  year = {2025},
  eprint = {2509.09451},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09451},
}
Figure