Skip to main content
QUICK REVIEW

[Paper Review] Can GPT-4 Perform Neural Architecture Search?

Mingkai Zheng, Xiu Su|arXiv (Cornell University)|Apr 21, 2023
Topic ModelingComputer Science16 citations
TL;DR

GENIUS uses GPT-4 as a black-box optimizer to propose and iteratively refine neural architectures for NAS, showing competitive results on several benchmarks with limited domain expertise.

ABSTRACT

We investigate the potential of GPT-4~\cite{gpt4} to perform Neural Architecture Search (NAS) -- the task of designing effective neural architectures. Our proposed approach, extbf{G}PT-4 extbf{E}nhanced extbf{N}eural arch extbf{I}tect extbf{U}re extbf{S}earch (GENIUS), leverages the generative capabilities of GPT-4 as a black-box optimiser to quickly navigate the architecture search space, pinpoint promising candidates, and iteratively refine these candidates to improve performance. We assess GENIUS across several benchmarks, comparing it with existing state-of-the-art NAS techniques to illustrate its effectiveness. Rather than targeting state-of-the-art performance, our objective is to highlight GPT-4's potential to assist research on a challenging technical problem through a simple prompting scheme that requires relatively limited domain expertise\footnote{Code available at \href{https://github.com/mingkai-zheng/GENIUS}{https://github.com/mingkai-zheng/GENIUS}.}. More broadly, we believe our preliminary results point to future research that harnesses general purpose language models for diverse optimisation tasks. We also highlight important limitations to our study, and note implications for AI safety.

Motivation & Objective

  • Motivate exploring GPT-4 as a general-purpose tool to assist with neural architecture design without domain-specific fine-tuning.
  • Demonstrate a simple prompting-based GENIUS workflow that iteratively proposes and evaluates model architectures.
  • Benchmark GENIUS against state-of-the-art NAS methods across multiple NAS benchmarks and a large-scale ImageNet setting.
  • Discuss practical limitations and AI safety considerations of using LLMs as optimisers in scientific tasks.

Proposed method

  • Encode the NAS problem into human-readable text for GPT-4.
  • Prompt GPT-4 to propose an initial architecture configuration.
  • Train/evaluate the proposed configuration to obtain empirical accuracy.
  • Feed the results back to GPT-4 with a rationale prompt to generate a better architecture.
  • Repeat for a fixed number of iterations to identify a best architecture.
  • Optionally incorporate FLOPs feedback loops to enforce constraints.
Figure 1: An overview of the GENIUS framework . After an initial problem encoding (corresponding to iteration $T=0$ ), GPT-4 proposes a model configuration. A Python program is then executed to evaluate the quality of the configuration (assessed through its accuracy), and the results are passed back
Figure 1: An overview of the GENIUS framework . After an initial problem encoding (corresponding to iteration $T=0$ ), GPT-4 proposes a model configuration. A Python program is then executed to evaluate the quality of the configuration (assessed through its accuracy), and the results are passed back

Experimental results

Research questions

  • RQ1Can GPT-4 effectively navigate a neural architecture search space with minimal human guidance?
  • RQ2How does GENIUS perform relative to leading NAS methods on standard benchmarks?
  • RQ3What are the effects of prompting randomness (temperature) on search outcomes?
  • RQ4What are the practical limitations (reproducibility, data contamination, safety) of using GPT-4 as a NAS optimiser?

Key findings

  • GENIUS achieves competitive results on NAS-Bench-Macro and Channel-Bench-Macro, including top-percentile rankings for the architectures found.
  • On NAS-Bench-201, GENIUS attains results close to or competitive with several established NAS methods, e.g., GENIUS - 329 obtaining 91.07 ± 0.20 validation and 93.79 ± 0.09 test on CIFAR-10, 70.96 ± 0.33 validation and 70.91 ± 0.72 test on CIFAR-100, and 45.29 ± 0.81 validation and 44.96 ± 1.02 test on ImageNet-16-120.
  • In large-scale ImageNet experiments with MobileNetV2-like search spaces, GENIUS achieves 77.8% Top-1 at around 329M FLOPs and 78.2% Top-1 at around 401M FLOPs, demonstrating competitive performance with lower search costs.
  • Transfer learning experiments show GENIUS architectures achieving competitive CIFAR-10/100 results compared to other hand-designed and NAS methods when pretrained on ImageNet.
  • A qualitative analysis reveals GPT-4’s stated design principles (e.g., staged complexity, depth progression) and highlights significant safety and reproducibility considerations for using LLMs as optimisers.

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.