Manuscript Offprint
arXiv:2610.33599H-GLow: Accelerating Graph Generation via Hazard-Guided Discrete Flow Matching
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Discrete flow matching (DFM) offers a promising approach to graph generation; however, generating high-quality graphs with few steps remains challenging due to the strong dependencies between nodes and edges. Although DFM decouples training from sampling, enabling flexible sampling strategies without retraining, existing graph DFM samplers often rely on task-specific heuristics, substantially expanding the hyperparameter space. Moreover, graph DFM models still require sampling budgets comparable to those of diffusion-based approaches, leaving their potential for accelerating graph generation only partially realized. In this work, we introduce H-Glow, a hazard-guided framework for accelerating graph generation built on the decomposition of Continuous-Time Markov chain (CTMC) generators into hazards and conditional jump distributions. H-Glow leverages these quantities to plan graph edits and dynamically adjust the sampling time to graph activity. H-Glow can be adapted to pretrained graph DFM models, substantially improving the generation quality with fewer steps. We further introduce a novel graph DFM model based on the conditional generator matching framework, which directly predicts hazards and conditional jumps, and show that its training objective decomposes exactly into hazard matching and hazard-weighted jump prediction. Experiments on molecular and synthetic graph benchmarks demonstrate improved generation quality with substantially fewer sampling steps.
1 INTRODUCTION
Graph generative models have the potential to accelerate materials design (Sanchez-Lengeling & Aspuru-Guzik, 2018) and drug discovery (Zhang et al., 2025) by designing new molecular structures. Discrete-state graph diffusion models (Vignac et al., 2022) offer a promising approach for progressively refining categorical node and edge attributes through iterative denoising updates. However, their denoising process is defined on a fixed temporal grid, and sampling is therefore tied to the discrete time points used during training.
Continuous-time graph diffusion models overcome this restriction by learning to denoise at arbitrary time points, allowing flexible time discretization during inference (Campbell et al., 2022; Xu et al., 2024; Siraudin et al., 2024). More recently, discrete flow matching (DFM) has achieved state-of-the-art performance on molecular and synthetic graph benchmarks (Qin et al., 2025). Despite the sampling acceleration achieved by flow-based models in domains such as images (Geng et al., 2026) and text generation (Sevriugov et al., 2026), graph flow models remain computationally costly and often require as many sampling steps as diffusion-based methods, leaving their potential for efficient generation only partially realized.
The structural complexity of graphs poses distinct challenges for efficient sampling compared with image or text generation, as node and edge attributes are strongly interdependent. For example, a single incorrect bond can violate valency constraints and invalidate a molecule. Existing samplers update multiple nodes and edges in parallel without accounting for potential conflicts between updates, leading to violations of structural or chemical constraints. The approximation errors become more pronounced as the sampling budget decreases. To address this, prior work exploits the training-sampling decoupling of DFM and employs specialized sampling-time interventions to im-

