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

Graph Diffusion Transformers for Multi-Conditional Molecular Generation

Gang Liu, Jiaxin Xu, Tengfei Luo, Meng Jiang

TL;DR

Graph Diffusion Transformers (Graph DiT) is a novel generative framework designed to create molecules and polymers that satisfy multiple complex property constraints simultaneously. By utilizing a unique graph-dependent noise model and a Transformer-based denoiser, Graph DiT significantly outperforms existing methods in property accuracy and chemical validity. It has even received strong validation from domain experts in practical material design tasks.

What Problem Does This Paper Address?

In drug discovery and materials science, researchers often rely on "inverse design." Instead of testing an existing molecule to see what it does, they start with a list of desired properties—such as "must be easy to synthesize" and "must have high oxygen permeability"—and ask a computational model to build a molecule that fits the bill.

While diffusion models have proven excellent at generating realistic-looking molecules, they struggle when given multiple constraints at once. This difficulty stems from three main challenges:

  1. Scale Mismatches: One property might be measured on a scale of 1 to 5, while another ranges from 0 to 10,000.
  2. Mixed Data Types: Models must juggle continuous numerical values (like permeability) alongside categorical ones (like whether a drug can cross the blood-brain barrier).
  3. Structural Dependencies: Most current models add "noise" to atoms and bonds independently during training. However, in a real molecule, the type of atom and the bonds it forms are deeply intertwined. Treating them separately makes the core diffusion "denoising" process much less accurate.

Methods: The Graph DiT Approach

To overcome these hurdles, the authors propose Graph DiT, which introduces three major technical shifts to the diffusion process:

Architecture of the Graph Diffusion Transformer (Graph DiT)
  • Graph-Dependent Noise Model: Instead of blurring atoms and bonds separately, Graph DiT uses a joint transition matrix. This ensures that the noise added during training respects the fundamental relationships between nodes (atoms) and edges (bonds), making the generative process more structurally sound.
  • Clustering-Based Condition Encoder: To handle numerical properties with vastly different scales, the model uses a learnable clustering method. It maps continuous numbers into "soft" clusters, helping the model balance diverse constraints more effectively than a simple linear mapping would.
  • Transformer Denoiser with AdaLN: The "brain" of the model is a Transformer that utilizes Adaptive Layer Normalization (AdaLN). Instead of standard normalization, the model uses the desired property constraints to shift and scale the features in every single layer of the network. This ensures the conditional "instructions" remain present throughout the entire generation process.

Datasets and Baselines

The researchers evaluated Graph DiT across two distinct domains:

  • Polymers: A dataset focused on gas permeability ($O_2$, $CO_2$, $N_2$) and synthesizability scores.
  • Small Molecules: Three datasets from MoleculeNet (HIV, BBBP, and BACE), which involve categorical properties related to drug efficacy and safety.

They compared their results against a wide array of baselines, including popular molecular optimization tools (Graph-GA, MARS) and state-of-the-art diffusion models (DiGress, GDSS).

Key Insights

  • The "Joint" Secret Sauce: The most significant breakthrough is treating the graph as a single, dependent entity during the noise process. By avoiding the independent treatment of atoms and bonds, the model is prevented from "hallucinating" chemical combinations that do not make sense in reality.
  • AdaLN Wins Over Cross-Attention: While many Transformers use cross-attention to inject external data, the authors found that modulating the normalization layers (AdaLN) was far more effective for guiding the structural generation of a graph.
  • Predictor-Free Generation: Unlike models that require a separate, often slow and error-prone "property predictor" to guide generation, Graph DiT is trained to understand the properties directly. This makes the generation process cleaner and more robust.

Key Results

The quantitative results demonstrate a clear leap forward in multi-conditional generation:

Quantitative comparison of Graph DiT against baseline models
  • Property Control: On the polymer dataset, Graph DiT reduced the Mean Absolute Error (MAE) for property targets by 17.86% compared to the best existing baseline.
  • Categorical Accuracy: In small molecule tasks, it achieved over 0.9 accuracy in hitting categorical targets, while most baselines struggled to stay above 0.6.
  • Expert Validation: The authors went beyond standard metrics by asking four polymer scientists to rank generated molecules for a gas separation task. The experts consistently ranked Graph DiT’s molecules as the most promising and chemically sensible, specifically noting that the model successfully captured "polymerization points" that other models missed.

Limitations and Future Work

While Graph DiT represents a significant advancement, the authors note a few areas for future growth:

  • The Diversity Trade-off: There is a known tension between fitting the training distribution (accuracy) and generating highly diverse, novel structures. Graph DiT leans toward accuracy, which can slightly limit the variety of generated molecules.
  • 2D vs. 3D: Currently, the model generates 2D molecular graphs. Because 3D shape (conformation) is vital in drug discovery, integrating 3D atomic coordinates is a logical next step, despite the higher computational costs.
  • Scaling to Macro-molecules: While it handles polymers well, extremely large and complex biological macro-molecules remain a challenge for current graph-based diffusion approaches.

Summary updated

BibTeX
@inproceedings{liu2024graph,
  author = {Gang Liu and Jiaxin Xu and Tengfei Luo and Meng Jiang},
  title = {{Graph Diffusion Transformers for Multi-Conditional Molecular Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=cfrDLD1wfO},
}
Figure