Skip to main content
QUICK REVIEW

[논문 리뷰] EvoPrompting: Language Models for Code-Level Neural Architecture Search

Angelica Chen, D. Dohan|arXiv (Cornell University)|2023. 02. 28.
Evolutionary Algorithms and ApplicationsComputer Science인용 수 17
한 줄 요약

EvoPrompting은 진화된 프롬프트-조정 언어 모델을 교차/돌연변이로 활용하여 진화적 NAS 루프에서 신경망 아키텍처를 설계합니다; 이는 MNIST-1D에서 더 작고 성능이 높은 모델과 CLRS의 많은 과제에서 SOTA를 능가하는 새로운 GNN을 산출합니다.

ABSTRACT

Given the recent impressive accomplishments of language models (LMs) for code generation, we explore the use of LMs as adaptive mutation and crossover operators for an evolutionary neural architecture search (NAS) algorithm. While NAS still proves too difficult a task for LMs to succeed at solely through prompting, we find that the combination of evolutionary prompt engineering with soft prompt-tuning, a method we term EvoPrompting, consistently finds diverse and high performing models. We first demonstrate that EvoPrompting is effective on the computationally efficient MNIST-1D dataset, where EvoPrompting produces convolutional architecture variants that outperform both those designed by human experts and naive few-shot prompting in terms of accuracy and model size. We then apply our method to searching for graph neural networks on the CLRS Algorithmic Reasoning Benchmark, where EvoPrompting is able to design novel architectures that outperform current state-of-the-art models on 21 out of 30 algorithmic reasoning tasks while maintaining similar model size. EvoPrompting is successful at designing accurate and efficient neural network architectures across a variety of machine learning tasks, while also being general enough for easy adaptation to other tasks beyond neural network design.

연구 동기 및 목표

  • 언어 모델(LMs)과 프롬프트 튜닝으로 신경망 아키텍처 탐색(NAS)을 개선하려는 동기 부여.
  • 진화적 NAS 루프에서 LMs를 적응적 교차/돌연변이 연산자로 사용하도록 EvoPrompting을 개발.
  • MNIST-1D 및 CLRS 알고리즘적 추론 벤치마크에서 효과를 입증하여 작고 고성능의 아키텍처를 발견.
  • 여러 작업에서 인간 설계 및 현재의 최첨단을 능가하는 아키텍처를 EvoPrompting이 발견함을 보여준다.

제안 방법

  • 신경망 아키텍처를 Python의 코드 문자열로 표현하고 코드-사전학습된 LM을 교차/돌연변이 연산자로 사용한다.
  • Few-shot 프롬프트와 LM 샘플링을 통해 후보 아키텍처를 반복적으로 생성하고, 학습시키며 작업 데이터셋에서 적합도(fitness)를 평가한다.
  • 상위 성능 아키텍처를 사용해 라운드 사이에 LM을 프롬프트 튜닝하여 시간에 따라 교차를 개선한다.
  • 검증 오류와 모델 크기를 기반으로 한 적합도 함수로 후보를 점수화한다(적합도 = -model_size * validation_error).
  • 시드 아키텍처를 사용해 집단을 초기화하고 다음 세대를 위한 상위 생존자를 선택한다(엘리트 주의).
  • 다수의 라운드에 걸쳐 프롬프트 튜닝으로 교차 LM을 학습하고 맥락 내 예시로부터 새로운 자식 아키텍처를 생성한다.
Figure 1 : An overview of EvoPrompting . After initializing the search with a handful of manually designed program seeds, the meta-learning loop begins. First, our code-pretrained LM uses the seeds as in-context prompt examples to generate candidate architectures. Those candidate architectures are t
Figure 1 : An overview of EvoPrompting . After initializing the search with a handful of manually designed program seeds, the meta-learning loop begins. First, our code-pretrained LM uses the seeds as in-context prompt examples to generate candidate architectures. Those candidate architectures are t

실험 결과

연구 질문

  • RQ1코드-사전학습된 LM이 진화적 루프에 내재되어 인간이 설계한 기준선보다 성능이 우수한 새로운 신경망 아키텍처를 생성할 수 있는가?
  • RQ2프롬프트 튜닝과 진화적 프롬프트를 통해 LM의 인-컨텍스트 학습이 아키텍처 설계에 대해 개선되는가?
  • RQ3경량 벤치마크(MNIST-1D)와 더 복잡한 그래프 신경망 작업(CLRS)에서 정확도와 모델 크기 측면에서 EvoPrompting의 성능은 어떠한가?

주요 결과

  • EvoPrompting은 MNIST-1D에서 더 작고 성능이 높은 아키텍처를 산출하여 정확도와 크기 측면에서 인간이 설계한 기준선과 순진한 프롬프트를 모두 능가한다.
  • MNIST-1D에서 EvoPrompting은 원점에 근접한 파레토 경계를 달성하여 우호적인 정확도-크기 트레이드오프를 시사한다.
  • CLRS에서 EvoPrompting은 Triplet-GMPNN 기준선을 상회하는 새로운 GNN 아키텍처를 다수의 과제(30개 중 21개)에서 발견한다.
  • 진화적 교차와 함께 프롈프트 튜닝이 교대하는 것이 필수적이다; 프롬프트 튜닝을 제거하거나 무작위 부모를 사용하면 성능이 저하된다.
  • 코드 어휘를 가진 LM은 임의의 Python 정의 아키텍처를 탐색하게 하여 수동으로 설계된 탐색 공간에 대한 의존도를 감소시킨다.
(a) Pareto frontiers of the model size versus test error of the top 20 experiments for each variation of the MNIST1D model search. Frontiers closer to the origin are considered more desirable.
(a) Pareto frontiers of the model size versus test error of the top 20 experiments for each variation of the MNIST1D model search. Frontiers closer to the origin are considered more desirable.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.