Domain Invariant Learning for Gaussian Processes and Bayesian Exploration

Xilong Zhao, Siyuan Bian, Yaoyun Zhang, Yuliang Zhang, Qinying Gu, Xinbing Wang, Chenghu Zhou, Nanyang Ye

Introduction

Gaussian Processes (GPs) are widely regarded as the gold standard for uncertainty quantification in small-data regimes. However, their performance often degrades significantly when test data originates from a different distribution than the training set—a phenomenon known as distribution shift. Most machine learning models rely on the "i.i.d. assumption," which posits that training and testing data are drawn from the same independent and identically distributed source. In real-world applications, such as a drone operating in varying weather conditions or economic models applied across different decades, this assumption rarely holds.

While deep learning has extensively explored "Domain Generalization," GPs have remained relatively neglected. Standard GPs tend to overfit training data, leading to overconfident but inaccurate predictions when faced with out-of-distribution (OOD) samples. This paper introduces Domain Invariant Learning for Gaussian Processes (DIL-GP), a method that automatically discovers hidden domains within data and uses adversarial training to learn robust, invariant kernel parameters.

Comparison of DIL-GP against standard regression models on a 1D dataset with distribution shift.

Methodology

The core of DIL-GP is a min-max optimization strategy that eliminates the need for manual, pre-labeled "domains." The process follows three primary steps:

  1. Adversarial Partitioning (The "Max" Step): The algorithm iteratively splits training data into subsets (domains) to maximize the discrepancy in model performance. It essentially identifies the "worst-case" grouping of data to challenge the GP's generalization.
  2. Invariant Risk Minimization (The "Min" Step): Once these challenging domains are identified, the model optimizes GP kernel parameters to minimize prediction error while ensuring consistent performance across all discovered domains. This approach, inspired by Invariant Risk Minimization (IRM), penalizes features that are only useful in specific subsets of data (spurious correlations).
  3. DIL-BO: The authors extend this framework to Bayesian Optimization (BO). By utilizing DIL-GP as a surrogate model, the BO process becomes more "exploration-aware" regarding environmental shifts, resulting in more robust optimal solutions, such as PID controller settings that remain effective across varying wind conditions.

Experimental Evaluation

The authors evaluated DIL-GP against several baselines, including Vanilla GPs, Random Forests, MLPs, and specialized kernels, across diverse datasets:

  • Synthetic 1D & 2D Datasets: Designed with clear cluster-based distribution shifts.
  • King Housing Dataset: Predicting house prices where domains are defined by the year of construction.
  • UCI Automobile Dataset: Predicting insurance risk ratings across different car categories.
  • Quadrotor Simulation: A high-fidelity drone simulation testing PID parameter tuning under varying turbulent conditions using the Dryden wind model.

Key Results

DIL-GP demonstrated superior accuracy and robustness across all test scenarios. On the 1D synthetic dataset, DIL-GP achieved an RMSE of 0.3415, significantly outperforming the vanilla GP (0.3923) and the Dot Product kernel (1.0371).

Beyond accuracy, DIL-GP excels in uncertainty quantification. In 2D tests, it maintained a high "coverage rate," meaning its predicted uncertainty intervals accurately contained the true values, whereas other models became overconfident and incorrect. In real-world quadrotor experiments, DIL-GP identified PID parameters that allowed the drone to follow complex trajectories (e.g., a Figure-8) with minimal deviation under unseen wind conditions.

Quantitative performance comparison across 1-Dim and 2-Dim datasets.

Discussion and Future Work

A key insight from this research is that GPs are not "naturally" robust to OOD scenarios; they are as prone to overfitting spurious correlations as neural networks. DIL-GP addresses this by forcing the kernel to ignore environmental "noise" and focus on underlying invariant laws. Notably, the method makes domain labels optional by using a sigmoid-based "soft substitute" to infer latent domains during training.

Despite its success, DIL-GP introduces computational overhead due to its nested min-max optimization loops. Future work will focus on improving the scalability of adversarial partitioning for high-dimensional input spaces and exploring sparse GP approximations for massive datasets.

Summary updated

BibTeX
@inproceedings{zhao2024domain,
  author = {Xilong Zhao and Siyuan Bian and Yaoyun Zhang and Yuliang Zhang and Qinying Gu and Xinbing Wang and Chenghu Zhou and Nanyang Ye},
  title = {{Domain Invariant Learning for Gaussian Processes and Bayesian Exploration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29646},
}
Figure