[Paper Review] Critical Hyper-Parameters: No Random, No Cry
This paper proposes Randomly Scrambled Hammersley (S-H) sequences as a superior alternative to random and grid search for hyperparameter optimization in deep learning. By leveraging low-discrepancy sequences that ensure uniform coverage of the hyperparameter space, S-H reduces the number of trials needed to find optimal settings, outperforming random search and Latin Hypercube Sampling (LHS) in both one-shot and Bayesian optimization settings, especially with moderate to large budgets.
The selection of hyper-parameters is critical in Deep Learning. Because of the long training time of complex models and the availability of compute resources in the cloud, "one-shot" optimization schemes - where the sets of hyper-parameters are selected in advance (e.g. on a grid or in a random manner) and the training is executed in parallel - are commonly used. It is known that grid search is sub-optimal, especially when only a few critical parameters matter, and suggest to use random search instead. Yet, random search can be "unlucky" and produce sets of values that leave some part of the domain unexplored. Quasi-random methods, such as Low Discrepancy Sequences (LDS) avoid these issues. We show that such methods have theoretical properties that make them appealing for performing hyperparameter search, and demonstrate that, when applied to the selection of hyperparameters of complex Deep Learning models (such as state-of-the-art LSTM language models and image classification models), they yield suitable hyperparameters values with much fewer runs than random search. We propose a particularly simple LDS method which can be used as a drop-in replacement for grid or random search in any Deep Learning pipeline, both as a fully one-shot hyperparameter search or as an initializer in iterative batch optimization.
Motivation & Objective
- To address the limitations of random and grid search in hyperparameter optimization, where random search may miss critical regions due to unlucky draws and grid search wastes resources on redundant evaluations.
- To evaluate the theoretical and empirical performance of Low Discrepancy Sequences (LDS) in one-shot and iterative hyperparameter optimization for deep learning models.
- To identify a robust, drop-in replacement for random or grid search that ensures better coverage of the hyperparameter space with fewer evaluations.
- To assess the effectiveness of LDS as an initialization method in Bayesian optimization frameworks for hyperparameter tuning.
- To provide a practical, open-source library for adopting LDS in deep learning pipelines.
Proposed method
- The paper uses Randomly Scrambled Hammersley (S-H) sequences, a type of Low Discrepancy Sequence (LDS), to generate hyperparameter configurations that are uniformly distributed across the search space.
- It formalizes one-shot optimization as a non-iterative method where hyperparameter sets are selected in advance and trained in parallel, with performance measured by optimization error.
- Theoretical analysis focuses on volume dispersion and stochastic dispersion to quantify how well a sequence covers the domain, showing that LDS minimizes the maximum unexplored region.
- Empirical evaluation compares S-H against random search, Latin Hypercube Sampling (LHS), and pessimistic fantasizing in Bayesian optimization across multiple benchmark functions and deep learning models.
- The method is applied both as a standalone one-shot search and as an initializer in batch-iterative Bayesian optimization, with results reported as ratios of objective function values.
- The authors introduce a robust variant of LDS—Randomly Scrambled Hammersley with random shift—that avoids the pitfalls of other LDS variants like Sobol or unscrambled Halton.
Experimental results
Research questions
- RQ1Can Low Discrepancy Sequences (LDS) outperform random search in terms of optimization error with fewer evaluations in deep learning hyperparameter tuning?
- RQ2How does LDS compare to grid search when only a few hyperparameters are critical to model performance?
- RQ3Can LDS serve as an effective initialization for iterative Bayesian optimization, particularly in comparison to random or LHS sampling?
- RQ4Does the choice of LDS variant significantly affect performance, and which is most robust across different settings?
- RQ5What is the impact of parameter ranking on LDS performance, especially when some hyperparameters are more influential than others?
Key findings
- Randomly Scrambled Hammersley (S-H) sequences consistently outperform random search and LHS in one-shot hyperparameter optimization, reducing the number of trials needed to find optimal configurations.
- S-H achieves a 100% success rate in finding the global optimum within ε distance under sufficient sampling, unlike random search, which can fail due to unlucky draws.
- In Bayesian optimization, S-H-initialized methods outperform random and LHS initialization, and match or exceed the performance of entropy search and pessimistic fantasizing, especially in higher dimensions and with moderate budgets.
- For small budgets (e.g., <10), LHS may outperform S-H, but S-H remains superior for most practical settings with budgets ≥10.
- The theoretical convergence rate of LDS is strictly better than random search for high-confidence quantiles, and S-H is robust against poor hyperparameter ranking.
- The study confirms that only a few hyperparameters are typically critical, and LDS efficiently explores these by minimizing redundant evaluations.
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.