Flatten Graphs as Sequences: Transformers are Scalable Graph Generators
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 58 of its 76 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
58 of 76 references.
References · 58
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
- 2020GLU Variants Improve Transformercited by 1,804
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2016Variational Graph Auto-Encoderscited by 1,382
- 2018Hierarchical Neural Story Generationcited by 1,193
38 more
- 2017MoleculeNet: A Benchmark for Molecular Machine Learningcited by 1,051
- 2024Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Predictioncited by 1,023
- 2022Equivariant Diffusion for Molecule Generation in 3Dcited by 677
- 2018Junction Tree Variational Autoencoder for Molecular Graph Generationcited by 652
- 2020Jukebox: A Generative Model for Musiccited by 542
- 2022DiGress: Discrete Denoising diffusion for graph generationcited by 520
- 2018GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Modelscited by 413
- 2018GraphVAE: Towards Generation of Small Graphs Using Variational Autoencoderscited by 383
- 2020ChemBERTa: Large-Scale Self-Supervised Pretraining for Molecular Property Predictioncited by 337
- 2020GraphAF: a Flow-based Autoregressive Model for Molecular Graph Generationcited by 305
- 2018GuacaMol: Benchmarking Models for De Novo Molecular Designcited by 297
- 2022Score-based Generative Modeling of Graphs via the System of Stochastic Differential Equationscited by 283
- 2018Molecular Sets (MOSES): A Benchmarking Platform for Molecular Generation Modelscited by 275
- 2020Permutation Invariant Graph Generation via Score-Based Generative Modelingcited by 270
- 2023AudioGPT: Understanding and Generating Speech, Music, Sound, and Talking Headcited by 265
- 2019Efficient Graph Generation with Graph Recurrent Attention Networkscited by 234
- 2018Learning Deep Generative Models of Graphscited by 229
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 194
- 2021Inductive Representation Learning in Temporal Networks via Causal Anonymous Walkscited by 193
- 2024LLaGA: Large Language and Graph Assistantcited by 181
- 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 176
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 147
- 2018NetGAN: Generating Graphs via Random Walkscited by 131
- 2022SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generatorscited by 99
- 2023Autoregressive Diffusion Model for Graph Generationcited by 83
- 2023Efficient and Degree-Guided Graph Generation via Discrete Diffusion Modelingcited by 80
- 2024Discrete-state Continuous-time Diffusion for Graph Generationcited by 76
- 2021Learning to Extend Molecular Scaffolds with Structural Motifscited by 71
- 2020GraphGen: A Scalable Approach to Domain-agnostic Labeled Graph Generationcited by 66
- 2020Scalable Deep Generative Modeling for Sparse Graphscited by 65
- 2018Generative Code Modeling with Graphscited by 60
- 2023Graph Generation with Diffusion Mixturecited by 55
- 2021Walking Out of the Weisfeiler Leman Hierarchy: Graph Learning Beyond Message Passingcited by 47
- 2022On Evaluation Metrics for Graph Generative Modelscited by 46
- 2021Evaluation Metrics for Graph Generative Models: Problems, Pitfalls, and Practical Solutionscited by 39
- 2020Convolutional Kernel Networks for Graph-Structured Datacited by 38
- 2023Efficient and Scalable Graph Generation through Iterative Local Expansioncited by 36
- 2021Order Matters: Probabilistic Modeling of Node Sequence for Graph Generationcited by 33
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2025: 4; 2026: 9.
13 papers.
Sort:
By area:
- 2025Refine Drugs, Don't Complete Them: Uniform-Source Discrete Flows for Fragment-Based Drug Discoverycited by 5
- 2025PolyGraph Discrepancy: a classifier-based metric for graph generationcited by 3
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2
- 2025Designing ReLU Generative Networks to Enumerate Trees with a Given Tree Edit Distancecited by 1
- 2026When Graph Language Models Go Beyond Memorizationcited by 1
- 2025Evolutionary Architecture Search through Grammar-Based Sequence Alignmentcited by 0
- 2026Same Graph, Different Likelihoods: Calibration of Autoregressive Graph Generators via Permutation-Equivalent Encodingscited by 0
- 2026ReLU Networks for Exact Generation of Similar Graphscited by 0
- 2026Scaling Novel Graph Generation via Lightweight Structure-Guided Autoregressive Modelscited by 0
- 2026MotifRole-Diff: Risk-Optimal Role-Aware Corruption for Masked Molecular Graph Diffusioncited by 0
- 2026From topology learning to graph generation: A unifying perspectivecited by 0
- 2026Training Graph Foundation Models on The Web Graphcited by 0
1 more
- 2026SNACK: A Sequential Notation Framework for Probabilistic Graph Generation14 Oct 2026
- 2026Training Graph Foundation Models on The Web Graph25 Sep 2026
- 2026From topology learning to graph generation: A unifying perspective2 Sep 2026
- 2026MotifRole-Diff: Risk-Optimal Role-Aware Corruption for Masked Molecular Graph Diffusion20 Jul 2026
- 2026Scaling Novel Graph Generation via Lightweight Structure-Guided Autoregressive Models2 Jun 2026
- 2026When Graph Language Models Go Beyond Memorization7 May 2026
- 2026ReLU Networks for Exact Generation of Similar Graphs7 Apr 2026
- 2026Same Graph, Different Likelihoods: Calibration of Autoregressive Graph Generators via Permutation-Equivalent Encodings7 Apr 2026
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Training25 Feb 2026
- 2025Evolutionary Architecture Search through Grammar-Based Sequence Alignment4 Dec 2025
- 2025Designing ReLU Generative Networks to Enumerate Trees with a Given Tree Edit Distance12 Oct 2025
- 2025PolyGraph Discrepancy: a classifier-based metric for graph generation7 Oct 2025
- 2025Refine Drugs, Don't Complete Them: Uniform-Source Discrete Flows for Fragment-Based Drug Discoverycited by 5
- 2025PolyGraph Discrepancy: a classifier-based metric for graph generationcited by 3
- 2025Designing ReLU Generative Networks to Enumerate Trees with a Given Tree Edit Distancecited by 1
- 2026When Graph Language Models Go Beyond Memorizationcited by 1
- 2025Evolutionary Architecture Search through Grammar-Based Sequence Alignmentcited by 0
- 2026Same Graph, Different Likelihoods: Calibration of Autoregressive Graph Generators via Permutation-Equivalent Encodingscited by 0
- 2026ReLU Networks for Exact Generation of Similar Graphscited by 0
- 2026Scaling Novel Graph Generation via Lightweight Structure-Guided Autoregressive Modelscited by 0
- 2026From topology learning to graph generation: A unifying perspectivecited by 0
- 2026Training Graph Foundation Models on The Web Graphcited by 0
- 2026SNACK: A Sequential Notation Framework for Probabilistic Graph Generationcited by 0
- 2026SNACK: A Sequential Notation Framework for Probabilistic Graph Generation14 Oct 2026
- 2026Training Graph Foundation Models on The Web Graph25 Sep 2026
- 2026From topology learning to graph generation: A unifying perspective2 Sep 2026
- 2026Scaling Novel Graph Generation via Lightweight Structure-Guided Autoregressive Models2 Jun 2026
- 2026When Graph Language Models Go Beyond Memorization7 May 2026
- 2026ReLU Networks for Exact Generation of Similar Graphs7 Apr 2026
- 2026Same Graph, Different Likelihoods: Calibration of Autoregressive Graph Generators via Permutation-Equivalent Encodings7 Apr 2026
- 2025Evolutionary Architecture Search through Grammar-Based Sequence Alignment4 Dec 2025
- 2025Designing ReLU Generative Networks to Enumerate Trees with a Given Tree Edit Distance12 Oct 2025
- 2025PolyGraph Discrepancy: a classifier-based metric for graph generation7 Oct 2025
- 2025Refine Drugs, Don't Complete Them: Uniform-Source Discrete Flows for Fragment-Based Drug Discovery30 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026Factual and Edit-Sensitive Graph-to-Sequence Generation via Graph-Aware Adaptive Noising
- 2025From Sequence to Structure: Uncovering Substructure Reasoning in Transformers
- 2025Fast Graph Generation via Autoregressive Noisy Filtration Modeling
- 2025Diffusion-Free Graph Generation with Next-Scale Prediction
- 2024Exploring the Potential of Large Language Models in Graph Generation
- 2025TinyGraphEstimator: Adapting Lightweight Language Models for Graph Structure Inference
- 2024GraphInstruct: Empowering Large Language Models with Graph Understanding and Reasoning Capability
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects