PhaseNAS: Language-Model Driven Architecture Search with Dynamic Phase Adaptation

Fei Kong, Xiaohan Shan, Yanwei Hu, Jianmin LiarXiv 2025 · DOI

Introduction

Neural Architecture Search (NAS) has traditionally been a computationally intensive endeavor, often described as a "computational black hole" due to the massive GPU resources required for evolutionary or reinforcement learning algorithms. While Large Language Models (LLMs) have recently been introduced to provide a reasoning-based approach to architecture design, existing methods typically suffer from two major flaws: static resource allocation and ambiguous natural language representations. PhaseNAS addresses these challenges by introducing a dynamic, two-phase search strategy that optimizes both performance and efficiency.

Methodology: Dynamic Phase Adaptation

The core innovation of PhaseNAS is its Dynamic Phase Adaptation strategy, which splits the search process into two distinct stages to maximize resource efficiency.

Phase I: Exploration

In the initial phase, a smaller, cost-efficient LLM (such as Qwen2.5-7B) is utilized to sample a wide variety of architectural candidates. This stage focuses on diversity and broad coverage of the search space, identifying promising starting points without the overhead of massive parameter models.

Phase II: Refinement

Once a candidate architecture reaches a predefined performance threshold, the system transitions to a larger, more sophisticated LLM (such as Llama-3.3-70B or Claude-3.5). This model applies superior reasoning capabilities to perform fine-grained, iterative optimizations on the top-tier candidates.

Overview of the PhaseNAS framework, illustrating the transition from Phase I (Exploration) using smaller LLMs to Phase II (Refinement) using larger, more capable models.

Technical Enablers

To bridge the gap between natural language and executable code, PhaseNAS employs a Unified Architecture Template Language. This structured, parameterized format (e.g., ConvK3BNRELU(3,8,1,1)) significantly reduces LLM "hallucinations" and compilation errors. Additionally, the authors introduced Detection-Specific Scoring, extending the zero-shot "Zen-Score" to multi-scale feature maps. This allows the system to rank architectures instantly for complex tasks like object detection without requiring full training.

Experimental Results

PhaseNAS was evaluated across standard benchmarks including NAS-Bench-Macro, CIFAR-10/100, and COCO.

Efficiency and Accuracy

The framework demonstrated a significant 86% reduction in search time compared to Zen-NAS on CIFAR datasets. On the NAS-Bench-Macro benchmark, PhaseNAS discovered an architecture with 93.11% accuracy, achieving a global rank of 3rd within the search space—a substantial improvement over previous LLM-based baselines like GUNIUS, which ranked 110th.

Object Detection Performance

When applied to object detection, PhaseNAS automatically generated optimized "YOLOv8" variants. For instance, the YOLOv8n** variant improved mAP from 37.3 to 39.1 while simultaneously reducing both the parameter count and FLOPs compared to the original hand-designed model.

Conclusion

PhaseNAS proves that LLM-based architecture search is most effective when model capacity is matched to the specific demands of the search phase. By combining asymmetric compute allocation with structured templates and zero-shot proxies, PhaseNAS makes automated neural network design more practical and scalable. Future research will explore integrating real-world hardware metrics and extending this phase-aware logic to natural language processing and multimodal domains.

Summary updated

BibTeX
@misc{kong2025phasenas,
  author = {Fei Kong and Xiaohan Shan and Yanwei Hu and Jianmin Li},
  title = {{PhaseNAS: Language-Model Driven Architecture Search with Dynamic Phase Adaptation}},
  year = {2025},
  eprint = {2507.20592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20592},
}
Figure