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 · DOI

Gaussian Processes (GPs) are widely regarded as a "Swiss Army knife" for machine learning on small datasets, offering elegant uncertainty estimation and strong performance in fields like robotics and experimental design. However, GPs face a significant challenge: Out-of-Distribution (OOD) generalization. When test data deviates from the training distribution—a frequent occurrence in real-world applications—GPs often struggle to extrapolate accurately.

Researchers from Shanghai Jiao Tong University have introduced DIL-GP, a framework designed to make GPs robust to such shifts by learning features that remain consistent across different environments, even when those environments are not explicitly labeled.

The Challenge: Generalizing Beyond the Training Set

Standard machine learning models typically assume that training and testing data are independent and identically distributed (i.e., i.i.d.). In practice, data is often influenced by spurious correlations or environmental shifts. For instance, a drone trained in calm weather might fail during a storm if its model relies on specific wind patterns present only during training.

To address this, Invariant Risk Minimization (IRM) is often employed to find features that are predictive across multiple domains. However, standard IRM requires manual domain labeling (e.g., "Hospital A" vs. "Hospital B"), which is often impossible for continuous sensor data. DIL-GP overcomes this by automatically identifying hidden domains while simultaneously training the GP.

Methodology: Adversarial Domain Discovery

The core of DIL-GP is a min-max optimization strategy:

  1. Adversarial Split (The "Max" Step): The algorithm partitions training data into latent domains that maximize an "invariance penalty," effectively identifying the most heterogeneous subsets to challenge the model.
  2. Invariant Learning (The "Min" Step): The GP updates its kernel parameters to minimize both the standard negative log-likelihood (NLL) and the IRM penalty across these discovered domains. This forces the model to ignore unstable features and focus on invariant ones.

This approach extends to Bayesian Optimization (DIL-BO), ensuring that surrogate models used for exploration remain reliable under changing environmental conditions.

Experimental Evaluation and Key Results

The authors evaluated DIL-GP across synthetic datasets, real-world housing and automobile data, and high-fidelity quadrotor simulations.

Visual comparison of DIL-GP against standard Gaussian Processes and other regression baselines on a 1D dataset. DIL-GP demonstrates superior extrapolation and more reliable uncertainty quantification.

Performance and Robustness

DIL-GP consistently outperformed vanilla GPs and other specialized kernels. On the King County Housing dataset, it achieved an RMSE of 0.837, compared to 0.889 for a standard GP. Crucially, DIL-GP maintained a higher "coverage rate," meaning its uncertainty estimates were more reliable, and it was less likely to be "confidently wrong" when faced with OOD data.

Robust Drone Control

In quadrotor PID tuning experiments under turbulent wind conditions (using the Dryden wind model), DIL-GP found robust controller parameters that allowed the drone to follow complex trajectories with minimal drift.

Trajectory tracking performance for a quadrotor in turbulent wind across Fig-8, Sin-forward, and Spiral-up paths. DIL-GP maintains high fidelity to the target paths (black dashed lines) compared to baseline GP methods.

Conclusion

DIL-GP demonstrates that domain labels are not a prerequisite for invariant learning. By treating domain discovery as an adversarial task, the model identifies its own generalization weak points. While the min-max optimization adds computational overhead, the resulting robustness makes DIL-GP a powerful tool for reliable machine learning in dynamic, real-world environments. Future work may focus on scaling the method using sparse GP approximations and automatically determining the optimal number of latent domains.

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