arXiv:2611.05436cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05436

Constraint-Preserving Flow Matching for Spectral Graph Generation

Anita Yang, Ken-ichi Kawarabayashi, Yohan Jung

Abstract

Spectral graph generation models graphs through the eigenvalues and eigenvectors of their Laplacians, providing a compact and continuous alternative to direct graph construction. However, these eigensystems must retain the structural properties of graph Laplacians. Existing approaches preserve eigenvector orthonormality but do not enforce the Laplacian nullspace constraint, potentially producing eigensystems inconsistent with Laplacian structure. To address this, we introduce Laplacian-Constrained Stiefel Flow Matching (LaSFM), which preserves the nullspace condition alongside eigenvector orthonormality and positive eigenvalues during generation. We characterize the underlying constrained Stiefel manifold and formulate flow matching on it. We further extend LaSFM to property-guided generation, steering samples toward desired graph properties while maintaining these constraints. Experiments demonstrate improved performance on both spectral and graph-level metrics, along with better alignment with target properties.

1 INTRODUCTION

Graph generation is central to molecular design, drug discovery, and modeling complex networks (Jin et al., 2018; Lee et al., 2023; You et al., 2018). However, directly generating graph is challenging because of its discrete and combinatorial nature (Vignac et al., 2023). Spectral graph generation addresses this difficulty by representing a graph through the eigenvector matrix UU and eigenvalue matrix Λ\Lambda of its Laplacian LL, rather than generating edges directly (Martinkus et al., 2022; Minello et al., 2025). This provides a compact, continuous representation of global graph

Figure

Figure 1: Spectral generation can produce distorted structure when eigenvector orthonormality, the Laplacian nullspace constraint, and positive nonzero eigenvalues are not preserved. LaSFM enforces these constraints throughout generation.

structure and enables smooth generative dynamics in spectral space.

This continuous representation, however, introduces an important challenge: the generated eigensystem must remain consistent with the structure of a graph Laplacian. Existing approaches preserve eigenvector orthonormality, U⊤U=IU^\top U = I (Martinkus et al., 2022; Huang et al., 2025), but do not explicitly enforce two additional Laplacian properties: the constant-vector nullspace condition, L1=0L\mathbf{1} = 0, and positivity of the nonzero eigenvalues, Λ≻0\Lambda \succ 0 conditions. Without preserving these, the Laplacian reconstructed from the generated eigensystem can have nonzero row sums or lose positive semidefiniteness, resulting in a matrix that may no longer correspond to a graph Laplacian.

The Laplacian nullspace and eigenvalue positivity constraints directly affect graph generation. If the reconstructed Laplacian does not satisfy these constraints, the subsequent conversion to a discrete graph can alter the generated spectral structure. As a result, structural characteristics encoded in the eigensystem may be lost or distorted in the final graph, undermining the benefits of spectral generation, as illustrated in Fig. 1. To avoid this mismatch, we seek to preserve eigenvector orthonormality, the Laplacian nullspace, and positive nonzero eigenvalues throughout generation, improving consistency between the generated eigensystem and the resulting graph.

In this work, we introduce Laplacian-Constrained Stiefel Flow Matching (LaSFM), a flow-matching framework that generates eigensystems while preserving the required spectral constraints. We further extend LaSFM to property-guided generation, allowing samples to be steered toward desired properties without violating these constraints. Empirically, LaSFM improves spectral matching, reconstructed graph quality, and alignment with target properties, while ablations demonstrate the importance of each constraint.

Our contributions are summarized as follows:

  1. We characterize the nullspace-constrained Stiefel manifold and derive constraint-preserving geodesics and vector fields.

  2. We develop LaSFM, which combines flow matching on this constrained manifold with a positive eigenvalue parameterization, preserving orthonormality, the Laplacian nullspace, and positive nonzero eigenvalues throughout generation.

  3. We extend LaSFM to gradient-based property guidance and establish that the spectral constraints remain preserved under guidance.

References (63)