arXiv:2608.14472cs.LGAug 2026

Manuscript Offprint

arXiv:2608.14472

LP-NAS: Linear Programming-based Neural Architecture Search

Abhishek Shukla, Ankur Sinha, Faiz Hamid

Abstract

Neural Architecture Search (NAS) aims to automate neural network architecture design, reducing reliance on human expertise. Among the various NAS methods, differentiable NAS has gained prominence due to its efficiency and accuracy compared to conventional NAS approaches. Since differentiable NAS relaxes the architecture search space into a continuous domain, it is possible to apply principles from continuous optimization to NAS. In this paper, we propose Linear Programming-based NAS (LP-NAS), a mathematical programming-based framework for differentiable NAS that is applicable to a wide range of continuous search spaces. LP-NAS formulates a linear program (LP) using the validation-loss gradient and the training-loss Hessian to compute an architecture update direction that improves generalization while preserving the optimality of the model parameters. By following this LP-derived descent direction, LP-NAS efficiently navigates the architecture search space, leading to faster and more effective architecture optimization. We introduce two computationally efficient variants of LP-NAS, namely S-LP-NAS and R-LP-NAS. Applying LP-NAS to the Differentiable Architecture Search (DARTS) search space results in two algorithmic variants, S-LP-DARTS and R-LP-DARTS. Both variants achieve faster convergence and significantly higher validation performance during the early search iterations than the standard DARTS algorithm. Extensive experiments on CIFAR-10 and CIFAR-100 show that LP-DARTS outperforms standard DARTS in both the architecture search and evaluation phases. Additionally, we compare our approach with several DARTS variants (P-DARTS, PC-DARTS, and STO-DARTS) on the CIFAR-10 dataset and demonstrate its effectiveness. Furthermore, we validate the transferability of the discovered architectures through experiments on the ImageNet dataset.

Keywords: Deep learning, Neural architecture search, Bilevel optimization, Linear programming.

1 Introduction

Artificial Neural Networks (ANNs) are machine learning models designed to process data in a manner inspired by the human brain. ANNs are characterized by architecture parameters (hyperparameters) which are not learned from the training data but are instead set prior to training. Hyperparameter Optimization (HPO) is a technique aimed at determining the optimal values of the hyperparameters for machine learning models. Traditionally, expert knowledge was essential in designing neural network architectures. However, with advances in artificial intelligence, engineers and scientists are increasingly focused on automating the neural network design process. This emerging area of research, referred to as Neural Architecture Search (NAS), a sub-field of HPO and Automated Machine Learning (AutoML), aims to facilitate the automated development of neural network architectures for specific requirements.

Mathematically, NAS and other HPO problems, as formalized in [1, 2], are bilevel optimization problems [3, 4], in which an outer (leader) problem selects the architecture and an inner (follower) problem trains the corresponding weights, as shown in Formulation (1). These problems are typically solved under the optimistic bilevel assumption. In this formulation, Lv\mathcal{L}_{v} and Lt\mathcal{L}_{t} represent the validation loss and the training loss functions. The lower-level variable (WW) corresponds to the neural network’s weights and biases, while the upper-level variable (AA) denotes the architecture parameters. When considering NAS as a bilevel optimization problem, it is noteworthy that the dimensionality of WW significantly exceeds that of AA.

min⁡ALv(A,W^)\displaystyle\min_{A} \displaystyle\mathcal{L}_{v}(A,\hat{W}) st.W^∈arg⁡min⁡W∈WLt(A,W)\displaystyle\text{st.} \displaystyle\hat{W}\in\arg\min_{W\in\mathscr{W}}\mathcal{L}_{t}(A,W) A∈A\displaystyle A\in\mathscr{A}

NAS gained significant attention following the publication of the research paper [5]. Since then, this domain has experienced substantial growth, evidenced by the proliferation of related publications in recent years [6]. Architectures designed through NAS have demonstrated exceptional performance across diverse application areas, such as medical imaging [7, 8, 9], language modeling [10], translation [11], smart city applications [12], image classification and object detection [13], and semantic segmentation [14]. In many instances, NAS-designed architectures have outperformed those crafted by human experts. Advancements in automated neural network design have democratized the architecture design process, reducing the need for specialized knowledge. Current progress in NAS demonstrates its potential to revolutionize various application domains and research fields [15].

Due to the combinatorial nature and NP-hard complexity of NAS, solving this problem is computationally challenging and time-intensive. Specifically, Reinforcement Learning (RL) [5] and Evolutionary Computation (EC) [16]-based algorithms require approximately three orders of magnitude more GPU days than gradient-based methods [17] due to the exploration of discrete architectural spaces and treating the objective function as a black box rather than a functional form. In contrast, gradient-based NAS approaches lack such intricacies.

