Neural Architecture Search (NAS)
1. Definition and Core Concepts
Definition and Core Concepts
Neural Architecture Search (NAS) automates the design of artificial neural networks, optimizing architectures for specific tasks without human intervention. Unlike traditional manual design, NAS employs search algorithms—such as reinforcement learning, evolutionary methods, or gradient-based optimization—to explore a vast space of possible architectures. The search space typically includes layer types (e.g., convolutions, recurrent cells), connectivity patterns, hyperparameters (e.g., filter sizes, activation functions), and macro-structures (e.g., residual blocks, attention mechanisms).
Search Space Formulation
The search space defines all possible architectures the NAS algorithm can explore. A common approach is the cell-based search space, where the network is constructed by stacking predefined or discovered building blocks. For a directed acyclic graph (DAG) representation of a cell, each node corresponds to a latent representation (e.g., feature map), and edges represent operations (e.g., convolution, pooling). The probability of selecting an operation between nodes i and j can be parameterized using softmax over weights α(i,j):
Here, fk(x) denotes the k-th candidate operation (e.g., 3×3 convolution), and α(i,j) are learnable architecture parameters.
Optimization Strategies
NAS optimization involves two nested loops: (1) architecture search, where candidate architectures are sampled and evaluated, and (2) weight training, where the weights of sampled architectures are optimized. Three dominant paradigms exist:
- Reinforcement Learning (RL): Uses a controller (e.g., RNN) to generate architectures, rewarded based on validation accuracy. The policy gradient method updates the controller’s parameters to maximize expected reward.
- Evolutionary Algorithms: Mutates and selects architectures based on fitness (e.g., accuracy, computational efficiency). Population-based methods like NSGA-II handle multi-objective optimization.
- Differentiable NAS (DNAS): Relaxes the discrete search space to continuous, enabling gradient-based optimization. Architecture parameters α are jointly optimized with network weights using bilevel optimization:
Performance Estimation
Evaluating every candidate architecture is computationally prohibitive. Weight sharing addresses this by maintaining a supernetwork (one-shot model) where all architectures share weights. Alternatives include:
- Low-fidelity estimation: Training on subsets of data or fewer epochs.
- Surrogate models: Predicting performance using regression or Bayesian optimization.
- Zero-cost proxies: Scoring architectures via heuristic metrics (e.g., synaptic flow, gradient norm) without training.
Practical Considerations
NAS faces trade-offs between search efficiency, computational cost, and discovered architecture quality. Hardware-aware NAS incorporates latency, energy consumption, or memory constraints into the objective function. For example, the search space may exclude operations incompatible with edge-device accelerators. Recent advances like sparse supernetworks and neural predictors reduce search costs from thousands to single GPU days.

Key Components of NAS
Search Space
The search space defines the set of possible neural architectures that can be explored during NAS. For advanced applications, search spaces are typically categorized into three types:
- Chain-structured spaces where architectures are represented as sequential layers, allowing variations in layer types, widths, and depths.
- Cell-based spaces where architectures are constructed by repeating predefined building blocks (cells) in a macro-architecture framework.
- Hierarchical spaces that incorporate both micro-architectural (e.g., operation choices) and macro-architectural (e.g., network depth) decisions.
The choice of search space directly impacts the complexity of the NAS problem, with larger spaces requiring more sophisticated search strategies.
Search Strategy
The search strategy determines how the NAS algorithm explores the search space. Advanced methods include:
where π(·;θ) is the policy network generating architectures a, and R(a) is the reward (typically validation accuracy). Evolutionary approaches use:
where f(a) represents fitness (performance) of architecture a in population Pt.
Performance Estimation Strategy
Evaluating candidate architectures is computationally expensive. Advanced techniques include:
- Weight sharing where all architectures share weights in a supernetwork, enabling orders-of-magnitude faster evaluation.
- Surrogate models that predict architecture performance using meta-learned regression models or neural predictors.
- Low-fidelity estimation through training on subsets of data or for fewer epochs.
The performance estimation strategy must balance computational cost with evaluation fidelity to avoid search bias.
Architecture Evaluation
Once promising architectures are identified, rigorous evaluation is required. Best practices include:
- Training from scratch with full computational budget
- Multiple random initializations to assess stability
- Cross-validation on multiple datasets for generalizability
Recent work has shown that architecture rankings can vary significantly between proxy and full evaluation, necessitating careful validation.
Implementation Considerations
Practical NAS systems require:
- Efficient parallelization across heterogeneous compute resources
- Careful memory management for weight-sharing approaches
- Automated pipeline for architecture generation, training, and evaluation
Modern frameworks like PyTorch and TensorFlow enable gradient-based NAS through differentiable architecture representations.
# Example of differentiable NAS update step
def update_controller(controller, optimizer, rewards, baseline):
loss = -torch.sum((rewards - baseline) * controller.log_probs)
optimizer.zero_grad()
loss.backward()
optimizer.step()
return loss.item()

