TL;DR
This paper introduces DNGO (Deep Networks for Global Optimization), a method that swaps out the traditional Gaussian Process (GP) in Bayesian Optimization for a Deep Neural Network. By using a neural network to learn adaptive basis functions, the authors achieve linear scaling with the number of observations ($O(N)$) instead of the cubic scaling ($O(N^3)$) required by GPs, enabling massive parallelization and the optimization of complex models like large-scale CNNs.
What Problem Does This Paper Address?
Bayesian Optimization (BO) is the gold standard for tuning "expensive" black-box functions—like the hyperparameters of a deep learning model that takes days to train. Traditionally, BO relies on Gaussian Processes (GPs) to model the objective function.
However, GPs have a fatal flaw for large-scale work: to make a prediction, they must invert a covariance matrix, a process that scales 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 "tuner" itself becomes a computational bottleneck. This paper seeks to break that bottleneck, allowing BO to scale to thousands of observations and high degrees of parallelism.
Methods
The authors propose DNGO, which treats a neural network as a feature extractor for Bayesian Linear Regression.
- Adaptive Basis Functions: Instead of using a fixed kernel (like in a GP), they train a deep neural network to learn a set of basis functions $\phi(x)$. These are essentially the outputs of the last hidden layer.
- Bayesian Linear Regression: They keep the weights of the final output layer probabilistic. By performing Bayesian linear regression on top of the learned features, they can still produce a predictive mean and, crucially, a predictive variance (uncertainty), which is required for the "Expected Improvement" acquisition function.
- Design Choices for Uncertainty: They found that standard ReLU activations produce poor uncertainty estimates because they are unbounded. Instead, they use tanh activations to ensure the basis functions are bounded, leading to more stable and realistic uncertainty envelopes.
- Quadratic Prior: To help the model handle the boundaries of the search space (where data is often sparse), they incorporate a prior mean function that assumes the objective is roughly a convex quadratic.
- Parallelization via "Fantasies": To handle multiple experiments running at once, they use a Monte Carlo strategy: they generate "fantasy" outcomes for pending experiments based on the current model's posterior, allowing the tuner to pick the next best point while accounting for what is already being calculated.
Datasets
The authors evaluated DNGO across several challenging domains:
- HPOLib Benchmarks: Standard global optimization tests including Branin and Hartmann6 functions, as well as hyperparameter tuning for Logistic Regression, LDA, and SVMs.
- MS COCO 2014: Used for tuning a log-bilinear model for image caption generation.
- CIFAR-10 & CIFAR-100: Used to tune a high-performance convolutional neural network (CNN) architecture.
Key Insights and Ideas
- Linear Scaling is the Game Changer: Because DNGO scales linearly with the number of observations, the time to suggest a new experiment stays nearly flat as the search progresses. In contrast, GP-based methods (like Spearmint) see their overhead explode after a few hundred observations.
- Activation Functions Affect "Awareness": The discovery that ReLUs are bad for Bayesian Optimization is an "aha" moment. Because ReLUs can output increasingly large values for inputs far from the data, the model's uncertainty becomes poorly calibrated in unexplored regions. Tanh keeps the model "grounded."
- The Power of Parallelism: By reducing the model's overhead, 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 training in less than a week.
Key Results
- Computational Efficiency: On the Hartmann6 benchmark, DNGO's overhead per iteration remained under 1,000 seconds even at 2,000 observations, while the GP-based Spearmint exceeded 5,000 seconds and continued to climb cubically.
- Optimization Performance: DNGO was competitive with or outperformed state-of-the-art scalable methods (like SMAC and TPE) on standard benchmarks.
- State-of-the-Art Vision Results: By tuning a generic CNN architecture, they achieved a 6.37% error rate on CIFAR-10 and 27.4% on CIFAR-100, which were highly competitive results at the time of publication.
- Image Captioning: Their tuned log-bilinear model achieved a BLEU-4 score of 26.7 on MS COCO, outperforming more complex LSTM-based models of that era.
Limitations and Future Work
- Point Estimates for Features: While the last layer is Bayesian, the rest of the neural network (the basis functions) is trained using a point estimate (MAP). This means the model might still be overconfident because it doesn't account for uncertainty in the feature learning process itself.
- Basis Function Dimension: While the method scales linearly with $N$, it scales cubically with the number of basis functions ($D$). The authors used $D \approx 50$, but for extremely complex functions, more basis functions might be needed, reintroducing a bottleneck.
- Future Directions: The authors suggest exploring Sparse Gaussian Processes or more fully Bayesian treatments of the neural network weights (e.g., using MCMC or variational inference) to further improve uncertainty calibration without sacrificing the $O(N)$ scaling.
Summary updated