TL;DR
NAS-Bench-Graph is the first tabular benchmark for Graph Neural Architecture Search (GraphNAS), providing pre-computed performance data for 26,206 unique GNN architectures across nine datasets. By replacing thousands of GPU hours of training with a simple table lookup, it enables fair, reproducible, and lightning-fast research for the graph machine learning community.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have revolutionized how we handle non-Euclidean data, but designing the "perfect" architecture for a specific graph is a manual, labor-intensive process. Graph Neural Architecture Search (GraphNAS) aims to automate this, yet the field faces two massive hurdles:
- The Reproducibility Crisis: There is no consensus on experimental settings. Different papers use different data splits and hyperparameters, making it nearly impossible to compare two GraphNAS algorithms fairly.
- The Computation Barrier: Training thousands of GNN candidates to find the best one requires immense computational power. This high "entry fee" effectively locks out researchers without access to large-scale GPU clusters.
NAS-Bench-Graph addresses these by providing a "tabular" benchmark—a comprehensive database of GNN performances that allows researchers to "simulate" the training process instantly.
Methods
The authors constructed a unified search space that balances expressiveness with tractability.
- Macro Space: They formulated GNN computation as a Directed Acyclic Graph (DAG). They defined 9 distinct macro-structures (shown in Figure 1), ranging from simple chains to complex multi-branch architectures.
- Micro Space (Operations): For each edge in the DAG, they allowed 7 popular GNN layers (GCN, GAT, GraphSAGE, GIN, ChebNet, ARMA, and k-GNN) plus "Identity" and "Fully Connected" options.
- Scale: After removing isomorphic structures (architectures that look different but function identically), they arrived at 26,206 unique architectures.
- Principled Evaluation: To ensure fairness, they fixed hyperparameters for each dataset using a set of "anchor" architectures. They then spent approximately 8,000 GPU hours training every single architecture three times (with different seeds) to record accuracy, loss, latency, and parameter counts.
Datasets
The benchmark covers nine representative graph datasets of varying sizes and domains:
- Citation Networks: Cora, CiteSeer, PubMed.
- Co-authorship Graphs: Coauthor-CS, Coauthor-Physics.
- E-commerce Subsets: Amazon-Photo, Amazon-Computers.
- Large-scale Benchmarks: ogbn-arxiv, ogbn-proteins.
Key Insights and Ideas
The authors performed an in-depth analysis of their database, leading to several "aha" moments:
- The Rarity of Excellence: While many architectures achieve "reasonably good" results, truly top-tier architectures are rare. Furthermore, architectures with similar accuracy can have vastly different latencies, highlighting the need for hardware-aware search.
- Dataset-Specific Preferences: Different graphs "prefer" different shapes. For example, citation graphs favor 2-layer structures, while larger OGB datasets require deeper architectures to perform well.
- The "Summation Aggregation" Trap: Theoretically powerful operations like GIN and k-GNN often underperformed on large node-level tasks. The authors suggest their summation aggregation might be less suitable for these tasks than the mean or max aggregation used in GCN/GAT.
- Smoothness and Mutations: The performance space is relatively "smooth," meaning small changes to an architecture usually result in small changes in performance. This validates the use of evolutionary algorithms for GraphNAS.
- The Power of the Suffix: Interestingly, the choices made in the deeper layers (the "suffix") of an architecture have a greater impact on final performance than the initial layers (the "prefix").
Key Results
The authors integrated NAS-Bench-Graph with popular libraries like AutoGL and NNI.
- Baseline Strength: They found that simple Random Search is a surprisingly strong baseline, often rivaling more complex Reinforcement Learning or Evolutionary methods.
- Efficiency: By using the lookup table, a search process that would normally take days can be completed in seconds on a standard laptop.
- Transferability: Figure 4 in the paper (and the analysis in Section 4.3) shows that while some datasets share correlations, transferring the "best" architecture from one graph to another is rarely optimal. This proves that architecture search must be tailored to the specific graph at hand.
Limitations and Future Work
While a landmark contribution, the authors note a few limitations:
- Search Space Size: 26k architectures is large, but still a fraction of the billions of possibilities in the wild. The authors suggest using this data to build "surrogate" models that can predict performance in even larger spaces.
- Task Variety: The current benchmark focuses on node classification. Future versions could expand to link prediction or graph-level classification.
- Static Hyperparameters: To keep the search space manageable, hyperparameters were fixed per dataset. In reality, the optimal hyperparameters might change depending on the architecture.
Summary updated