Lune

NeurIPS2025Top-tier venue

Flatten Graphs as Sequences: Transformers are Scalable Graph Generators

Dexiong Chen, Markus Krimmel, Karsten M. Borgwardt

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 supports substructure-conditioned generation without fine-tuning and shows promising transferability, bridging language modeling and graph generation to lay the groundwork for graph foundation models. Our code is available at https://github.com/BorgwardtLab/AutoGraph.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction cites Language Models are Few-Shot Learners
  • SimGFM: Simplifying Discrete Flow Matching for Graph Generation cites PolyGraph Discrepancy: a classifier-based metric for graph generation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Refine Drugs, Don’t Complete Them: Uniform-Source Discrete Flows for Fragment-Based Drug DiscoveryBenno Kaech, Luis Wyss, Karsten Borgwardt, Gianvito GrassoICLR 2026 · 3 citations
  2. PolyGraph Discrepancy: a classifier-based metric for graph generationMarkus Krimmel, Philip Hartout, Karsten M. Borgwardt, Dexiong ChenICLR 2026 · 3 citations
  3. Hard-Constrained Graph Generation with Discrete-Projection DiffusionXuesong Zhang, Haifeng Sun, Qi Qi, Shengkuan Li et al.ICML 2026
  4. SimGFM: Simplifying Discrete Flow Matching for Graph GenerationChunyu Luo, Yuankai Luo, Xiao-Ming Wu, Lei ShiICML 2026

Builds on32

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  3. Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale PredictionKeyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng et al.NeurIPS 2024 · 1,199 citations
  4. Equivariant Diffusion for Molecule Generation in 3DEmiel Hoogeboom, Victor Garcia Satorras, Clément Vignac, Max WellingICML 2022 · 865 citations
  5. GraphAF: a Flow-based Autoregressive Model for Molecular Graph GenerationChence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang et al.ICLR 2020 · 532 citations

Related papers

  1. Pard: Permutation-Invariant Autoregressive Diffusion for Graph GenerationLingxiao Zhao, Xueying Ding, Leman AkogluNeurIPS 2024 · 33 citations
  2. Graph Generative Pre-trained TransformerXiaohui Chen, Yinkai Wang, Jiaxing He, Yuanqi Du et al.ICML 2025
  3. Autoregressive Diffusion Model for Graph GenerationLingkai Kong, Jiaming Cui, Haotian Sun, Yuchen Zhuang et al.ICML 2023 · 105 citations
  4. Scalable Deep Generative Modeling for Sparse GraphsHanjun Dai, Azade Nazi, Yujia Li, Bo Dai et al.ICML 2020 · 95 citations
  5. From Sequence to Structure: Uncovering Substructure Reasoning in TransformersXinnan Dai, Kai Yang, Jay Revolinsky, Kai Guo et al.NeurIPS 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines