arXiv:2608.26961cs.LGAug 2026

Manuscript Offprint

arXiv:2608.26961

Gromov-Monge Flow Matching for Equivariant Graph Generation

Moritz Piening, Christian Wald

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 NN-node graph by E∈RN×N×CE \in \mathbb{R}^{N \times N \times C}. Because a graph has no distinguished vertex order, a permutation σ∈SN\sigma \in \mathfrak{S}_N acts simultaneously on both node indices according to

(ρNgraph(σ)E)ijc:=Eσ−1(i)σ−1(j)c,1≤i,j≤N.\big(\rho_{N}^{\mathrm{g r a p h}}(\sigma)E\big)_{i j c}:=E_{\sigma^{-1}(i)\sigma^{-1}(j)c},\qquad1\le i,j\le N.

The unordered graph is the orbit

[E]∈Q:=RN2C/GNgraph,GNgraph=ρNgraph(SN)⊂O(N2C).[E]\in Q:=\mathbb{R}^{N^{2}C}/G_{N}^{\mathrm{g r a p h}},\qquad G_{N}^{\mathrm{g r a p h}}=\rho_{N}^{\mathrm{g r a p h}}(\mathfrak{S}_{N})\subset O(N^{2}C).

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 [F][F] may select some σ⋅F\sigma \cdot F. 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 RD/G\mathbb{R}^D/G [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.

References (87)