Abstract
Bayesian Optimization (BO) is a powerful framework for optimizing expensive black-box functions, yet its performance often hinges on the choice of surrogate model. Traditional Gaussian Processes (GPs) with stationary kernels struggle with non-continuous inputs and functions exhibiting non-stationary behavior. Conversely, tree-based models handle these complexities well but often provide poorly calibrated uncertainty estimates. This paper introduces BARK (Bayesian Additive Regression Trees Kernel), a novel surrogate model that treats the tree structure itself as a component of a fully Bayesian GP. By sampling tree-based kernels via Markov chain Monte Carlo (MCMC) and optimizing acquisition functions through Mixed-Integer Linear Programming (MILP), BARK achieves state-of-the-art performance across mixed-feature optimization tasks while maintaining rigorous uncertainty quantification.
Introduction
Bayesian Optimization is the gold standard for optimizing functions where evaluations are costly, such as hyperparameter tuning for deep neural networks or chemical compound design. Most BO frameworks rely on Gaussian Processes with stationary kernels (e.g., Matérn or Squared Exponential). However, these kernels assume that the function's smoothness is uniform across the search space and struggle to accommodate categorical or integer variables without ad-hoc transformations.
While tree-based models like Random Forests or Bayesian Additive Regression Trees (BART) are naturally suited for mixed-variable and non-stationary data, they typically lack the formal probabilistic foundations required for the acquisition functions used in BO. Previous attempts to bridge this gap—often by fitting a tree and then deriving a kernel—frequently suffer from overfitting and inadequate exploration. BARK addresses these issues by integrating tree structures directly into the Bayesian GP framework.
Methodology
The Tree Kernel and Fully Bayesian Inference
BARK defines a covariance structure based on "tree agreement." In this model, the covariance between two points is proportional to the frequency with which they share a leaf node across a forest of trees. Unlike previous methods that use point estimates for tree structures, BARK employs a fully Bayesian MCMC approach. This allows the model to sample from the posterior distribution of both the tree structures and the noise parameters, capturing uncertainty regarding the underlying model architecture itself.
Uniform Splitting for Exploration
A critical innovation in BARK is the Uniform Splitting Rule. Standard BART implementations typically split only at observed data points to improve predictive accuracy. However, in a BO context, this can lead to "over-exploitation" where the model becomes overly confident in unobserved regions. By allowing split points to be sampled uniformly across the entire domain, BARK ensures that predictive uncertainty increases as the search moves away from known data, a vital property for driving effective exploration.
Optimization via MILP
Tree-based surrogates result in piecewise-constant acquisition functions. Because these functions have zero gradients almost everywhere, standard gradient-based optimization techniques are ineffective. BARK overcomes this by utilizing Mixed-Integer Linear Programming (MILP) to find the global maximum of the acquisition function (such as Upper Confidence Bound). This ensures that the BO loop identifies the true best candidate for the next evaluation rather than getting trapped in local optima.
Computational Scalability
To manage the computational overhead of MCMC, the authors implement low-rank updates of the kernel matrix using the Sherman-Morrison formula and the Matrix Determinant Lemma. This reduces the complexity of each MCMC step from $O(N^3)$ to $O(N^2 L_t)$, where $L_t$ represents the number of leaves, making the fully Bayesian approach tractable for standard BO iteration counts.
Experimental Evaluation
The authors evaluated BARK against a suite of competitive baselines, including SMAC, Entmoot, and LeafGP, across several domains:
- Tabular Regression: Using UCI datasets (e.g., Abalone, Concrete), BARK demonstrated superior probabilistic calibration, achieving lower Negative Log Predictive Density (NLPD) than standard BART.
- Synthetic Benchmarks: On discretized versions of the Ackley and Rosenbrock functions, BARK's ability to handle non-stationarity provided a clear advantage.
- Real-World Applications: BARK was tested on high-dimensional tasks including antenna configuration (CCOBench), pest control discrete choice problems, and material design (MAX). In these mixed-variable environments, BARK consistently matched or outperformed existing state-of-the-art solvers.
Discussion and Limitations
BARK represents a significant step forward in unifying the flexibility of tree models with the mathematical rigor of GPs. Its primary strength lies in its ability to "learn" the complexity of the search space, providing rich uncertainty estimates where the function is most volatile.
However, this sophistication comes with a trade-off in wall-time complexity. The combination of MCMC sampling and MILP optimization is computationally more expensive than simpler surrogates like Random Forests. Consequently, BARK is most effective when the black-box function evaluation time is significant (minutes to hours), rendering the surrogate's overhead negligible. Additionally, for perfectly smooth, continuous functions, traditional RBF kernels may still outperform BARK due to the inherently "blocky" nature of tree-based priors.
Conclusion
BARK successfully bridges the gap between BART and Gaussian Processes, offering a robust solution for mixed-variable black-box optimization. By treating the kernel structure as a Bayesian variable and leveraging MILP for global optimization, it provides a principled approach to exploration and exploitation in complex, non-stationary landscapes.
Summary updated