A Lipschitz Bandits Approach for Continuous Hyperparameter Optimization

Yasong Feng, Weijian Luo, Yimin Huang, Tianyu WangarXiv 2023

Abstract: One of the most critical problems in machine learning is HyperParameter Optimization (HPO), since choice of hyperparameters has a significant impact on final model performance. Although there are many HPO algorithms, they either have no theoretical guarantees or require strong assumptions. To this end, we introduce BLiE -- a Lipschitz-bandit-based algorithm for HPO that only assumes Lipschitz continuity of the objective function. BLiE exploits the landscape of the objective function to adaptively search over the hyperparameter space. Theoretically, we show that $(i)$ BLiE finds an $\epsilon$-optimal hyperparameter with $\mathcal{O} \left( \epsilon^{-(d_z + \beta)}\right)$ total budgets, where $d_z$ and $\beta$ are problem intrinsic; $(ii)$ BLiE is highly parallelizable. Empirically, we demonstrate that BLiE outperforms the state-of-the-art HPO algorithms on benchmark tasks. We also apply BLiE to search for noise schedule of diffusion models. Comparison with the default schedule shows that BLiE schedule greatly improves the sampling speed.

Introduction

Hyperparameter optimization (HPO) is often considered the "black magic" of machine learning. The difference between a mediocre model and a state-of-the-art one frequently hinges on tuning invisible dials like learning rates or momentum weights. Most existing HPO methods fall into two categories: model-based approaches (e.g., Bayesian Optimization), which often lack strong theoretical guarantees, and model-free approaches (e.g., Hyperband), which are robust but often fail to adaptively exploit the objective function's landscape.

The BLiE Algorithm

To address these limitations, the authors introduce BLiE (Batched Lipschitz Exploration). This algorithm frames HPO as a pure-exploration Lipschitz bandit problem. The core assumption is Lipschitz continuity: the principle that if two hyperparameter configurations are close in the search space, their resulting performance will also be similar.

BLiE operates through a four-step batched process:

  1. Partition: The continuous hyperparameter space is divided into "cubes."
  2. Evaluate: A configuration is sampled from each cube and evaluated using a specific budget.
  3. Eliminate: Cubes yielding high losses are discarded.
  4. Refine: The remaining promising cubes are subdivided into smaller sub-cubes for the next round of exploration.
Figure 2: The adaptive partitioning and elimination process of BLiE, showing how the algorithm "zooms in" on optimal regions.

This "zoom and eliminate" strategy allows BLiE to focus computational resources on the most promising areas. Because it operates in batches, it is highly parallelizable and ideal for modern GPU clusters.

Empirical Evaluation

The researchers evaluated BLiE across three distinct environments: a high-dimensional toy example, image classification tasks (MNIST and CIFAR-10), and noise schedule optimization for Denoising Diffusion Probabilistic Models (DDPM).

Figure 3: Performance comparison of BLiE against baseline HPO algorithms across (a) a toy example, (b) MNIST, and (c) CIFAR-10.

Key Results

  • Superior Accuracy: On CIFAR-10, BLiE achieved a test accuracy of 91.2%, significantly higher than Hyperband (87.7%) and Random Search (87.2%) given the same budget.
  • Diffusion Model Acceleration: By using BLiE to find an optimal piece-wise linear noise schedule, the authors achieved high-quality image generation in just 100 to 200 steps, a massive improvement over the standard 1,000-step schedule.
  • Theoretical Efficiency: The paper introduces the "zooming dimension" ($d_z$), showing that BLiE's efficiency scales with the intrinsic difficulty of the search space rather than just the number of hyperparameters.

Conclusion

BLiE offers a compelling middle ground for HPO, combining the adaptivity of model-based methods with the theoretical robustness of model-free ones. While it currently requires estimating the Lipschitz constant and focuses on continuous spaces, its practical success in accelerating diffusion models highlights its potential for real-world machine learning pipelines.

Summary updated

BibTeX
@misc{feng2023lipschitz,
  author = {Yasong Feng and Weijian Luo and Yimin Huang and Tianyu Wang},
  title = {{A Lipschitz Bandits Approach for Continuous Hyperparameter Optimization}},
  year = {2023},
  eprint = {2302.01539},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.01539},
}
Figure