Since NAS emerged, various benchmarks have been developed to assess and compare new NAS methods. Differentiable Architecture Search (DARTS) has emerged as one of the most widely adopted benchmarks in the NAS field. The DARTS algorithm pioneered the use of gradient-based optimization techniques within NAS. Following its introduction, several variants of DARTS have been developed to improve particular aspects of the original method. Some of them are given in Appendix A. The continuous advancements and broad usage of DARTS highlight its importance and substantial influence within the NAS field. Although these methods have significantly improved DARTS in terms of search efficiency, robustness, and optimization stability, they primarily focus on modifying the search strategy, search space, or regularization techniques. Comparatively less attention has been devoted to exploiting the mathematical structure of the underlying bilevel optimization problem, despite DARTS being naturally formulated as one. One of the early works to model HPO as a bilevel optimization problem is [18], which has inspired various studies [19, 20, 21, 22, 23]. Beyond NAS, more recently, the mathematical structure of bilevel optimization-based regularization problems has also been exploited for overfitting control in large language models, including transformer architectures, as demonstrated in [24]. The current work builds on this line of research by exploiting the mathematical properties of continuous hyperparameter optimization through its bilevel formulation.

Figure

Figure 1: Optimization paths of a first-order method and our proposed approach.

We propose a novel NAS approach based on linear programming within the differentiable framework. Our method leverages the Hessian information from the lower-level optimization, together with the validation gradient from the upper-level, to formulate a Linear Program (LP) that computes a descent direction for the upper-level while ensuring that the architecture search is performed within the optimal valley of the lower-level problem. This approach, referred to as LP-NAS (an amalgamation of the LP-based bilevel descent method and differentiable NAS), distinguishes itself by maintaining model optimality throughout the architecture update process, unlike many existing NAS and HPO algorithms, which assume model optimality solely from the condition that the gradient of the training loss with respect to the model parameters is zero. While a zero gradient is a necessary condition, they are not sufficient for optimality. In contrast, our method ensures lower-level optimality while updating the architecture parameters and model parameters along the descent direction, providing a robust approach to optimization and effectively minimizing validation loss. Figure 1 illustrates the issue of relying on the first-order lower-level optimality conditions alone and then optimizing the architecture parameters. To begin with, let the optimal model parameters corresponding to the initial architecture A1A^{1} be known. Changing the architecture parameters (e.g., from A2A^{2} to A3A^{3}) across iterations, while ensuring first-order optimality at the lower-level, may result in updated weights corresponding to A3A^{3} that do not sufficiently satisfy the lower-level minimization condition. Consequently, although the upper-level objective (validation loss) may improve, the minimization of the lower-level training loss is not guaranteed. This imbalance can lead to overfitting on the validation loss while disregarding the sufficient minimization conditions for the training loss. A common approach to mitigate this issue is to re-solve the lower-level problem with a fixed A3A^{3}, as done by many optimization methods. However, this approach can still pose challenges because the optimization begins from a state where the gradient is nearly zero. In such scenarios, the solution may be at a saddle point or even a local maximum of the lower-level problem while still achieving a relatively low validation loss. The final architecture (say A4A^{4}) may also not be optimal for the bilevel program. In contrast, the proposed method ensures that lower-level optimality is maintained while updating both architecture and model parameters along the descent direction, as illustrated in Figure 1. This allows for efficient convergence to model and architecture parameters that yield superior performance on validation/test datasets.

In a nutshell, the key contributions of our work are:

  1. Linear pogramming-based hyperlocal search: This approach leverages second-order information to compute architecture updates that improve validation performance while preserving model optimality.
  2. Efficient variants for faster convergence: We propose two computationally efficient variants of LP-NAS, namely S-LP-NAS and R-LP-NAS, which differ in their model parameter selection strategies. Both variants accelerate convergence and improve validation performance during the early stages of the architecture search process.
  3. Superior performance on benchmark datasets: Extensive experiments on the CIFAR-10 and CIFAR-100 datasets demonstrate that LP-DARTS, an instance of LP-NAS for the DARTS search space (DSS), consistently outperforms standard DARTS during both the architecture search and evaluation phases, resulting in superior architectures.
  4. Comparison with DARTS variants and transferability: We perform a comprehensive comparison with several DARTS variants (P-DARTS, PC-DARTS, and STO-DARTS) on the CIFAR-10 dataset, demonstrating the effectiveness of LP-DARTS, and validate the transferability of the discovered architectures through experiments on the ImageNet dataset.

The paper is organized as follows. Section 2 covers the foundational concepts and background necessary for the development of the LP-NAS algorithm. Section 3 introduces the proposed LP-NAS approach in detail. In Section 4, we present the experimental results for architecture optimization on the CIFAR-10 and CIFAR-100 datasets and compare the performance of LP-DARTS with that of the original DARTS algorithm. We also compare the architectures obtained in this work with those reported in the literature on the CIFAR-10 dataset. Furthermore, we evaluate the transferability of the architectures obtained on CIFAR-10 to the ImageNet dataset and discuss the insights gained from the experimental results. Finally, Section 5 offers concluding remarks, outlines the challenges and limitations encountered during the architecture search process, and suggests potential directions for future research.

References (43)