Abstract
Generating large-scale graphs with neural networks is a significant challenge due to the $O(N^2)$ complexity of adjacency matrix representations. We introduce Gap Encoded Edge List (GEEL), a compact and scalable representation that reduces generation complexity to linear with the number of edges ($O(M)$). By utilizing relative "gaps" and bandwidth restriction, GEEL enables the efficient creation of large-scale graphs that were previously computationally prohibitive for deep generative models.
Introduction
Graph generation is a fundamental task in machine learning with applications ranging from drug discovery to social network analysis. However, current models struggle to scale. Adjacency matrix-based models suffer from $O(N^2)$ representation size, leading to $O(N^4)$ complexity in advanced architectures like Transformers. While edge lists are more compact, they present a massive $N^2$ vocabulary problem, making it difficult for models to learn dependencies without overfitting. GEEL addresses these issues by providing a representation that is both compact and has a manageable vocabulary size.
Methodology: Gap Encoded Edge List (GEEL)
The core innovation of this work is the GEEL representation, which transforms a standard edge list into a sequence of "gap" pairs $(a_m, b_m)$.
- Intra-edge gap ($b_m$): The distance between the source node and the target node of an edge.
- Inter-edge gap ($a_m$): The distance between the source node of the current edge and the source node of the previous edge.
To maintain small gap values, the authors employ bandwidth restriction using the Cuthill-McKee ordering. This ensures connected nodes are indexed closely, shrinking the vocabulary of possible gaps from $N^2$ to approximately $B^2$, where $B$ is the graph bandwidth. The model generates these sequences autoregressively using an LSTM, supplemented by node positional encodings and a structural grammar for labeled graphs like molecules.
Experimental Setup
GEEL was evaluated across 12 benchmarks, including:
- General Graphs: Planar, Lobster, Enzymes, SBM, Ego, Grid, and Proteins.
- Molecular Graphs: QM9 and ZINC250k.
- Large-scale Synthetic: Grid graphs up to 10,000 nodes for scalability testing.
Results and Discussion
GEEL achieved state-of-the-art or competitive performance across all benchmarks, particularly in structural metrics like degree distribution and clustering coefficients.
Efficiency and Scalability
A key advantage of GEEL is its inference speed. For instance, on the Enzymes dataset, GEEL required only 0.12s for generation, significantly faster than diffusion-based models like GDSS (15.21s) and DiGress (8.82s).
Furthermore, GEEL successfully generated 10,000-node grid graphs, a scale where most baselines fail due to memory constraints. In molecular generation, it achieved 100% validity on QM9, demonstrating the effectiveness of its grammar-based filtering.
Conclusion and Future Work
GEEL demonstrates that a simple, efficient representation can outperform complex models on large-scale graph generation. While its performance depends on graph bandwidth, it remains highly effective for many real-world structures. Future work includes exploring subgraph decomposition for high-bandwidth graphs to further extend GEEL's scalability.
Summary updated