1.3 Challenges in NAS
Computational Cost
Neural Architecture Search (NAS) is inherently computationally expensive due to the vast search space of possible architectures. Evaluating each candidate architecture typically requires full training and validation, which can take thousands of GPU hours. For instance, early NAS approaches like Zoph & Le (2017) required over 2,000 GPU days to discover an optimal architecture. The computational burden arises from:
- Discrete search space: The non-differentiable nature of architecture selection prevents gradient-based optimization, necessitating reinforcement learning or evolutionary strategies.
- Nested optimization: NAS involves a bilevel optimization problem where architecture parameters and model weights must be jointly optimized.
Search Space Design
The choice of search space significantly impacts NAS performance. Poorly designed search spaces may exclude high-performing architectures or introduce bias toward suboptimal designs. Key challenges include:
- Over-parameterization: Cell-based search spaces (e.g., NASNet) can lead to redundant or inefficient structures when scaled.
- Transferability: Architectures optimized for one dataset may not generalize well to others, requiring costly re-searching.
Evaluation Strategy
Accurate performance estimation of candidate architectures is critical but challenging. Common pitfalls include:
- Proxy metrics: Using reduced training epochs or smaller datasets for speed introduces noise in architecture ranking.
- Weight-sharing pitfalls: One-shot NAS methods suffer from co-adaptation of operations, where shared weights bias the search.
Multi-Objective Tradeoffs
Real-world deployments require balancing accuracy with:
- Latency: Device-specific constraints (e.g., mobile inference) demand hardware-aware NAS.
- Energy efficiency: FLOPs or parameter counts often poorly correlate with actual power consumption.
Reproducibility and Benchmarking
NAS research faces reproducibility challenges due to:
- Implementation variance: Random seeds, hyperparameters, and hardware can drastically alter results.
- Lack of standardized benchmarks: Many studies report results on proprietary search spaces, hindering fair comparison.
2. Reinforcement Learning-Based Approaches
2.1 Reinforcement Learning-Based Approaches
Reinforcement learning (RL) has emerged as a powerful paradigm for automating neural architecture design by framing NAS as a sequential decision-making problem. The controller, typically implemented as a recurrent neural network (RNN), generates architectural descriptions through a series of actions, which are then evaluated on a validation set. The reward signal—often validation accuracy—guides the controller's policy updates via policy gradient methods.
Markov Decision Process Formulation
The NAS problem is modeled as a Markov Decision Process (MDP) where:
- State space (S): The current architecture configuration and training history
- Action space (A): Architectural modifications (e.g., adding layers, changing operations)
- Transition dynamics: Deterministic state transitions based on actions
- Reward function R(s,a): Validation accuracy of the proposed architecture
The objective is to maximize the expected cumulative reward:
Policy Gradient Optimization
The controller's policy $$π_θ(a|s)$$ is optimized using the REINFORCE algorithm with baseline subtraction for variance reduction:
where $$b$$ is an exponential moving average of previous rewards. The baseline reduces variance while maintaining unbiased gradient estimates.
Architecture Generation Process
The controller RNN generates architectures autoregressively:
- For convolutional networks: Predicts filter sizes, number of filters, and connection patterns
- For recurrent networks: Predicts cell types and connection topologies
- Each prediction is conditioned on all previous decisions through hidden states
The search space is typically constrained by:
- Maximum layer depth
- Allowed operation types (e.g., conv3×3, separable conv, max pooling)
- Skip connection possibilities
Efficiency Improvements
Several techniques address the computational expense of pure RL-based NAS:
- Parameter sharing: Child networks share weights in an overparameterized supernetwork (ENAS)
- Early stopping: Halting training of poorly performing architectures
- Proxy tasks: Evaluating on smaller datasets or fewer training epochs
- Parallel evaluation: Distributed training of multiple architectures simultaneously
Empirical Performance
RL-based NAS has produced state-of-the-art architectures across domains:
| Method | Dataset | Error Rate |
|---|---|---|
| NASNet | CIFAR-10 | 2.65% |
| ENAS | PTB | 55.8 perplexity |
The computational cost remains substantial, with NASNet requiring 1800 GPU-days for search, though ENAS reduced this to 16 GPU-days through weight sharing.
Evolutionary Algorithms
Foundations of Evolutionary NAS
Evolutionary algorithms (EAs) in Neural Architecture Search (NAS) draw inspiration from biological evolution, applying mechanisms such as mutation, crossover, and selection to optimize neural network architectures. The search space consists of candidate architectures, each represented as a genotype encoding layer types, connectivity patterns, and hyperparameters. A population of these architectures evolves over generations, with fitness determined by validation accuracy, computational efficiency, or other objectives.
Here, θi represents an architecture, and λ balances accuracy and computational cost. The fitness function drives selection pressure toward high-performing, efficient models.
Genetic Operators in NAS
Two primary genetic operators guide evolution:
- Mutation: Random modifications to an architecture, such as adding/removing layers, altering kernel sizes, or changing activation functions. Mutation rates are typically low (e.g., 0.1) to avoid destabilizing performant designs.
- Crossover: Combines traits from parent architectures, such as merging convolutional blocks from two networks. Effective crossover requires semantically aligned encoding schemes to prevent invalid offspring.
Selection Mechanisms
Tournament selection and elitism are commonly used:
- Tournament Selection: Randomly samples k architectures from the population and selects the fittest. This balances exploration and exploitation.
- Elitism: Preserves the top-n architectures unchanged in the next generation, ensuring monotonic performance improvement.
Pareto Optimization for Multi-Objective NAS
When optimizing for conflicting objectives (e.g., accuracy vs. latency), EAs employ Pareto fronts to identify non-dominated solutions. An architecture θ1 dominates θ2 if:
NSGA-II and SPEA2 are popular algorithms for maintaining diverse Pareto-optimal sets.
Case Study: AmoebaNet
Google’s AmoebaNet demonstrates EA-NAS efficacy. Using tournament selection and aging regularization (discarding older models), it discovered architectures rivaling human-designed networks on ImageNet. Key innovations included:
- Hierarchical search space: Macro-architecture templates with evolvable micro-architecture cells.
- Progressive dynamic hurdles: Increasing training epochs for promising candidates to reduce noise in fitness evaluation.
Computational Challenges and Mitigations
EAs face scalability issues due to expensive fitness evaluations. Strategies to alleviate this include:
- Weight inheritance: Transfer learned weights from parent to offspring to warm-start training.
- Surrogate models: Predict architecture performance using regression or Bayesian optimization, reducing full training cycles.
- Distributed evaluation: Parallelize fitness assessments across GPU clusters.
Emerging Directions
Recent work integrates EAs with gradient-based methods (e.g., DARTS) for hybrid optimization. Additionally, quality-diversity algorithms like MAP-Elites explore high-performing architectures with distinct behavioral characteristics, useful for robust or transferable model design.

