[Paper Review] Hyperparameter Optimization: A Spectral Approach
This paper introduces Harmonica, a spectral hyperparameter optimization method that leverages compressed sensing and orthogonal polynomial approximations to efficiently minimize high-dimensional, structured loss functions. By assuming the objective function is a low-degree, sparse polynomial in the Fourier domain, Harmonica achieves provably sample-efficient, parallelizable optimization, outperforming Bayesian optimization, Hyperband, and Random Search in both accuracy and speed—demonstrated on deep learning tasks with up to 10× faster convergence and improved generalization.
We give a simple, fast algorithm for hyperparameter optimization inspired by techniques from the analysis of Boolean functions. We focus on the high-dimensional regime where the canonical example is training a neural network with a large number of hyperparameters. The algorithm --- an iterative application of compressed sensing techniques for orthogonal polynomials --- requires only uniform sampling of the hyperparameters and is thus easily parallelizable. Experiments for training deep neural networks on Cifar-10 show that compared to state-of-the-art tools (e.g., Hyperband and Spearmint), our algorithm finds significantly improved solutions, in some cases better than what is attainable by hand-tuning. In terms of overall running time (i.e., time required to sample various settings of hyperparameters plus additional computation time), we are at least an order of magnitude faster than Hyperband and Bayesian Optimization. We also outperform Random Search 8x. Additionally, our method comes with provable guarantees and yields the first improvements on the sample complexity of learning decision trees in over two decades. In particular, we obtain the first quasi-polynomial time algorithm for learning noisy decision trees with polynomial sample complexity.
Motivation & Objective
- Address the challenge of hyperparameter optimization (HPO) in high-dimensional, discrete, and expensive-to-evaluate settings common in deep learning.
- Overcome the limitations of grid search, random search, and Bayesian optimization by exploiting structural assumptions on the loss function.
- Develop a provably efficient, parallelizable algorithm that requires only uniform sampling and achieves low sample complexity under sparsity and low-degree polynomial assumptions.
- Demonstrate that real-world HPO problems in deep learning exhibit the required spectral structure, validating the method's practical relevance.
Proposed method
- Model the hyperparameter objective function as a sparse, low-degree polynomial in the Fourier basis over the Boolean hypercube.
- Apply iterative compressed sensing techniques using orthogonal polynomials (e.g., Walsh-Hadamard basis) to recover the function's spectral representation.
- Use Lasso regression with ℓ1 regularization to identify the most influential hyperparameters at each stage of the optimization.
- Implement a multi-stage, greedy feature selection process that progressively refines the search space by focusing on the most informative hyperparameters.
- Leverage parallel sampling: each stage evaluates multiple hyperparameter configurations simultaneously, enabling cloud-scale efficiency.
- Use a base algorithm (e.g., SH or Random Search) in early stages to initialize the search, then refine with spectral recovery for improved convergence.
Experimental results
Research questions
- RQ1Can a spectral approach based on compressed sensing and Fourier analysis achieve provably efficient hyperparameter optimization under low-degree, sparse polynomial assumptions?
- RQ2Does the assumption that deep learning loss functions are approximately low-degree, sparse polynomials hold in practice for real-world datasets like CIFAR-10?
- RQ3How does the proposed method compare in sample efficiency, running time, and solution quality to state-of-the-art HPO methods such as Bayesian optimization, Hyperband, and Random Search?
- RQ4To what extent can the method be parallelized while maintaining accuracy and reducing overall optimization time?
- RQ5What are the stable hyperparameter ranges for key components like the Lasso regularization parameter and number of samples per stage?
Key findings
- Harmonica achieves at least an order of magnitude faster optimization than Hyperband and Bayesian optimization (e.g., Spearmint) on CIFAR-10, with significantly improved test error.
- On deep neural network training, Harmonica outperforms hand-tuned configurations and state-of-the-art tools like Hyperband and Spearmint, finding better solutions in less time.
- For synthetic functions with known hierarchical structure, Harmonica estimates the underlying function with error proportional to the noise level, confirming theoretical robustness.
- The method reduces the effective hyperparameter search space from thousands of dimensions to just six tunable parameters, with stable performance across a wide range of settings.
- In simulations with up to 60 hyperparameters, Harmonica achieves several orders of magnitude speedup over Bayesian optimization, especially in high-dimensional regimes.
- The Lasso regularization parameter λ and sample count per stage have stable ranges (e.g., λ ∈ [0.01,4.5] in Stage 1) where top features and signs remain unchanged, indicating robustness to hyperparameter choice.
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.