Abstract
Bayesian optimization is an effective methodology for the global optimization of functions with expensive evaluations. It relies on querying a distribution over functions defined by a relatively cheap surrogate model. An accurate model for this distribution over functions is critical to the effectiveness of the approach, and is typically fit using Gaussian processes (GPs). However, since GPs scale cubically with the number of observations, it has been challenging to handle objectives whose optimization requires many evaluations, and as such, massively parallelizing the optimization. In this work, we explore the use of neural networks as an alternative to GPs to model distributions over functions. We show that performing adaptive basis function regression with a neural network as the parametric form performs competitively with state-of-the-art GP-based approaches, but scales linearly with the number of data rather than cubically. This allows us to achieve a previously intractable degree of parallelism, which we apply to large scale hyperparameter optimization, rapidly finding competitive models on benchmark object recognition tasks using convolutional networks, and image caption generation using neural language models.
TL;DR
Bayesian Optimization (BO) is a powerful tool for tuning expensive "black-box" functions, but its traditional reliance on Gaussian Processes (GPs) creates a computational bottleneck that scales cubically with data. This paper introduces DNGO (Deep Networks for Global Optimization), which replaces GPs with deep neural networks to achieve linear scaling. This shift enables massive parallelism, allowing researchers to tune complex models like CNNs and image captioning systems using thousands of observations.
The Computational Bottleneck
In machine learning, finding the best hyperparameters (like learning rate or layer size) is often an "expensive" problem—each trial might take hours or days. Bayesian Optimization handles this by building a "surrogate model" to predict which hyperparameters are worth trying next.
Traditionally, Gaussian Processes (GPs) are the surrogate model of choice because they provide excellent uncertainty estimates. However, GPs have a fatal flaw for big data: their computational cost grows cubically ($O(N^3)$) with the number of observations ($N$). As you gather more data or try to run hundreds of experiments in parallel, the GP becomes slower than the actual function you are trying to optimize. The authors aim to break this "cubic wall" to enable large-scale, highly parallel hyperparameter optimization.
DNGO: Deep Networks for Global Optimization
The authors propose DNGO, which treats a Deep Neural Network as a feature extractor for Bayesian Linear Regression. The process involves:
- Adaptive Basis Functions: A neural network is trained to map input hyperparameters to a target value (e.g., validation error). The outputs of the last hidden layer are treated as "basis functions" $\phi(x)$.
- Bayesian Linear Regression: Instead of using a standard linear output layer, the authors perform Bayesian linear regression on top of these learned features. This provides the closed-form posterior mean and variance necessary for BO.
- Activation Functions: The authors found that standard ReLU activations perform poorly for BO because they are unbounded, leading to unrealistic uncertainty estimates. They instead use tanh activations, which produce smoother, better-calibrated uncertainty envelopes.
Scaling and Parallelism
Because the Bayesian part only happens at the last layer, the complexity depends on the number of hidden units ($D$), not the number of observations ($N$). This results in $O(N)$ scaling.
To handle multiple experiments running at once, they use a "Monte Carlo" approach. They generate "fantasy" outcomes for pending experiments to marginalize over the uncertainty of ongoing trials when picking the next point to sample. By removing the GP bottleneck, the authors were able to run up to 800 experiments in parallel. This allowed them to complete the equivalent of 2,700 CPU days of computation in less than a week.
Key Results
- Efficiency: DNGO matched the statistical efficiency of GPs on small-scale benchmarks while significantly outperforming other scalable methods like SMAC (Random Forests) and TPE (Tree Parzen Estimators).
- Object Recognition: On CIFAR-10, DNGO found a configuration that achieved a 6.37% test error, which was state-of-the-art for a single model at the time. On CIFAR-100, it reached 27.4%.
- Image Captioning: For the MS COCO task, DNGO optimized a model that achieved a BLEU-4 score of 26.7 (using a 3-model ensemble), outperforming several complex LSTM-based models of that era.
Limitations and Future Work
While DNGO offers significant speedups, it introduces its own set of challenges. The DNGO model itself has hyperparameters (number of layers, units, etc.) that may require tuning for different problems. Additionally, the weights of the neural network (excluding the last layer) are fit using Maximum A Posteriori (MAP) estimation rather than full Bayesian inference. This is a pragmatic choice for speed, but it means the model might still be overconfident or miss certain nuances of the objective function. Finally, neural networks may lack some of the specific inductive biases (like periodicity) that can be easily baked into GP kernels.
Summary updated