Manuscript Offprint
arXiv:2608.26961Gromov-Monge Flow Matching for Equivariant Graph Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Graphs are invariant under node permutations, motivating the use of permutation-equivariant architectures in generative models. In flow matching, however, symmetry may also enter the source–target coupling: once graph pairs are compared up to node relabeling, the natural Wasserstein geometry is that of the graph quotient space. The Euclidean quotient metric of this space coincides with the Gromov–Monge distance, obtained by optimally relabeling the nodes. We develop this perspective theoretically, showing that quotient couplings can be lifted to aligned representatives without additional cost and that symmetrization yields equivariant flow-matching minimizers, including for categorical endpoint prediction. In practice, exact Gromov–Monge alignment is intractable, so we construct minibatch couplings using efficient Gromov–Wasserstein-type relaxations and lower bounds for the inner node alignment, optionally combined with an outer assignment between graphs. The resulting procedure changes only the training coupling and is compatible with standard permutation-equivariant architectures. Across continuous graph and categorical molecular generation, these structure-aware couplings substantially improve sample quality at small integration budgets, while our scaled-up molecular models remain competitive under conventional many-step sampling.
1 Introduction
Flow matching learns a velocity field that transports a tractable source law to data using simulation-free regression and ordinary differential equation (ODE) sampling [Albergo and Vanden-Eijnden, 2023, Lipman et al., 2023, Liu et al., 2023]. Its conditional paths are determined by a source–target coupling. Although all such couplings have the same marginals at start and end time, transport-informed choices can produce shorter, straighter trajectories and simplify numerical integration [Chemseddine et al., 2025, Tong et al., 2023, Pooladian et al., 2023]. The correct notion of transport is less obvious when data are defined only up to symmetry [Klein et al., 2023, Köhler et al., 2020].
For graphs the symmetry is node relabelling. We encode edge channels and diagonal node features of an -node graph by . Because a graph has no distinguished vertex order, a permutation acts simultaneously on both node indices according to
The unordered graph is the orbit
Equivariant architectures employed in graph generative models respect this symmetry [Eijkelboom et al., 2024, Jo et al., 2022, Vignac et al., 2023], but many models do not by themselves choose which labelled representatives to connect during flow matching. Each conditional bridge from E to an unordered target may select some . Minimizing its length is a Gromov–Monge node-alignment problem, the hard-assignment counterpart of Gromov–Wasserstein transport [Bauer et al., 2025, Mémoli, 2011, Mémoli and Needham, 2024].
We connect this representative choice to equivariant flow matching on general quotients [Klein et al., 2023, Köhler et al., 2020, Song et al., 2023]. Our theory shows that optimal quotient couplings lift without extra cost and that symmetrizing a coupling between chosen representatives yields an equivariant minimizer of the flow-matching objective, including for categorical endpoint prediction. For graphs, we approximate the resulting Gromov–Monge alignment with Gromov–Wasserstein solvers and inexpensive lower bounds [Mémoli, 2011, Bauer et al., 2025, Piening and Beinert, 2025], optionally followed by an outer minibatch assignment. The aligned pairs train the same equivariant velocity or categorical endpoint models as standard flow matching; only the coupling changes.
Relation to prior work Graph generators commonly enforce node-relabeling symmetry through equivariant architectures, including molecular and discrete diffusion [Hoogeboom et al., 2022, Jo et al., 2022, Vignac et al., 2023] and variational flow matching [Eijkelboom et al., 2024]. Recent graph flow methods additionally optimize the source–target graph pairing using minibatch optimal transport [Hou et al., 2026, Wijesinghe et al., 2026]. Our method complements these approaches by explicitly choosing aligned representatives within each graph orbit, while treating the outer graph assignment as optional, see Appendix C for a more detailed comparison.
Optimal-transport couplings have previously been used to straighten Euclidean flow-matching paths [Chemseddine et al., 2025, Pooladian et al., 2023, Tong et al., 2023]. When the underlying sample space itself carries an optimal-transport geometry, this naturally leads to nested transport formulations, as recently employed for point-cloud generative models [Haviv et al., 2025, Piening et al., 2026, Piening and Beinert, 2026]. For graphs, the analogous construction must additionally account for node correspondences, leading to a Gromov–Monge ground cost. Gromov–Wasserstein methods provide a natural relaxation because they compare relational structure and have long been used for graph and structured-data alignment [Beier et al., 2025, Chowdhury et al., 2021, Peyré et al., 2016, Vayer et al., 2020]. We use the resulting plans to select a node permutation for each target graph inside its conditional flow-matching bridge, rather than to generate graphs directly.
Our quotient-space analysis builds on equivariant generative flows [Klein et al., 2023, Köhler et al., 2020, Song et al., 2023]. Beyond particle permutations by linear assignment [Klein et al., 2023, Haviv et al., 2025, Hui et al., 2025, Piening et al., 2026], graph relabeling acts on both node indices and yields the quadratic Gromov–Monge problem. We connect this graph-specific alignment to quotient optimal transport and representative lifts [Mémoli and Needham, 2024].
Our contributions are:
• We show that optimal quotient couplings lift to Euclidean couplings with the same quadratic cost, whose linear interpolations project to constant-speed Wasserstein geodesics.
• We show that diagonal symmetrization preserves the flow-matching objective on equivariant fields and yields an equivariant minimizer, including for categorical endpoint prediction.
• A practical outer–inner Gromov–Wasserstein alignment constructs minibatch couplings for continuous and categorical graph flows.
• Across continuous and categorical graph-generation benchmarks, structure-aware couplings improve sample quality when the learned flow is sampled using few Euler integration steps, while scaled-up molecular models remain competitive under conventional many-step sampling.
2.1 Wasserstein geometry and dynamic transport
Let be a Polish metric space and the set of Borel probability measures on with finite second moments, i.e. for some . The set becomes a complete metric space with the Wasserstein distance [Santambrogio, 2015, Villani, 2009] which is given for any by
The couplings or transport plans are given by
with , . By we denote optimal couplings, where the minimum in (1) is attained. Throughout, let .
For , let be narrowly continuous and let be Borel. The pair satisfies the continuity equation if
in the sense of distributions. If, in addition,
then is absolutely continuous with respect to . Conversely, curves that are absolutely continuous with respect to and have square-integrable speed admit a Borel field satisfying (2) and the displayed integrability condition [Ambrosio et al., 2005, Chapter 8]. The definitions and bounds used below are recalled in Appendix A. If is sufficiently regular, the characteristic ODE
transports to , i.e., [Ambrosio et al., 2005, Proposition 8.1.8].
2.2 Euclidean flow matching
Flow matching turns the dynamic description above into mean-squared-error (MSE) vector-field regression [see, e.g., Lipman et al., 2023, Wald and Steidl, 2025]. For and , define with . Then solves (2), where minimizes
over jointly Borel vector fields . Equivalently, for , we have that
for -a.e. . If , then the kinetic energy fulfills .
Categorical endpoint prediction Let and . Suppose that the target is coordinatewise categorical. Write for a positive integer , and fix a positive integer . For every , fix distinct values such that . For , set and . Let denote the unique index such that . Choosing jointly Borel versions, define the conditional coordinate probabilities
For a.e. and -a.e. , (5) yields
Moreover, minimizes the coordinatewise cross-entropy objective
over jointly Borel kernels , , where and . Thus, although the joint endpoint may take up to values, it suffices to train distributions over classes using (7) and recover the velocity through (6) without any conditional independence assumption [Chemseddine et al., 2026, Eijkelboom et al., 2024].
3 Flow matching on quotient spaces
Let be compact, let , and write for the quotient map. The quotient metric is
and denotes the induced Wasserstein distance. For , write
for its representative laws. In the graph setting, simultaneous node relabeling gives the following construction. Let with . For ,
Thus, choosing representatives of graph orbits is precisely the hard Gromov–Monge node-alignment problem, studied in optimal transport literature [Mémoli and Needham, 2024].
Theorem 3.1 (Representative lifts and quotient geodesics). Let , fix , and let . There exist and such that and
If is optimal, then is optimal between its representative marginals. Moreover, in this case, with and , the projected curve is a constant-speed -geodesic, and the flow-matching field associated with the lifted coupling satisfies
The proof is given in Appendix A.
The theorem shows that any quotient coupling can be lifted through aligned representatives without increasing its cost. In particular, an optimal quotient coupling admits a representative-space lift whose quadratic cost equals the quotient Wasserstein distance. The resulting lift , however, need not be invariant under applying the same group action to both endpoints, because selecting representatives can break the symmetry. This matters because the velocity or endpoint network is constrained to be G-equivariant. For any representative coupling —in particular, for —we therefore build a symmetrized coupling by applying the same group element to both endpoints and averaging over G. For a law and a coupling , set
where the expectation denotes integration against the normalized Haar measure on . For a finite group such as , this is the average over all group elements. The resulting coupling is diagonally -invariant, meaning that for every . It couples and and represents the same quotient coupling as . We next show that, on the -equivariant model class, training with is equivalent to training with .
Theorem 3.2 (Equivariant flow matching via symmetrization). Let . Then:
-
For every G-equivariant field , . The field can be chosen G-equivariant and minimizes over all G-equivariant fields.
-
If the ODE of a G-equivariant field has a unique flow , then it induces a well-defined quotient flow . For every , . Hence the projected curve depends only on the quotient law , not on the representative lift chosen at time 0.
-
If permutes coordinates and is supported on , , let
For , let be the coordinate determined by . These coordinate posteriors can be chosen equivariantly for and :
They minimize over equivariant coordinate kernels and recover through (6).
The full proof is given in Appendix B. Together, Theorems 3.1 and 3.2 connect the practical recipe used below to quotient transport: align representatives and train an equivariant Euclidean model whose flow, when well posed, descends to unordered graphs
4 Constructing graph couplings via Gromov–Monge approximation
For , encode a graph by with entries
where contains edge features and contains node features on the diagonal. Hence edge and node-feature discrepancies enter the squared Euclidean cost with weights and , respectively, as in fused Gromov–Wasserstein transport [Vayer et al., 2020]. We use in all experiments. Because the same permutation acts on both node indices, the quotient cost (8) compares all pairwise graph relations after a single consistent node alignment. Its exact evaluation is an NP-hard quadratic assignment, so we combine an inner Gromov–Wasserstein relaxation [Bauer et al., 2025] with an optional outer assignment between graphs in a minibatch.
Choosing a target representative with GW – inner solvers For , we use a generalized version [Bauer et al., 2025] of the discrete Gromov–Wasserstein relaxation [Mémoli, 2011, Peyré et al., 2016], allowing for vector-valued edge features:
where . Restricting to scaled permutation matrices recovers the Gromov–Monge objective, so . We approximately solve the non-convex problem by Frank–Wolfe iterations [Peyré et al., 2016]: each iteration solves an exact linearized transport problem and updates the soft plan by an exact line search. From the final plan , we recover the node permutation
using the Hungarian algorithm [Kuhn, 1955]. Equivalently, is the scaled permutation matrix closest to T in Frobenius norm, where denotes the permutation matrix of . The GW plan tells us how to relabel F. Using the recovered permutation, define the aligned representative by
We then train flow matching on . Since GW is a relaxation, this representative need not be the best solution of the original hard alignment problem.
As a cheaper alternative, let , and let denote the -th smallest value among node eccentricities of . This gives the first lower bound (FLB) [Bauer et al., 2025]
This is the squared 2-Wasserstein distance between the empirical eccentricity distributions. We sort the nodes of E and F by their eccentricities and pair the i-th node in one ordering with the i-th node in the other, breaking ties arbitrarily. These pairs define a permutation. Computing the eccentricities takes operations, and sorting takes . Thus GW retains detailed pairwise structure at higher computational cost, whereas FLB provides an inexpensive inner alignment and is cheap to evaluate for all candidate pairs in the outer minibatch assignment. Their empirical cost–quality trade-off is reported in Appendix G.
Outer-inner minibatch coupling For a graph pair , let denote the approximate quotient cost returned by the selected inner solver, and let denote its corresponding hard node alignment. Thus is the target representative aligned to . For independently sampled batches and , either set or solve
where is the GW or FLB cost. For each selected pair, set , defining
Thus inner alignment chooses graph representatives, while the optional outer assignment chooses which graphs to connect. These are distinct decisions: even with independent outer pairing, an inner alignment can substantially shorten the interpolation between each selected pair. Algorithm 1 summarizes the complete construction.
Algorithm 1 Outer-inner minibatch graph alignment
Require: Source batch , target batch , outer cost
1: if the outer coupling is independent then 2: for all 3: else 4: for all 5: 6: end if 7: for do 8: 9: Obtain using GW, FLB, or random reshuffling 10: 11: end for 12: return
Training Write , sample , and set . The continuous and categorical minibatch losses are, respectively,
The categorical velocity follows from (6). For datasets containing graphs with different numbers of nodes, one graph transformer is shared across all node counts: it maps an N-node input to an N-node prediction, while N may vary between batches. We form each training batch from graphs with the same N. At inference, we sample N from the empirical distribution of node counts in the training set. The graph transformer is permutation-equivariant, ensuring that relabelling the source relabels the entire predicted trajectory. Architecture and solver details are in Appendix F.
5 Numerical experiments
We evaluate the proposed coupling constructions in a permutation-equivariant graph flow-matching model. We compare random node relabelling (RANDOM), eccentricity sorting (FLB), and a 10-iteration Frank–Wolfe GW solver (GW); “+out” additionally reorders same-size graphs in sub-batches of at most eight. As a permutation-blind reference, MINIBATCHOT relabels each target at random and then assigns pairs over the full minibatch by squared Euclidean distance , with no inner alignment. All models share the same equivariant graph-transformer backbone and differ only in their training coupling. We consider several Euler budgets to assess whether structure-aware alignment improves few-step generation. Complete architecture, optimization, data, solver, and metric specifications are given in Appendix F.
For variable-size datasets, the population construction first draws the node count from its empirical distribution. Conditional on , RANDOM uses the product coupling , where and denote the source and target laws for nodes. Inner FLB/GW changes only the representative of each selected target graph, whereas the outer variants additionally optimize the source–target pairing within the fixed- minibatch. Hence, improvements from inner alignment measure the value of node correspondence, while differences between inner-only and outer variants measure the additional effect of minibatch transport.
5.1 Illustrative target via translated cycle graphs
Inspired by [Piening et al., 2026], each graph is a 12-node ring drawn as a regular 12-gon of radius 1 centred at , with the nodes randomly relabelled. The representation holds one binary adjacency channel and the planar 2D node positions on the diagonal. Source and target differ only by a translation and an independent rotation on each side, at and , so both sides have the same edge law and any deformation of the ring is caused by the coupling alone. Figure 1 shows the learned trajectories at (bottom), (center), and (top). Inner GW pairs corresponding nodes between two rings. This results in a fixed adjacency channel along the interpolation. Under random inner relabelling, the two sets of edges disagree, so the endpoints are still correct, but the intermediate graphs in between are much denser, carrying half-present edges in place of crisp circular ones. Inner GW removes the edge ambiguity and keeps the ring at full size midway, but leaves the paths curved. The outer assignment straightens them. The inner alignment thus governs the shape of the transported object, the outer assignment the geometry of its path.

