[Paper Review] Grid Search, Random Search, Genetic Algorithm: A Big Comparison for NAS
The paper benchmark compares grid search, random search, and a genetic algorithm for neural architecture search on CIFAR-10, reporting training time and model accuracy across search strategies.
In this paper, we compare the three most popular algorithms for hyperparameter optimization (Grid Search, Random Search, and Genetic Algorithm) and attempt to use them for neural architecture search (NAS). We use these algorithms for building a convolutional neural network (search architecture). Experimental results on CIFAR-10 dataset further demonstrate the performance difference between compared algorithms. The comparison results are based on the execution time of the above algorithms and accuracy of the proposed models.
Motivation & Objective
- Motivate the use of classical hyperparameter optimization algorithms for NAS as alternatives to Auto-ML frameworks.
- Define a constrained search space for CNN architectures to evaluate different optimization strategies.
- Evaluate and compare the runtime and accuracy of Grid Search, Random Search, and Genetic Algorithm in NAS.
- Provide practical guidelines on which algorithm to choose based on search space size and time constraints.
Proposed method
- Define a basic CNN architecture and extend it by adding convolutional and dense cells to form the search space.
- Apply three optimization strategies (Grid Search, Random Search, Genetic Algorithm) to discover architectures within the defined space.
- Train candidate architectures on CIFAR-10 with standard preprocessing, He initialization, Adamax optimizer, L2 regularization, dropout, and BatchNormalization.
- Measure performance (accuracy) and training time for each candidate architecture over fixed epochs on Nvidia Tesla K80 GPUs.
- For Grid/Search, enumerate combinations of conv and dense cells; for Random Search, sample configurations within defined bounds; for GA, evolve a population of architectures encoding conv/dense counts as genome.
Experimental results
Research questions
- RQ1Which of Grid Search, Random Search, and Genetic Algorithm yields higher accuracy for NAS within the tested search space?
- RQ2How do the algorithms compare in terms of total training time to reach competitive architectures?
- RQ3What are the trade-offs between exploration breadth and computational cost for each method in NAS?
Key findings
- Grid Search yields the best accuracy around 83% for a configuration with 2 convolutional and 2 dense cells.
- Random Search can achieve higher accuracy (best ~86%) in shorter total time than Grid Search but may require more runs to stabilize.
- Genetic Algorithm also achieves ~86% accuracy with longer runtime (~4.13 hours) and provides top models comparable to Random Search.
- Overall, Grid Search is slow for large search spaces; Random Search and GA offer faster or scalable options, with GA potentially favorable for very large spaces.
- The study concludes that the choice of algorithm depends on search space size and time constraints, with GA often beneficial when the space is large and exhaustive search is impractical.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.