Gradient-Based Optimization
Gradient-based optimization in Neural Architecture Search (NAS) leverages differentiable relaxation of the discrete architecture search space, enabling efficient exploration via gradient descent. Unlike reinforcement learning or evolutionary methods, this approach formulates NAS as a continuous optimization problem, where architectural parameters are jointly learned with model weights.
Differentiable Architecture Search
The core idea involves relaxing the categorical choice of operations between nodes in a computational graph into a continuous, differentiable mixture. For a given edge (i, j) connecting node i to node j, the output is computed as a weighted sum of K candidate operations:
Here, αi,j,k are the architecture parameters determining the importance of operation ok, and softmax ensures normalization. The search space becomes fully differentiable with respect to both the architecture parameters α and the network weights w.
Bi-Level Optimization
The training process involves solving a bi-level optimization problem:
where ℒtrain and ℒval denote training and validation loss, respectively. The weights w are optimized on the training set, while architecture parameters α are optimized to minimize validation loss.
Efficient Gradient Approximation
Computing the exact gradient ∇αℒval(w*(α), α) is computationally prohibitive, as it would require solving the inner optimization to convergence for each gradient step. Instead, practical implementations use a one-step approximation:
where ξ is a learning rate hyperparameter. This approximation enables efficient alternating updates between w and α using standard gradient descent.
Architecture Derivation
After optimization, the discrete architecture is obtained by replacing each mixed operation with the most likely candidate:
This approach has been successfully applied in DARTS (Differentiable Architecture Search), achieving state-of-the-art performance with significantly reduced computational cost compared to non-differentiable methods.
Practical Considerations
- Search Space Design: The choice of candidate operations critically impacts the quality of discovered architectures. Common options include convolutions, pooling, skip connections, and zero operations.
- Optimization Stability: The bi-level optimization is prone to instability, requiring careful tuning of learning rates and optimization schedules.
- Memory Efficiency: Maintaining all candidate operations in memory can be demanding, leading to developments like partial channel connections and edge normalization.