(a) RANDOM

(b) GW

(c) GW+GW
Figure 1: Learned trajectories from cycle graphs (bottom) to vertically offset cycle graphs (top), on a shared scale. Colours mark source graphs, grey lines node paths, and edge opacity equals edge value. The ring collapses at in 1a, stays crisp but on curved paths in 1b, and is straightened in 1c.
5.2 Continuous target via stochastic block models
Data As a controlled continuous testbed, we use an SBM on nodes with two channels: one symmetric weighted-edge channel in and one scalar node feature on the diagonal. For , nodes are assigned to near-balanced blocks; for every , we sample and mirror from Beta(6, 2) within a block and Beta(2, 6) across blocks. A node in block receives a Beta feature with concentration 8 and mean , so the diagonal channel also records community structure. We randomize node order, making each tensor an arbitrary representative of its graph orbit. The source has independent upper-triangular edges, mirrored across the diagonal, and independent node features. The main experiment pools all . Appendix D instead supplies to the model and aligns only within minibatches containing a single value of to showcase conditional instead of unconditional generation.
Metrics For 100 real and 100 generated graphs, we estimate maximum mean discrepancies (MMDs) of degree, clustering, and four-node graphlet-orbit counts, which distinguish the roles a node can occupy in induced four-node subgraphs [Jo et al., 2022, You et al., 2018]. All three require unweighted graphs, obtained by thresholding real and generated edges alike at . To compare the full attributed graphs including their node features, we also report fused-GW nearest-neighbor accuracy (FGW-NNA). This statistic builds on the popular OT-NNA statistic used to compare real and generated sets of point clouds [Yang et al., 2019] by replacing pairwise Wasserstein distance with pairwise FGW. Given 100 generated and 100 real graphs, we pool both samples and label each graph by its origin. We then classify every graph by the label of its nearest neighbor under fused GW, excluding the graph itself. Because fused GW compares attributed graphs up to node relabelling, this is a two-sample test directly on graph orbits rather than on selected descriptors. If real and generated graphs follow the same law, the accuracy approaches 0.5. Larger values mean that the samples are more easily separated. Results are reported over three training runs with different seeds and evaluated at 5/25/125 Euler steps.
Results At five steps (Table 1), GW with outer assignment reduces FGW–NNA from 0.796 to 0.568, degree MMD from 0.114 to 0.018, and clustering MMD from 0.179 to 0.034. The gap narrows by 125 steps, as expected because all matching should result in valid interpolations. FLB captures part of the low-step gain at much lower cost, while outer assignment adds a smaller improvement. The permutation-blind MINIBATCHOT already matches or exceeds the FLB variants on most statistics, yet remains clearly behind the GW variants. The conditional experiment likewise favors GW alignment (Appendix D). Notably, at five steps the two GW variants are also the only conditions that bring FGW–NNA close to its ideal value of 0.5. Thus, the improvement is visible not merely in selected graph statistics, but in a two-sample test using the underlying relational geometry.
Table 1: Continuous SBM, unconditional mixture over (), at 5/25/125 Euler steps. Rows are mean over 3 training seeds (5 evaluation repeats each). Best value per column is bold (MMDs (degree, clustering, graphlet orbit) , Best FGW–NNA: .
| Method | FGW-NNA (→ 0.5) | Degree MMD (↓) | Clustering MMD (↓) | Graphlet-orbit MMD (↓) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 25 | 125 | 5 | 25 | 125 | 5 | 25 | 125 | 5 | 25 | 125 | |
| RANDOM | 0.796.012 | 0.581.021 | 0.561.015 | 0.114.045 | 0.067.016 | 0.059.011 | 0.179.100 | 0.085.042 | 0.075.028 | 0.062.033 | 0.046.033 | 0.043.025 |
| MINIBATCHOT | 0.687.018 | 0.561.016 | 0.530.007 | 0.031.004 | 0.023.006 | 0.015.005 | 0.090.014 | 0.046.010 | 0.037.010 | 0.006.001 | 0.011.001 | 0.007.000 |
| FLB | 0.725.013 | 0.558.011 | 0.555.022 | 0.054.004 | 0.037.011 | 0.030.010 | 0.109.037 | 0.042.006 | 0.040.011 | 0.030.014 | 0.027.017 | 0.021.015 |
| FLB+FLBout | 0.691.040 | 0.562.019 | 0.547.009 | 0.034.011 | 0.012.002 | 0.013.007 | 0.121.041 | 0.045.024 | 0.047.021 | 0.018.011 | 0.007.002 | 0.010.005 |
| GW | 0.577.011 | 0.522.004 | 0.520.023 | 0.027.013 | 0.014.002 | 0.012.004 | 0.049.019 | 0.015.005 | 0.016.007 | 0.014.004 | 0.010.003 | 0.008.001 |
| GW+GWout | 0.568.008 | 0.536.014 | 0.504.021 | 0.018.005 | 0.014.002 | 0.007.001 | 0.034.007 | 0.021.004 | 0.014.002 | 0.005.001 | 0.008.001 | 0.004.000 |
5.3 Categorical target via molecular graph generation
Data We use QM9 () [Ramakrishnan et al., 2014] and ZINC250k () [Jin et al., 2018] in the categorical CatFlow/DiGress representation [Eijkelboom et al., 2024, Vignac et al., 2023]. Edges are one-hot over {none, single, double, triple}, while each diagonal node feature concatenates a one-hot atom type with a formal-charge one-hot over . QM9 uses atom types , giving ; ZINC250k uses , giving . The network predicts the coordinatewise categorical endpoint and minimises a blockwise softmax analogue of (10). Its velocity is recovered through (6). We group minibatches by node count and apply the same outer-inner alignment as for the continuous experiment.
Metrics Following the GDSS/CatFlow evaluation protocols [Eijkelboom et al., 2024, Jo et al., 2022], we report uncorrected molecular validity—the fraction of generated graphs that RDKit sanitizes without valence correction or other postprocessing—and Fréchet ChemNet Distance (FCD); higher is better for validity and lower is better for FCD. We omit novelty because QM9 is a near-exhaustive enumeration of small molecules: a high novelty score can therefore reward atypical or lower-quality structures rather than faithful modelling. Uniqueness is close to 100% for all structure-aware conditions, while additional invalid or atypical outputs can increase the apparent uniqueness of RANDOM; reporting it would therefore favor the weakest coupling. Validity and FCD capture chemical correctness and distributional fidelity, respectively; complete definitions are in Appendix F.
5.3.1 Limited-budget sweep of the endpoint-induced velocity field
We train the shared 2.8M-parameter backbone for 100 epochs under each coupling and evaluate 10,000 samples at 5/25/125 Euler steps; complete settings are in Appendix F.
Table 2: Molecular short-budget sweep (100 training epochs), evaluated at 5/25/125 Euler steps. Rows are mean over 3 evaluation repeats. Best per column is bold (Validity ↑, FCD ↓).
| Method | Validity (↑) | FCD (↓) | ||||
|---|---|---|---|---|---|---|
| 5 | 25 | 125 | 5 | 25 | 125 | |
| QM9 (N ≤ 9) | ||||||
| RANDOM | 0.8849.0020 | 0.9564.0002 | 0.9648.0010 | 1.731.017 | 0.637.022 | 0.530.012 |
| MINIBATCHOT | 0.9357.0029 | 0.9724.0010 | 0.9779.0003 | 1.747.024 | 0.689.014 | 0.507.035 |
| GW | 0.9356.0020 | 0.9695.0010 | 0.9744.0014 | 1.278.046 | 0.589.015 | 0.491.022 |
| GW+GWout | 0.9421.0024 | 0.9728.0011 | 0.9783.0009 | 1.232.017 | 0.532.014 | 0.440.016 |
| ZINC250k (N ≤ 38) | ||||||
| RANDOM | 0.5641.0048 | 0.8140.0034 | 0.8597.0011 | 18.448.095 | 13.061.162 | 11.909.077 |
| MINIBATCHOT | 0.6106.0025 | 0.8348.0033 | 0.8667.0026 | 17.190.075 | 12.686.008 | 11.744.167 |
| GW | 0.6431.0029 | 0.8472.0052 | 0.8742.0009 | 15.024.076 | 11.993.030 | 11.365.073 |
| GW+GWout | 0.7280.0055 | 0.8763.0026 | 0.8930.0022 | 15.377.048 | 12.116.025 | 11.370.059 |
Results At five steps (Table 2), inner GW raises validity from 0.8849 to 0.9356 on QM9 and from 0.5641 to 0.6431 on ZINC250k, while reducing FCD from 1.731 to 1.278 and from 18.448 to 15.024. Outer assignment further improves validity, whereas its FCD gain is dataset dependent: it is uniformly best on QM9 and gives the highest ZINC250k validity, while inner-only GW has marginally better ZINC250k FCD. MINIBATCHOT matches inner GW on QM9 validity but not on FCD; on ZINC250k it sits strictly between RANDOM and both GW variants. Again, differences narrow with more steps.
5.3.2 Full-budget molecular generation
We train larger GW-aligned endpoint models without outer alignment and evaluate the resulting GW-CATFLOW model with 500 Euler steps. The complete protocol is in Appendix E.
Results Table 3 gives 99.34% validity and 0.115 FCD on QM9, comparable to DeFoG, and 99.01% validity with 0.966 FCD on ZINC250k, the lowest FCD listed. Because baselines follow their published protocols and our full-budget model includes additional architectural changes, this table establishes competitiveness rather than isolating the effect of alignment. Together with the controlled short-budget sweep, it shows that the proposed coupling improves the regime it is designed for without preventing the model from reaching strong quality at a conventional, large integration budget.
Table 3: Molecular long-budget generation with GW inner alignment. Ours: 500 Euler steps, 10,000 samples, mean over three repeats. Baselines follow their published protocols; GraphAF, MoFlow, and DiGress are quoted from [Hou et al., 2026], DeFoG from [Xiong et al., 2026]. Validity ↑, FCD ↓.
| Method | QM9 | ZINC250k | ||
|---|---|---|---|---|
| Validity (↑) | FCD (↓) | Validity (↑) | FCD (↓) | |
| GraphAF [Hou et al., 2026, Shi et al., 2020] | 67.14 | 5.246 | 67.92 | 16.128 |
| MoFlow [Hou et al., 2026, Zang and Wang, 2020] | 92.03 | 4.536 | 63.76 | 20.875 |
| GDSS [Jo et al., 2022] | 95.72 | 2.900 | 97.01 | 14.656 |
| CatFlow/VFM [Eijkelboom et al., 2024] | 99.81 | 0.441 | 99.21 | 13.211 |
| DiGress [Hou et al., 2026, Vignac et al., 2023] | 98.29 | 0.095 | 94.98 | 3.482 |
| GGFlow [Hou et al., 2026] | 99.91 | 0.148 | 99.63 | 1.455 |
| DeFoG [Xiong et al., 2026, Qin et al., 2025] | 99.30 | 0.120 | 99.22 | 1.425 |
| VBFN [Xiong et al., 2026] | 99.98 | 0.083 | 99.63 | 1.307 |
| GW-CATFLOW (ours) | 99.34.08 | 0.115.004 | 99.01.03 | 0.966.013 |
6 Conclusion
We specialise equivariant flow matching to graphs via Gromov–Wasserstein alignments: the inner alignment reorders each target's nodes, the outer assignment reorders the minibatch. Both simplify trajectories and improve few-step generation over random assignment or permutation-blind minibatch OT. GW solvers remain the limitation: only approximately Gromov–Monge and expensive, though absent at inference. Future work may include accelerated GW approximations [Beier et al., 2022, Chowdhury et al., 2021, Piening and Beinert, 2025, Jin et al., 2022, Scetbon et al., 2022] and semi-discrete formulations beyond minibatches [Kong et al., 2025, Mousavi-Hosseini et al., 2025].
References
Michael Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. In Proceedings of the ICLR'23. OpenReview.net, 2023.
Luigi Ambrosio, Nicola Gigli, and Giuseppe Savaré. Gradient Flows: In Metric Spaces and in the Space of Probability Measures. Springer Science & Business Media, 2005.
Martin Bauer, Facundo Mémoli, Tom Needham, and Mao Nishino. The Z-Gromov-Wasserstein distance. Journal of Machine Learning Research, 26(291):1–57, 2025.
Florian Beier, Robert Beinert, and Gabriele Steidl. On a linear Gromov–Wasserstein distance. IEEE Transactions on Image Processing, 31:7292–7305, 2022.
Florian Beier, Moritz Piening, Robert Beinert, and Gabriele Steidl. Joint metric space embedding by unbalanced optimal transport with Gromov–Wasserstein marginal penalization. In Proceedings of ICML'25. OpenReview.net, 2025.
Jannis Chemseddine, Paul Hagemann, Gabriele Steidl, and Christian Wald. Conditional Wasserstein distances with applications in Bayesian OT flow matching. Journal of Machine Learning Research, 26(141):1–47, 2025.
Jannis Chemseddine, Gregor Kornhardt, and Gabriele Steidl. Spherical flows for sampling categorical data. arXiv preprint arXiv:2605.05629, 2026.
Ricky TQ Chen and Yaron Lipman. Flow matching on general geometries. In Proceedings of the ICLR'24. OpenReview.net, 2024.
Ting Chen, Ruixiang Zhang, and Geoffrey Hinton. Analog Bits: Generating discrete data using diffusion models with self-conditioning. In Proceedings of the ICLR'23. OpenReview.net, 2023.
Samir Chowdhury, David Miller, and Tom Needham. Quantized Gromov–Wasserstein. In Proceedings of ECML PKDD'21, pages 811–827. Springer, 2021.
Floor Eijkelboom, Grigory Bartosh, Christian A. Naesseth, Max Welling, and Jan-Willem van de Meent. Variational flow matching for graph generation. In Advances in Neural Information Processing Systems, volume 37. Curran Associates, 2024.
Doron Haviv, Aram-Alexandre Pooladian, Dana Pe'er, and Brandon Amos. Wasserstein flow matching: Generative modeling over families of distributions. In Proceedings of the ICML'25. OpenReview.net, 2025.
Emiel Hoogeboom, Víctor Garcia Satorras, Clément Vignac, and Max Welling. Equivariant diffusion for molecule generation in 3D. In Proceedings of the ICML'22. PMLR, 2022.
Xiaoyang Hou, Tian Zhu, Milong Ren, Dongbo Bu, Xin Gao, Chunming Zhang, and Shiwei Sun. Ggflow: A graph flow matching method with efficient optimal transport. Transactions on Machine Learning Research, 2026.
Tomaž Hočevar and Janez Demšar. A combinatorial approach to graphlet counting. Bioinformatics, 30(4):559–565, 2014. doi: 10.1093/bioinformatics/btt717.
Ka-Hei Hui, Chao Liu, Xiaohui Zeng, Chi-Wing Fu, and Arash Vahdat. Not-so-optimal transport flows for 3d point cloud generation. In Proceedings of the ICLR'25. OpenReview.net, 2025.
Keyue Jiang, Jiahao Cui, Xiaowen Dong, and Laura Toni. Bures-Wasserstein flow matching for graph generation. In Proceedings of the ICLR'26. OpenReview.net, 2026.
Hongwei Jin, Zishun Yu, and Xinhua Zhang. Orthogonal Gromov–Wasserstein discrepancy with efficient lower bound. In Proceedings of UAI'22, volume 180 of Proceedings of Machine Learning Research, pages 917–927. PMLR, 2022.
Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. In Proceedings of the ICML'18, pages 2323–2332. PMLR, 2018.
Jaehyeong Jo, Seul Lee, and Sung Ju Hwang. Score-based generative modeling of graphs via the system of stochastic differential equations. In Proceedings of the ICML'22. PMLR, 2022.
Alexander Kechris. Classical descriptive set theory. Springer Science & Business Media, 2012.
Leon Klein, Andreas Krämer, and Frank Noé. Equivariant flow matching. Advances in Neural Information Processing Systems, 36:59886–59910, 2023.
Jonas Köhler, Leon Klein, and Frank Noé. Equivariant flows: Exact likelihood generative learning for symmetric densities. In Proceedings of the ICML'20, pages 5361–5370. PMLR, 2020.
Lingkai Kong, Molei Tao, Yang Liu, Bryan Wang, Jinmiao Fu, Chien-Chih Wang, and Huidong Liu. Alignflow: Improving flow-based generative models with semi-discrete optimal transport. arXiv preprint arXiv:2510.15038, 2025.
Harold W Kuhn. The Hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83–97, 1955.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In Proceedings of the ICLR'23. OpenReview.net, 2023.
Xingchao Liu, Chengyue Gong, et al. Flow straight and fast: Learning to generate and transfer data with rectified flow. In Proceedings of the ICLR'23. OpenReview.net, 2023.
Facundo Mémoli. Gromov–Wasserstein distances and the metric approach to object matching. Foundations of Computational Mathematics, 11:417–487, 2011.
Facundo Mémoli and Tom Needham. Comparison results for Gromov–Wasserstein and Gromov–Monge distances. ESAIM: Control, Optimisation and Calculus of Variations, 30:78, 2024. doi:10.1051/cocv/2024063. URL https://www.esaim-cocv.org/articles/cocv/abs/2024/01/cocv230154/cocv230154.html.
Alireza Mousavi-Hosseini, Stephen Y Zhang, Michal Klein, and Marco Cuturi. Flow matching with semidiscrete couplings. arXiv preprint arXiv:2509.25519, 2025.
Gabriel Peyré, Marco Cuturi, and Justin Solomon. Gromov–Wasserstein averaging of kernel and distance matrices. In Proceedings of ICML'16, volume 48 of Proceedings of Machine Learning Research, pages 2664–2672. PMLR, 2016.
Moritz Piening and Robert Beinert. A novel sliced fused Gromov-Wasserstein distance. arXiv preprint arXiv:2508.02364, 2025.
Moritz Piening and Robert Beinert. Slicing Wasserstein over Wasserstein via functional optimal transport. In Proceedings of the ICLR'26. OpenReview.net, 2026.
Moritz Piening, Richard Duong, and Gabriele Steidl. Generalized wasserstein flow matching: Transport plans, everywhere, all at once. arXiv preprint arXiv:2605.08424, 2026.
Aram-Alexandre Pooladian, Heli Ben-Hamu, Carles Domingo-Enrich, Brandon Amos, Yaron Lipman, and Ricky TQ Chen. Multisample flow matching: Straightening flows with minibatch couplings. In Proceedings of the ICML'23. OpenReview.net, 2023.
Yiming Qin, Manuel Madeira, Dorina Thanou, and Pascal Frossard. DeFoG: Discrete flow matching for graph generation. In Proceedings of the ICML'25. OpenReview.net, 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:140022, 2014.
Filippo Santambrogio. Optimal Transport for Applied Mathematicians: Calculus of Variations, PDEs and Modeling. Birkhäuser, Cham, 2015.
Meyer Scetbon, Gabriel Peyré, and Marco Cuturi. Linear-time Gromov--Wasserstein distances using low-rank couplings and costs. In Proceedings of ICML'22, volume 162 of Proceedings of Machine Learning Research, pages 19347–19365. PMLR, 2022.
Chence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang, Ming Zhang, and Jian Tang. GraphAF: A flow-based autoregressive model for molecular graph generation. In Proceedings of the ICLR'20. OpenReview.net, 2020.
Yuxuan Song, Jingjing Gong, Minkai Xu, Ziyao Cao, Yanyan Lan, Stefano Ermon, Hao Zhou, and Wei-Ying Ma. Equivariant flow matching with hybrid probability transport for 3d molecule generation. Advances in Neural Information Processing Systems, 36:549–568, 2023.
Alexander Tong, Kilian Fatras, Nikolay Malkin, Guillaume Huguet, Yanlei Zhang, Jarrid Rector-Brooks, Guy Wolf, and Yoshua Bengio. Improving and generalizing flow-based generative models with minibatch optimal transport. Transactions on Machine Learning Research, 2023.
Titouan Vayer, Laetitia Chapel, Rémi Flamary, Romain Tavenard, and Nicolas Courty. Fused Gromov–Wasserstein distance for structured objects. Algorithms, 13(9):212, 2020.
Clement Vignac, Igor Krawczuk, Antoine Siraudin, Bohan Wang, Volkan Cevher, and Pascal Frossard. DiGress: Discrete denoising diffusion for graph generation. In Proceedings of the ICLR'23. OpenReview.net, 2023.
Cédric Villani. Optimal Transport: Old and New, volume 338 of Grundlehren der mathematischen Wissenschaften. Springer-Verlag, Berlin, 2009.
Christian Wald and Gabriele Steidl. Flow matching: Markov kernels, stochastic processes and transport plans. Variational and Information Flows in Machine Learning and Optimal Transport, pages 185–254, 2025.
Asiri Wijesinghe, Sevvandi Kandanaarachchi, Daniel M Steinberg, and Cheng Soon Ong. Flowette: Flow matching with graphette priors for graph generation. arXiv preprint arXiv:2602.23566, 2026.
Yida Xiong, Jiameng Chen, Xiuwen Gong, Jia Wu, Shirui Pan, and Wenbin Hu. Variational Bayesian flow network for graph generation. In Proceedings of the ICML'26. OpenReview.net, 2026. URL https://openreview.net/forum?id=NNU8c05wte.
Hongteng Xu, Dixin Luo, Hongyuan Zha, and Lawrence Carin. Gromov–Wasserstein learning for graph matching and node embedding. In Proceedings of the ICML'19, pages 6932–6941. PMLR, 2019.
Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. In Proceedings of the ICCV'19, pages 4541–4550. IEEE, 2019.
Jiaxuan You, Rex Ying, Xiang Ren, William L. Hamilton, and Jure Leskovec. GraphRNN: Generating realistic graphs with deep auto-regressive models. In Proceedings of the ICML'18. PMLR, 2018.
Chengxi Zang and Fei Wang. MoFlow: An invertible flow model for generating molecular graphs. In Proceedings of the KDD'20, pages 617–626. ACM, 2020.
A Proof of representative lifts and quotient geodesics
This section proves Theorem 3.1. We first recall the metric notions used in the geodesic part of the proof. A curve belongs to if there exists such that
Let be compact and define
with quotient map
The quotient is equipped with the metric
Since is compact and acts by isometries, the minimum is attained and defines a metric on . Since is compact and acts isometrically, is Polish, and is 1-Lipschitz.
For , the corresponding Wasserstein distance is
where
By we denote the couplings which minimize (11).
Proposition A.1 (Representative lifting of quotient couplings). Let , fix , and let . Then
In particular, if and attains the minimum on the right-hand side, then and \mathrm{W}_2, \mathbb{R}^D^2(\mu, \nu_\Gamma) = \mathrm{W}_2, Q^2(\boldsymbol{\mu}, \boldsymbol{\nu}).
Proof. Let and satisfy . Since
we have
Conversely, disintegrate
where is supported on , and define by
Then .
Since is compact, the corresponding argmin relation is closed with nonempty compact sections. Hence, a measurable selection theorem [Kechris, 2012, Theorem 18.18] yields a Borel map satisfying
Set , and let be its second marginal. Then and . Moreover, since , we get
and hence . Finally,
Thus the minimum is attained. If, in addition, , then
Hence all inequalities are equalities, which proves the final claim.
Geodesic and energy claims in Theorem 3.1. Let be optimal and let be the pair constructed in Proposition A.1. The proposition gives
For , the coupling and the fact that is 1-Lipschitz give
Thus belongs to . Applying this bound on , , and , and combining it with the triangle inequality between and , forces equality in each bound. Hence
so is a constant-speed geodesic.
Finally, the Euclidean optimal-coupling identity in Section 2.2 and (12) yield
B Proof of equivariant flow matching via symmetrization
This section proves Theorem 3.2. Write for the normalized Haar probability measure on . We call diagonally -invariant if for every .
Proposition B.1 (Equivariance of the flow-matching minimizer). Let be diagonally G-invariant and let denote the minimizer of in (4). Then admits a G-equivariant representative. More precisely, there exists a jointly Borel field such that
and
Proof. Let , and . Diagonal invariance and linearity of the action give
In particular, each is -invariant. For , define
Diagonal invariance and orthogonality give . By uniqueness of the minimizer in ,
for every . Choose a jointly Borel representative of and write
The action is continuous, so F is jointly Borel. Orthogonality of h and G-invariance of every give
By Tonelli's theorem, the inner integral is finite for dt -almost every . Since is a probability measure, Cauchy–Schwarz then gives
for almost every . Hence the vector-valued Haar integral exists outside a dt -null set. Define
on this set and set it to zero otherwise. Componentwise integration gives a jointly Borel field .
It remains to show that this field represents the same minimizer. Since the preceding equality holds dt -almost everywhere for every fixed , another application of Tonelli's theorem gives
Consequently, for dt -almost every , the integrand vanishes for -almost every , and hence . Thus the averaging changes only the representative of the minimizer.
It remains to check that the averaged representative is exactly equivariant. For , right invariance of Haar measure and the change of variables give
The set where the Haar integral is not finite is itself G-invariant by the same change of variables. Therefore the equality also holds there under the zero convention, and for every , , and .
For and , define
Then
Haar invariance gives for every . Thus diagonal symmetrization preserves the coupling on the quotient, and whenever both marginals are -invariant.
Proposition B.2 (Minimization over equivariant fields). Let be arbitrary. Then the field associated with minimizes over all -equivariant fields:
In particular, the constrained problem is the ordinary flow-matching problem for the diagonally symmetrized coupling .
Proof. For every G-equivariant field v and every , orthogonality of the action gives
Averaging over therefore yields for every equivariant . Since is diagonally -invariant, its unrestricted minimizer admits a -equivariant representative. As minimizes over all fields, it also minimizes over the equivariant ones.
Proposition B.3 (Equivariant flows on the quotient). Let be G-equivariant and assume that (3) admits a unique flow . Then induces the well-defined quotient flow
For every and ,
In particular, if , then
so the projected curve is independent of the representative lift at time 0.
Proof. Equivariance of and uniqueness of the ODE imply . Thus is well-defined and , which gives
The final claim follows by applying this identity to two measures with the same quotient push-forward.
The coordinatewise categorical formulation in Section 2.2 is directly compatible with coordinate permutation actions.
Corollary B.4 (Coordinatewise equivariant endpoint prediction). Assume that acts by coordinate permutations, where is determined by , and let . Let be arbitrary, assume that is supported on , and let . Then the conditional coordinate probabilities associated with admit a representative satisfying
for every , , , , and , and minimize over all such equivariant coordinate kernels:
Writing , for a.e. and -a.e. ,
In particular, this defines a G-equivariant representative of , without requiring or to be G-invariant.
Proof. Since is finite, diagonal invariance of allows us to choose the conditional coordinate probabilities equivariantly. If and , then for every . Consequently, starting from any jointly Borel version , each is a version of the same conditional probability. Define
This is another version of the same conditional probabilities and satisfies the displayed equivariance identity for every g, d, n, t, z. We use this version below.
For every equivariant coordinate kernel , relabelling the coordinates and summing over gives
Hence on the equivariant class. By (7), these probabilities minimize the unrestricted coordinatewise objective for , and therefore the constrained objective for .
For any equivariant coordinate kernel q, define
Then
Thus , independently of the invariance of the endpoint measures. Taking for every and using (6) proves the remaining claims.
Remark B.5 (Categorical feature blocks). The scalar formulation above is not restrictive for finite categorical data: any finite set of classes can be represented by distinct points on the real line. Such an encoding, however, introduces an arbitrary geometry between classes. In practice, we therefore use one-hot encodings and group the corresponding coordinates into categorical feature blocks. A softmax head over the possible block values estimates their conditional endpoint distribution, whose mean gives the conditional mean entering the velocity. Thus the same construction applies to one-hot node and edge features without requiring conditional independence between feature blocks.
C Related Work on Transport-Based Graph Generation
Graph generators commonly enforce node-relabeling symmetry through equivariant architectures [Jo et al., 2022, Vignac et al., 2023, Eijkelboom et al., 2024]. Recent graph flow models additionally exploit transport geometry. GGFlow uses minibatch OT for graph pairing [Hou et al., 2026], while BWFlow constructs paths from Bures–Wasserstein transport between graph representations [Jiang et al., 2026]. Concurrent Flowette introduces a graph-structured graphette prior and uses fused Gromov–Wasserstein distances for structure-aware minibatch pairing [Wijesinghe et al., 2026]. Both GGFlow and Flowette therefore use transport primarily to choose which source and target graphs to pair. In contrast, we use the GW plan itself to select a hard node relabeling before interpolation, explicitly separating this inner Gromov–Monge alignment from the optional outer graph assignment. Our ablations show that much of the improvement already comes from the inner alignment, while outer graph matching provides a smaller or dataset-dependent additional benefit. This connects our construction to GW-based graph matching and alignment [Peyré et al., 2016, Vayer et al., 2020, Xu et al., 2019], while deriving both operations from transport on the permutation quotient.
D Conditional continuous-SBM experiment
We additionally condition the continuous SBM model on the community count K, form minibatches containing only one value of K, and compare pooled generated and real graphs with matching K-multisets. All other settings and metrics agree with Section 5.2. The conditional results in Table 4 reproduce the unconditional ranking: GW alignment has the largest advantage at five Euler steps, and the gap narrows with the integration budget.
E Full-budget molecular training protocol
Protocol For the full-budget evaluation, we retain the categorical endpoint objective and use GW inner alignment with independent outer pairing. We increase the model capacities and training budgets toward those used by DeFoG [Qin et al., 2025]. In particular, we augment the transformer inputs with structural graph statistics and relative random-walk probabilities (RRWP), and use self-conditioning. For our self-conditioning implementation, on 50% of optimization steps, the model is conditioned on a detached preliminary endpoint prediction [Chen et al., 2023]. During sampling, each Euler step receives the preceding step's endpoint prediction. As regularization during training, Gaussian noise with standard deviation is added to the interpolated network input while leaving the endpoint target unchanged.
Table 4: Continuous SBM, class-conditional on (), evaluated by pooling generated and real graphs with the same ground-truth multiset. Mean std over 3 training seeds (5 evaluation repeats each) at 5/25/125 Euler steps. Descriptor MMDs: lower is better; FGW–NNA: closest to 0.5 is better. Best per column in bold.
| Method | FGW-NNA (→ 0.5) | Degree MMD (↓) | Clustering MMD (↓) | Graphlet-orbit MMD (↓) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 25 | 125 | 5 | 25 | 125 | 5 | 25 | 125 | 5 | 25 | 125 | |
| RANDOM | 0.746.009 | 0.580.008 | 0.544.021 | 0.043.009 | 0.008.002 | 0.005.001 | 0.076.010 | 0.029.007 | 0.020.004 | 0.028.002 | 0.006.004 | 0.003.003 |
| FLB | 0.714.010 | 0.543.017 | 0.558.023 | 0.023.004 | 0.005.001 | 0.005.001 | 0.047.006 | 0.021.003 | 0.017.003 | 0.018.003 | 0.005.001 | 0.003.002 |
| FLB+FLBout | 0.699.007 | 0.552.018 | 0.539.007 | 0.013.002 | 0.007.002 | 0.007.001 | 0.049.009 | 0.030.005 | 0.027.010 | 0.009.006 | 0.005.003 | 0.005.004 |
| GW | 0.584.002 | 0.523.010 | 0.524.003 | 0.011.001 | 0.005.001 | 0.004.001 | 0.016.002 | 0.011.001 | 0.010.001 | 0.016.001 | 0.005.002 | 0.003.001 |
| GW+GWout | 0.561.017 | 0.526.028 | 0.529.014 | 0.008.001 | 0.005.001 | 0.005.002 | 0.018.001 | 0.014.001 | 0.014.004 | 0.012.001 | 0.004.001 | 0.003.001 |
The categorical objective consists of a bond cross-entropy term and a node-feature term, the latter averaging the atom-type and formal-charge cross-entropies. These terms are weighted equally for QM9. For ZINC250k, we multiply the bond term by 5 relative to the node-feature term, following the stronger emphasis on edge prediction used by DeFoG and CatFlow.
Both QM9 and ZINC250k are trained in two stages. We first train without dropout, then restore the model and EMA weights and fine-tune with dropout 0.1 using a new AdamW optimizer. All reported full-budget numbers in this section use the final EMA checkpoint after dropout fine-tuning; the dropout-free checkpoints are only used to initialize the second stage.
The QM9 model has node, edge, and global widths 256/64/64, feed-forward widths 256/128/128, depth 9, 8 attention heads, and 12 RRWP channels, for approximately 6.0M parameters. It is first trained for 1000 epochs with batch size 1024 without dropout, and then fine-tuned for 50 additional epochs with dropout 0.1. The ZINC250k model has widths 256/64/128, feed-forward widths 256/128/256, depth 12, 8 heads, and 20 RRWP channels, for approximately 10.8M parameters. It is first trained for 300 epochs using microbatches of 128 with two-step gradient accumulation, giving an effective batch size of 256, and then fine-tuned for 30 additional epochs with dropout 0.1. The initial training runs use AdamW with learning rate , weight decay , gradient-norm clipping at 1.0, cosine learning-rate decay, and EMA decay 0.999.
The dropout fine-tuning stages restore both model and EMA weights, use a new AdamW optimizer at learning rate , and do not use cosine decay. We report only the final fine-tuned EMA checkpoints, evaluated using 500 Euler steps.
ZINC ablation. To isolate the contribution of the main additions used in the full-budget ZINC model, we run the cumulative ablation in Table 5 on ZINC250k using the smaller 100-epoch architecture from the base molecular experiments. This model has node, edge, and global widths 128/64/128, depth 6, 8 attention heads, and about 2.8M parameters. All rows use GW inner alignment, independent outer pairing, formal-charge features, the categorical endpoint objective, batch size 32, and are trained for 100 epochs. We evaluate final EMA checkpoints with the standard molecular protocol using 10,000 samples and 3 repeats, but only at 25 Euler steps. The expanded computational budget for the full run explains the remaining performance gap.
F Reproducibility details
This appendix collects the architecture, data, noise, solver, and metric specifications needed to reproduce the experiments of Section 5. All coupling conditions within an experiment share every model and optimization setting listed here and differ only in their training coupling, namely the
Table 5: Cumulative ZINC250k ablation at 25 Euler steps and reduced training budget. Higher validity is better and lower FCD is better.
| Setting | Validity | FCD |
|---|---|---|
| Base + RRWP | 0.8846 ± 0.0030 | 12.3371 ± 0.1229 |
| + latent noise | 0.9080 ± 0.0012 | 11.2470 ± 0.0704 |
| + self-conditioning | 0.9307 ± 0.0010 | 8.8572 ± 0.0763 |
| + edge weight 5 | 0.9606 ± 0.0019 | 6.9861 ± 0.0231 |
inner solver and outer reordering of Section 4, with MINIBATCHOT replacing both by its permutation-blind minibatch assignment.
Architecture and optimization Every model is the same -equivariant graph transformer with node , edge , and global streams, following the XEy architecture of Vignac et al. [2023]. Its node, edge, and global widths are , , and , respectively, with feed-forward widths 256/128/256, depth 6, 8 attention heads, and parameters. Training uses AdamW (weight decay ), gradient-norm clipping at 1.0, a cosine learning-rate schedule with base rate , and an exponential moving average of the weights with decay 0.999; the EMA weights are used for all evaluation and checkpointing. The per-experiment channel count , node count , batch size, epoch budget, and training head are summarized in Table 6. The SBM models use an MSE velocity loss (9); the molecular models use the coordinatewise categorical endpoint head with the cross-entropy objective (10), with the velocity recovered through (6). All experiments use at most a single NVIDIA GeForce RTX 5090 GPU with 32 GB of VRAM.
Cycle-graph data Both the source and the target are cycle graphs on nodes, so this experiment replaces the noise source of the other datasets by a structured one. A sample places twelve nodes at equispaced angles, offset by a rotation drawn uniformly from , on the circle of radius 1 centred at , and joins two nodes exactly when they are neighbours along that circle. Nodes are then relabelled by a uniformly random permutation, so the index carries no information and recovering the circular order is precisely the task of the inner alignment. The tensor has adjacency in as its first channel, while the remaining two channels store the planar node positions on the diagonal, , matching the diagonal node-feature convention used throughout. Positions are stored divided by 8, which puts the position and adjacency channels on comparable scales in both the GW cost and the MSE loss. The source law takes and the target law , with drawn independently on each side; the two therefore agree up to a translation, and in particular have identical edge laws. We draw 4000 target graphs, use as in the other experiments, and train for 200 epochs at batch size 16 with the velocity (MSE) head.
Continuous SBM data A graph on nodes with communities assigns the nodes to fixed near-balanced blocks (remainder placed in the first blocks, e.g. ) in a randomized order. Parametrizing by its mean and concentration via , , every unordered pair carries an edge weight when share a block and otherwise, with , , and (i.e. and ). The diagonal node feature of a node in block is with evenly spaced means and ; for this reproduces the binary SBM feature model exactly. In the unconditional variant graphs with are pooled; in the conditional variant is the class label. In the unconditional variant, 2000 graphs are drawn for each and pooled (10 000 in total). In the conditional variant, the same per-class sets are used, with supplied to the model as the class label.
Molecular data Molecules are encoded from their RDKit representation after kekulization, so bond orders are integer-valued. A molecule on heavy atoms becomes a tensor whose edge channel is a one-hot over and whose diagonal node feature concatenates an atom-type one-hot with a formal-charge one-hot over . QM9 uses heavy atoms over , giving ; ZINC250k uses over ,
Table 6: Per-experiment settings for the controlled coupling comparisons, shared across all coupling conditions. Architecture, optimizer, EMA, gradient clipping, and learning-rate schedule are identical throughout (see text); only the entries below vary. The larger-model protocol is specified separately in Appendix E. “Head” is the flow-matching parametrization: MSE on the velocity field, or cross-entropy on the predicted categorical endpoint.
| Cycle graphs | Continuous SBM | QM9 | ZINC250k | |
|---|---|---|---|---|
| Channels C | 3 | 2 | 11 | 16 |
| Nodes N | 12 | 10 | ≤ 9 | ≤ 38 |
| Batch size | 16 | 16 | 64 | 32 |
| Epochs | 200 | 1000 | 100 | 100 |
| Time embedding dim | 32 | 32 | 64 | 64 |
| Head | velocity (MSE) | velocity (MSE) | endpoint (cross-entropy) | endpoint (cross-entropy) |
giving C = 16. For ZINC250k the 28-way PyTorch Geometric atom vocabulary—which encodes charged species—is remapped to the nine element types listed above and to a signed formal charge in ; 31.8% of ZINC250k molecules carry a formal charge, and modelling it explicitly is required for those atoms to pass valence on decode. QM9 uses the GDSS train/test split, matched on raw QM9 record identifiers (valid_idx_qm9.json); ZINC250k uses the standard PyTorch Geometric split with 220,011 training, 24,445 validation, and 5,000 test molecules. FCD is evaluated against the respective test split.
Variable node count For the molecular datasets, one set of graph-transformer parameters is shared across all node counts. An input with N nodes produces an output with N nodes. Source noise for each target is drawn at the target's own node count, so no padding or masking is used. During training, minibatches are formed by a sampler that groups dataset indices by exact N and yields same-N batches; this is required because the outer cost matrices of Section 4 compare same-size tensors. In the conditional SBM variant, each batch additionally contains only graphs with a single value of K, so graphs with different community counts are never coupled. At generation time N is sampled from the empirical training-set node-count distribution and the Euler solver is initialized from noise of shape .
Source noise For the molecular datasets the source is a symmetric Gaussian. For each edge channel and each , we draw and set , so that each off-diagonal edge entry satisfies . The edge diagonal is zero. Each diagonal node feature is drawn independently from , with . For the continuous SBM the source is independent on both channels. The upper-triangular edge entries are mirrored across the diagonal, and the diagonal node features are drawn independently. This matches the scale of the dense Beta target. The edge diagonal is again zero.
Coupling solvers All fused solvers use the combined graph entries from Section 4, whose squared norms are
where node features enter only on the diagonal. The inner Gromov–Wasserstein solver (GW) runs 10 Frank–Wolfe iterations, each linearized by an exact optimal-transport (Hungarian) step, and the final soft plan is projected to the Frobenius-nearest scaled permutation matrix using the Hungarian assignment in Section 4. When GW is used for outer batch matching, we compute the pairwise batch-cost matrix with 5 Frank–Wolfe iterations before applying the Hungarian assignment over the batch. The first lower bound (FLB) ranks nodes by the root-mean-square eccentricity defined in Section 4. It sorts the nodes in each graph by this value and pairs nodes at the same position in the two orderings. Computing the eccentricities and sorting costs per pair. For outer reordering, each same-N training batch is partitioned into sub-batches of at most eight graphs. Within each sub-batch, we build the pairwise FLB cost matrix and apply the Hungarian algorithm to permute the target graphs.
Evaluation metrics The descriptor MMDs follow the GraphRNN/GDSS conventions [Jo et al., 2022, You et al., 2018] with the biased estimator and kernels of the form . Degree uses earth mover's distance (EMD) with on per-graph degree histograms; clustering uses EMD over 100 bins on with in raw-bin units (equivalently in the -normalized EMD units of GraphRNN/GDSS). Graphlet orbit uses Euclidean distance in a Gaussian radial basis function kernel with on the 15-dimensional, per-node-averaged four-node graphlet-orbit counts computed with the ORCA graphlet-counting program [Hočevar and Demšar, 2014]. FGW–NNA pools the generated and real graphs and classifies each by the label of its nearest neighbor (self excluded) under the fused Gromov–Wasserstein distance with ; under the null this accuracy tends to . For molecules, validity is the fraction of generated graphs that decode to a sanitizable RDKit molecule without valence correction or other postprocessing. For FCD, we retain the largest connected fragment of each sanitizable generated molecule, canonicalize it, remove duplicates, and compare the ChemNet embeddings of these unique generated SMILES with the corresponding unique test-split SMILES.
G Solver cost and bound tightness
Table 7 quantifies the trade-off between the 10-iteration Frank–Wolfe Gromov–Wasserstein approximation (GW) and the first lower bound (FLB) on real data. For each dataset we draw 300 pairs of
Table 7: Cost and tightness of FLB relative to computed GW, over 300 same-N real graph pairs per dataset. Runtime is milliseconds per pair (CPU, single thread). Tightness is mean(FLB)/mean(GW); since FLB is a lower bound this is at most 100%. Correlation is the Pearson (and, in parentheses, Spearman rank) correlation between the GW and FLB costs across the 300 pairs.
| Dataset | N | Runtime (ms/pair) | Tightness | Correlation | |
|---|---|---|---|---|---|
| GW | FLB | ||||
| Continuous SBM | 10 | 1.27 | 0.060 | 3.1% | 0.23 (0.15) |
| QM9 | 9 | 2.42 | 0.071 | 0.5% | 0.21 (0.16) |
| ZINC250k | 23 | 3.61 | 0.081 | 0.1% | 0.15 (0.13) |
distinct real graphs at a single fixed node count (chosen as the modal size with enough graphs: for the continuous SBM, for QM9, for ZINC250k, using the categorical molecular encoding of Section 5.3), and for every pair we compute both the GW cost—the fused objective at the final 10-iteration plan—and the FLB cost between the sorted node-eccentricity distributions, with . Timings are single-threaded on CPU, so they reflect the per-pair alignment cost rather than batched throughput.
FLB is cheaper than GW by roughly , , and , and the gap widens with the node count, as expected from the versus scaling. However, it is numerically loose and only weakly correlated with GW. Its empirical benefit should therefore be interpreted as that of a cheap alignment heuristic, rather than evidence that it accurately approximates or screens for the GW cost. For further lower-bound comparisons, see [Piening and Beinert, 2025].
Table 8 lifts this comparison to the batch level, at the batch sizes actually used. The GW rows dominate the gradient step, since every aligned pair needs its own Frank–Wolfe solve. They are pair-separable, so a 12-worker pool cuts the inner QM9 alignment to about 28 ms and the reported shares are upper bounds.
Table 8: Total alignment cost per training batch under the settings used in Section 5, in milliseconds (CPU, single thread), together with its approximate share of one gradient step. Inner-only rows pay for node alignments; “+ out” rows additionally pay for the batch reordering, in sub-batches of eight. MINIBATCHOT uses no inner alignment and assigns over the full minibatch. The share of a gradient step is approximate, obtained from model forward/backward times in the training logs.
| Method | Continuous SBM | QM9 | ZINC250k | |||
|---|---|---|---|---|---|---|
| ms | % of grad. step | ms | % of grad. step | ms | % of grad. step | |
| MINIBATCHOT | 0.19 | 0.3% | 1.22 | 1.3% | 1.27 | 2.3% |
| FLB | 0.58 | 1.0% | 2.56 | 2.6% | 1.42 | 2.6% |
| 1.26 | 2.1% | 5.31 | 5.3% | 2.94 | 5.2% | |
| GW | 20.73 | 26% | 115.43 | 55% | 72.70 | 58% |
| GW+GW | 100.30 | 63% | 640.94 | 87% | 390.89 | 88% |