Efficient Neural Architecture Search via Parameter Sharing
ENAS uses parameter sharing with a controller RNN to search neural architectures efficiently, reducing GPU time by 1000x, achieving CIFAR-10 error of 2.89%.
Key Findings
Methodology
ENAS employs an RNN controller (LSTM) to sample subgraphs within a large DAG representing the search space. The shared weights ω allow all candidate architectures to avoid training from scratch. The training alternates between optimizing ω via stochastic gradient descent on sampled models and updating the controller θ using REINFORCE to maximize validation rewards. The search space includes both recurrent and convolutional architectures, modeled as DAGs with nodes as computation units and edges as information flow. This setup enables efficient exploration of billions of models with minimal GPU hours.
Key Results
- On Penn Treebank, ENAS discovered a language model with perplexity 55.8, outperforming NAS (62.4), with less than 16 hours GPU time, over 1000x faster. On CIFAR-10, the architecture achieved 2.89% test error, comparable to NASNet’s 2.65%, with only 7 hours of search.
- Parameter sharing drastically reduces training time, enabling the search of over 10^15 models in the recurrent space and 10^11 in convolutional space, with performance comparable or superior to state-of-the-art manually designed models.
- The method demonstrates that high-performance architectures can be found efficiently, making NAS accessible for broader research and industrial deployment.
Significance
This work addresses the main bottleneck of NAS—computational expense—by introducing parameter sharing, which allows rapid exploration of vast architecture spaces. It bridges the gap between research and practical deployment, enabling automatic design of high-quality models with minimal resources. The approach paves the way for democratizing neural architecture design, fostering innovation in AI applications across domains. Its success signals a new era where neural network design can be automated at scale, accelerating progress in AI research and industry.
Technical Contribution
The paper proposes a unified search space represented as a large DAG, with a controller RNN trained via policy gradients to sample architectures. The key innovation is the weight-sharing scheme, which allows all candidate models to share parameters, drastically reducing training costs. The framework supports both recurrent and convolutional architectures, with the controller optimizing over billions of configurations. The combination of reinforcement learning and parameter sharing sets a new standard for efficient NAS, achieving competitive results with orders-of-magnitude less GPU time.
Novelty
This is the first work to incorporate parameter sharing directly into NAS, enabling exploration of enormous architecture spaces without training each candidate from scratch. It unifies the search for recurrent and convolutional cells within a single DAG-based framework, and employs reinforcement learning to guide sampling, resulting in a highly scalable and effective method that surpasses prior approaches in efficiency and performance.
Limitations
- While parameter sharing accelerates search, it may introduce bias toward certain architectures, potentially limiting diversity and optimality in some cases.
- The reliance on reinforcement learning can lead to high variance in gradient estimates, affecting stability and convergence.
- The current method focuses on cell-level design; scaling to full architectures or multi-task scenarios remains challenging and computationally demanding.
Future Work
Future directions include integrating other optimization strategies like evolutionary algorithms, expanding to multi-objective search (e.g., latency-aware models), and applying to larger datasets and tasks. Enhancing stability and diversity of the search process, as well as hardware-aware architecture adaptation, are promising avenues to further improve the method’s practicality and robustness.
AI Executive Summary
Neural architecture search (NAS) has revolutionized the automatic design of deep neural networks, but its widespread adoption has been hindered by enormous computational costs. Traditional NAS methods require training hundreds or thousands of candidate models from scratch, often consuming thousands of GPU hours, which limits accessibility and scalability. Addressing this challenge, the present work introduces ENAS, an efficient NAS framework that leverages parameter sharing to dramatically reduce the search time.
ENAS models the entire search space as a large directed acyclic graph (DAG), where each subgraph corresponds to a candidate architecture. A controller RNN, trained via reinforcement learning with REINFORCE, samples subgraphs by sequentially selecting edges and operations. The key innovation is that all candidate architectures share a common set of weights, ω, which are trained to minimize the cross-entropy loss over the training data. This weight-sharing scheme allows the controller to evaluate many architectures without retraining each from scratch, leading to a speedup of over 1000 times compared to traditional NAS.
The experimental results demonstrate the effectiveness of ENAS across tasks. On Penn Treebank, the discovered language model achieves a perplexity of 55.8, surpassing NAS’s 62.4, with less than 16 hours of GPU time. On CIFAR-10, the designed convolutional architecture attains a test error of 2.89%, comparable to NASNet’s 2.65%, but with only 7 hours of search. These findings highlight that high-quality models can be found efficiently, making NAS feasible for broader use.
Overall, ENAS represents a significant leap forward in automated neural architecture design. By combining reinforcement learning with parameter sharing, it offers a scalable, resource-efficient solution that maintains state-of-the-art performance. Its success opens new avenues for research, enabling rapid iteration and deployment of neural networks across diverse applications, from language modeling to computer vision.
Deep Analysis
Background
The field of neural architecture search (NAS) emerged as a promising approach to automate the design of neural networks, reducing reliance on manual trial-and-error. Early methods like Zoph and Le (2017) utilized reinforcement learning controllers to generate architectures, achieving state-of-the-art results in image classification and language modeling. However, these approaches required training each candidate architecture from scratch, often consuming hundreds to thousands of GPU hours, which limited their practical deployment. Recent efforts incorporated transfer learning, proxy tasks, and weight-sharing techniques to mitigate costs, but many still faced scalability issues. The core challenge remained: how to efficiently explore vast architecture spaces without prohibitive computational expense. This paper advances the field by integrating a parameter sharing scheme within a reinforcement learning framework, enabling rapid and scalable architecture search.
Core Problem
Despite the success of NAS in automating model design, its high computational cost remains a critical barrier. Traditional NAS methods involve training each candidate architecture independently, which is extremely resource-intensive. For example, NASNet required 450 GPUs over 3-4 days. This limits accessibility, especially for researchers with limited resources, and hampers rapid iteration. Additionally, the vast search space—potentially billions of models—makes exhaustive search infeasible. The key problem is how to drastically reduce the search time while maintaining or improving model performance. The challenge is to develop a method that can evaluate many architectures efficiently, ideally within hours, without sacrificing the quality of the discovered models.
Innovation
The primary innovation of this work is the introduction of a weight-sharing mechanism into NAS, allowing all candidate architectures to share a common set of parameters ω. This eliminates the need to train each model from scratch. The search space is represented as a large DAG, with a controller RNN sampling subgraphs that define specific architectures. The controller is trained via policy gradients (REINFORCE) to maximize validation rewards, guiding the search toward high-performing models. The framework supports both recurrent and convolutional architectures, with the ability to explore billions of configurations. This approach significantly reduces computational costs, making NAS accessible and scalable, while achieving competitive or superior performance compared to prior methods.
Methodology
- �� Construct a large DAG representing the entire architecture search space, with nodes as computation units and edges as information flow.
- �� Use an RNN controller (LSTM) to sample subgraphs by sequentially choosing edges and operations (e.g., convolutions, pooling).
- �� Implement a weight-sharing scheme where all candidate architectures share a common set of parameters ω, trained to minimize cross-entropy loss on training data.
- �� Alternately optimize ω (via SGD) with the controller fixed, and optimize the controller θ (via REINFORCE) with ω fixed, based on validation rewards.
- �� During training, the controller samples architectures, which are evaluated using shared weights, and the best-performing architecture is selected for final training.
- �� For recurrent cells, the search space includes sampling previous nodes and activation functions; for convolutional cells, decisions include skip connections and operation types.
- �� The process enables exploration of billions of models efficiently, with the entire search completed in hours rather than days.
Experiments
The experimental setup involves two main tasks: language modeling on Penn Treebank and image classification on CIFAR-10. For Penn Treebank, the goal was to discover recurrent cells with less than 24 million parameters, achieving perplexity 55.8 in under 16 hours GPU time. The architecture was evaluated on validation perplexity, with the best model retrained from scratch. For CIFAR-10, the search space included convolutional cells with over 10^11 configurations; the discovered models achieved test error 2.89%, comparable to NASNet’s 2.65%, with only 7 hours of GPU search. Ablation studies confirmed the importance of parameter sharing and reinforcement learning in accelerating search while maintaining performance. Hyperparameters such as learning rates, regularization, and reward functions were carefully tuned to ensure stability and robustness.
Results
ENAS achieved a perplexity of 55.8 on Penn Treebank, outperforming NAS and other baselines, with GPU time less than 16 hours. On CIFAR-10, the discovered convolutional architecture reached 2.89% test error, close to NASNet’s 2.65%, but with a fraction of the search time. The parameter sharing scheme enabled exploration of over 10^15 recurrent models and 10^11 convolutional models, demonstrating that high-performance architectures can be found efficiently. Ablation experiments showed that removing parameter sharing led to a 50x increase in search time and performance degradation, confirming its critical role. The results validate the scalability and effectiveness of ENAS across tasks.
Applications
ENAS can be applied to automate architecture design in natural language processing, computer vision, and speech recognition, significantly reducing manual effort and expertise required. Its efficiency makes it suitable for resource-constrained environments, enabling rapid prototyping and deployment of models. Additionally, the framework can be extended to multi-objective optimization, such as balancing accuracy and latency, facilitating hardware-aware model design. In industry, ENAS could accelerate the development cycle, reduce costs, and democratize AI research by lowering the barrier to high-performance model discovery.
Limitations & Outlook
Despite its efficiency, ENAS’s reliance on weight sharing may introduce bias toward certain architectures, potentially limiting diversity and optimality. The reinforcement learning component can suffer from high variance in gradient estimates, affecting stability and convergence. The current focus on cell-level search may not fully capture the complexity of entire architectures, especially for large-scale models. Future work should address these issues by integrating other optimization techniques, expanding search spaces, and improving stability and robustness.
Plain Language Accessible to non-experts
想象你在一家厨房里准备做一道复杂的菜。传统方法是每次都用不同的食谱,从头开始试验,耗费时间和材料。而ENAS就像有个聪明的厨师助手,它可以记住所有的食谱模板,把它们的共同部分存起来。每次你想试新菜时,只需告诉它一些简单的变化,比如用什么调料、怎么切菜,它就能迅速组合出许多不同的菜肴。这个助手不用每次都重新做一遍所有步骤,只用调整已有的模板,就能快速试验出最美味的菜。这种方法让你可以在很短时间内尝试各种不同的菜谱,找到最喜欢的那一道。
ELI14 Explained like you're 14
想象你在学校的科学课上要做很多不同的模型,比如火箭、汽车和机器人。每次都要从零开始设计,花费很多时间。而现在,有个超级厉害的助手,它记住了你所有的设计模板,还能帮你组合出新的模型。只要你告诉它一些简单的变化,比如用不同的轮子或者不同的引擎,它就能快速拼出很多新模型。你不用每次都重新做一遍,只需要调整一些细节,就能在短时间内试出好多不同的模型,找到最酷、最稳的那一个。ENAS就像这个聪明的助手,用聪明的方法帮你节省了大量时间,让你更快完成科学项目。
Abstract
We propose Efficient Neural Architecture Search (ENAS), a fast and inexpensive approach for automatic model design. In ENAS, a controller learns to discover neural network architectures by searching for an optimal subgraph within a large computational graph. The controller is trained with policy gradient to select a subgraph that maximizes the expected reward on the validation set. Meanwhile the model corresponding to the selected subgraph is trained to minimize a canonical cross entropy loss. Thanks to parameter sharing between child models, ENAS is fast: it delivers strong empirical performances using much fewer GPU-hours than all existing automatic model design approaches, and notably, 1000x less expensive than standard Neural Architecture Search. On the Penn Treebank dataset, ENAS discovers a novel architecture that achieves a test perplexity of 55.8, establishing a new state-of-the-art among all methods without post-training processing. On the CIFAR-10 dataset, ENAS designs novel architectures that achieve a test error of 2.89%, which is on par with NASNet (Zoph et al., 2018), whose test error is 2.65%.