Skip to main content
QUICK REVIEW

[Paper Review] Graph Neural Architecture Search with GPT-4

Haishuai Wang, Yang Gao|arXiv (Cornell University)|Sep 30, 2023
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

This paper proposes GPT4GNAS, a novel Graph Neural Architecture Search method that leverages GPT-4 through a custom prompt engineering framework to automate the design of graph neural networks. By iteratively guiding GPT-4 with structured prompts describing the search space, strategy, and feedback, the method achieves state-of-the-art performance with significantly fewer search iterations, outperforming existing GNAS approaches on benchmark datasets.

ABSTRACT

Graph Neural Architecture Search (GNAS) has shown promising results in finding the best graph neural network architecture on a given graph dataset. However, existing GNAS methods still require intensive human labor and rich domain knowledge when designing the search space and search strategy. To this end, we integrate Large Language Models (LLMs) into GNAS and present a new GNAS model based on LLMs (GNAS-LLM for short). The basic idea of GNAS-LLM is to design a new class of GNAS prompts for LLMs to guide LLMs towards understanding the generative task of graph neural architectures. The prompts consist of descriptions of the search space, search strategy, and search feedback of GNAS. By iteratively running LLMs with the prompts, GNAS-LLM generates more accurate graph neural network architectures with fast convergence. Experimental results show that GNAS-LLM outperforms the state-of-the-art GNAS methods on four benchmark graph datasets, with an average improvement of 0.7% on the validation sets and 0.3% on the test sets. Besides, GNAS-LLM achieves an average improvement of 1.0% on the test sets based on the search space from AutoGEL.

Motivation & Objective

  • To reduce the manual effort and domain expertise required in designing graph neural architecture search (GNAS) spaces and strategies.
  • To explore the feasibility of using large language models like GPT-4 to generate high-performing GNN architectures automatically.
  • To develop a prompt-based framework that enables GPT-4 to understand and navigate the GNAS search space effectively.
  • To accelerate convergence to optimal GNN architectures through iterative feedback from model evaluations.
  • To validate the method’s effectiveness across diverse graph datasets and search spaces, including previously unseen ones.

Proposed method

  • Design a new class of prompts that encode the GNAS search space using adjacency matrix representations of candidate operations and connections.
  • Integrate reinforcement learning-based search strategy into prompts to guide GPT-4 in balancing exploration and exploitation.
  • Use evaluation feedback from generated GNNs as dynamic prompts to fine-tune GPT-4’s architecture generation across iterations.
  • Structure prompts to include historical search attempts and performance metrics, enabling GPT-4 to learn from prior results.
  • Apply iterative refinement: generate a GNN, evaluate it, and use the feedback to update the prompt for the next generation.
  • Leverage GPT-4’s pre-trained knowledge and few-shot reasoning to explore the GNN architecture space efficiently.

Experimental results

Research questions

  • RQ1Can GPT-4 be effectively guided via custom prompts to generate high-performing graph neural network architectures?
  • RQ2Does integrating GPT-4 into GNAS reduce the number of required search operations while improving accuracy?
  • RQ3How does the feedback-driven iterative prompting mechanism affect convergence speed and final performance?
  • RQ4Can the proposed method generalize to unseen graph search spaces, such as those in AutoGEL?
  • RQ5How does GPT4GNAS compare to state-of-the-art GNAS methods in terms of validation and test accuracy?

Key findings

  • GPT4GNAS achieves an average of 0.42% higher validation accuracy than baseline GNAS methods across Cora, Citeseer, Pubmed, and arXiv.
  • On the Cora and arXiv datasets, GPT4GNAS discovers the best-performing GNN architectures in terms of validation accuracy.
  • After 15 iterations, GPT4GNAS consistently outputs the best GNN architecture, outperforming reinforcement learning and evolutionary GNAS baselines.
  • In the AutoGEL search space, GPT4GNAS achieves better test accuracy than AutoGEL on Cora (91.51% vs. 89.11%), Citeseer (78.08% vs. 77.33%), and Pubmed (89.62% vs. 89.60%).
  • The method requires only 97.5 average GNN architectures to be evaluated, demonstrating fast convergence.
  • Ablation studies confirm that each component of the prompt design—search space, strategy, and feedback—contributes to improved architecture accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.