Figure 1: Overview of H-Glow.
prove generation quality, including target guidance, additional stochasticity, and tailored sampling-time discretizations (Campbell et al., 2024; Qin et al., 2025; Luo et al., 2026). However, these interventions expand the hyperparameter space and often require extensive tuning for each task and sampling budget during generation.
We present H-Glow, a novel framework for graph generation built on the decomposition of CTMC generators into hazards and conditional jump distributions, as presented in Fig. 1. H-Glow decomposes the generative process into three key components: (i) hazard-guided planning that prioritizes graph edits and coordinates node and edge updates; (ii) conditional jump distributions that guide the refinement of selected graph components; and (iii) a hazard-guided clock that dynamically adjusts the sampling-time distortion to the graph's predicted activity. Our H-Glow sampler substantially accelerates graph generation and serves as a drop-in replacement for pretrained models with accessible CTMC generators. We further introduce the H-Glow model, a structured DFM model for graph generation trained using the generator-matching framework (Holderrieth et al., 2025). H-Glow adopts a factorized CTMC parameterization to learn node and edge hazards, as well as conditional jump distributions (Li et al., 2026), thereby directly supervising the quantities that guide the sampling.
We summarize our contributions as follows:
• Hazard-guided graph sampling. We introduce H-Glow, a novel sampler that effectively leverages the model’s predicted hazards and jump distributions to prioritize graph edits and dynamically adapt sampling-time distortions to graph activity. Moreover, H-Glow serves as a drop-in sampler that accelerates pretrained models with accessible CTMC generators, without retraining, auxiliary networks, or complex sampling interventions.
• Structured graph generator learning framework. We introduce a graph DFM model that directly learns node and edge hazards, as well as conditional jump distributions, rather than relying on a denoiser network. Under the CTMC factorization, we derive an exact decomposition of the generator-matching objective into hazard matching and hazard-weighted jump prediction.
• Empirical evaluation. H-Glow achieves high validity and strong FCD performance on molecular benchmarks using substantially fewer sampling steps. Our ablations further demonstrate that the hazard-guided clock outperforms prior time discretizations and that our sampler surpasses existing samplers with fewer function evaluations.
2.1 CONTINUOUS-TIME MARKOV CHAINS (CTMC)
A CTMC is a right-continuous stochastic process taking values in a finite discrete state space and satisfies the Markov property for all
. A CTMC is characterized by its holding times and jumps. Specifically, a state remains unchanged for a period of holding time. When the holding time ends, the state jumps to the next state according to a jump probability distribution. The holding-and-jumping process is then repeated. This two-step process is described using a generator matrix , analogous to the velocity field in continuous state spaces (Lipman et al., 2022), which defines transition rates between states:
where is the Kronecker delta, denotes an entry in the rate matrix, and is the probability of state transition from to in the next infinitesimal time step . The generator matrix satisfies , for , and to ensure that the transition probabilities sum to 1. Any generator rate matrix can be factorized as:
Here, is the hazard of the state , i.e., the instantaneous rate of transitioning from to any other state, and is the jump distribution, satisfying:
A large hazard indicates a high instantaneous jump rate from , whereas defines where it moves. In practice, the trajectory can be simulated with finite time intervals using Euler steps:
2.2 DISCRETE FLOW MATCHING
A discrete flow model constructs a probability path , i.e., the generative flow, connecting a simple prior to the target data distribution . During inference, samples are generated by simulating a CTMC whose marginal distribution follows the probability path. To achieve this, we need to construct a rate matrix that generates , which is used to simulate the trajectory from to following Eq. (1). The marginal distribution and the generator matrix are related by a conservation law, the Kolmogorov forward equation:
which expresses the time derivative of the marginal probability at as the net balance between incoming and outgoing probability mass. However, since it is intractable to directly derive a generator for , flow matching relies on a simpler datapoint conditional flow satisfying:
where the conditional flow starts from noise at , and converges to the datapoint at . Discrete flow matching (DFM) (Gat et al., 2024) linearly interpolates towards as follows:
where is a scheduler increasing monotonically from to .
Generator construction. One choice of a valid conditional generator that generates the conditional probability path is
Gat et al. (2024) show that a rate matrix generating the marginal path is obtained by averaging the conditional rates over the posterior : . Gat et al. (2024) derive the marginal rate matrix in closed form as follows:
Learning. DFM trains a neural network to approximate the true denoising distribution using the cross-entropy loss, i.e., learning to predict the clean data point given a noisy latent :
Once trained, the generator is constructed as . Together with the initial distribution , this generator defines a CTMC, which can be simulated using Eq. (4).
3 LIMITATIONS OF EXISTING GRAPH DFM MODELS
Discrete flow matching has been recently extended for graphs (Qin et al., 2025), where samples are generated by simulating a multivariate CTMC factorizing over node and edge attributes:
denotes a node or edge attribute, is the corresponding attribute space, and , and is the number of graph components. In the following, we discuss the limitations of existing graph DFM models.
Sampling complexity. Graph DFM models often rely on sophisticated sampling procedures, including predictor-corrector updates (Campbell et al., 2022), target guidance and additional stochasticity (Campbell et al., 2024), as well as carefully designed sampling-time distortions (Qin et al., 2025). In particular, Luo et al. (2026); Qin et al. (2025) design non-uniform time discretizations that concentrate computation in specific regions of the generation trajectory where graph validity is most sensitive. While effective, these techniques introduce additional hyperparameters and design choices, requiring substantial inference-time tuning for each task and sampling budget.
Sampling efficiency. DFM unlocks flexible sampling strategies by decoupling model training from sampling. However, existing graph DFM methods still require a large number of function evaluations (NFE), often comparable to that of diffusion-based approaches. In practice, DFM methods simulate the process in Eq. (11) using finite-step approximations such as -leaping (Gillespie, 2001), which hold transition rates fixed over a finite interval and apply the resulting component updates simultaneously. These fixed rates neglect interactions between updates within the interval, thereby introducing approximation errors when multiple graph components change. These errors are more pronounced in the low-step regime, where larger intervals tend to produce more simultaneous updates. Accurately coordinating node and edge transitions is therefore crucial for maintaining sample quality at low NFE.
4 HAZARD-GUIDED SAMPLING USING H-GLOW
We introduce H-Glow, a novel hazard-guided sampler for graph generation that builds on the decomposition of CTMC generators into hazards and conditional jump distributions. We first instantiate the decomposition for graphs in Section 4.1, then present our H-Glow sampler in Section 4.2.
Notations. We represent an undirected graph with nodes by its node and edge attributes as , where and . Here, denotes a categorical attribute of node , and denotes a categorical edge attribute. Following Vignac et al. (2022), we associate an edge between every pair of nodes, and reserve one category in to represent the absence of an edge. denotes the attribute of a component , corresponding to a node attribute or an edge attribute .
4.1 DECOMPOSITION OF GRAPH GENERATORS
In the following, we assume access to a model from which we can construct valid component-wise generators with transition rates . For each component , we factorize the off-diagonal elements following Eq. (2) as:
where is the exit hazard and is the jump distribution. To ensure that each row of the generator sums to zero, we set the diagonal entries to:
The resulting overall graph generator factorizes over nodes and edges, as shown in Proposition 1.
Proposition 1 (Graph generator). The graph generator factorizes, i.e., it can be constructed as the sum of the generators of the individual component paths (Campbell et al., 2022; Xu et al., 2024):
where and denote the attributes of node and edge in , respectively, and and check if and are identical except for node or edge , respectively. and are the node and edge generators.
Under this construction, the graph CTMC changes one node or edge attribute at a time, with transition rates that depend on the entire graph .
Proposition 2 (Graph hazard). For the generator in Proposition 1, the total graph hazard is given by the sum of the componentwise node and edge hazards and of and :
The graph hazard in Eq. (14) provides a non-negative scalar measure of graph activity, with larger values indicating a higher instantaneous rate of graph edits.
4.2 GRAPH GENERATION PLANNING UNDER H-GLOW
Building on the hazard-jump decomposition, we design the H-Glow sampler to fully leverage the model's own predictions for graph-edit planning. The predicted hazards and conditional jump distributions jointly guide three key decisions: (i) which nodes or edges to update, (ii) which states the selected components should transition to, and (iii) at which time step to evaluate the model next.
Component selection. Hazard-based selection. A natural choice is to sample components based on their contribution to the graph hazard, where, for :
Algorithm 1 H-Glow: Hazard-guided sampling
1: Input: model , budget , threshold 2: Initialize , , 3: Let 4: while do 5: Construct and derive 6: 7: if then return 8: 9: 10: 11: 12: 13: end while 14: return
Confidence-weighted selection. Alternatively, we can select components with confident jumps:
and sample in proportion to . We provide an ablation of component selection criteria in Table 5.
Conditional jump. Once is selected for an update, we sample its jump following:
As this jump excludes the current state, each conditional jump changes exactly one component.
Hazard-based time allocation. Sampling time distortion is particularly important when generating graphs under a limited number of steps T. H-Glow benefits from the predicted hazards to dynamically adapt the time according to the graph activity. Higher graph activity motivates a finer discretization with more refinement steps to revise earlier predictions, whereas low activity motivates a coarser discretization with fewer refinement steps.
To derive a sampling-time policy, we first look into the hazards implied by the DFM generator. Under the DFM construction in Eq. (9), the conditional hazard simplifies to: . The marginal hazard averages conditional hazards over clean graphs:
Therefore, hazards estimate the remaining componentwise disagreement between the noisy latent and the clean graph. We leverage this to construct the following hazard-guided sampling time:
This measures the average remaining graph activity. We note that we normalize node and edge hazards to prevent edge activity from dominating the clock update and to avoid larger time jumps in larger graphs. We provide the full derivation in Section C.1. Importantly, the time allocation in Eq. (19) defines a graph-dependent sequence of evaluations that can move forward or backward in time. When time moves from t to s < t, we Renoise the graph by independently resampling nodes and edges from their corresponding priors with probability , allowing the sampler to revisit earlier predictions.
Early stopping. Once the graph hazard falls below a threshold , we terminate the trajectory. This prevents further graph edits when the model predicts low graph activity, reducing the risk of disrupting an otherwise valid graph. This is particularly crucial for graph generation, where even a single incorrect node or edge update can violate structural or chemical constraints. Our ablation in Table 5 shows that removing early stopping degrades sample quality. In Section 6, we show that H-Glow terminates before exhausting the entire budget T while maintaining strong performance.
4.3 ACCELERATING PRETRAINED MODELS
H-Glow can be applied directly to pretrained models with accessible CTMC generators. Existing graph DFM models train a denoising network to predict distributions over clean node and edge attributes, and construct generators following Eq. (9). These models typically sample via Euler discretization, updating node and edge states independently in parallel at each time step. In contrast, H-Glow decomposes the resulting generators post hoc into hazards and conditional jump distributions to guide graph edits. In Fig. 2, we show that H-Glow can significantly accelerate graph generation without additional training or sampling-time interventions. We summarize our sampling strategy in Algorithm 1, omitting the generator construction and Renoising step for clarity.
5 H-GLOW: DISCRETE FLOW MATCHING MODEL FOR GRAPHS
Motivated by the acceleration gains achieved by H-Glow using pretrained models, we propose a structured generator-learning framework for graphs. In the following, we propose the H-Glow model, a simple discrete flow-matching model for graph generation that directly parameterizes the generator using hazards and conditional jump distributions.
Noising. We design the noising trajectory by independently adding noise to each node and edge:
(20)
Algorithm 2 Training the H-Glow model
1: Input: Graph dataset D 2: while has not converged do 3: Sample 4: Sample 5: Sample 6: Sample 7: Compute 8: 9: loss 10: optimizer.step(loss) 11: end while
where and are defined following Eq. (7). We use empirical marginal priors over node and edge types and (Vignac et al., 2022).
Conditional targets. For each component , we factorize the conditional generator into an exit hazard and conditional jump distribution .
Optimization. We parameterize node and edge hazards and conditional jump distributions using a neural network: . We follow the conditional generator matching framework in Holderrieth et al. (2025), and use the Bregman Divergence loss to optimize the continuous-time ELBO derived for finite-state jump processes:
We show in Theorem 1 that, under H-Glow's factorization, this objective separates exactly into a hazard matching and a hazard-weighted jump optimization over nodes and edges.
Theorem 1 (Decomposed graph generator matching objective). Assume that the conditional target and learned graph generators follow the single-component construction in Proposition 1 and admit hazard-jump decompositions. Then, the conditional generator matching objective decomposes as:
where, for each graph component ,
Here, .
We provide a proof in Appendix A. Theorem 1 shows that learning the graph generator reduces to two separate prediction tasks for every node and edge. The hazard head learns the instantaneous rate at which the component changes, whereas the jump head learns the destination distribution conditional on a jump occurring. Importantly, the jump loss is weighted by the target hazard. Therefore, components with a high hazard receive greater weight, whereas the jump loss vanishes for components with zero target hazard. We summarize the training algorithm in Algorithm 2.
6 EXPERIMENTS
We evaluate H-Glow on molecular and synthetic graph benchmarks. Unless otherwise specified, H-Glow results refer to the H-Glow DFM model trained with the decomposed hazard–jump objective (Section 5) and sampled using the H-Glow sampler (Section 4). To isolate the effect of the network architecture, we build the H-Glow model using the graph transformer in Vignac et al. (2022). We describe the benchmarks, baselines, and model architectures in Appendix B.
6.1 MOLECULAR GRAPH GENERATION
Small molecule generation. We evaluate H-Glow on QM9 (Wu et al., 2018) and report the results in Table 1. While Steps denotes the available budget of sampling steps, H-Glow can terminate well before exhausting this budget when graph activity becomes sufficiently low, resulting in substantially fewer function evaluations. We report the mean standard deviation of NFE across sampled molecules in parentheses. With a budget of only 50 sampling steps, H-Glow achieves the lowest FCD among the evaluated models, surpassing both 50- and 500-step baselines while maintaining high validity.
Large molecule generation. We evaluate H-Glow on GuacaMol (Brown et al., 2019) and Moses
Table 1: Performance on QM9. We report Steps, denoting the available sampling budget , and the mean standard deviation of NFE across sampled molecules.
| Model | Relaxed | ||||
|---|---|---|---|---|---|
| Steps (NFE) | Valid ↑ | Validity ↑ | Unique ↑ | FCD ↓ | |
| Training set | - | 99.3 | 99.5 | 99.2 | 0.03 |
| DiGress (Vignac et al., 2022) | 500 (500 ± 0.0) | 99.0 | - | 96.2 | - |
| CatFlow (Eijkelboom et al., 2024) | - | 99.8 | - | 100.0 | 0.44 |
| DisCo (Xu et al., 2024) | 500 (500 ± 0.0) | 99.3 | - | - | - |
| Cometh (Siraudin et al., 2024) | 500 (500 ± 0.0) | 99.6 | - | 96.8 | 0.25 |
| SID (Boget, 2025) | 500 (500 ± 0.0) | 99.7 | - | - | 0.50 |
| CID (Boget, 2025) | 500 (500 ± 0.0) | 99.9 | - | - | 1.76 |
| SimGFM (Luo et al., 2026) | 50 (50 ± 0.0) | 99.7 | 99.8 | 96.3 | 0.13 |
| SimGFM (Luo et al., 2026) | 500 (500 ± 0.0) | 99.8 | 99.9 | 94.9 | 0.31 |
| DeFoG (Qin et al., 2025) | 50 (50 ± 0.0) | 98.9 | 99.2 | 96.2 | 0.26 |
| DeFoG (Qin et al., 2025) | 500 (500 ± 0.0) | 99.3 | 99.4 | 96.3 | 0.12 |
| H-Glow (Ours) | 20 (19.0 ± 0.4) | 99.2 | 99.5 | 95.0 | 0.37 |
| H-Glow (Ours) | 50 (22.4 ± 2.3) | 99.1 | 99.5 | 96.2 | 0.10 |
Table 2: Large molecule generation performance on MOSES and GuacaMol. Only iterative denoising-based methods are reported. We report Steps, denoting the sampling budget , and the mean standard deviation of NFE across sampled molecules.
| Model | MOSES | GuacaMol | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Steps (NFE) | Val. ↑ | Unique. ↑ | Novelty ↑ | Filters ↑ | FCD ↓ | SNN ↑ | Scaf. ↑ | Steps (NFE) | Val. ↑ | V.U. ↑ | V.U.N. ↑ | KLD. ↑ | FCD ↑ | |
| Training set | - | 100.0 | 100.0 | 0.0 | 100.0 | 0.01 | 0.64 | 99.1 | - | 100.0 | 100.0 | 0.0 | 99.9 | 92.8 |
| DiGress (Vignac et al., 2022) | 500 (500 ± 0.0) | 85.7 | 100.0 | 95.0 | 97.1 | 1.19 | 0.52 | 14.8 | 500 (500 ± 0.0) | 85.2 | 85.2 | 85.1 | 92.9 | 68.0 |
| DisCo (Xu et al., 2024) | 500 (500 ± 0.0) | 88.3 | 100.0 | 97.7 | 95.6 | 1.44 | 0.50 | 15.1 | 500 (500 ± 0.0) | 86.6 | 86.6 | 86.5 | 92.6 | 59.7 |
| Cometh (Siraudin et al., 2024) | 500 (500 ± 0.0) | 86.1 | 100.0 | 96.0 | 97.3 | 1.27 | 0.50 | 16.4 | 500 (500 ± 0.0) | 94.4 | 94.4 | 93.5 | 94.1 | 67.4 |
| Cometh-PC (Siraudin et al., 2024) | 500 (500 ± 0.0) | 90.5 | 99.9 | 92.6 | 99.1 | 1.27 | 0.54 | 16.0 | 500 (500 ± 0.0) | 98.9 | 98.9 | 97.6 | 96.7 | 72.7 |
| SimGFM (Luo et al., 2026) | 50 (50 ± 0.0) | 86.1 | 100.0 | 95.1 | 98.6 | 1.44 | 0.51 | 16.9 | 50 (50 ± 0.0) | 98.5 | 98.5 | 98.3 | 93.6 | 77.1 |
| SimGFM (Luo et al., 2026) | 200 (200 ± 0.0) | 89.4 | 100.0 | 94.6 | 98.9 | 1.08 | 0.55 | 17.3 | 200 (200 ± 0.0) | 99.2 | 99.2 | 98.5 | 94.6 | 76.4 |
| SimGFM (Luo et al., 2026) | 500 (500 ± 0.0) | 91.1 | 100.0 | 93.9 | 99.2 | 1.19 | 0.56 | 14.4 | 500 (500 ± 0.0) | 99.2 | 99.2 | 98.6 | 95.5 | 73.5 |
| DeFoG (Qin et al., 2025) | 50 (50 ± 0.0) | 82.9 | 99.9 | 95.1 | 97.8 | 1.79 | 0.53 | 19.8 | 50 (50 ± 0.0) | 91.7 | 91.7 | 91.2 | 92.3 | 57.9 |
| DeFoG (Qin et al., 2025) | 500 (500 ± 0.0) | 91.5 | 99.9 | 90.0 | 99.2 | 1.47 | 0.55 | 11.5 | 500 (500 ± 0.0) | 99.0 | 99.0 | 97.9 | 97.7 | 73.8 |
| H-Glow (Ours) | 50 (35.9 ± 7.0) | 89.5 | 100.0 | 94.4 | 99.1 | 0.98 | 0.55 | 18.8 | 50 (40.4 ± 8.1) | 95.2 | 95.2 | 93.6 | 89.9 | 69.3 |
| H-Glow (Ours) | 100 (47.1 ± 15.7) | 89.9 | 99.9 | 93.0 | 99.2 | 0.96 | 0.56 | 16.0 | 100 (49.2 ± 13.7) | 99.2 | 99.2 | 98.1 | 96.9 | 77.7 |
| H-Glow (Ours) | 200 (57.2 ± 14.2) | 91.9 | 99.9 | 93.1 | 99.4 | 1.08 | 0.58 | 15.5 | 200 (78.8 ± 35.6) | 99.4 | 99.4 | 97.9 | 96.8 | 77.3 |
(Polykovskiy et al., 2020) and report results in Table 2. We compare with recent discrete diffusion and flow matching models. H-Glow achieves the best FCD on both datasets with only 100 steps, outperforming the 500-step baselines.
6.2 SYNTHETIC GRAPHS
The sampler in Algorithm 1 achieves strong empirical performance on both small and large molecular graphs using few NFEs, see Section 6.1. This is possible because the sampling initialization from the empirical node and edge priors and enforces sparsity, where most candidate edges are assigned to the no-bond category, and only a few graph edits can be sufficient to generate a valid molecule. For graphs requiring more extensive structural changes, where the number of required graph edits exceeds the available NFE budget, we extend H-Glow to perform up to edits in parallel at each step; see Algorithm 3. We evaluate on Planar (Martinkus et al., 2022) and Tree (Bergmeister et al., 2024), reporting means and standard deviations over 5 runs of 40 graphs (Table 3). With 20 steps, H-Glow achieves and V.U.N. on Planar and Tree, respectively, and at 200 steps with competitive Ratios.
Table 3: Performance on synthetic graphs. Full version in Table 13.
| Model | Steps | Planar | Tree | ||
|---|---|---|---|---|---|
| V.U.N. ↑ | Ratio ↓ | V.U.N. ↑ | Ratio ↓ | ||
| Training set | - | 100.0 | 1.0 | 100.0 | 1.0 |
| EDGE (Chen et al., 2023) | 1000 | 0.0 | 431.4 | 0.0 | 850.7 |
| DiGress (Vignac et al., 2022) | 1000 | 77.5 | 5.1 | 90.0 | 1.6 |
| HSpectre (Bergmeister et al., 2024) | - | 95.0 | 2.1 | 100.0 | 4.0 |
| GruM (Jo et al., 2023) | - | 90.0 | 1.8 | - | - |
| DisCo (Xu et al., 2024) | 500 | 83.6 | - | - | - |
| Cometh (Siraudin et al., 2024) | 500 | 92.5 | - | - | - |
| Cometh-PC (Siraudin et al., 2024) | - | 99.5 | - | - | - |
| CatFlow (Eijkelboom et al., 2024) | - | 80.0 | - | - | - |
| SimGFM (Luo et al., 2026) | 20 | 94.0 ± 4.4 | 2.3 ± 0.6 | 88.0 ± 4.8 | 2.5 ± 0.9 |
| SimGFM (Luo et al., 2026) | 50 | 99.5 ± 1.0 | 1.8 ± 0.5 | 97.0 ± 1.0 | 2.0 ± 0.7 |
| SimGFM (Luo et al., 2026) | 200 | 100.0 ± 0.0 | 9.3 ± 2.6 | 99.5 ± 1.0 | 1.5 ± 0.2 |
| SimGFM (Luo et al., 2026) | 1000 | 100.0 ± 0.0 | 21.0 ± 1.5 | 100.0 ± 0.0 | 2.1 ± 0.8 |
| DeFoG (Qin et al., 2025) | 50 | 95.0 ± 3.2 | 3.2 ± 1.1 | 73.5 ± 9.0 | 2.5 ± 1.0 |
| DeFoG (Qin et al., 2025) | 1000 | 99.5 ± 1.0 | 1.6 ± 0.4 | 96.5 ± 2.6 | 1.6 ± 0.4 |
| H-Glow (Ours) | 20 | 95.0 ± 3.5 | 1.9 ± 0.5 | 93.5 ± 4.6 | 2.2 ± 0.8 |
| H-Glow (Ours) | 50 | 99.0 ± 1.2 | 1.9 ± 0.4 | 98.0 ± 2.9 | 2.7 ± 0.9 |
| H-Glow (Ours) | 100 | 99.0 ± 1.2 | 1.8 ± 0.3 | 98.5 ± 2.0 | 1.8 ± 0.4 |
| H-Glow (Ours) | 200 | 100.0 ± 0.0 | 2.4 ± 0.2 | 100.0 ± 0.0 | 2.0 ± 0.8 |
6.3 ACCELERATING PRETRAINED DFM MODELS
H-Glow exploits the generator decomposition to accelerate pretrained graph DFMs as a drop-in sampler, without retraining or added sampling complexity. We evaluate our hazard-guided H-Glow sampler on the pretrained DeFoG model (Qin et al., 2025). We compare against two sampling configurations from DeFoG: base parallel Euler sampling and Euler sampling with additional target guidance and stochasticity, controlled by , see Fig. 2. H-Glow matches or exceeds the validity and FCD performance of 500-step Euler sampling using only 100 steps on GuacaMol and MOSES. With 200 steps, H-Glow achieves quality comparable to the 500-step guided Euler configuration. Importantly, our framework significantly improves performance using DeFoG's base generator, without requiring sampling-time generator modifications that can expand the hyperparameter space. The full quantitative comparison is provided in Table 12.
6.4 ABLATIONS
Sample time distortion. Uniform time discretization is suboptimal for graph generation, as specific regions of the generation trajectory can benefit from finer control. Prior work employs specialized
GuacaMol
MOSES

