LLM Performance Predictors are good initializers for Architecture Search

Ganesh Jawahar, Muhammad Abdul-Mageed, Laks V. S. Lakshmanan, Dujian Ding

Abstract

Large Language Models (LLMs) like GPT-4 possess an inherent "architectural intuition" derived from their vast training data. This paper explores leveraging this intuition to predict the performance of deep learning architectures based solely on their hyperparameters. By distilling LLM predictions into a lightweight model and integrating it into a hybrid search framework, we demonstrate a 50% reduction in search time for Neural Architecture Search (NAS) while maintaining state-of-the-art translation performance.

Introduction

Designing optimal neural network architectures for specific hardware constraints—such as mobile translation—is a complex optimization task known as Neural Architecture Search (NAS). Traditionally, this process requires evaluating thousands of candidates, often relying on expensive "supernets" to estimate performance without full training. While effective, supernet training is computationally intensive. This research investigates whether the general knowledge embedded in LLMs can serve as a zero-shot or few-shot performance predictor, bypassing the need for heavy initial computation.

Methodology

The proposed framework consists of three primary components designed to transition from high-latency LLM queries to high-speed architecture optimization.

1. LLM-PP: The Performance Predictor

The core of the approach is the LLM Performance Predictor (LLM-PP). Researchers designed a specialized prompt for GPT-4 that structures the task as a performance estimation problem. The prompt includes a defined role, explicit instructions regarding the WMT'14 translation task, hyperparameter definitions (e.g., encoder embedding dimensions), and a set of "demonstrations" providing ground-truth examples of architecture configurations and their corresponding BLEU scores and GFLOPs.

The prompt structure used for LLM-PP, including role definition, instructions, and few-shot demonstrations.

2. LLM-Distill-PP: Knowledge Distillation

Directly querying an LLM for every candidate in a large search space is economically and temporally prohibitive. To address this, the authors used GPT-4 to label 3,000 architectures, creating a synthetic dataset. This dataset was then used to train a "tiny" Multi-Layer Perceptron (MLP). This distilled model, LLM-Distill-PP, operates 1,000x faster than the original LLM and significantly reduces operational costs.

The distilled predictor is integrated into a Hybrid Search (HS-NAS) algorithm. In the initial phases of evolutionary search, the algorithm uses the LLM-distilled model to rapidly prune unpromising candidates. As the search narrows, it transitions to a traditional supernet-based predictor to provide the high-resolution ranking necessary for final selection.

Experimental Results

The framework was evaluated on standard Machine Translation benchmarks, including WMT’14 (English-German and English-French) and WMT’19 (English-German).

Predictive Accuracy

GPT-4 demonstrated a remarkable ability to estimate absolute performance. As shown in the correlation plots, the predicted BLEU scores closely track the actual results obtained from training architectures from scratch across multiple benchmarks.

Correlation between predicted BLEU scores and actual training-from-scratch results across three WMT benchmarks.

Efficiency and Cost

The implementation of HS-NAS resulted in a 50% reduction in search hours across all tested benchmarks. On the WMT'14 En-De task, search time was halved from 1.09 hours to 0.56 hours. Furthermore, the distillation process reduced the total cost of utilizing LLMs for NAS by 98.3%, bringing the cost down from approximately $1,800 to just $30 for a full suite of constraints.

Discussion

A key insight from this work is that LLMs possess an "architectural gut feeling" that is highly effective for broad-strokes filtering. While specialized supernets remain superior for fine-grained ranking of similar models, the hybrid approach captures the best of both worlds. Interestingly, the distilled MLP often outperformed the raw LLM, suggesting that distillation acts as a regularizer, helping the model specialize in the specific architectural search space while ignoring LLM-inherent noise.

Future work will explore the generalizability of this "architectural intuition" beyond Transformer-based models to other domains such as Computer Vision and newer primitives like Mamba.

Summary updated

BibTeX
@inproceedings{jawahar2024llm,
  author = {Ganesh Jawahar and Muhammad Abdul-Mageed and Laks V. S. Lakshmanan and Dujian Ding},
  title = {{LLM Performance Predictors are good initializers for Architecture Search}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.627},
}
Figure