SPECTRE
One-shot graph GAN that first generates Laplacian eigenvalues and eigenvectors, then a graph matching them.
Graphs and geometry · 2,211 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Graphs and geometry
- Parameters
- 1.6M
- Operations
- 2,211
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2022
- Cited by
- 2 (as of 28 October 2026)
- Authors
- Karolis Martinkus, Andreas Loukas, Nathanaël Perraudin, Roger Wattenhofer
- Source
- GitHub: KarolisMart/SPECTRE
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20100
- Graph hash
- a0ae72c7c78ffdaf9cb076d40a804b56ae31d76da494bbc71a53e2f30f327658
- Skeleton hash
- 2d22b63755be6e18616be8f79755cf243e6272108d083b3b727383c842285fec
- Architecture hash
- dec5a010e55d5be5f4a735672857141c92d4f56db78a50b55fce40d858714ee0
- Diagram SHA-256
- e702ebcfdf53a59599f196ce29f1afe775f221672be3590c52017ce2f2e9790b
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
SPECTRE is a generative adversarial network (GAN) for graphs that works from the spectrum: it first generates the dominant parts of the graph Laplacian spectrum, then builds a graph matching those eigenvalues and eigenvectors. It is a one-shot generator, so it avoids the sequential generation and the dependence on node ordering of autoregressive models.
The paper argues that conditioning on the spectrum allows direct modeling of global and local graph structure, and that this helps with the expressivity and mode collapse issues of one-shot graph generators. According to the authors, this enables one-shot generation of much larger graphs than was previously possible with one-shot models. On sizable synthetic and real-world graphs the paper reports a 4-to-170 fold improvement over the best competitor that does not overfit, and generation 23 to 30 times faster than autoregressive generators.
The reference implementation gives example training commands for planar, SBM, protein, community and QM9 datasets. After training, its test script generates graphs when conditioning on nothing, on true eigenvalues, or on true eigenvalues and eigenvectors. The authors note that the code has been simplified and refactored, so results might differ slightly from the published ones.
Key idea. The paper generates graphs in one shot by first producing the dominant Laplacian eigenvalues and eigenvectors and then building a graph that matches them.
- SPECTRE
- spectral conditioning
- graph generation
- one-shot graph generator
- graph GAN
- graph Laplacian spectrum
- eigenvalues and eigenvectors
- spectral graph generation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{martinkus2022spectrespectralconditioninghelps,
title={SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generators},
author={Karolis Martinkus and Andreas Loukas and Nathanaël Perraudin and Roger Wattenhofer},
year={2022},
eprint={2204.01613},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2204.01613},
}