cs.LGApr 7, 2026

Same Graph, Different Likelihoods: Calibration of Autoregressive Graph Generators via Permutation-Equivalent Encodings

Authors: Laurits Fredsgaard, Aaron Thomas, Michael Riis Andersen, Mikkel N. Schmidt, Mahito Sugiyama

Organizations: Technical University of Denmark · University of Birmingham · National Institute of Informatics

Abstract

Autoregressive graph generators define likelihoods via a sequential construction process, but these likelihoods are only meaningful if they are consistent across all linearizations of the same graph. Segmented Eulerian Neighborhood Trails (SENT), a recent linearization method, converts graphs into sequences that can be perfectly decoded and efficiently processed by language models, but admit multiple equivalent linearizations of the same graph. We quantify violations in assigned negative log-likelihood (NLL) using the coefficient of variation across equivalent linearizations, which we call Linearization Uncertainty (LU). Training transformers under four linearization strategies on two datasets, we show that biased orderings achieve lower NLL on their native order but exhibit expected calibration error (ECE) two orders of magnitude higher under random permutation, indicating that these models have learned their training linearization rather than the underlying graph. On the molecular graph benchmark QM9, NLL for generated graphs is negatively correlated with molecular stability (AUC =0.43=0.43), while LU achieves AUC =0.85=0.85, suggesting that permutation-based evaluation provides a more reliable quality check for generated molecules. Code is available at https://github.com/lauritsf/linearization-uncertainty

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Scaling Novel Graph Generation via Lightweight Structure-Guided Autoregressive Models

    Jun 2, 2026Alessio Barboni, Massimiliano Lupo Pasini, Bishal Lakha +1Graph GenerationGenerative Modeling

  2. GraphVQ: Structure-Aware Autoregressive Decoding over Context-Quantized Graph Tokens

    Sep 29, 2026Yuxiang Yao, Zijun ZhaoAutoregressive GenerationGraph Foundation Models

  3. GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariance

    May 15, 2026Roman Bresson, Konstantinos Divriotis, Johannes F. Lutzeyer +2Molecular GenerationMolecular Representation Learning