WL-SeqVAE: Sequence-Based Graph Generation Using Variational Autoencoders and Weisfeiler-Leman Colors

Iakovos Evdaimon, Giannis Nikolentzos, Achilleas Tsimichodimos, Christos Xypolopoulos, Michalis Vazirgiannis
10/23/2026
cs.LG

Official code: iakovosevdaimon/WL-SeqVAE (1 star, Python, MIT, last commit 2026-10-22).

Abstract

In this paper, we introduce WL-SeqVAE, a sequence-based variational autoencoder for generating graphs. The key observation behind WL-SeqVAE is that node colors induced by the Weisfeiler-Leman (WL) algorithm provide compact discrete summaries of local graph structure and can therefore serve as structural tokens for generation.

Show full abstract

Rather than learning a distribution over adjacency matrices directly, our method maps each graph to a sequence of WL colors and employs a variational autoencoder that encodes this sequence into a Gaussian latent distribution, from which an autoregressive decoder reconstructs the graph. During generation, compatibility constraints derived from the WL colors guide node and edge predictions, combining global information from the latent representation with local structural consistency. This formulation turns graph generation into a sequence generation problem and avoids directly parameterizing a quadratic adjacency matrix. We evaluate WL-SeqVAE on molecular and general graph generation tasks. Across the evaluated datasets, WL-SeqVAE is competitive with established baselines on several local structural and molecular quality metrics. Code is available at https://github.com/iakovosevdaimon/WL-SeqVAE

View on arXivView PDF

Code Implementations(1)

MIT

WL-SeqVAE: Sequence-Based Graph Generation Using Variational Autoencoders and Weisfeiler–Leman Colors

10Python, ShellOct 22, 20261 months agoMIT

Similar Papers

Cite this paper

@article{evdaimon2026wlseqvae,
  title  = {WL-SeqVAE: Sequence-Based Graph Generation Using Variational Autoencoders and Weisfeiler-Leman Colors},
  author = {Iakovos Evdaimon and Giannis Nikolentzos and Achilleas Tsimichodimos and Christos Xypolopoulos and Michalis Vazirgiannis},
  year   = {2026},
  eprint = {2610.32650},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.32650v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.32650.svg)](https://codeofpaper.com/paper/2610.32650)

Discussion