arXiv:2610.06468cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06468

Latent Flow Matching for Molecular Graph Generation

Mathis Goupillon, Roman Bresson, Konstantinos Divriotis, Michalis Vazirgiannis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern graph generative models typically operate directly in the discrete graph space, explicitly generating node and edge variables, which can become costly as graphs grow. In this paper, we perform generation explicitly on latent representations of entire graphs obtained from a pretrained Variational Autoencoder with high reconstruction fidelity. The generated representations, obtained through flow matching, are then decoded only at the final step. Across molecular benchmarks of increasing size, our approach achieves strong validity and FCD while offering a favorable quality-efficiency trade-off compared with state-of-the-art explicit graph generative models. One of the main advantages of this formulation is that the graph representation only needs to be learned once, after which the same one can be reused across multiple generative objectives without retraining. We demonstrate generation guided by molecular properties and further introduce validity-aware generation though a classifier learned directly in latent space. All code will be made available upon acceptance.

1 Introduction

Recent advances in graph generation have been largely driven by diffusion and flow-based models operating directly on explicit node and edge representations [1, 2, 3]. These methods model the graph distribution in its original discrete space and have achieved strong results across several graph generation benchmarks, but they suffer from having to manipulate large objects (full adjacency matrices and node embeddings) as well as being potentially permutation-sensitive. An alternative line of work instead learns compact, permutation-invariant graph-level representations via autoencoder architectures [4, 5, 6, 7], decoupling representation learning from distribution modeling (see Section 2 for details). One main drawback is that such architectures are known to yield poor generative performance without domain-specific knowledge being injected [8, 9].

This raises the question of whether an approach could leverage the best of both world, by moving distribution modeling entirely into such a continuous graph-level representation space; doing so should offer a competitive alternative to explicit graph generation in terms of sample quality, distributional fidelity, while retaining computational efficiency. This question is the central problem addressed in this work. Beyond unconditional generation, we ask whether the same latent representation can support controlled generation toward prescribed graph-level properties, and whether

*equal contribution generation can be further biased toward latent regions that decode more reliably, improving chemical validity.

Our contributions are threefold. First, we train a flow-matching [10] model to learn the latent distribution of the of a pretrained high-fidelity graph-level autoencoder. Second, we combine conditional flow matching with gradient-based guidance from differentiable property predictors, and demonstrate accurate control of logP and molecular weight while maintaining high validity and diversity on molecular datasets. Finally, we introduce an endpoint-based validity-aware flow matching formulation, based on Variational flow [11], that substantially improves chemical validity and characterize the resulting trade-off between validity and distributional fidelity.

References (30)