Introduction
Gaussian Processes (GPs) are widely regarded as the "gold standard" for modeling expensive-to-evaluate functions, such as physical simulations, due to their inherent ability to provide both predictions and robust uncertainty estimates. However, GPs are fundamentally designed for continuous input spaces where distances are well-defined. Incorporating categorical (qualitative) variables—such as "Material Type A" vs. "Material Type B"—presents a significant challenge because there is no natural metric to measure the similarity between discrete levels.
The Challenge of Categorical Inputs
Traditional approaches to this problem generally fall into two categories. Simple encodings, like one-hot or target encoding (replacing a category with its mean output), are computationally efficient but often discard critical information, leading to poor predictive accuracy. Conversely, Latent Variable Models (e.g., LVGP) map categories into a continuous hidden space. While highly accurate, these models are computationally expensive to train, prone to local optima, and often lack interpretability.
Distributional Encoding (DE)
This paper introduces Distributional Encoding (DE) as a powerful "middle ground." Instead of reducing a category to a single scalar value like the mean, DE represents each category as the empirical distribution of all target values associated with that level.
By treating categories as distributions, the model can utilize specialized kernels—such as those based on the Wasserstein Distance ($W_2$) or Maximum Mean Discrepancy (MMD)—to measure similarity. This approach captures the richness of the response for each category, providing a much stronger signal for the GP to learn relationships between levels.
Measuring Similarity
The effectiveness of DE stems from its ability to approximate the sophisticated distance metrics learned by latent variable models without the associated training cost. As shown in the comparison of distance matrices, distributional summaries (like Mean/Sd) provide a much closer approximation to the "gold standard" LVGP distances than simple mean-based target encoding.
Key Results and Performance
The DE framework was validated across several engineering benchmarks (e.g., Piston simulation, OTL circuit) and real-world material design datasets. The results highlight two primary advantages:
- State-of-the-Art Accuracy: On benchmarks like the Piston simulation, DE using $W_2$ or MMD kernels outperformed all other methods, including the computationally intensive LVGP.
- Orders of Magnitude Speedup: In the Piston test case, LVGP required nearly 1,000 seconds for training. In contrast, Distributional Encoding achieved similar or better accuracy in roughly 1 second—a 1000x improvement in efficiency.
Furthermore, DE excels at handling unseen categories. Unlike latent models that require retraining to "place" a new level in the hidden space, DE can incorporate a new category immediately if even a small amount of auxiliary data (such as low-fidelity simulation runs) is available to define its distribution.
Conclusion
Distributional Encoding offers a transformative approach to categorical data in Gaussian Processes. By shifting the focus from point estimates to full distributions, it achieves the predictive power of complex latent variable models with the speed of simple heuristic encodings. This makes it an ideal candidate for high-dimensional engineering design and materials science applications where both accuracy and computational budget are critical.
Summary updated