Explainable Learning with Gaussian Processes

Kurt Butler, Guanchao Feng, Petar M. DjuricarXiv 2024 · DOI

Introduction

As machine learning models are increasingly deployed in high-stakes domains such as medicine and finance, the need for Explainable AI (XAI) has become paramount. Feature attribution methods, such as Integrated Gradients (IG) and SHAP, attempt to quantify the contribution of individual input features to a specific prediction. However, most existing methods are applied to "black-box" models like deep neural networks, providing only point estimates of importance. These methods lack a mechanism to quantify uncertainty: if a model is unsure about a prediction, it is often equally unclear how much we should trust the explanation of that prediction.

Researchers at Stony Brook University have addressed this gap by establishing a rigorous mathematical bridge between Gaussian Process Regression (GPR) and XAI. Their work demonstrates that when Gaussian Processes—a class of "gray-box" probabilistic models—are combined with Integrated Gradients, the resulting explanations are not just numbers, but full probability distributions.

Theoretical Framework: Preserving Gaussianity

The core contribution of this research is the proof that Integrated Gradients preserve the Gaussian properties of the underlying model.

Theorem 1: IG as a Linear Operator

The authors treat the Integrated Gradients method as a sequence of linear operations, including differentiation, precomposition, integration, and scaling. Because linear operators applied to a Gaussian Process result in another Gaussian Process, the feature attributions (the "explanations") inherit the probabilistic properties of the original model. This allows for the generation of "explanations with error bars," providing a principled way to quantify the reliability of a feature's contribution.

Analytical vs. Numerical Integration

Traditionally, IG is calculated using numerical approximations (such as the right-hand rule summation), which are computationally expensive and prone to approximation errors. This paper derives exact, closed-form analytical expressions for the most common GP kernels:

  • Squared Exponential (SE) kernels
  • Automatic Relevance Detection (ARD-SE) kernels
  • Random Feature GPs (RFGPs), which facilitate scaling to larger datasets.

These closed-form solutions bypass the need for iterative approximations, offering both higher precision and significantly reduced computational overhead.

Empirical Validation

The researchers validated their framework across several synthetic and real-world benchmarks, highlighting the practical utility of probabilistic explanations.

  • Uncertainty Visualization: Using a 2D synthetic sine-wave model, the authors visualized how attribution uncertainty grows as input points move further from the training data or the chosen baseline.
  • Efficiency in Wine Quality Assessment: Using the UCI Wine Quality dataset, the study demonstrated that numerical approximations require a high number of partitions to converge to the true attribution value. The analytical solution provided the exact value instantaneously.
  • Robustness in Healthcare: On the UCI Breast Cancer Prognosis dataset, the ARD-SE kernel was used to identify which features were consistently significant versus those that were noisy, with the attribution GP correctly flagging high-variance (unreliable) explanations.
  • Affine Scale Invariance: Experiments on Taipei Housing data confirmed that IG attributions for GPs are invariant to scaling and translation, ensuring that data standardization does not distort the logic of the explanation.

Key Insights

Explanations with Error Bars

In fields like clinical diagnosis, knowing that a model prioritized "Feature A" is insufficient if the variance of that attribution is high. By providing a mean and variance for every attribution, this method allows practitioners to distinguish between confident explanations and those that are statistically insignificant.

Heteroscedasticity of Explanations

The research shows that explanation uncertainty is not constant. It is heteroscedastic, typically increasing as the input point deviates from the "baseline" or reference point used for the explanation. This provides a spatial understanding of where the model's logic is most and least reliable.

Limitations and Future Work

While the theoretical foundation applies to all Gaussian Processes, closed-form derivations are currently limited to SE, ARD-SE, and RFGP kernels. Users of more specialized kernels, such as Matérn or Periodic kernels, would require further mathematical derivation. Additionally, the choice of the "baseline" reference point remains a subjective challenge inherent to the Integrated Gradients method itself. Finally, while the attribution calculation is efficient, the underlying GPR still faces the standard $O(N^3)$ scaling challenges, though the use of Random Feature GPs provides a viable path forward for larger datasets.

Conclusion

By transforming feature attribution from a deterministic score into a probabilistic distribution, this work provides a more robust and transparent framework for XAI. It moves the field toward a future where AI systems do not just tell us "why" they made a decision, but also how certain they are about that reasoning.

Summary updated

BibTeX
@misc{butler2024explainable,
  author = {Kurt Butler and Guanchao Feng and Petar M. Djuric},
  title = {{Explainable Learning with Gaussian Processes}},
  year = {2024},
  eprint = {2403.07072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07072},
}
Figure