MathNAS: If Blocks Have a Role in Mathematical Architecture Design

Qinsi Wang, Jinghan Ke, Zhi Liang, Sihai Zhang
2/12/2026

Official code: wangqinsi1/MathNAS (37 stars, last commit 2024-04-10).

Abstract

Neural Architecture Search (NAS) has emerged as a favoured method for unearthing effective neural architectures. Recent development of large models has intensified the demand for faster search speeds and more accurate search results. However, designing large models by NAS is challenging due to the dramatical increase of search space and the associated huge performance evaluation cost. Consider a typical modular search space widely used in NAS, in which a neural architecture consists of $m$ block nodes and a block node has $n$ alternative blocks. Facing the space containing $n^m$ candidate networks, existing NAS methods attempt to find the best one by searching and evaluating candidate networks directly.Different from the general strategy that takes architecture search as a whole problem, we propose a novel divide-and-conquer strategy by making use of the modular nature of the search space.Here, we introduce MathNAS, a general NAS framework based on mathematical programming.In MathNAS, the performances of the $m*n$ possible building blocks in the search space are calculated first, and then the performance of a network is directly predicted based on the performances of its building blocks. Although estimating block performances involves network training, just as what happens for network performance evaluation in existing NAS methods, predicting network performance is completely training-free and thus extremely fast. In contrast to the $n^m$ candidate networks to evaluate in existing NAS methods, which require training and a formidable computational burden, there are only $m*n$ possible blocks to handle in MathNAS. Therefore, our approach effectively reduces the complexity of network performance evaluation.Our code is available at https://github.com/wangqinsi1/MathNAS.

View on arXivView PDF

Code Implementations(1)

wangqinsi1/MathNASOfficial100%

[NeurIPS 2023]MathNAS: If Blocks Have a Role in Mathematical Architecture Design.

372Python, Jupyter NotebookOct 24, 20232 years ago

Similar Papers

Cite this paper

@article{wang2026mathnas,
  title  = {MathNAS: If Blocks Have a Role in Mathematical Architecture Design},
  author = {Qinsi Wang and Jinghan Ke and Zhi Liang and Sihai Zhang},
  year   = {2026},
  eprint = {2311.04943},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.04943},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.04943.svg)](https://codeofpaper.com/paper/2311.04943)

Discussion