Bayesian Optimization
Bayesian Optimization (BO) is a probabilistic approach for optimizing expensive black-box functions, making it particularly suitable for Neural Architecture Search (NAS). It models the objective function as a Gaussian Process (GP) and iteratively selects candidate architectures to evaluate based on an acquisition function that balances exploration and exploitation.
Gaussian Process Surrogate Model
The core of BO lies in its surrogate model, typically a Gaussian Process, which provides a distribution over possible functions that fit the observed data. Given a set of evaluated architectures X = {x1, ..., xn} and their corresponding performance metrics y = {y1, ..., yn}, the GP defines a prior over functions:
where m(x) is the mean function (often set to zero) and k(x, x') is the kernel function capturing covariance between inputs. The squared exponential kernel is commonly used:
Here, σf is the signal variance and l is the length-scale hyperparameter. The posterior distribution is updated after each new observation, refining the model's predictions.
Acquisition Functions
BO guides the search by maximizing an acquisition function that quantifies the utility of evaluating a candidate architecture. Common choices include:
- Expected Improvement (EI): Measures the expected improvement over the current best observation f*.
- Upper Confidence Bound (UCB): Balances mean prediction and uncertainty, controlled by a parameter β.
- Probability of Improvement (PI): Computes the probability that a candidate will outperform f*.
For Expected Improvement:
Under the GP posterior, this has a closed-form expression:
where Z = (μ(x) − f* − ξ) / σ(x), and Φ, ϕ are the CDF and PDF of the standard normal distribution, respectively. The parameter ξ controls exploration-exploitation trade-off.
Practical Considerations in NAS
Applying BO to NAS involves several challenges:
- High-Dimensional Search Space: Architectures are often parameterized by many variables (e.g., layer types, widths, connections). Standard kernels struggle in high dimensions, necessitating tailored solutions like additive kernels or embedding methods.
- Variable-Length Representations: Architectures may have varying numbers of layers. Techniques like graph kernels or recurrent neural networks (RNNs) can model such structures.
- Multi-Fidelity Optimization: Leveraging cheaper approximations (e.g., training on subsets of data) via multi-fidelity BO accelerates the search.
Recent advances include BANANAS (Bayesian Optimization with Neural Architectures for Neural Architecture Search), which combines BO with a neural predictor to improve scalability.
Case Study: Auto-Keras
Auto-Keras implements BO for NAS by treating the architecture search as a structured hyperparameter optimization problem. It uses a tree-structured Parzen estimator (TPE) variant to efficiently navigate the space of possible architectures, achieving competitive performance with minimal manual intervention.

3. Accuracy vs. Computational Cost Trade-offs
Accuracy vs. Computational Cost Trade-offs
Neural Architecture Search (NAS) fundamentally operates under the constraint of optimizing two competing objectives: model accuracy and computational cost. The trade-off between these objectives is governed by the Pareto efficiency principle, where improving one metric typically degrades the other. Formally, this can be expressed as a multi-objective optimization problem:
where α represents the architecture, ℒ(α) is the validation loss (proxy for accuracy), and 𝒞(α) is the computational cost (e.g., FLOPs, latency, or memory footprint).
Quantifying Computational Cost
The computational cost 𝒞(α) is typically measured in one of three ways:
- FLOPs (Floating Point Operations): Total multiply-add operations during inference.
- Latency: Actual inference time on target hardware.
- Memory Footprint: Peak memory consumption during execution.
For convolutional layers, FLOPs can be derived as:
where Hout, Wout are spatial dimensions, Cin, Cout are input/output channels, and Kh, Kw are kernel dimensions.
Pareto-Optimal Architectures
A NAS algorithm discovers architectures lying on the Pareto frontier, where no other architecture dominates in both objectives. The frontier can be approximated using:
Weighted sum scalarization is commonly used to navigate this frontier:
where λ controls the trade-off. For example, λ = 0.07 was used in MnasNet to balance accuracy and latency on mobile devices.
Hardware-Aware NAS
Modern NAS methods incorporate hardware feedback loops. For instance, ProxylessNAS uses gradient-based architecture search with a latency loss term:
where β1 and β2 penalize mean and variance of measured latency.
Case Study: EfficientNet
The EfficientNet family demonstrates how compound scaling (depth, width, resolution) affects the trade-off. Scaling baseline model by (α, β, γ) yields:
Empirically, optimal scaling for ImageNet accuracy follows α = 1.2, β = 1.1, γ = 1.15, achieving 84.4% top-1 accuracy with 66M parameters and 19B FLOPs.
Search Space Design Implications
The choice of search space operations directly impacts the achievable trade-offs:
- MobileNet-style inverted bottlenecks favor FLOPs efficiency but may increase memory bandwidth pressure.
- Squeeze-and-Excitation modules improve accuracy with minimal FLOPs overhead but introduce serialization.
- Depthwise separable convolutions reduce FLOPs by ~9× compared to standard convolutions.

3.2 Benchmark Datasets and Tasks
Neural Architecture Search (NAS) relies heavily on standardized benchmark datasets and tasks to evaluate the performance of discovered architectures. These benchmarks provide a controlled environment for comparing different NAS methods, ensuring reproducibility and fairness in evaluation. The choice of dataset and task depends on the target application, computational constraints, and the desired trade-off between exploration and exploitation.
Image Classification Benchmarks
Image classification remains the most common benchmark for NAS due to its well-established evaluation protocols and the availability of large-scale datasets. The following datasets are widely used:
- CIFAR-10/100: Small-scale datasets with 50,000 training and 10,000 test images (32x32 pixels). CIFAR-10 has 10 classes, while CIFAR-100 has 100. Their manageable size makes them ideal for rapid prototyping of NAS methods.
- ImageNet: The large-scale ImageNet dataset (1.2M training images, 50K validation images, 1K classes) is used to validate architectures discovered on smaller proxies like CIFAR. Due to computational costs, many NAS approaches first search on CIFAR and then transfer to ImageNet.
- SVHN: The Street View House Numbers dataset contains 600,000 digit images (32x32 pixels) for digit recognition, often used for lightweight NAS evaluations.
Object Detection and Segmentation Benchmarks
For NAS applied to more complex vision tasks, the following benchmarks are prevalent:
- COCO: The Common Objects in Context dataset contains over 200,000 labeled images for object detection, segmentation, and captioning. NAS methods targeting real-world applications often use COCO for evaluation.
- PASCAL VOC: A smaller-scale alternative to COCO, with 20 object categories, often used for preliminary evaluations in object detection NAS.
Natural Language Processing Benchmarks
NAS has also been applied to NLP tasks, with the following benchmarks being common:
- PTB/WT2: The Penn Treebank and WikiText-2 datasets are standard benchmarks for language modeling, measuring perplexity on word-level prediction tasks.
- GLUE: The General Language Understanding Evaluation benchmark combines multiple NLP tasks (e.g., sentiment analysis, textual entailment) into a single evaluation framework for NAS.
Specialized NAS Benchmarks
Several benchmarks have been specifically designed for NAS research:
- NAS-Bench-101/201: These are tabular benchmarks containing precomputed performance metrics for thousands of neural architectures, enabling rapid evaluation without full training.
- NDS: The Network Design Spaces benchmark provides a systematic way to evaluate NAS methods across different search spaces.
Where A represents an architecture, Acci is its accuracy on task i, and FLOPs measures computational cost. The coefficients α and β control the trade-off between performance and efficiency, typically determined via cross-validation.
Evaluation Metrics
Beyond raw accuracy, NAS benchmarks employ various metrics to assess different aspects of discovered architectures:
- Computational Efficiency: FLOPs, parameter count, and latency measurements are critical for real-world deployment.
- Search Efficiency: Wall-clock time and GPU hours required to discover competitive architectures.
- Transferability: Performance when architectures discovered on one dataset (e.g., CIFAR) are evaluated on another (e.g., ImageNet).
The choice of benchmark significantly impacts NAS research directions. Smaller datasets enable rapid iteration but may not reflect real-world performance, while large-scale benchmarks provide more reliable evaluations at greater computational cost. Recent trends show increasing use of proxy tasks and progressive evaluation strategies to balance these factors.
3.3 Fairness and Robustness in NAS
Fairness in Neural Architecture Search
Neural Architecture Search (NAS) introduces unique fairness challenges due to its automated nature. The search process may inadvertently favor architectures that perform well on majority classes while degrading performance on underrepresented groups. Let D denote the dataset with subgroups D1, D2, ..., Dk. A fairness-aware NAS objective can be formulated as:
where fθ is the neural network parameterized by architecture θ, and ℒ is the loss function. This minimax formulation ensures no subgroup performance falls below an acceptable threshold.
Robustness Considerations
NAS-discovered architectures often exhibit sensitivity to adversarial perturbations and distribution shifts. The robustness of an architecture θ can be quantified through its expected loss under worst-case perturbations δ:
Recent approaches integrate robustness directly into the search process through:
- Adversarial training during search: Evaluating candidate architectures on perturbed inputs
- Stability-aware mutation operators: Biasing architectural mutations toward robust patterns
- Multi-objective optimization: Simultaneously optimizing for accuracy and robustness metrics
Bias Mitigation Techniques
Several methods have emerged to address fairness in NAS:
| Method | Approach | Trade-offs |
|---|---|---|
| FairDARTS | Pareto-optimal architecture search with fairness constraints | Increased search complexity |
| RobustNAS | Adversarially robust supernet training | Higher computational cost |
| EQUINAS | Equality-constrained optimization | Requires careful constraint tuning |
Certifiable Robustness
Recent work has extended formal verification methods to NAS-discovered architectures. For a neural network fθ with Lipschitz constant Lθ, the worst-case output deviation under input perturbation δ is bounded by:
NAS techniques can directly optimize for architectures with provably small Lθ through:
- Lipschitz-constrained architecture search
- Stable activation function selection
- Provably robust connection patterns
Practical Implementation Challenges
Implementing fairness and robustness in NAS systems presents several engineering challenges:
- Computational overhead: Robustness evaluations may require 3-5× more compute resources
- Metric selection: Choosing appropriate fairness metrics (demographic parity, equalized odds) affects outcomes
- Search space design: Architectural constraints must permit both high-performance and fair/robust solutions
4. NAS for Computer Vision
4.1 NAS for Computer Vision
Neural Architecture Search (NAS) has revolutionized computer vision by automating the design of high-performance neural networks. Unlike handcrafted architectures, NAS leverages optimization techniques to discover topologies that maximize accuracy while minimizing computational cost. The search space for vision tasks typically includes operations like convolutions, pooling, skip connections, and attention mechanisms, constrained by factors such as latency, memory footprint, and task-specific performance metrics.
Search Space Design
The design of the search space is critical in NAS for computer vision. A common approach is the cell-based search space, where the network is constructed by stacking repeated computational cells. Each cell is a directed acyclic graph (DAG) with nodes representing feature maps and edges representing operations. The search space defines:
- Candidate operations (e.g., 3×3 separable convolution, 5×5 dilated convolution, max pooling).
- Connection patterns (e.g., skip connections, branching).
- Dimensionality constraints (e.g., input/output channels, stride).
For example, in DARTS (Differentiable Architecture Search), the search space is continuous, and the architecture is encoded via learnable parameters α that weight each operation. The probability of selecting operation o between nodes i and j is given by:
Optimization Strategies
NAS optimization methods for computer vision fall into three categories:
- Reinforcement Learning (RL)-based: Uses policy gradients or Q-learning to iteratively sample and evaluate architectures (e.g., NASNet, MnasNet).
- Evolutionary Algorithms: Employs genetic algorithms to mutate and select high-performing architectures (e.g., AmoebaNet).
- Gradient-based: Relaxes the search space to be differentiable, enabling efficient optimization via backpropagation (e.g., DARTS, ProxylessNAS).
In gradient-based methods, the architecture parameters α and model weights w are jointly optimized using bilevel optimization:
Efficiency Considerations
NAS for computer vision must balance search cost and model performance. Techniques to improve efficiency include:
- Weight sharing: Enables architectures to share weights during search, reducing computational overhead (e.g., ENAS).
- Proxy tasks: Trains on smaller datasets or lower resolutions before full evaluation (e.g., FBNet).
- Hardware-aware metrics: Incorporates latency or energy consumption directly into the objective function (e.g., MnasNet).
For hardware-aware NAS, the objective function often includes a Pareto-optimal trade-off between accuracy and latency:
Case Study: EfficientNet
EfficientNet leverages NAS to scale model depth, width, and resolution optimally. The compound scaling method uses a grid search to determine the best scaling coefficients ϕ for these dimensions:
where α, β, γ are constants determined via NAS. This approach achieves state-of-the-art accuracy with significantly fewer parameters than hand-designed models.

4.2 NAS for Natural Language Processing
Neural Architecture Search (NAS) has demonstrated significant success in automating the design of deep learning models for computer vision, but its application to Natural Language Processing (NLP) introduces unique challenges. Unlike image data, text sequences exhibit hierarchical, variable-length dependencies that require specialized architectural considerations. NAS for NLP must account for token embeddings, attention mechanisms, and recurrent or transformer-based structures.
Search Space Design for NLP
The search space for NLP architectures typically includes:
- Token Embedding Layers: Options include static (e.g., GloVe) or trainable embeddings, with dimensionality as a searchable hyperparameter.
- Sequence Modeling Blocks: Choices between recurrent (LSTM, GRU), convolutional (Temporal CNN), or self-attention layers (Transformer).
- Attention Mechanisms: Multi-head attention, scaled dot-product attention, or dynamic routing mechanisms.
- Skip Connections & Normalization: Residual connections, layer normalization, or batch normalization configurations.
Mathematically, the search space can be formalized as a directed acyclic graph (DAG) where each node represents a computational block (e.g., LSTM, attention) and edges define data flow. The probability of selecting an operation o from a set of candidates O is often parameterized using softmax over architecture weights α:
Optimization Strategies
NAS methods for NLP often employ reinforcement learning (RL), evolutionary algorithms, or gradient-based optimization. In RL-based approaches, a controller network generates architectures, and rewards are based on validation performance. The objective is to maximize expected reward:
where θ represents controller parameters and R(a) is the reward for architecture a. Gradient-based methods, such as DARTS, relax the discrete search space into a continuous one, enabling efficient optimization via backpropagation:
where w* denotes model weights optimized on training data, and α represents architecture parameters.
Case Study: NAS-BERT
NAS has been applied to transformer-based models like BERT, where the search space includes the number of layers, attention heads, and hidden dimensions. NAS-BERT achieves competitive performance with fewer parameters by optimizing:
- Layer-wise Heterogeneity: Allowing different attention mechanisms per layer.
- Dynamic Width Scaling: Adjusting hidden dimensions adaptively.
Empirical results show that NAS-designed transformers reduce inference latency by 20% while maintaining accuracy on GLUE benchmarks.
Challenges & Future Directions
Key challenges in NAS for NLP include:
- High Computational Cost: Training candidate architectures from scratch is prohibitive for large-scale language models.
- Transferability: Architectures optimized for one task may not generalize well across languages or domains.
- Multi-Objective Trade-offs: Balancing model size, latency, and accuracy requires Pareto-optimal search strategies.
Recent advances leverage weight-sharing (e.g., One-Shot NAS) and meta-learning to accelerate search. Future work may explore differentiable NAS for dynamic architectures that adapt to input complexity.

NAS in Edge and Mobile Devices
Neural Architecture Search (NAS) for edge and mobile devices introduces unique constraints not present in cloud-based deployments. The primary challenges include stringent computational budgets, limited memory, and energy efficiency requirements. Traditional NAS methods, which often rely on heavy-weight search spaces and compute-intensive optimization, must be adapted to meet these constraints without sacrificing model accuracy.
Key Constraints in Edge NAS
Edge devices operate under hard limits on latency, power consumption, and model size. These constraints translate into specific optimization objectives during NAS:
- Latency: Inference must occur within real-time thresholds, often below 100ms.
- Energy Efficiency: Battery-powered devices require minimal FLOPs per inference.
- Model Size: On-device storage limitations demand compact architectures, typically under 5MB.
These objectives are often conflicting, requiring multi-objective optimization techniques. The Pareto front becomes critical for evaluating trade-offs between accuracy, latency, and energy consumption.
Efficient Search Spaces for Edge NAS
Designing a search space tailored for edge devices involves:
- Mobile-Friendly Operations: Depthwise separable convolutions, inverted residuals, and squeeze-excitation blocks replace standard convolutions.
- Channel Scaling: Dynamic width multipliers adjust the number of filters per layer based on target device constraints.
- Kernel Size Reduction: Preference for 3×3 or smaller kernels to minimize compute overhead.
Mathematically, the search space can be formalized as a directed acyclic graph (DAG) where each node represents a tensor and edges represent mobile-optimized operations. The optimization problem becomes:
where α parameterizes the architecture, B represents resource budgets, and fα is the neural network.
Hardware-Aware NAS
Modern edge NAS incorporates hardware feedback directly into the search loop. This involves:
- On-device Profiling: Measuring actual latency and power consumption on target hardware during search.
- Differentiable Hardware Metrics: Creating differentiable proxies for non-differentiable constraints like latency using lookup tables or neural predictors.
- Quantization-Aware Search: Jointly optimizing architecture and quantization policy to maximize accuracy under 8-bit or lower precision.
The hardware feedback loop transforms the optimization into:
where Lat(α) and Energy(α) are hardware-measured metrics, and λ terms balance the objectives.
Case Study: MobileNetV3
The MobileNetV3 architecture, discovered through hardware-aware NAS, demonstrates key innovations for edge deployment:
- Platform-Aware Scaling: Different width multipliers for high-end vs. low-end mobile processors.
- NetAdapt: An iterative pruning algorithm that directly optimizes for latency on target devices.
- Hybrid NAS: Combines reinforcement learning for macro-architecture with gradient-based search for micro-architecture.
On a Pixel 4, MobileNetV3 achieves 75.2% ImageNet accuracy at just 1.8ms latency, demonstrating the effectiveness of hardware-aware NAS for edge scenarios.
Emerging Directions
Recent advances push the boundaries of edge NAS:
- Once-for-All Networks: Train one supernet that can be specialized to arbitrary edge constraints without retraining.
- Neural Hardware Transformers: Architectures that dynamically adapt their structure based on current device thermal and power state.
- TinyML NAS: Search techniques targeting microcontrollers with <1MB memory, using extreme quantization and pruning.
These approaches are redefining what's possible in bringing state-of-the-art AI to the most resource-constrained environments.
5. Key Research Papers
5.1 Key Research Papers
- NAS-BNN: Neural Architecture Search for Binary Neural Networks — To address the aforementioned challenges, researchers leverage Neural Architecture Search (NAS) to automatically design a series of BNNs [12], [13], [14], [15].For example, BNAS [12] and BATS [13] employ differentiable NAS on their carefully designed cell-based search spaces. Binary MobileNet [15] uses weight-sharing NAS to explore the best candidate for the number of groups and find a tiny ...
- PDF Are Labels Necessary for Neural Architecture Search? - ecva.net — Keywords: Neural Architecture Search; Unsupervised Learning 1 Introduction Neural architecture search (NAS) has emerged as a research problem of searching for architectures that perform well on target data and tasks. A key mystery sur-rounding NAS is what factors contribute to the success of the search. Intuitively,
- BNAS: An Efficient Neural Architecture Search Approach Using Broad ... — effective way to develop more efficient NAS approach. In this paper, we propose Broad Neural Architecture Search (BNAS), an automatic architecture search approach with state-of-the-art efficiency. Different from other NAS approaches, in BNAS, an elaborately designed broad scalable architecture dubbed Broad Convolutional Neural Network (BCNN ...
- Systematic review on neural architecture search | Artificial ... — The query string used for this search was "Neural Architecture Search (NAS)," "architecture searching algorithm," and "predict performance." After eliminating duplicated publications, pruning non-related papers, and adding our pre-studied papers to this collection, 160 papers were accumulated.
- PDF UP-NAS: Unified Proxy for Neural Architecture Search - CVF Open Access — Integration-Lab/UP-NAS. 1. Introduction Neural architecture search (NAS) is an automated machine learning method that aims to find optimal model structures by searching the neural network architecture space. Tradi-tional deep learning models require experts to design the model structure. NAS simplifies this process by automat-
- NAS-SE: Designing A Highly-Efficient In-Situ Neural Architecture Search ... — The emergence of Neural Architecture Search (NAS) enables an automated neural network development process that potentially replaces manually-enabled machine learning expertise. A state-of-the-art NAS method, namely One-Shot NAS, has been proposed to drastically reduce the lengthy search time for a wide spectrum of conventional NAS methods ...
- PDF RENAS: Reinforced Evolutionary Neural Architecture Search - CVF Open Access — Reinforced Evolutionary Neural Architecture Search (RE-NAS), which is an evolutionary method with reinforced mu-tation for NAS. Our method integrates reinforced mutation into an evolution algorithm for neural architecture explo-ration, inwhich a mutationcontroller isintroduced to learn the effects of slight modifications and make mutation ac ...
- Neural Architecture Search for Generative Adversarial Networks: A ... — Neural Architecture Search (NAS) has emerged as a pivotal technique in optimizing the design of Generative Adversarial Networks (GANs), automating the search for effective architectures while addressing the challenges inherent in manual design. This paper provides a comprehensive review of NAS methods applied to GANs, categorizing and comparing various approaches based on criteria such as ...
- Cross task neural architecture search for EEG signal recognition — Our approach is inspired by Neural Architecture Search (NAS) framework [78], [42], [7], [68], which introduces the automatic design of artificial neural networks.Yet, previous explorations are mostly in the computer vision area. By utilizing NAS, we increase the automation level into mostly manually designed structure in EEG field.Moreover, this could bring neural network customization ...
- A survey on computationally efficient neural architecture search — The rest of this paper is organized as follows. Section 2 provides the definition and mathematical formulation of NAS as an optimization problem, along with a brief overview of the development of NAS methods. Section 3 gives a detailed investigation of proxy-based NAS, which covers low-fidelity estimation, one-shot NAS and network morphism. Section 4 presents a systematical analysis of ...
5.2 Open-Source NAS Tools
- Enhanced Neural Architecture Search Using Super Learner and Ensemble ... — Neural Architecture Search (NAS) enables multiple architectures to be evaluated prior to selection of the optimal architecture. A system integrating open-source tools for Neural Architecture Search (OpenNAS) of image classification problems has been developed and made available to the open-source community. OpenNAS takes any dataset of ...
- PDF BN-NAS: Neural Architecture Search With Batch Normalization — We present BN-NAS, neural architecture search with Batch Normalization (BN-NAS), to accelerate neural ar-chitecture search (NAS). BN-NAS can significantly reduce the time required by model training and evaluation in NAS. Specifically, for fast evaluation, we propose a BN-based in-dicator for predicting subnet performance at a very early ...
- PDF RENAS: Reinforced Evolutionary Neural Architecture Search - CVF Open Access — Reinforced Evolutionary Neural Architecture Search (RE-NAS), which is an evolutionary method with reinforced mu-tation for NAS. Our method integrates reinforced mutation into an evolution algorithm for neural architecture explo-ration, inwhich a mutationcontroller isintroduced to learn the effects of slight modifications and make mutation ac ...
- Fast Data Aware Neural Architecture Search via Supernet Accelerated ... — In particular, Hardware Aware Neural Architecture Search (NAS) is regarded as a promising research direction to scale the process of creating lean TinyML systems. Alongside scaling the creation of TinyML systems, the speed at which NAS evaluates Neural Network (NN) architectures has also proven useful for creating higher-performing ...
- Network-aware federated neural architecture search — Neural Architecture Search is the process of building the best-performing neural network architecture for a given task in an automated way. NAS has already shown success in various tasks [17], [18], [19]. One of the prior works [6] by Google Brain utilized Reinforcement Learning (RL) in the neural architecture search process. The proposed ...
- Neural architecture search with interpretable meta-features and fast ... — This paper proposes a Prediction-based NAS method named MbML-NAS (Model-based Meta-Learning for NAS) that learns from neural architectures' meta-information and prior model performances to predict and find accurate ConvNets.MbML-NAS employs traditional regression models as meta-predictors, such as linear models and decision trees, thus predicting the performances of ConvNets to select the best ...
- Rapid Neural Architecture Search by Learning to Generate ... - GitHub — Despite the success of recent Neural Architecture Search (NAS) methods on various tasks which have shown to output networks that largely outperform human-designed networks, conventional NAS methods have mostly tackled the optimization of searching for the network architecture for a single task (dataset), which does not generalize well across multiple tasks (datasets).
- RaNAS: Resource-Aware Neural Architecture Search for Edge Computing — On the other hand, new trends are emerging that deploy models on edge devices to avoid data transmission and enable adaptive learning [].However, Neural Architecture Search (NAS) [7, 42] for edge devices is time-consuming.This is primarily due to the need to transfer new models to remote edge devices, deploy and execute each model on these devices, and gather performance data to compare ...
- Neural Architecture Search using Particle Swarm and Ant Colony Optimization — Neural architecture search is the process of automatically finding and tuning DNNs. It has been shown that DNNs have made remarkable progress in solving many real world problems such as image recognition, speech recognition and machine translation[].In general, NAS systems consist of three main components: a search space, a search algorithm and an evaluation strategy.
5.3 Recommended Books and Surveys
- GitHub - GraphNAS/Awesome-NAS: A curated list of neural architecture ... — A curated list of neural architecture search (NAS) resources. - GraphNAS/Awesome-NAS ... for Best Speed/Accuracy Trade-off in Neural Architecture Search: CVPR: EA: github: SNAS: stochastic neural architecture search: ICLR: G- ... Neural Architecture Search: A Survey Thomas Elsken, Jan Hendrik Metzen, Frank Hutter. arXiv 1808 ...
- ATNAS: Automatic Termination for Neural Architecture Search — The success of such representation learning has been driven by improvements in neural architectures. However, limits to the heuristic designing of neural architectures remain. Neural architecture search (NAS) is designed to automate such architecture engineering of neural network models (Elsken et al., 2019, Ren et al., 2021, White et al., 2023).
- A Comprehensive Survey of Neural Architecture Search: Challenges and ... — Neural Architecture Search ( NAS ) is just such a revolutionary algorithm, and the related research work is complicated and rich. Therefore, a comprehensive and systematic survey on the NAS is ...
- Evolutionary neural architecture search combining multi-branch ConvNet ... — Early NAS approaches 24 usually utilize the global search space that requires using a search strategy with the ability to search all necessary components of the architecture, which means the optimal neural architecture requires to be discovered within a huge search space. In contrast, modular search space simplifies to only search one or more ...
- PDF E-DNAS: Differentiable Neural Architecture Search for Embedded Systems — Neural Architecture Search (NAS) [5, 6, 7] approaches. These techniques aim to automatically design light and accurate DNNs by optimizing over a search space dened by all possible operations of the target architecture. This optimization is carried on using either reinforcement learning [5, 6] or evolutionary computing [7].
- Graph Neural Architecture Search: A Survey - IEEE Xplore — Differences with existing surveys. The studies involving Graph-NAS surveys are limited. Xie et al.[19] provided an exhaustive enumeration of optimization strategies in neural architecture search.Although their work slightly tackled Graph-NAS, it is not emphasized on Graph-NAS challenges andwas publishedat the time when there were just a few ...
- A survey on computationally efficient neural architecture search — To counter this problem, Neural Architecture Generator Operation (NAGO) [120] considered NAS as a search for the best network generator, and built a novel graph-based hierarchical search space which can cover a wide range of network architectures with only a few hyperparameters. Consequently, the problem dimensionality was greatly reduced ...
- Graph Neural Architecture Search: A Survey — Abstract illustration of Graph-NAS frameworks. The search algorithm samples an architecture s from a predefined search space S. The performance of s is determined and evaluated according to the ...
- Progressive Neural Architecture Search | SpringerLink — In this section we describe the neural network architecture search space used in our work. We build on the hierarchical approach proposed in [], in which we first learn a cell structure, and then stack this cell a desired number of times, in order to create the final CNN.3.1 Cell Topologies. A cell is a fully convolutional network that maps an \(H \times W \times F\) tensor to another \(H ...
- (PDF) Neural architecture search for resource constrained hardware ... — NAS, Neural Architecture Search. Generic CNN architecture. For each layer an operator is chosen among a pre‐defined list (convolution, dilated convolution, depthwise convolution, maxpooling ...