Euler
Euler
H-Glow Sampler (Ours)
Figure 2: Sampler comparison using the same pretrained DeFoG model on GuacaMol and MOSES. We compare base parallel Euler sampling (blue), Euler sampling with DeFoG's added target guidance and stochasticity (purple), and our H-Glow sampler applied to DeFoG's base generator (green). Our H-Glow sampling strategy achieves high sample quality with substantially fewer sampling steps.
time distortions to redistribute steps along the generation trajectory. For example, on Planar, Qin et al. (2025) use polydec-2, while Luo et al. (2026) use with . Our hazard-guided clock instead directly adapts sampling times to predicted graph activity. To isolate its contribution, we compare uniform, polynomial, and hazard-guided schedules under the H-Glow sampler on Planar; see Table 4. Our hazard-guided clock provides the best trade-off.
Design choices. In our experiments, we use confidence-weighted hazard selection (Eq. (16)), early stopping, and time annealing to the hazard-guided clock. We ablate our design choices in Table 5. First, we find that confidence-weighted hazard selection can improve quality over hazard-only selection. Second, we find that removing early stopping reduces sample quality, suggesting that further edits at low predicted activity can introduce errors. Also, we find that directly applying the time policy in Eq. (19) leads to large time jumps early in the generation process. To moderate this, we interpolate between the current time and the hazard-guided time : , where limits the time jumps in earlier steps, allowing the model to perform more graph refinements; see Appendix D for more details.
Sampler comparison. Using the same H-Glow model trained on MOSES with the decomposed hazard-jump parametrization, we compare our H-Glow sampler with the parallel Euler sampler and the RVF variant proposed in Luo et al. (2026); see Table 6. Compared to other samplers, our H-Glow sampler achieves higher validity and lower FCD at than Euler and RVF at , demonstrating more effective use of the sampling budget. In Appendix D, we provide an ablation comparing denoiser and hazard-jump parameterizations under different sampling strategies.
Table 4: Clock ablations.
| Clock | ||||
|---|---|---|---|---|
| V.U.N. ↑ | Ratio ↓ | V.U.N. ↑ | Ratio ↓ | |
| Hazard-guided | 99.0 | 1.86 | 99.0 | 1.81 |
| Uniform | 99.5 | 23.43 | 100.0 | 49.11 |
| Polydec-2 | 100.0 | 20.20 | 100.0 | 42.62 |
| Polydec-10 | 99.5 | 5.57 | 99.5 | 12.66 |
| Polydec-20 | 95.5 | 3.88 | 99.5 | 6.08 |
Table 5: Design choices.
| Variant | ||||
|---|---|---|---|---|
| Val. ↑ | FCD ↓ | Val. ↑ | FCD ↓ | |
| H-Glow | 89.5 | 0.98 | 89.9 | 0.96 |
| Hazard-only | 88.1 | 1.10 | 89.2 | 1.12 |
| w/o early stopping | 88.1 | 1.41 | 88.7 | 1.82 |
| w/o hazard annealing | 88.5 | 1.43 | 87.9 | 1.39 |
Table 6: Sampler comparison.
| Sampler | ||||
|---|---|---|---|---|
| Val. ↑ | FCD ↓ | Val. ↑ | FCD ↓ | |
| H-Glow | 89.5 | 0.98 | 89.9 | 0.96 |
| Euler | 80.3 | 1.38 | 85.8 | 1.38 |
| RVF | 86.4 | 1.03 | 87.7 | 1.08 |
7 RELATED WORK
Discrete diffusion and flow matching for graphs. Discrete-state graph diffusion models rely on categorical corruption toward simple priors, such as uniform or empirical marginal distributions over node and edge attributes (Austin et al., 2021; Vignac et al., 2022), with recent extensions introducing re-noising and learned critics to identify corrupted nodes and edges (Boget, 2025) to improve sample quality. Recent graph diffusion approaches build on the continuous-time formulations based on
CTMCs, which allow flexible sampling-time discretizations (Campbell et al., 2022; Xu et al., 2024; Siraudin et al., 2024); however, their reverse dynamics remain tied to the forward noising process. In contrast, discrete flow matching (DFM) (Campbell et al., 2024; Gat et al., 2024) decouples training from the choice of sampling dynamics. Recent graph adaptations (Qin et al., 2025; Luo et al., 2026) leverage the training-sampling decoupling and improve performance by optimizing rate matrices and time distortions during inference. While diffusion- and flow-based graph models typically learn a denoiser network, Li et al. (2026) recently proposed a diffusion model that directly parameterizes the network to predict hazards and conditional jumps. We adapt this parameterization within the generator-matching framework (Holderrieth et al., 2025) and propose a structured generator-learning framework for graphs.
Improved sampling. Continuous-time approaches adopt finite-time approximators to simulate the CTMC trajectory, including independent Euler updates and -leaping (Campbell et al., 2022; Gat et al., 2024), where additional predictor-corrector steps can be used for further refinement. Liu et al. (2025) propose decomposing the generation into planning and denoising, and introduce a latent variable that indicates whether a token is corrupted. In contrast, H-Glow decomposes the generative process by directly exploiting the decomposition of CTMC generators into hazards and conditional jumps to guide sampling without an auxiliary planner network. In masked diffusion language models, iterative refinement is achieved by remasking previously decoded tokens, thereby enabling additional computation to improve sample quality Wang et al. (2026).
8 CONCLUSION
We present H-Glow, a hazard-guided framework for accelerating graph generation. By factorizing generators into hazards and conditional jump distributions, H-Glow leverages the event structure of CTMC generators to coordinate graph edits. Under the same decomposition, we propose a novel DFM model for graph generation. We limit our experiments to accelerate pretrained DFM models; however, H-Glow can be readily applied to discrete diffusion models with accessible generators, which we leave for future work. Also, H-Glow benefits from the empirical prior over node and edge attributes, where initialized edges are dominated by the no-bond category, unlocking accelerated molecular generation within a few NFEs. To accommodate graphs that require extensive updates, we provide an extension of H-Glow that enables parallel updates per step. Future work could explore selection strategies that exploit graph structure to coordinate parallel edits more effectively.
AI USE STATEMENT
In this work, we used generative AI tools for language editing, including grammar, spelling, and word choice, as well as for assisting in polishing mathematical proofs and formulating ideas. We have not used generative AI tools to generate synthetic datasets, develop theoretical models or conceptual frameworks, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, design or provide feedback on research methodology or experiments, implement methods, assist with translation, clean or reformat datasets, support qualitative or thematic data analysis, or interpret results. We have reviewed all AI-assisted work. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
ETHICS STATEMENT
In this work, we propose a generative model for discrete data and apply it to the generation of molecules and synthetic graphs. As generative models can be applied in various fields, we see potential positive and negative societal impacts. Generative modeling can accelerate scientific discovery; however, there are potential societal consequences, specifically those related to the generation of unsafe drugs.
REPRODUCIBILITY STATEMENT
The experimental setup is described in Appendix B and Appendix C.
REFERENCES
Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in neural information processing systems, 34:17981–17993, 2021.
Andreas Bergmeister, Karolis Martinkus, Nathanaël Perraudin, and Roger Wattenhofer. Efficient and scalable graph generation through iterative local expansion. In International Conference on Learning Representations, volume 2024, pp. 27698–27736, 2024.
Yoann Boget. Simple and critical iterative denoising: A recasting of discrete diffusion in graph generation. arXiv preprint arXiv:2503.21592, 2025.
Nathan Brown, Marco Fiscato, Marwin HS Segler, and Alain C Vaucher. Guacamol: benchmarking models for de novo molecular design. Journal of chemical information and modeling, 59(3):1096–1108, 2019.
Andrew Campbell, Joe Benton, Valentin De Bortoli, Thomas Rainforth, George Deligiannidis, and Arnaud Doucet. A continuous time framework for discrete denoising models. Advances in Neural Information Processing Systems, 35:28266–28279, 2022.
Andrew Campbell, Jason Yim, Regina Barzilay, Tom Rainforth, and Tommi Jaakkola. Generative flows on discrete state-spaces: Enabling multimodal flows with applications to protein co-design. arXiv preprint arXiv:2402.04997, 2024.
Dexiong Chen, Markus Krimmel, and Karsten Borgwardt. Flatten graphs as sequences: Transformers are scalable graph generators. Advances in Neural Information Processing Systems, 38:69071–69109, 2026.
Xiaohui Chen, Jiaxing He, Xu Han, and Li-Ping Liu. Efficient and degree-guided graph generation via discrete diffusion modeling. arXiv preprint arXiv:2305.04111, 2023.
Hanjun Dai, Azade Nazi, Yujia Li, Bo Dai, and Dale Schuurmans. Scalable deep generative modeling for sparse graphs. In International conference on machine learning, pp. 2302–2312. PMLR, 2020.
Floor Eijkelboom, Grigory Bartosh, Christian A Naesseth, Max Welling, and Jan-Willem van de Meent. Variational flow matching for graph generation. Advances in Neural Information Processing Systems, 37:11735–11764, 2024.
Itai Gat, Tal Remez, Neta Shaul, Felix Kreuk, Ricky TQ Chen, Gabriel Synnaeve, Yossi Adi, and Yaron Lipman. Discrete flow matching. Advances in Neural Information Processing Systems, 37:133345–133385, 2024.
Zhengyang Geng, Mingyang Deng, Xingjian Bai, Zico Kolter, and Kaiming He. Mean flows for one-step generative modeling. Advances in Neural Information Processing Systems, 38:75460–75482, 2026.
Daniel T Gillespie. Approximate accelerated stochastic simulation of chemically reacting systems. The Journal of chemical physics, 115(4):1716–1733, 2001.
Nikhil Goyal, Harsh Vardhan Jain, and Sayan Ranu. Graphgen: A scalable approach to domain-agnostic labeled graph generation. In Proceedings of the web conference 2020, pp. 1253–1263, 2020.
Peter Holderrieth, Marton Havasi, Jason Yim, Neta Shaul, Itai Gat, Tommi Jaakkola, Brian Karrer, Ricky TQ Chen, and Yaron Lipman. Generator matching: Generative modeling with arbitrary markov processes. In International Conference on Learning Representations, volume 2025, pp. 52153–52219, 2025.
Jaehyeong Jo, Seul Lee, and Sung Ju Hwang. Score-based generative modeling of graphs via the system of stochastic differential equations. In International conference on machine learning, pp. 10362–10383. PMLR, 2022.
Jaehyeong Jo, Dongki Kim, and Sung Ju Hwang. Graph generation with diffusion mixture. arXiv preprint arXiv:2302.03596, 2023.
Jingyuan Li, Xiaoyi Jiang, Fukang Wen, Wei Liu, Renqian Luo, Yi Zhu, Zuoqiang Shi, and Pipi Hu. Neural continuous-time markov chain: Discrete diffusion via decoupled jump timing and direction. arXiv preprint arXiv:2604.15694, 2026.
Renjie Liao, Yujia Li, Yang Song, Shenlong Wang, Will Hamilton, David K Duvenaud, Raquel Urtasun, and Richard Zemel. Efficient graph generation with graph recurrent attention networks. Advances in neural information processing systems, 32, 2019.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
Sulin Liu, Juno Nam, Andrew Campbell, Hannes Stärk, Yilun Xu, Tommi Jaakkola, and Rafael Gómez-Bombarelli. Think while you generate: Discrete diffusion with planned denoising. In International Conference on Learning Representations, volume 2025, pp. 81979–82026, 2025.
Chunyu Luo, Yuankai Luo, Xiao-Ming Wu, and Lei Shi. Simgfm: Simplifying discrete flow matching for graph generation. In Forty-third International Conference on Machine Learning, 2026.
Karolis Martinkus, Andreas Loukas, Nathanaël Perraudin, and Roger Wattenhofer. Spectre: Spectral conditioning helps to overcome the expressivity limits of one-shot graph generators. In International Conference on Machine Learning, pp. 15159–15179. PMLR, 2022.
Daniil Polykovskiy, Alexander Zhebrak, Benjamin Sanchez-Lengeling, Sergey Golovanov, Oktai Tatanov, Stanislav Belyaev, Rauf Kurbanov, Aleksey Artamonov, Vladimir Aladinskiy, Mark Veselov, et al. Molecular sets (moses): a benchmarking platform for molecular generation models. Frontiers in pharmacology, 11:565644, 2020.
Yiming Qin, Manuel Madeira, Dorina Thanou, and Pascal Frossard. Defog: discrete flow matching for graph generation. In Proceedings of the 42nd International Conference on Machine Learning, pp. 50269–50326, 2025.
Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1(1):140022, 2014.
Vinayak Rao and Yee White Teg. Fast mcmc sampling for markov jump processes and extensions. Journal of Machine Learning Research, 14(11), 2013.
Benjamin Sanchez-Lengeling and Alán Aspuru-Guzik. Inverse molecular design using machine learning: Generative models for matter engineering. Science, 361(6400):360–365, 2018.
Egor Sevriugov, Nikita Dragunov, Anton Razzhigaev, Andrey Kuznetsov, and Ivan Oseledets. Logit-kl flow matching: Non-autoregressive text generation via sampling-hybrid inference. In International Conference on Learning Representations, volume 2026, pp. 138482–138504, 2026.
Antoine Siraudin, Fragkiskos D Malliaros, and Christopher Morris. Cometh: A continuous-time discrete-state graph diffusion model. arXiv preprint arXiv:2406.06449, 2024.
Clement Vignac, Igor Krawczuk, Antoine Siraudin, Bohan Wang, Volkan Cevher, and Pascal Frossard. Digress: Discrete denoising diffusion for graph generation. arXiv preprint arXiv:2209.14734, 2022.
Guanghan Wang, Yair Schiff, Subham Sahoo, and Volodymyr Kuleshov. Remasking discrete diffusion models with inference-time scaling. Advances in Neural Information Processing Systems, 38:147282–147339, 2026.
Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learning. Chemical science, 9(2):513–530, 2018.
Zhe Xu, Ruizhong Qiu, Yuzhong Chen, Huiyuan Chen, Xiran Fan, Menghai Pan, Zhichen Zeng, Mahashweta Das, and Hanghang Tong. Discrete-state continuous-time diffusion for graph generation. Advances in Neural Information Processing Systems, 37:79704–79740, 2024.
Jiaxuan You, Rex Ying, Xiang Ren, William Hamilton, and Jure Leskovec. Graphrnn: Generating realistic graphs with deep auto-regressive models. In International conference on machine learning, pp. 5708–5717. PMLR, 2018.
Kang Zhang, Xin Yang, Yifei Wang, Yunfang Yu, Niu Huang, Gen Li, Xiaokun Li, Joseph C Wu, and Shengyong Yang. Artificial intelligence in drug development. Nature medicine, 31(1):45–59, 2025.
A PROOFS
Theorem 1 (Decomposed graph generator matching objective). Assume that the conditional target and learned graph generators follow the single-component construction in Proposition 1 and admit hazard-jump decompositions. Then, the conditional generator matching objective decomposes as:
where, for each graph component c,
Here, .
Proof. We write the conditional generator matching objective in its generalized KL form:
(26)
where the expectation is over , , and .
Under the construction in Proposition 1, every transition with a nonzero off-diagonal rate changes exactly one component. Thus, the sum over graph transitions separates into sums over node and edge transitions.
Fix a graph component c. For readability, we define
and suppress the conditioning arguments of the hazards and jump distributions. Therefore,
The contribution of component c to the objective is
First suppose that and that the learned rates are positive wherever the target rates are positive. Substituting the hazard-jump decompositions and using
we obtain
(32)
Terms with zero target mass are interpreted using the standard convention . If a learned rate is zero where the target rate is positive, both sides are , so the identity also holds in this case. When , all target rates vanish and
The target jump distribution may then be chosen arbitrarily over alternative attributes, and its hazard-weighted KL term is defined as zero. Components with no alternative attributes have zero hazard and contribute zero.
Finally, summing over node and edge components gives
which proves the result.
Proposition 2 (Graph hazard). For the generator in Proposition 1, the total graph hazard is given by the sum of the componentwise node and edge hazards:
Proof. By definition, the total graph hazard is the sum of the transition rates to all graphs different from the current graph:
Since the graph generator permits only single-component transitions, every graph with a nonzero transition rate differs from in exactly one node or one edge attribute. Hence, the sum can be partitioned according to the component that changes:
(37)
The componentwise hazards are defined as the corresponding sums of outgoing rates:
Substituting these definitions yields equation 35.
B EXPERIMENTAL DETAILS
B.1 DATASETS AND METRICS
We evaluate H-Glow on the molecular graph benchmarks QM9, MOSES, and GuacaMol, following the preprocessing and dataset splits used in prior discrete graph generative models (Vignac et al., 2022; Siraudin et al., 2024; Qin et al., 2025; Xu et al., 2024). QM9 license is CC BY 4.0, MOSES and GuacaMol datasets are licensed under the MIT License. Molecules are represented as attributed undirected graphs, where nodes correspond to atom types and edges encode bond types, with the absence of a bond treated as an additional edge category. For each generated graph, the number of nodes is sampled from the empirical graph-size distribution of the training set. We summarize all data statistics in Table 7.
Table 7: Dataset statistics. and denote the numbers of present-edge and node categories, respectively. The no-edge category is excluded from . counts directed edge entries, following the convention of prior work, while denotes the number of nodes.
| Dataset | # Graphs | Train/Val/Test | E | X | Avg. B | Max. B | Avg. N | Max. N |
|---|---|---|---|---|---|---|---|---|
| QM9 | 130,831 | 97,734/20,042/13,055 | 4 | 4 | 18.9 | 28 | 8.8 | 9 |
| MOSES | 1,936,962 | 1,584,663/176,225/176,074 | 4 | 8 | 46.5 | 62 | 21.7 | 27 |
| GuacaMol | 1,398,213 | 1,118,633/69,926/209,654 | 4 | 12 | 60.4 | 176 | 27.8 | 88 |
| Planar | 200 | 128/32/40 | 1 | 1 | 355.7 | 362 | 64.0 | 64 |
| Tree | 200 | 128/32/40 | 1 | 1 | 126.0 | 126 | 64.0 | 64 |
QM9. We evaluate H-Glow on QM9 (Ramakrishnan et al., 2014). Following prior work (Vignac et al., 2022), we kekulize the molecules using the RDKit library and remove the hydrogen atoms. We use the same data split as Vignac et al. (2022) and train on 100K molecules. For the evaluation, we sample 10K molecules and report four metrics. The Validity is measured by sanitizing the sampled molecules and converting them to SMILES strings using the RDKit library. We also report the Relaxed Validity, which accounts for charged molecules. Uniqueness is measured across valid molecules, and it captures the proportion of non-isomorphic graphs within the generated samples. We also report the Fréchet ChemNet Distance (FCD) metric, which embeds the generated samples and the test data using the ChemNet neural network and compares the resulting distributions using the Wasserstein-2 distance.
MOSES. We evaluate H-Glow on the MOSES (Polykovskiy et al., 2020) benchmark. We sample 25K samples and report the Validity, as well as the Uniqueness. We further report the Novelty, which measures how many of these samples are non-isomorphic to any graph in the training set. We further include the Filters metric, which indicates the percentage of generated samples that pass the filters applied when constructing the dataset. In addition, we report Scaffold similarity (Scaf), which compares the frequencies of the Bemis-Murcko scaffolds in the generated set and a reference set, as well as the Similarity to the nearest neighbor (SNN), which computes the average Tanimoto similarity between the molecular fingerprints of a generated set and the fingerprints of the molecules of a reference set
Guacamol. We evaluate H-Glow on the Guacamol (Brown et al., 2019) benchmark. We note that, as Guacamol includes molecules with charges, the generated graphs are converted to charged molecules based on the relaxed validity criterion used by Jo et al. (2022) before being translated to the corresponding SMILES strings.
We sample 10K samples following prior baselines and report the Validity, as well as the percentage of Valid and Unique (V.U.) samples, and Valid, Unique, and Novel (V.U.N.) samples. The GuacaMol benchmark computes two scores, the FCD score and the KL divergences (KL) between the distributions of a set of physicochemical descriptors in the training set and the generated set.
Synthetic graphs. We evaluate the generation performance of H-Glow using the synthetic benchmarks Planar (Martinkus et al., 2022) and Tree (Bergmeister et al., 2024). Planar graphs are connected planar graphs that can be drawn on a plane without any edges crossing, while tree graphs are connected acyclic graphs.
We follow prior work (Vignac et al., 2022; Qin et al., 2025) and report V.U.N, which is the percentage of valid, unique, and novel graphs, as well as the Ratio metric. The ratio is computed by first calculating the MMD distances between the training and test sets for the same graph statistics. The final Ratio metric is then computed by dividing the average MMD distance between the generated sets and test sets by the average MMD distance between the training and test sets.
B.2 BASELINES.
We compare against representative discrete graph diffusion and flow-matching methods, including DiGress (Vignac et al., 2022), DISCO (Xu et al., 2024), COMETH (Siraudin et al., 2024), and DeFoG (Qin et al., 2025). We additionally use other iterative denoising-based methods whenever comparable results are available. We note that we re-evaluate the released checkpoints from Qin
Table 8: Overview of the training hyperparameters of H-Glow.
| QM9 | GuacaMol | MOSES | Planar | Tree | |
|---|---|---|---|---|---|
| Epochs | 1000 | 250 | 300 | 100000 | 100000 |
| Learning rate | |||||
| Optimizer | AdamW | AdamW | AdamW | AdamW | AdamW |
| AMSGrad | Yes | Yes | Yes | Yes | Yes |
| RRWP steps | 12 | 20 | 20 | 32 | 128 |
| Number of layers | 9 | 12 | 12 | 10 | 10 |
| Number of heads | 8 | 8 | 8 | 8 | 8 |
| Prior distribution | Marginal | Marginal | Marginal | Marginal | Marginal |
| Train Distortion | Identity | Polydec | Polydec | Identity | Polydec-2 |
| Sample Distortion | Adaptive (Ours) | Adaptive (Ours) | Adaptive (Ours) | Adaptive (Ours) | Adaptive (Ours) |
et al. (2025), where the performance is generally consistent with the paper's results, with minor variations attributed to training and sampling stochasticity.
B.3 ARCHITECTURE AND TRAINING SETTINGS
Graph-transformer backbone. Following DiGress (Vignac et al., 2022), we use a graph transformer that jointly processes node, edge, and graph-level features. Given a noisy graph and time , the network produces representations for every node and unordered node pair. We retain the multi-head attention backbone and introduce a decomposed output parameterization with separate predictions for hazard and conditional jumps. We augment the input with Relative Random Walk Probabilities (RRWP) (Vignac et al., 2022; Qin et al., 2025).
Parametrization. H-Glow directly parameterizes the componentwise generators through separate hazard and jump prediction heads:
where and are non-negative hazards, and and are the predicted jump distributions satisfying: , and . H-Glow directly parameterizes the componentwise generators through separate hazard and conditional jump predictions. For a component with transformer representation , we first compute . The network produces logits: , . We parameterize the hazard as
where denotes the sigmoid function, ensuring .
We note that for the jump head, we mask the current category and apply softmax over the remaining categories:
We use separate node and edge output MLPs. Each MLP shares its hidden features between the hazard and jump projections. Edge logits are symmetrized across node pairs.
Settings. The shared componentwise heads, permutation-compatible structural features, and symmetric edge outputs preserve the permutation equivariance of the graph-transformer backbone. We provide an overview of the training hyperparameters of H-Glow in Table 8. We note that we use as prior distribution the empirical marginal prior over node and edge attributes (Vignac et al., 2022). We further use the train time distortion setting from Qin et al. (2025). We note that for sampling, we use H-Glow's inferred time discretization, as opposed to the sample time distortions used in Qin et al. (2025), see Appendix C.
C SAMPLING DETAILS
C.1 DERIVATION OF THE HAZARD-BASED TIME ALLOCATION
For readability, we initially suppress the dependence of componentwise generators on , , and . For each component , we follow the uniformization construction in (Rao & Teg, 2013) and define:
This sums the largest incoming off-diagonal rate for each destination and bounds every row's exit hazard:
For a component with only one possible attribute value, we set . For , we define
The bound above ensures that all entries of are nonnegative. Its rows sum to one because the rows of sum to zero. Thus, is a stochastic matrix, with
This diagonal entry is the probability of retaining the current attribute at one uniformization event for the fixed component matrix. If , then , and we set and define the normalized hazard to be zero.
As a sampling policy, we choose the target time by assigning equal weight to the mean node and edge retention probabilities:
Since every normalized hazard lies in , this definition yields .
Denoiser-based DFM generators. We first instantiate the policy under the base DFM generator construction (Gat et al., 2024). Let , with and . We evaluate the denoiser at and hold its predicted distribution fixed when constructing the component matrix:
For , these entries are independent of the dummy source attribute . Thus, for a component with at least two possible attribute values,
(46)
Components with only one possible attribute value have zero hazard and contribute zero. Substituting into Eq. (44) gives
Here, , so without clipping.
Table 10: NFE across datasets and sampling steps.
| Dataset | Steps T | NFE |
|---|---|---|
| QM9 | 20 | 19.9 ± 0.4 |
| QM9 | 50 | 22.4 ± 2.3 |
| MOSES | 50 | 35.9 ± 7.0 |
| MOSES | 100 | 47.1 ± 15.7 |
| MOSES | 200 | 57.2 ± 14.2 |
| GuacaMol | 50 | 40.4 ± 8.1 |
| GuacaMol | 100 | 49.2 ± 13.7 |
| GuacaMol | 200 | 78.8 ± 35.6 |
C.2 ADDITIONAL SAMPLING DETAILS
In our experiments, we set the early stopping threshold to 1. Stopping when the predicted graph activity falls below this threshold improves generation quality compared with continuing to edit the graph until the full sampling budget is exhausted.
D ADDITIONAL EXPERIMENTS
D.1 PARAMETERIZATION.
In the following, we conduct a controlled experiment on QM9 to compare the denoiser parametrization trained with cross-entropy against the hazard-jump parametrization trained with the decomposed objective in Eq. (22). Both models use identical data splits, a graph-transformer backbone, and matched initialization and optimization. We sample 10K samples using Euler and H-Glow. H-Glow sampling substantially improves the validity–FCD trade-off over Euler sampling, particularly at small sampling budgets. Combined with our decomposed parameterization, H-Glow sampling delivers consistently strong performance across the evaluated sampling budgets.
Table 9: Parameterization comparison.
| Model | Sampler | ||||||
|---|---|---|---|---|---|---|---|
| Val. ↑ | FCD ↓ | Val. ↑ | FCD ↓ | Val. ↑ | FCD ↓ | ||
| Denoiser | Euler | 97.0 | 0.75 | 98.9 | 0.28 | 99.4 | 0.14 |
| H-Glow | Euler | 96.7 | 0.66 | 99.2 | 0.24 | 99.5 | 0.13 |
| Denoiser | H-Glow | 98.9 | 0.31 | 99.0 | 0.21 | 99.0 | 0.11 |
| H-Glow | H-Glow | 99.2 | 0.37 | 99.1 | 0.10 | 99.2 | 0.10 |
D.2 CLOCK COMPARISONS
In Fig. 3, we compare different time distortions, including time distortions from prior work, such as polydec-2 and polydec-10 (Qin et al., 2025; Luo et al., 2026), as well as our hazard-guided inferred time. We omit the early stopping and hazard annealing here.

