Skip to main content
QUICK REVIEW

[Paper Review] GPT-NAS: Evolutionary Neural Architecture Search with the Generative Pre-Trained Model

Caiyang Yu, Xianggen Liu|arXiv (Cornell University)|May 9, 2023
Machine Learning and Data ClassificationComputer Science3 citations
TL;DR

GPT-NAS proposes a novel neural architecture search (NAS) framework that leverages a fine-tuned GPT model to generate semantically meaningful neural architecture components, significantly reducing the search space. By integrating the GPT model's prior knowledge with an evolutionary algorithm (EA), GPT-NAS achieves state-of-the-art performance, outperforming 13 NAS methods and 7 manually designed architectures, with up to 12% accuracy improvement over non-GPT-tuned models.

ABSTRACT

Neural Architecture Search (NAS) has emerged as one of the effective methods to design the optimal neural network architecture automatically. Although neural architectures have achieved human-level performances in several tasks, few of them are obtained from the NAS method. The main reason is the huge search space of neural architectures, making NAS algorithms inefficient. This work presents a novel architecture search algorithm, called GPT-NAS, that optimizes neural architectures by Generative Pre-Trained (GPT) model with an evolutionary algorithm (EA) as the search strategy. In GPT-NAS, we assume that a generative model pre-trained on a large-scale corpus could learn the fundamental law of building neural architectures. Therefore, GPT-NAS leverages the GPT model to propose reasonable architecture components given the basic one and then utilizes EAs to search for the optimal solution. Such an approach can largely reduce the search space by introducing prior knowledge in the search process. Extensive experimental results show that our GPT-NAS method significantly outperforms seven manually designed neural architectures and thirteen architectures provided by competing NAS methods. In addition, our experiments also indicate that the proposed algorithm improves the performance of finely tuned neural architectures by up to about 12% compared to those without GPT, further demonstrating its effectiveness in searching neural architectures.

Motivation & Objective

  • To address the inefficiency of traditional NAS methods due to the vast search space of neural architectures.
  • To leverage pre-trained language models (GPT) as a source of inductive bias to guide neural architecture search.
  • To reduce the search space by incorporating prior knowledge from GPT's pre-training on neural architecture patterns.
  • To improve search efficiency and performance by combining GPT-based architecture generation with evolutionary algorithms.
  • To demonstrate that GPT-generated architectural components lead to superior models compared to random or manual design.

Proposed method

  • Neural architectures are encoded into vector sequences for input to a GPT model, enabling natural language-style processing of architecture structures.
  • The GPT model is pre-trained on the NAS-Bench-101 dataset to learn the statistical patterns of valid neural architectures.
  • The pre-trained GPT model is fine-tuned on a small subset of task-specific architectures to adapt to target datasets like CIFAR-10 and CIFAR-100.
  • A genetic algorithm (EA) is used as the search strategy, where GPT generates candidate architecture components based on a seed architecture.
  • The search process evolves architectures by mutating and selecting GPT-generated components, guided by performance feedback from training.
  • The method reduces search space by constraining candidate architectures to those that are semantically plausible and structurally coherent, as learned by the GPT model.

Experimental results

Research questions

  • RQ1Can a pre-trained GPT model effectively learn and generate valid, high-performing neural architecture components?
  • RQ2To what extent does incorporating GPT-generated priors reduce the effective search space in neural architecture search?
  • RQ3Does combining GPT-based architecture generation with evolutionary algorithms yield better performance than standard NAS or human-designed models?
  • RQ4How well do predictions from the GPT model correlate with actual model performance when trained on limited epochs?
  • RQ5Can GPT-guided search discover architectures that outperform both manually designed and competing NAS-generated models?

Key findings

  • GPT-NAS outperforms 13 competing NAS methods and 7 manually designed architectures on CIFAR-10 and CIFAR-100, achieving state-of-the-art accuracy.
  • The correlation between accuracy from 6 epochs and 30 epochs is 0.7247 (p-value = 2.68e-09) on CIFAR-10, and 0.8657 (p-value = 4.96e-16) on CIFAR-100, indicating strong predictive power of early training.
  • The correlation between training only predicted blocks and training all blocks is consistently above 80%, with diagonal values in the heat map exceeding 0.8, showing high consistency.
  • GPT-NAS improves the performance of finely tuned models by up to 12% compared to non-GPT-tuned counterparts, demonstrating the boosting effect of pre-trained knowledge.
  • The method achieves high accuracy correlation even with minimal training (e.g., 6 epochs), suggesting that GPT predictions are reliable indicators of final performance.
  • The fine-tuned GPT model effectively captures architectural patterns, enabling the generation of semantically coherent and high-performing architectures.

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.