Hierarchical Discrete Flow Matching for Graph Generation
Authors: Yoann Boget, Pablo Strasser, Alexandros Kalousis
Organizations: Department of Computer Science, University of Geneva, Switzerland · DMML Group, Geneva School for Business administration HES-SO, Switzerland
Denoising-based models, including diffusion and flow matching, have led to substantial advances in graph generation. Despite this progress, such models remain constrained by two fundamental limitations: a computational cost that scales quadratically with the number of nodes and a large number of function evaluations required during generation. In this work, we introduce a novel hierarchical generative framework that reduces the number of node pairs that must be evaluated and adopts discrete flow matching to significantly decrease the number of denoising iterations. We empirically demonstrate that our approach more effectively captures graph distributions while substantially reducing generation time.
Figures & tables
Figure 1: Top : Deterministic Graph Expansion. Each parent node spawns a fixed number of child nodes. Children of the same parent form cliques, while children of connected parents form bicliques. Bottom : Graph Refinement. A generative model prunes excess edges and optionally generates node and edge attributes.
Method
Zinc250k
SBM20k
Reddit12k
Data
0.09 ± 0.00
0.08 ± 0.00
0.01 ± 0.00
DiffPool
0.34 ± 0.00
0.87 ± 0.03
0.82 ± 0.03
DMoN
0.57 ± 0.01
0.63 ± 0.02
0.04 ± 0.00
MinCut
0.37 ± 0.02
0.26 ± 0.01
0.12 ± 0.01
D -Min (Ours)
0.25 ± 0.00
0.22 ± 0.00
0.02 ± 0.00
Table 1: Average density of the spanning supergraphs for four coarsening methods.
Model
NFE
FCD ↓
NSPDK ↓
Valid % ↑
Time (s) ↓
Train.
–
0.062
0.121
98.90
–
DiGress
1000
–
–
95.40
–
DiscDif
128
4.27
41.930
22.29
–
SID
128
0.37
1.15
97.97
–
DFM
128
0.25
0.44
97.17
842.5
HDFM
128
0.23
0.53
95.78
333.5
Table 2: Generation results on the QM9H dataset datasets. NSPDK results ×103 . Generation time in seconds.
Model
NFE
FCD ↓
NSPDK ↓
Valid % ↑
Time (s) ↓
Train.
–
1.13
0.10
100.000
–
DiGress
1000
3.48
2.10
94.99
5517
SparseDiff
2000
15.82
55.1
76.05
9826
Grum
1000
2.26
1.5
98.65
–
GraBFN
2.12
1.3
99.22
–
SID
128
2.06
2.01
99.50
–
Table 3: Generation results on the Zinc250k datasets. NSPDK results ×103 . Generation time in seconds.
Model
NFE
Valid ↑
Deg. ↓
Clust. ↓
Spec. ↑
Time (s) ↓
Train
–
90.7
0.08
1.97
0.17
–
EDGE
128
–
154.16
766.79
10.58
00 350
DiGress
1000
–
4.85
5.92
28.30
0 3906
SparseDiff
4000
–
1.10
5.25
19.11
11089
SID
128
0.00
30.950
38.790
13.32
2840
DFM
128
51.63
4.81
4.92
0 1.00
0 2834
Table 4: Generation results on the SBM20k datasets. MMDs results ×103 . Generation time in seconds.
Model
NFE
Degree ↓
Cluster. ↓
Spect. ↓
Train. set
–
0.7±0.4
14.6±1.6
2.2±0.7
HiGen
–
47.0±0.00
3±0.000
–
EDGE
128
58.0±0.00
180±0.0000.
–
DiGress
1000
8.9±1.6
54.0±4.0
19.0±3.20
SparseDiff
10000
3.7±0.4
32 .0 ± 1
5.6±0.8
HDFM
128
1.4 ± 0.1
57.7 ± 1.3
3.3 ± 0.4
Table 5: Generation results on the Ego datasets. MMDs results ×103 . Generation time in seconds.
Model
NFE
degree ↓
clust. ↓
spect. ↓
Time ↓
Train.
–
0.17
5.17
1.51
EDGE
128
154.16
766.79
37.63
172
SparseDiff
10000
0 93.73
68.46
124.96
7234
HDFM
128
00 0.32
3.35
3.34
107
HDFM
32
00 0.40
2.31
3.62
47
Table 6: Generation results on the Reddit12k datasets. MMDs results ×103 . Generation time in seconds
Dataset
Test set
Conditional Gen.
Ratio Cond. / Test
SBM20k
4.57 ± 1.55
0.49 ± 0.06
0.114 ± 0.024
Reddit
3.57 ± 1.10
0.57 ± 0.31
0.161 ± 0.069
Table 7: Average spectral distances to reference graphs
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Dataset
level
nmax
Reduc.
Ddata
DH
Time (s)
Zinc250k
0
38
4
0.094
0.247
991
SBM20k
0
194
3
0.083
0.213
661
SBM20k
1
67
3
0.181
0.410
478
SBM20k
2
23
-
-
-
-
Reddit12k
0
1499
3
0.005
0.017
5891
Reddit12k
1
500
3
0.014
0.059
1516
Appendix
Table 8: Densities, training time, and maximum number of nodes for all datasets and all levels.
Dataset
Test set
Cond. gen.
Ratio
SBM20k
4.57 ± 1.55
0.49 ± 0.06
0.114 ± 0.024
Reddit
3.57 ± 1.10
0.57 ± 0.31
0.161 ± 0.069
Appendix
Table 9: Spectral distances
Model
NFE
Valid % ↑
FCD ↓
NSPDK ↓
Time (s) ↓
DFM
128
97.17±0.12
0.251±0.005
0.438±0.025
842.5±12.8
HDFM
128
95.78±0.03
0.231±0.026
0.533±0.027
333.5±7.6
HDFM
32
94.22±0.31
0.236±0.007
0.469±0.019
174.1±2.3
Appendix
Table 10: Generation results on the QM9H dataset. NSPDK results rescaled by 103 .
Model
NFE
FCD ↓
NSPDK ↓
Valid % ↑
Time (s) ↓
DFM
128
1.48±0.01
0.554±0.014
99.41±0.10
1998.8±2.500
HDFM
128
1.23±0.02
0.433±0.025
99.30±0.07
394.3±8.6
HDFM
64
1.26±0.01
0.500±0.009
99.17±0.09
238.7±2.4
HDFM
32
1.34±0.01
0.637±0.021
98.82±0.04
167.6±2.2
HDFM
128
1.25±0.02
0.376±0.023
99.28±0.03
0237.0±12.1
Appendix
Table 11: Generation results on the Zinc250k datasets. NSPDK results ×103 . Generation time in seconds.
Model
NFE
Valid ↑
Deg. ↓
Clust. ↓
Spec. ↑
Time (s) ↓
Uniq+novel (s) ↑
EDGE
154.16 ± 3.79
766.79 ± 19.24
10.58 ± 0.12
350 ± 8
DiGress
4.85 ± 6.15
5.92 ± 1.97
28.30 ± 14.4
3906 ± 53
SparseDiff
1.10 ± 0.34
5.25 ± 0.50
19.11 ± 4.52
11089 ± 640
DFM
128
51.63±1.71
4.813±0.140
4.921±0.144
1.001±0.032
2834.4±1.20
100.00±0.00
HDFM
128
70.40±0.96
0.147±0.039
2.055±0.022
0.301±0.016
0489.8±17.3
100.00±0.00
HDFM
32
68.80±0.54
0.241±0.028
2.057±0.025
0.302±0.018
160.7±3.5
100.00±0.00
Appendix
Table 12: Generation results on the SBD20k dataset (MMD results rescaled by 103 ).
Model
degree ↓
clust. ↓
spect. ↓
Time ↓
EDGE
1000
154.16 ± 3.79
766.79 ± 19.24
37.63 ± 1.63
172 ± 1
SparseDiff
10000
00 93.73 ± 10.80
0 68.46 ± 39.01
124.96 ± 14.24
7234 ± 859
HDFM
128
0.32±0.07
3.35±0.86
3.34±0.18
107±6
HDFM
32
0.40±0.08
2.31±0.37
3.62±0.26
47±4
Appendix
Table 13: Generation results on Reddit12k datasets. MMDs results rescaled by 103 . Generation time in seconds.
Figure 2: SBM20k: Comparison of generated graphs with graphs from the dataset.
Figure 3: ego: Comparison of generated graphs with graphs from the dataset.
Figure 4: reddit: Comparison of generated graphs with graphs from the dataset.