Design Principle Transfer in Neural Architecture Search via Large Language Models

Xun Zhou, Xingyu Wu, Liang Feng, Zhichao Lu, Kay Chen Tan

TL;DR

LAPT (LLM-assisted design principle transfer) uses Large Language Models to distill high-level "design principles" from successful neural architectures and applies them to prune the search space for new tasks. This approach makes Neural Architecture Search (NAS) up to 100x more efficient while achieving state-of-the-art accuracy by focusing the search only on promising structural regions.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of high-performing networks. However, it remains prohibitively expensive; most methods start from scratch for every new task, requiring the evaluation of thousands of candidate models.

Transferable NAS (TNAS) attempts to solve this by reusing knowledge from previous tasks. Yet, existing TNAS methods often still operate in massive search spaces (sometimes exceeding $10^{18}$ candidates) or tightly couple the transferred knowledge to a specific search algorithm. The authors identify a need for a way to extract general, human-readable design insights—like "skip connections are vital in the middle layers"—and use them to intelligently shrink the search space before the heavy lifting begins.

Methods

The authors introduce the LAPT framework, which operates in two main stages:

  1. Design Principle Learning: Instead of feeding raw architecture tensors to a model, LAPT represents top-performing architectures from a "source" task as Python code. A pre-trained LLM (like GPT-4) acts as a reasoning agent, analyzing these code snippets to induce linguistic "design principles" (e.g., "Starting with a convolutional layer helps in learning useful features").
  2. Architecture Search for New Tasks: These principles are transferred to a new task. The LLM translates the principles into specific constraints, creating a refined subspace ($\Omega_r$) that discards unpromising components. A standard search algorithm (like Regularized Evolution) then explores this smaller, high-quality space.
Figure 1: Overview of the proposed LAPT. This framework consists of two stages. In the learning stage of design principles, LLM is driven by specific prompts to learn general design principles from a set of architectures. In the architecture search stage, the learned principles are applied to initialize the search space for each new task. Then, architectures found in the refined search space are used to update these principles, aiming to build the task-specific search space.

A key innovation is Principle Adaptation. Because a principle that works for ImageNet might not be perfect for a specialized task like surface normal estimation, LAPT iteratively updates its principles based on the architectures it discovers during the search, progressively tailoring the search space to the target task.

Datasets

The framework was evaluated across three major NAS benchmarks and several computer vision tasks:

  • NAS-bench-201: A popular cell-based search space with 15k architectures.
  • TransNAS-Bench-101: Used to test transfer across 6 diverse tasks: Object Classification, Scene Classification, Room Layout, AutoEncoder, Surface Normal, and Semantic Segmentation.
  • DARTs Search Space: A massive, complex space used for high-end architecture discovery.
  • Evaluation Datasets: ImageNet (source), CIFAR-10, and CIFAR-100.

Key Insights and Ideas

  • LLMs as Reasoning Agents: The paper demonstrates that LLMs can identify the same design principles as human experts (and sometimes even discover new ones) simply by "reading" architecture code.
  • Code-Based Prompting: By representing architectures as Python classes, the authors bypass token limits and allow the LLM to leverage its extensive pre-training on programming languages to understand structural information flow.
  • Decoupling Knowledge from Search: Unlike previous TNAS methods, LAPT's knowledge transfer happens at the search space level. This means you can plug in almost any NAS algorithm (Evolutionary, Bayesian, etc.) and it will benefit from the refined space.
  • The Power of Pruning: Searching in a refined space is fundamentally more efficient than searching in a vast one. The "quality" of the search space (the density of good models) is significantly higher after LLM-guided pruning.
Figure 2: The Python code-based prompt can help LLMs gain awareness of the right CNN architecture from its archi- tectural parameters which are represented as “Layer list”.

Key Results

LAPT consistently outperformed or matched state-of-the-art TNAS methods while being drastically faster:

  • Efficiency: On NAS-bench-201, LAPT reached top-tier architectures 100x faster than standard Regularized Evolution and 10x faster than the state-of-the-art HEBO method.
  • DARTs Performance: In the massive DARTs space, LAPT achieved 97.35% accuracy on CIFAR-10 using only 0.1 GPU days—a 15x speedup over SNAS and 40x over the original DARTs algorithm.
  • Ablation Study: The authors proved that both "Transfer" (using prior knowledge) and "Adaptation" (updating principles for the new task) are essential. Removing either component led to significantly worse model rankings across all tested tasks.
Ablation study results showing that LAPT (with both transfer and adaptation) identifies higher-ranking models compared to versions without those components.

Limitations and Future Work

The primary limitation acknowledged is the requirement for task and search space similarity. Currently, LAPT assumes the source and target tasks share the same underlying search space structure.

The authors suggest that future research should explore cross-space transfer, where design principles learned in one type of search space (e.g., cell-based) could be translated to completely different architectural paradigms (e.g., transformer-based or backbone-based spaces). Additionally, exploring how these principles hold up across vastly different domains (like moving from vision to natural language processing) remains an open question.

Summary updated

BibTeX
@inproceedings{zhou2025design,
  author = {Xun Zhou and Xingyu Wu and Liang Feng and Zhichao Lu and Kay Chen Tan},
  title = {{Design Principle Transfer in Neural Architecture Search via Large Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i21.34463},
}
Figure