cs.LGMay 22, 2026

Reinforcement Learning for Graph Generation under a Hard Assortativity Constraint

Authors: Hoyun ChoiJunghyo JoDeok-Sun Lee

Organizations: School of Computational Sciences, Korea Institute for Advanced Study, 85, Hoegi-ro, 02455, Seoul, Korea. · Department of Physics Education, Seoul National University, 1, Gwanak-ro, 08826, Seoul, Korea. · Center for Theoretical Physics and Artificial Intelligence Institute, Seoul National University, 1, Gwanak-ro, 08826, Seoul, Korea. · Center for AI and Natural Sciences, Korea Institute for Advanced Study, 85, Hoegi-ro, 02455, Seoul, Korea.

Abstract

Generating graph ensembles with precisely controlled structural properties is central to investigating how network structure shapes function. Canonical ensembles impose constraints only in expectation (soft constraints), letting individual realizations fluctuate around the target, whereas enforcing hard constraints with prescribed precision in every realization remains challenging beyond fixing the degree sequence. Here we show that a reinforcement learning framework can drive a graph through degree-preserving rewirings to satisfy a prescribed assortativity, which characterizes the degree--degree correlation of adjacent nodes. By replacing the entropically dominated Metropolis--Hastings random walk with directed transport, the learned policy reduces generation cost by at least an order of magnitude while retaining over 98% of configurational diversity. Trained on small graphs, the framework generalizes across sizes and topologies without retraining, enabling quantitative isolation of secondary observables such as the clustering coefficient. These results establish reinforcement learning as a practical paradigm for hard-constrained graph generation.

Explore similar work

CardsList
  1. FLAGG: Flexible Autoregressive Graph Generation

    Jun 3, 2026Samuel Cognolato, Alessandro Sperduti, Luciano SerafiniAutoregressive Generation