Flatten Graphs as Sequences: Transformers are Scalable Graph Generators
Dexiong Chen, Markus Krimmel, Karsten Borgwardt

TL;DR
AutoGraph introduces a scalable transformer-based autoregressive model that generates attributed graphs efficiently by converting graphs into sequences, achieving state-of-the-art results and faster performance compared to diffusion models.
Contribution
It presents a novel graph-to-sequence flattening method enabling scalable graph generation with transformers, without relying on expensive node features.
Findings
Achieves state-of-the-art performance on synthetic and molecular benchmarks.
Up to 100x faster generation and 3x faster training than diffusion models.
Supports substructure-conditioned generation and transferability.
Abstract
We introduce AutoGraph, a scalable autoregressive model for attributed graph generation using decoder-only transformers. By flattening graphs into random sequences of tokens through a reversible process, AutoGraph enables modeling graphs as sequences without relying on additional node features that are expensive to compute, in contrast to diffusion-based approaches. This results in sampling complexity and sequence lengths that scale optimally linearly with the number of edges, making it scalable and efficient for large, sparse graphs. A key success factor of AutoGraph is that its sequence prefixes represent induced subgraphs, creating a direct link to sub-sentences in language modeling. Empirically, AutoGraph achieves state-of-the-art performance on synthetic and molecular benchmarks, with up to 100x faster generation and 3x faster training than leading diffusion models. It also…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsModel-Driven Software Engineering Techniques
MethodsDiffusion