Figure 3: Schedulers.
D.3 EARLY STOPPING
As discussed in Section 4, H-Glow performs early stopping during inference to avoid disrupting node or edge updates that can render the graph invalid. We report the average number of function evaluations (NFE) in Table 10 for different benchmarks and budgets .
Table 11: Sampler comparison using the HGLow trained model on MOSES.
| T | Sampler | Validity ↑ | Unique ↑ | Novelty ↑ | Filters ↑ | FCD ↓ |
|---|---|---|---|---|---|---|
| 50 | RVF (default) | 86.4 | 100.0 | 94.6 | 99.1 | 1.03 |
| 50 | DeFoG (default) | 80.3 | 100.0 | 95.3 | 98.0 | 1.38 |
| 50 | HGLow (ours) | 89.5 | 100.0 | 94.4 | 99.1 | 0.98 |
| 100 | RVF (default) | 87.7 | 100.0 | 94.2 | 99.2 | 1.08 |
| 100 | DeFoG (default) | 85.8 | 100.0 | 90.7 | 99.4 | 1.38 |
| 100 | HGLow (ours) | 89.9 | 99.9 | 93.0 | 99.2 | 0.96 |
Table 12: Large molecule generation performance on MOSES and GuacaMol.
| Model | Class | Steps | MOSES | GuacaMol | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Val. ↑ | Unique. ↑ | Novelty ↑ | Filters ↑ | FCD ↓ | SNN ↑ | Scaf. ↑ | Val. ↑ | V.U. ↑ | V.U.N. ↑ | KLD. ↑ | FCD ↑ | |||
| Training set | - | - | 100.0 | 100.0 | 0.0 | 100.0 | 0.01 | 0.64 | 99.1 | 100.0 | 100.0 | 0.0 | 99.9 | 92.8 |
| DiGress (Vignac et al., 2022) | Diff. | 500 | 85.7 | 100.0 | 95.0 | 97.1 | 1.19 | 0.52 | 14.8 | 85.2 | 85.2 | 85.1 | 92.9 | 68.0 |
| DisCo (Xu et al., 2024) | Diff. | 500 | 88.3 | 100.0 | 97.7 | 95.6 | 1.44 | 0.50 | 15.1 | 86.6 | 86.6 | 86.5 | 92.6 | 59.7 |
| Cometh (Sirandin et al., 2024) | Diff. | 500 | 86.1 | 100.0 | 96.0 | 97.3 | 1.27 | 0.50 | 16.4 | 94.4 | 94.4 | 93.5 | 94.1 | 67.4 |
| Cometh-PC (Sirandin et al., 2024) | Diff. | 500 | 90.5 | 99.9 | 92.6 | 99.1 | 1.27 | 0.54 | 16.0 | 98.9 | 98.9 | 97.6 | 96.7 | 72.7 |
| SimGFM (Lao et al., 2026) | Flow | 50 | 86.1 | 100.0 | 95.1 | 98.6 | 1.44 | 0.51 | 16.9 | 98.5 | 98.5 | 98.3 | 93.6 | 77.1 |
| SimGFM (Lao et al., 2026) | Flow | 200 | 89.4 | 100.0 | 94.6 | 98.9 | 1.08 | 0.55 | 17.3 | 99.2 | 99.2 | 98.5 | 94.6 | 76.4 |
| SimGFM (Lao et al., 2026) | Flow | 500 | 91.1 | 100.0 | 93.9 | 99.2 | 1.19 | 0.56 | 14.4 | 99.2 | 99.2 | 98.6 | 95.5 | 73.5 |
| DeFoG (Qin et al., 2025) (η = 0, ω = 0) | Flow | 50 | 88.7 | 100.0 | 95.9 | 98.0 | 3.49 | 0.53 | 11.8 | 84.2 | 84.2 | 83.8 | 91.0 | 32.7 |
| DeFoG (Qin et al., 2025) (η = 0, ω = 0) | Flow | 100 | 89.5 | 100.0 | 95.6 | 98.2 | 2.51 | 0.54 | 12.6 | 92.3 | 92.3 | 91.8 | 92.9 | 51.4 |
| DeFoG (Qin et al., 2025) (η = 0, ω = 0) | Flow | 200 | 89.6 | 100.0 | 94.7 | 98.6 | 1.93 | 0.55 | 12.8 | 94.6 | 94.6 | 94.1 | 93.8 | 62.7 |
| DeFoG (Qin et al., 2025) (η = 0, ω = 0) | Flow | 500 | 89.4 | 100.0 | 94.9 | 98.6 | 1.66 | 0.55 | 13.3 | 96.1 | 96.1 | 95.5 | 94.1 | 71.9 |
| DeFoG (Qin et al., 2025) | Flow | 50 | 82.9 | 99.9 | 95.1 | 97.8 | 1.79 | 0.53 | 19.8 | 91.7 | 91.7 | 91.2 | 92.3 | 57.9 |
| DeFoG (Qin et al., 2025) | Flow | 100 | 88.5 | 99.9 | 90.7 | 99.2 | 1.75 | 0.58 | 16.7 | 96.7 | 96.7 | 95.7 | 96.0 | 74.2 |
| DeFoG (Qin et al., 2025) | Flow | 200 | 90.9 | 99.9 | 89.7 | 99.3 | 1.67 | 0.58 | 11.9 | 98.0 | 98.0 | 96.9 | 98.3 | 70.1 |
| DeFoG (Qin et al., 2025) | Flow | 500 | 91.5 | 99.9 | 90.0 | 99.2 | 1.47 | 0.55 | 11.5 | 99.0 | 99.0 | 97.9 | 97.7 | 73.8 |
| H-Glow-DeFoG(Ours) | Flow | 50 | 86.2 | 100.0 | 92.7 | 97.4 | 1.84 | 0.56 | 13.9 | 92.5 | 92.5 | 91.2 | 92.6 | 70.4 |
| H-Glow-DeFoG (Ours) | Flow | 100 | 91.1 | 99.9 | 92.0 | 99.2 | 1.46 | 0.57 | 16.7 | 97.9 | 97.9 | 96.3 | 97.0 | 72.4 |
| H-Glow-DeFoG (Ours) | Flow | 200 | 91.1 | 100.0 | 93.0 | 99.2 | 1.32 | 0.56 | 14.6 | 99.1 | 99.1 | 97.5 | 97.3 | 74.1 |
| H-Glow-DeFoG (Ours) | Flow | 500 | 91.0 | 100.0 | 92.0 | 99.3 | 1.37 | 0.57 | 15.7 | 99.3 | 99.3 | 98.0 | 98.0 | 74.2 |
| H-Glow (Ours) | Flow | 50 | 89.5 | 100.0 | 94.4 | 99.1 | 0.98 | 0.55 | 18.8 | 95.2 | 95.2 | 93.6 | 89.9 | 69.3 |
| H-Glow (Ours) | Flow | 100 | 89.9 | 99.9 | 93.0 | 99.2 | 0.96 | 0.56 | 16.0 | 99.2 | 99.2 | 98.1 | 96.9 | 77.7 |
| H-Glow (Ours) | Flow | 200 | 91.9 | 99.9 | 93.1 | 99.4 | 1.08 | 0.58 | 15.5 | 99.4 | 99.4 | 97.9 | 96.8 | 77.3 |
D.4 TIME ANNEALING
To moderate large changes in the inferred time, we interpolate between the current model query time and the hazard-guided target :
where smaller can limit the magnitude of each time update, allowing further graph refinement. This is particularly useful during the initial sampling steps, when changes in the graph can produce substantial fluctuations in the predicted activity. We use a piecewise-constant schedule,
which damps the initial time updates and subsequently adopts the inferred target directly. This interpolation preserves the possibility of backward time updates, with Renoising applied whenever . We use . For QM9, Moses, and GuacaMol, we set to of the total steps . For Planar and Tree, is of .
D.5 SAMPLER COMPARISON
We provide the full quantitative comparison of the samplers comparisons under the same trained H-Glow model in Table 11.
D.6 ACCELERATING PRETRAINED MODELS
In Table 12, we provide the full quantitative comparison of DeFoG (base), without added stochasticity and target guidance during inference, DeFoG, using the sampling hyperparameters as reported in Qin et al. (2025), H-Glow-DeFoG, which applies the H-Glow hazard-guided sampler to accelerate the pretrained base DeFoG model. We further include our H-Glow DFM model.
Table 13: Performance on the synthetic datasets Planar and Tree. AR denotes Autoregressive approaches.
| Model | Planar | Tree | ||||
|---|---|---|---|---|---|---|
| Class | Steps | V.U.N. | Ratio | V.U.N. | Ratio | |
| Training set | - | - | 100.0 | 1.0 | 100.0 | 1.0 |
| GraphRNN (You et al., 2018) | AR | - | 0.0 | 490.2 | 0.0 | 607.0 |
| GRAN (Liao et al., 2019) | AR | - | 0.0 | 2.0 | 0.0 | 607.0 |
| BiGG (Dai et al., 2020) | AR | - | 5.0 | 16.0 | 75.0 | 5.2 |
| GraphGen (Goyal et al., 2020) | AR | - | 7.5 | 210.3 | 95.0 | 33.2 |
| AUTOGRAPH (Chen et al., 2026) | AR | - | 87.5 | 1.5 | - | - |
| EDGE (Chen et al., 2023) | Diff. | 1000 | 0.0 | 431.4 | 0.0 | 850.7 |
| DiGress (Vignac et al., 2022) | Diff. | 1000 | 77.5 | 5.1 | 90.0 | 1.6 |
| HSpectre (Bergmeister et al., 2024) | Diff. | - | 95.0 | 2.1 | 100.0 | 4.0 |
| GruM (Do et al., 2023) | Diff. | - | 90.0 | 1.8 | - | - |
| DisCo (Xu et al., 2024) | Diff. | 500 | 83.6 | - | - | - |
| Cometh (Siraudin et al., 2024) | Diff. | 500 | 92.5 | - | - | - |
| Cometh-PC (Siraudin et al., 2024) | Diff. | - | 99.5 | - | - | - |
| CatFlow (Eijkelboom et al., 2024) | Flow | - | 80.0 | - | - | - |
| SimGFM (Luo et al., 2026) | Flow | 20 | 94.04.4 | 2.30.6 | 88.04.8 | 2.50.9 |
| SimGFM (Luo et al., 2026) | Flow | 50 | 99.51.0 | 1.80.5 | 97.01.0 | 2.00.7 |
| SimGFM (Luo et al., 2026) | Flow | 200 | 100.00.0 | 9.32.6 | 99.51.0 | 1.50.2 |
| SimGFM (Luo et al., 2026) | Flow | 1000 | 100.00.0 | 21.01.5 | 100.00.0 | 2.10.8 |
| DeFoG (Qin et al., 2025) | Flow | 50 | 95.03.2 | 3.21.1 | 73.59.0 | 2.51.0 |
| DeFoG (Qin et al., 2025) | Flow | 1000 | 99.51.0 | 1.60.4 | 96.52.6 | 1.60.4 |
| H-Glow (Ours) | Flow | 20 | 95.03.5 | 1.90.5 | 93.54.6 | 2.20.8 |
| H-Glow (Ours) | Flow | 50 | 99.01.2 | 1.90.4 | 98.02.9 | 2.70.9 |
| H-Glow (Ours) | Flow | 100 | 99.01.2 | 1.80.3 | 98.52.0 | 1.80.4 |
| H-Glow (Ours) | Flow | 200 | 100.00.0 | 2.40.2 | 100.00.0 | 2.00.8 |
Algorithm 3 H-Glow: Parallel hazard-guided sampling
1: Input: model , budget , maximum parallel updates , threshold 2: Initialize , , 3: while do 4: Construct rates from and obtain 5: 6: if then return 7: , 8: Select , , without replacement with weights 9: Sample for all 10: 11: 12: 13: end while 14: return
D.7 SYNTHETIC DATASETS
We summarize the parallel H-Glow sampler in Algorithm 3. For planar and tree, we set B to 1024 T = 20, and use B = 512 for T = 50, and B = 128 for T = 100 and T = 200. We compare H-Glow to autoregressive, diffusion, and flow-based approaches in Table 13.
E QUALITATIVE RESULTS








(a) MOSES, T = 50.








(b) MOSES, T = 100.








(c) MOSES, T = 200.
Figure 4: Uncurated sets of molecular graphs generated by H-Glow for the MOSES dataset for steps.








(a) guacamol, .








(b) guacamol, .








(c) guacamol, .
Figure 5: Uncurated sets of molecular graphs generated by H-Glow for the Guacamol dataset for steps.








(a) QM9, .








(b) QM9, .
Figure 6: Uncurated sets of molecular graphs generated by H-Glow for the QM9 dataset for steps.





(a) Planar, .






(b) Planar, .







(c) Planar, .






(d) Planar, .
Figure 7: Uncurated sets of planar graphs generated by H-Glow for the Planar dataset for steps.