Weighted Euclidean Distance Matrices over Mixed Continuous and Categorical Inputs for Gaussian Process Models
Mingyu Pu, Songhao Wang, Haowei Wang, Szu Hui Ng
TL;DR
This work introduces WEighed Euclidean Distance Matrices GP (WEGP) to extend Gaussian Processes to mixed continuous and categorical inputs by learning a distance-based kernel for each categorical variable. Each categorical kernel is built as a positive linear combination of base EDMs $D_k=\sum_i w_k^{(i)}D_k^{(i)}$, with weights inferred in a fully Bayesian framework using NUTS, and two base-EDM constructions are proposed: ordinal encodings and extreme directions within the EDM cone. Theoretical results establish convergence of the posterior mean under a Matérn kernel, and empirical studies show state-of-the-art performance in Bayesian Optimization on synthetic and real-world problems, with improved robustness in data-sparse regimes. The approach provides interpretable distance patterns and scalable handling of multi-category factors, offering practical gains for expensive black-box optimization across engineering and scientific domains.
Abstract
Gaussian Process (GP) models are widely utilized as surrogate models in scientific and engineering fields. However, standard GP models are limited to continuous variables due to the difficulties in establishing correlation structures for categorical variables. To overcome this limitati on, we introduce WEighted Euclidean distance matrices Gaussian Process (WEGP). WEGP constructs the kernel function for each categorical input by estimating the Euclidean distance matrix (EDM) among all categorical choices of this input. The EDM is represented as a linear combination of several predefined base EDMs, each scaled by a positive weight. The weights, along with other kernel hyperparameters, are inferred using a fully Bayesian framework. We analyze the predictive performance of WEGP theoretically. Numerical experiments validate the accuracy of our GP model, and by WEGP, into Bayesian Optimization (BO), we achieve superior performance on both synthetic and real-world optimization problems.
