TL;DR
DiGress is a novel discrete denoising diffusion model that generates graphs by progressively editing categorical node and edge attributes. By operating in a discrete space rather than adding continuous Gaussian noise, it preserves graph sparsity and structural properties, allowing it to scale to massive molecular datasets (1.3M+ molecules) where previous one-shot models failed.
The Challenge of Graph Generation
Generating graphs—whether they represent social networks, protein structures, or drug molecules—is notoriously difficult. Graphs are inherently permutation invariant (the order of nodes doesn't change the graph's identity) and typically sparse (most possible edges don't exist).
Previous state-of-the-art diffusion models for graphs attempted to use continuous Gaussian noise. However, adding Gaussian noise to an adjacency matrix turns a sparse graph into a "dense soup" of floating-point values. This destroys the graph's structural identity, such as connectivity or cycle counts, during the diffusion process. Consequently, it becomes incredibly hard for a neural network to learn how to "denoise" this continuous mess back into a valid, discrete graph. Furthermore, these continuous models have struggled to scale beyond small datasets of a few thousand molecules.
Introducing DiGress
To overcome these limitations, the authors introduce DiGress (Discrete Graph Generation with Progressive Editing), which shifts the diffusion paradigm from continuous to discrete.
- Discrete Diffusion Process: Instead of adding Gaussian noise, the model uses a Markov process that performs discrete "edits." It randomly adds or removes edges and changes node/edge categories based on transition matrices.
- Marginal Noise Model: Rather than using a uniform distribution for noise (which would still result in very dense noisy graphs), the authors propose a noise model that preserves the marginal distribution of node and edge types found in the training data. This ensures that even "noisy" graphs remain sparse and structurally similar to real data.
- Graph Transformer Denoising: The core of the model is a permutation-equivariant Graph Transformer. It takes a noisy graph and predicts the clean version. Because the noise is discrete, the authors can augment the input with auxiliary structural features (like cycle counts) and spectral features (Laplacian eigenvalues) to help the network understand the graph's topology.
- Discrete Guidance: They introduce a guidance mechanism using a property regressor. This allows the model to generate graphs conditioned on specific global properties, such as the dipole moment or solubility of a molecule.
Key Insights
- Sparsity is a Feature, Not a Bug: By maintaining sparsity during the diffusion process, the model can compute and utilize graph-theoretic descriptors (like the number of 3, 4, or 5-cycles) at every step. This provides a massive "hint" to the denoising network that continuous models simply cannot access.
- The Power of Marginals: Moving from a uniform noise prior to a marginal-based prior significantly eases the learning task. It prevents the model from wasting capacity learning to ignore impossible, overly-dense configurations.
- One-Shot vs. Autoregressive: Traditionally, large-scale graph generation required autoregressive models (generating one node/edge at a time), which are slow and depend on an arbitrary node ordering. DiGress proves that a "one-shot" diffusion approach can match the performance of these complex models while remaining more generalizable.
Datasets and Results
The model was evaluated on a diverse range of benchmarks, including synthetic graphs (Stochastic Block Model and Planar graphs up to 200 nodes) and molecular datasets (QM9, MOSES, and GuacaMol). DiGress is the first one-shot (non-autoregressive) model to successfully scale to large datasets like GuacaMol (~1.3M molecules) without using specialized molecular representations like SMILES strings.
- State-of-the-Art Performance: On planar graphs, DiGress achieved a 3x improvement in the rate of valid, unique, and novel graphs compared to previous baselines.
- Efficiency: On the QM9 dataset, DiGress reached 99% validity in just 1 hour of training, compared to 7.2 hours for its continuous-diffusion counterpart (ConGress).
- Scaling: It successfully generated realistic drug-like molecules from the GuacaMol dataset, achieving a Fréchet ChemNet Distance (FCD) score of 68.0—a feat previously impossible for non-autoregressive models.
- Conditioning: The discrete guidance effectively steered generation, reducing the mean absolute error for targeted molecular properties (like the HOMO-LUMO gap) by nearly 50% compared to unconditional generation.
Limitations and Future Work
While DiGress represents a significant step forward, it has some limitations:
- Long-Range Consistency: While excellent at capturing local structure, the authors noted occasional issues with long-range consistency in "scaffold extension" tasks (where the model completes a partial molecule).
- Computational Complexity: The Graph Transformer has an $\mathcal{O}(n^2)$ complexity per layer relative to the number of nodes. While manageable for the datasets tested (up to 200 nodes), generating massive social networks or protein complexes would require more efficient attention mechanisms.
- Evaluation Bottlenecks: The authors noted that current tools for mapping graphs back to chemical strings (SMILES) fail for about 20% of complex molecules, suggesting that the model might actually be performing better than the metrics currently show.
Summary updated