[Paper Review] Manas: Mining Software Repositories to Assist AutoML
Manas proposes a novel neural architecture search (NAS) approach that leverages mined deep learning models from GitHub repositories as better starting points than default architectures, using common layer patterns as mutation operators. Evaluated on Kaggle's top 8 problems, Manas achieves comparable or better accuracy with 42.9% to 99.6% fewer parameters and up to 641.6% faster training than Auto-Keras, significantly improving model efficiency without sacrificing performance.
Today deep learning is widely used for building software. A software engineering problem with deep learning is that finding an appropriate convolutional neural network (CNN) model for the task can be a challenge for developers. Recent work on AutoML, more precisely neural architecture search (NAS), embodied by tools like Auto-Keras aims to solve this problem by essentially viewing it as a search problem where the starting point is a default CNN model, and mutation of this CNN model allows exploration of the space of CNN models to find a CNN model that will work best for the problem. These works have had significant success in producing high-accuracy CNN models. There are two problems, however. First, NAS can be very costly, often taking several hours to complete. Second, CNN models produced by NAS can be very complex that makes it harder to understand them and costlier to train them. We propose a novel approach for NAS, where instead of starting from a default CNN model, the initial model is selected from a repository of models extracted from GitHub. The intuition being that developers solving a similar problem may have developed a better starting point compared to the default model. We also analyze common layer patterns of CNN models in the wild to understand changes that the developers make to improve their models. Our approach uses commonly occurring changes as mutation operators in NAS. We have extended Auto-Keras to implement our approach. Our evaluation using 8 top voted problems from Kaggle for tasks including image classification and image regression shows that given the same search time, without loss of accuracy, Manas produces models with 42.9% to 99.6% fewer number of parameters than Auto-Keras' models. Benchmarked on GPU, Manas' models train 30.3% to 641.6% faster than Auto-Keras' models.
Motivation & Objective
- To address the high computational cost and model complexity of existing neural architecture search (NAS) techniques in AutoML.
- To improve NAS efficiency and model simplicity by replacing default models with hand-crafted models mined from open-source repositories.
- To identify and utilize common layer patterns from real-world models to guide more effective and efficient search.
- To reduce training time and model complexity while maintaining or improving accuracy in image classification and regression tasks.
- To extend Auto-Keras with model matching, adaptation, transformation, and training adaptation techniques for better NAS performance.
Proposed method
- Mining GitHub repositories to extract and index convolutional neural network (CNN) models used in real-world deep learning applications.
- Applying model matching to map the target problem’s data characteristics to the most relevant mined models based on meta-features like dataset size, class count, and image dimensions.
- Using model adaptation to modify the architecture of mined models to fit the target problem’s input and output specifications.
- Defining and applying common layer transformation patterns—such as adding or replacing layers—based on frequent changes observed in real developer code to guide effective mutation during NAS.
- Leveraging trained parameter values from mined models to initialize optimizers, enabling faster convergence during training (training adaptation).
- Extending Auto-Keras with these components to create a new NAS pipeline that starts from high-quality, human-validated models rather than default architectures.
Experimental results
Research questions
- RQ1Can mining real-world deep learning models from public repositories improve the starting point for neural architecture search compared to default models?
- RQ2How do common layer patterns in developer-written models inform better mutation operators for NAS?
- RQ3To what extent can model mining reduce model complexity and training time while preserving or improving accuracy in AutoML tasks?
- RQ4Can the integration of mined models and their transformation patterns lead to faster convergence and lower resource consumption in NAS?
- RQ5How does the performance of NAS using mined models compare to state-of-the-art NAS frameworks like Auto-Keras in terms of accuracy, parameter count, and training speed?
Key findings
- Manas produces models with 42.9% to 99.6% fewer parameters than Auto-Keras under the same search time, significantly reducing model complexity.
- On GPU, Manas models train 30.3% to 641.6% faster than Auto-Keras models, demonstrating substantial efficiency gains.
- Manas maintains or improves model accuracy compared to Auto-Keras, achieving comparable or better performance on image classification and regression tasks.
- The use of mined models as starting points leads to faster convergence, as evidenced by the training adaptation technique that leverages pre-trained weights from repositories.
- The identified common layer patterns from real-world models serve as effective mutation operators, enabling more efficient exploration of the search space.
- The integration of model matching and adaptation techniques enables effective transfer of knowledge from diverse, real-world models to new, unseen problems.
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.