arXiv:2610.05397cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05397

Efficient Graph Generation via Direct Prediction and Flow Matching

Susie Lu

Abstract

Generative modeling of graph-structured data is crucial for tasks ranging from drug discovery to social network simulation. Among these models, denoising diffusion models have achieved great success in graph generation by learning to progressively reverse a process that adds noise to the original graph. However, the standard noise-prediction approach of diffusion models is suboptimal for graph data. The goal for a graph generative model is to learn the clean graphs' topological properties, such as connectivity and degree distribution. Because a diffusion model that predicts noise does not explicitly learn these topological properties, it is challenging for the model to output graphs with the desired structural statistics. To address this challenge, we introduce Direct Graph Flow Matching (DiGFM), a novel graph transformer model guided by two goals: predict clean graphs and improve sampling efficiency. Distinct from the prevailing diffusion approach, DiGFM employs a continuous flow-matching paradigm and integrates direct graph prediction. Specifically, DiGFM maps the prior noise distribution to the clean graph distribution via a multi-step process: the model repeatedly predicts the underlying clean graph, and a transformation is employed to convert the model output to the velocity vector that points in the direction toward the clean graph distribution. This design enables DiGFM to generate high-quality samples using only 2.5% to 15.6% of the steps required by diffusion-based models, which leads to a 5.3×5.3\times to 257×257\times speedup in wall-clock inference time. Experiments demonstrate that DiGFM outperforms or matches prior state-of-the-art models across general graph benchmarks and molecular datasets, generating graphs with strong adherence to ground-truth structural statistics at significantly faster inference speeds.

1 Introduction

Graph generative models have advanced rapidly, with diffusion models achieving great success across diverse domains such as molecular generation [1], protein design [2], neural architecture search [3], social network analysis [4], and combinatorial optimization [5]. These models generate graphs by learning to reverse a forward process that progressively corrupts the original data with noise [6, 7]. Typically, this reversal is accomplished by having the network predict either the added noise or the original clean graph.

The prevailing approach is noise prediction [6], but it is suboptimal for graph data for two reasons. First, the primary goal of a graph generative model is to learn graph topological properties, such as connectivity and degree distribution. Diffusion models that predict noise do not explicitly reconstruct these properties, making it challenging for them to output graphs with faithful structural statistics. Instead, a diffusion model that directly predicts the original clean graph can generate more accurately. Second, noise prediction suffers from a curse of dimensionality rooted in the manifold hypothesis [8, 9]. This hypothesis states that real-world data lies roughly on a low-dimensional manifold. Since clean graphs possess specific topological structures, they approximately lie on a low-dimensional manifold. In contrast, noise (e.g., Gaussian noise in diffusion) is off-manifold and distributed across the entire high-dimensional space. Because our model directly predicts clean graphs (low-

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Geometric Distributional Deep Learning (Oral).

dimensional) rather than noise (high-dimensional), it learns the topological properties of the graph more easily and achieves significantly greater sampling efficiency.

While the approach of predicting clean graphs has been explored by GruM [10], which predicts a weighted mean of clean graph structures, its underlying diffusion mixture approach presents limitations. GruM relies on Ornstein-Uhlenbeck processes [11], which induce curved, stochastic trajectories from noise to data. As a result, it requires a large number of sampling steps (e.g., 1,000) during inference to accurately approximate these curved trajectories and maintain generation quality.

To overcome these limitations, we introduce Direct Graph Flow Matching (DiGFM), a novel generative model that directly predicts clean graphs and leverages the recent flow matching paradigm [12] to significantly improve sampling efficiency. Unlike prior work, DiGFM decouples the model's output space (clean graph) from the loss space (velocity in flow matching). Specifically, given a noisy graph, DiGFM directly outputs a clean graph prediction; this prediction is transformed into a velocity vector, which an Ordinary Differential Equation (ODE) solver uses to take a step toward the next, less noisy version of the graph.

Our experiments demonstrate that DiGFM outperforms or matches existing generative models across diverse datasets while requiring only a fraction of their sampling steps. On general graph benchmarks (Community [13], Ego [14], Stochastic Block Model [15], and Enzymes [16]), DiGFM outperforms prior models on the majority of the metrics, which cover both classical structural metrics (degree, clustering, orbit MMDs) and neural-based metrics (FID and RBF MMD). Notably, DiGFM achieves lower values for the average maximum mean discrepancy and neural-based metrics using only 15 to 20 sampling steps—just 2.5% to 15.6% of the steps required by previous state-of-the-art models. On molecular generation, DiGFM achieves a validity of 99.82% on QM9 [17] and 98.73% on ZINC250k [18], which indicates that almost all of the generated molecules are chemically valid without post hoc correction. Furthermore, DiGFM naturally supports conditional generation, and it achieves state-of-the-art performance on generating QM9 molecules conditioned on the dipole moment and on the highest occupied molecular orbital (HOMO).

Our main contributions can be summarized as follows:

• We introduce DiGFM, a generative model that directly predicts clean graphs in order to capture topological properties better than standard noise-prediction models.

• We develop a framework that integrates direct graph prediction with the flow matching paradigm.

• Our model outperforms or matches prior state-of-the-art models on general graph benchmarks and molecular datasets while achieving a 5.3×5.3 \times to 257×257 \times wall-clock inference speedup by using fewer sampling steps.

Our code is available at this link.

References (50)