Manuscript Offprint

arXiv:2610.30815

xVGAE: A Hierarchical Variational Graph Autoencoder for Exchangeable Graphs

Daniele Micheletti, Federica Zoe Ricci, Erik B. Sudderth

Abstract

Graphs play a crucial role in many applications, ranging from drug discovery to social network modeling and astronomy. Generative models for graphs have substantially advanced in recent years, but we identify relatively simple scenarios where state-of-the-art models struggle to converge within a standard compute budget, or exhibit prohibitively slow generation times. We propose a generative architecture that achieves quality competitive with state-of-the-art models and is orders of magnitude faster at generation. Our approach is inspired by the Aldous-Hoover theorem, a classic representation theorem that characterizes any probability distribution of graphs that is invariant to permutations of node indices or exchangeable. This theorem establishes that three ingredients suffice: a graph-level latent variable, a set of exchangeable node-specific latent variables, and a so-called graphon function that maps graph- and node-level variables to the probability of an edge between any node pair. Given a training set of graphs, our exchangeable Variational Graph AutoEncoder (xVGAE) learns an approximation to their underlying graphons, as well as graph- and node-level latent variables. We show that our xVGAE encodes latent representations that correlate with graph- and node-level properties, and can (quickly, in one shot) generate new graphs that closely match key training set statistics.

1 Introduction

Graphs provide mathematical descriptions of interconnected systems in fields ranging from biology [Boisset et al., 2018] to neuroscience [Bassett and Sporns, 2017] and behavioral science [Aral and Dhillon, 2018]. While generative models for graphs offer substantial promise, their development is hindered by two primary challenges: (i) respecting the permutation invariance of node indices (assigning equal probability to isomorphic graphs), and (ii) balancing computational efficiency with the expressivity required to model potentially complex joint dependencies between all pairs of nodes.

Prior to recent advances in deep learning, statistical frameworks such as stochastic block models (SBMs) [Holland et al., 1983, Nowicki and Snijders, 2001], mixed-membership extensions (MMS-BMs) [Airoldi et al., 2008], random dot product graphs (RDPGs) [Young and Scheinerman, 2007], and latent space models (LSMs) [Hoff et al., 2002] were the primary generative models for networks. These models structure the graph distribution via node-level and graph-level latent variables, a strategy that inherently addresses permutation invariance and maintains computational tractability. However, each of these models imposes restrictive assumptions on the structural graph characteristics captured by the latent variables, as well as the functional form governing edge probabilities.

Preprint.

Figure

Figure 1: Overview of the xVGAE architecture (inference and generation). The encoder (left) maps a graph A to a global posterior qϕ(z0∣A)q_{\phi}(z_0 \mid A) and node-level posteriors qϕ(zi∣z0,A)q_{\phi}(z_i \mid z_0, A) for the n nodes. The prior (middle) samples the global latent z0∼pθ(z0)z_0 \sim p_{\theta}(z_0) and, conditionally, the independent node latents zi∼pθ(zi∣z0)z_i \sim p_{\theta}(z_i \mid z_0). The decoder (right) refines the node latents into features hih_i via an MLP, z0z_0-conditioned FiLM [Perez et al., 2018], and optional attention. Finally, a bilinear head predicts pairwise edge probabilities pθ(Aij∣hi,hj,z0)p_{\theta}(A_{ij} \mid h_i, h_j, z_0) for all node pairs to generate A^\hat{A}.

A seminal effort to enhance the expressivity of these traditional generative models was the variational graph auto-encoder (VGAE) [Kipf and Welling, 2016], which employed graph convolutional networks (GCNs) [Kipf and Welling, 2017] and inference methods for variational autoencoders (VAEs) [Kingma and Welling, 2014] to generalize LSMs. While the original VGAE assumed an inflexible generative process and was primarily designed for representation learning, subsequent extensions introduced learnable decoders [Simonovsky and Komodakis, 2018, Jin et al., 2018, Samanta et al., 2020], though their experiments were limited to very small graphs and some training algorithms incorporated graph-matching procedures that are not scalable to larger graphs.

Among models capable of generating larger graphs, autoregressive architectures such as GraphRNN [You et al., 2018] and GRAN [Liao et al., 2019] construct adjacency matrices sequentially, sacrificing permutation invariance. More recently, diffusion-based approaches — both continuous [Niu et al., 2020, Jo et al., 2022] and discrete [Austin et al., 2021, Hoogeboom et al., 2021, Vignac et al., 2023, Chen et al., 2023] — preserve permutation equivariance and have set new standards for sample quality by directly denoising graph structures. Despite rapid advances, the practical success of diffusion graph models remains largely confined to small graphs with rich metadata (e.g., molecules) or medium-sized but very sparse graphs (e.g., proteins, point clouds).

Current state-of-the-art models can become prohibitively slow during generation when applied to dense graphs of moderate size (hundreds of nodes). Methods prioritizing scalability often rely on sparsity assumptions that fail in denser settings [Bergmeister et al., 2024], while highly expressive models suffer from generation bottlenecks because they either construct graphs sequentially [You et al., 2018, Liao et al., 2019] or iteratively update explicit latent variables for every potential edge across many denoising steps [Niu et al., 2020, Chen et al., 2023, Vignac et al., 2023, Zhou et al., 2024]. Furthermore, the latent variables of existing diffusion and autoregressive models represent either noisy versions of the adjacency matrix or sequence-dependent connectivity profiles, failing to provide any semantic decomposition or interpretable compression of the graph.

In this work, we address these limitations by introducing the eXchangeable Variational Graph AutoEncoder (xVGAE), a VAE-based generative model that adopts the Aldous-Hoover representation theorem for exchangeable graphs as its foundational design principle. This theoretical framework provides a principled way to decompose the structure of any exchangeable graph into node-level and graph-level latents without requiring per-edge latent variables. By adopting this design principle, our model achieves a dual benefit: it remains computationally tractable on dense graphs with hundreds of nodes—where existing methods often incur heavy training and sampling overhead—and it enables one-shot generation with quality comparable to competitors at speeds orders of magnitude faster. An added advantage of our approach is the ability to explore its learned latent representations, which we show correlate with key properties of community, ego, and protein networks.

References (51)