[Paper Review] NAS-Bench-NLP: Neural Architecture Search Benchmark for Natural Language Processing
This paper introduces NAS-Bench-NLP, the first neural architecture search benchmark for natural language processing based on recurrent neural networks (RNNs). It provides precomputed performance metrics for 14,000 RNN architectures trained on language modeling tasks, enabling reproducible evaluation and NAS algorithm benchmarking across intrinsic (word similarity) and extrinsic (GLUE) tasks, with LSTM and GRU consistently achieving top performance.
Neural Architecture Search (NAS) is a promising and rapidly evolving research area. Training a large number of neural networks requires an exceptional amount of computational power, which makes NAS unreachable for those researchers who have limited or no access to high-performance clusters and supercomputers. A few benchmarks with precomputed neural architectures performances have been recently introduced to overcome this problem and ensure more reproducible experiments. However, these benchmarks are only for the computer vision domain and, thus, are built from the image datasets and convolution-derived architectures. In this work, we step outside the computer vision domain by leveraging the language modeling task, which is the core of natural language processing (NLP). Our main contribution is as follows: we have provided search space of recurrent neural networks on the text datasets and trained 14k architectures within it; we have conducted both intrinsic and extrinsic evaluation of the trained models using datasets for semantic relatedness and language understanding evaluation; finally, we have tested several NAS algorithms to demonstrate how the precomputed results can be utilized. We believe that our results have high potential of usage for both NAS and NLP communities.
Motivation & Objective
- To address the lack of reproducible, accessible NAS benchmarks for NLP by creating a precomputed benchmark for RNN-based architectures.
- To enable fair and efficient comparison of NAS algorithms without requiring extensive training resources.
- To evaluate architecture performance across intrinsic (word embeddings) and extrinsic (GLUE) NLP tasks.
- To demonstrate the utility of the benchmark by testing multiple NAS algorithms on the same search space.
- To release all trained architectures and metrics to support community-wide research and model comparison.
Proposed method
- Defined a novel RNN-derived search space including LSTM, GRU, and other RNN variants with configurable connectivity and cell types.
- Trained 14,000 unique architectures on language modeling tasks using standard text datasets.
- Conducted intrinsic evaluation via word similarity tests on static word embeddings.
- Performed extrinsic evaluation using downstream GLUE benchmark tasks to assess transfer performance.
- Implemented a simulation environment to measure training wall time, validation perplexity, and test log perplexity for NAS algorithm benchmarking.
- Used graph2vec to embed architecture graphs into low-dimensional feature spaces for use in Bayesian optimization and other NAS methods.
Experimental results
Research questions
- RQ1How do RNN-based architectures perform across different NLP tasks when evaluated via both intrinsic and extrinsic metrics?
- RQ2Can precomputed performance data from a large-scale RNN search space enable effective and efficient NAS algorithm benchmarking?
- RQ3How do hand-crafted architectures like LSTM and GRU compare globally to randomly sampled architectures in the search space?
- RQ4To what extent does performance generalize across different language modeling datasets?
- RQ5How do different NAS algorithms (e.g., Hyperband, Bayesian Optimization) perform when using the precomputed metrics in a simulated NAS setting?
Key findings
- The benchmark contains 14,000 pre-trained RNN architectures with complete performance metrics on language modeling and downstream GLUE tasks.
- LSTM and GRU architectures consistently achieved the lowest test log perplexity (L* = 4.36), confirming their strong performance on a global scale.
- Performance across datasets showed high correlation, indicating that results on one dataset are predictive of performance on others.
- Hyperband achieved the lowest final regret in NAS algorithm benchmarking, followed closely by Bayesian Optimization with 50D graph2vec features.
- The distribution of perplexity values was not skewed toward the optimum, indicating that high-performing architectures are rare and not easily found by random search.
- The benchmark revealed several alternative architectures with performance comparable to LSTM and GRU, suggesting potential for novel, effective RNN designs.
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.