Design Principle Transfer in Neural Architecture Search via Large Language Models

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

Abstract

Transferable neural architecture search (TNAS) has been introduced to design efficient neural architectures for multiple tasks, enhancing the practical applicability of NAS in real-world scenarios. In TNAS, architectural knowledge accumulated in previous search processes is reused to warm up the architecture search for new tasks. However, existing TNAS methods still search in an extensive search space, necessitating the evaluation of numerous architectures. To overcome this challenge, this work proposes a novel transfer paradigm: design principle transfer. In this work, the linguistic description of various structural components' effects on architectural performance is termed design principles. They are learned from established architectures and then reused to reduce the search space by discarding unpromising architectures. Searching in the refined search space can boost both search performance and efficiency for new NAS tasks. To this end, a large language model (LLM)-assisted design principle transfer (LAPT) framework is devised. In LAPT, an LLM is applied to automatically reason the design principles from a set of given architectures, and then a principle adaptation method is applied to refine these principles progressively based on new search results. Experimental results show that LAPT can beat state-of-the-art TNAS methods on most tasks and achieve comparable performance on others.

Introduction

Neural Architecture Search (NAS) has revolutionized the design of deep learning models by automating the discovery of high-performance architectures. However, the computational cost remains a significant barrier, often requiring the evaluation of thousands of candidates, which translates to days or weeks of GPU time. While Transferable NAS (TNAS) aims to mitigate this by leveraging knowledge from prior tasks, many existing methods still struggle with massive search spaces or lack interpretability.

This paper introduces LAPT (LLM-assisted design principle transfer), a framework that utilizes Large Language Models (LLMs) as "architectural consultants" to distill and transfer high-level design principles. By pruning vast search spaces into smaller, high-quality subspaces, LAPT significantly enhances both search efficiency and performance.

The LAPT Framework

The core innovation of LAPT is the transfer of design principles—linguistic descriptions of structural components that contribute to model success—rather than raw weights or data. The framework operates in three distinct stages:

  1. Design Principle Learning: Using a "Chain of Thought" prompting strategy, an LLM (such as GPT-4) analyzes the code of top-performing architectures from previous tasks. It identifies patterns and summarizes them into human-readable principles, such as the benefits of specific kernel sizes or skip connections.
  2. Search Space Refinement: These principles are translated into constraints that prune the original, gargantuan search space ($\Omega$) into a refined subspace ($\Omega_r$). This ensures the search algorithm focuses only on promising candidates.
  3. Principle Adaptation: To address "domain shift" between tasks, LAPT employs an iterative loop. As the search progresses on a new task, the LLM evaluates the results and updates the design principles to better fit the new requirements.
Overview of the LLM-assisted design principle transfer (LAPT) framework.

A key advantage of LAPT is its decoupling from the underlying search algorithm; it can be used to refine a search space for any standard NAS method, such as Regularized Evolution (REA) or Bayesian Optimization.

Experimental Evaluation

The researchers evaluated LAPT across several industry-standard benchmarks:

  • NAS-bench-201: Focused on CIFAR-10, CIFAR-100, and ImageNet.
  • TransNAS-Bench-101: Included six diverse computer vision tasks like Object Classification (Obj), Scene Classification (SC), and Semantic Segmentation.
  • DARTS Search Space: A complex space for high-performance model discovery.

Key Results and Analysis

LAPT demonstrated substantial improvements in both speed and accuracy. On the NAS-bench-201 benchmark, LAPT reached optimal architectures up to 100x faster than standard REA and significantly outperformed other leading TNAS methods. In the complex DARTS space, LAPT found a superior CIFAR-10 model in just 0.1 GPU days, a fraction of the 4 GPU days required by the original DARTS algorithm.

Ablation study showing the impact of adaptation and transfer on model rank for Object (Obj) and Scene Classification (SC) tasks.

As shown in the ablation study (Figure 3), both the initial transfer of principles and the subsequent adaptation are crucial. The full LAPT method consistently achieves lower (better) model ranks across different tasks compared to versions where these components are omitted (WO Adaptation and WO Transfer).

Furthermore, the study revealed that LLMs can act as effective reasoning engines, discovering principles that align with—and sometimes exceed—human expert knowledge. This human-AI alignment highlights the potential of LLMs to bridge the gap between automated search and interpretable design.

Conclusion

LAPT represents a significant step forward in making NAS more practical and efficient. By leveraging the reasoning capabilities of LLMs to distill and adapt design principles, the framework achieves state-of-the-art results with minimal computational overhead. Future work will explore extending this paradigm to entirely different domains, such as transferring knowledge from computer vision to natural language processing.

Summary updated

BibTeX
@inproceedings{zhou2025design,
  author = {Xun Zhou and Liang Feng and Xingyu Wu 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