arXiv:2610.33599cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33599

H-GLow: Accelerating Graph Generation via Hazard-Guided Discrete Flow Matching

Sirine Ayadi, Stephan Günnemann

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

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.

References (57)