Adversarial Vulnerability Bounds for Gaussian Process Classification

Michael Thomas Smith, Kathrin Grosse, Michael Backes, Mauricio A. ÁlvarezarXiv 2019

Abstract

Machine learning (ML) classification is increasingly used in safety-critical systems. Protecting ML classifiers from adversarial examples is crucial. We propose that the main threat is that of an attacker perturbing a confidently classified input to produce a confident misclassification. To protect against this we devise an adversarial bound (AB) for a Gaussian process classifier, that holds for the entire input domain, bounding the potential for any future adversarial method to cause such misclassification. This is a formal guarantee of robustness, not just an empirically derived result. We investigate how to configure the classifier to maximise the bound, including the use of a sparse approximation, leading to the method producing a practical, useful and provably robust classifier, which we test using a variety of datasets.

Introduction

Most research into adversarial examples—tiny, often imperceptible perturbations that trick machine learning models—remains empirical. This typically results in a "cat-and-mouse" game where researchers find a new attack, followed by a new defense, without reaching a definitive state of security. While some provable defenses exist, they are often limited to guaranteeing robustness within a small "ball" around specific training points.

In safety-critical applications like autonomous driving, the primary danger is not merely a simple misclassification but a confident misclassification. For instance, if a vehicle's vision system is 99% certain a red light is green, the consequences are far more severe than if it were only 51% certain. This paper addresses the lack of universal, provable bounds that can guarantee the minimum effort an attacker must exert to shift a model from a high-confidence correct prediction to a high-confidence error across the entire input domain.

The Confident Misclassification Framework

We propose that robustness should be measured by the effort required to move between the 5th and 95th percentiles of the training data's confidence levels. This moves beyond simply crossing the 50% decision boundary and focuses on the model's internal latent function.

The confident misclassification framework: bounding the input perturbation required to move between the 5th and 95th percentiles of confidence.

Methodology

We leverage Gaussian Process Classification (GPC) to provide these guarantees. Unlike standard neural networks, GPs are defined by kernels that dictate the smoothness of the model's predictions. This inherent smoothness, combined with the GP's ability to quantify uncertainty, allows us to mathematically bound the influence of any input change.

The Adversarial Bound (AB) Algorithm

The AB algorithm partitions the input domain into hypercubes and calculates the maximum possible increase each "slice" can contribute to the model's internal latent function. By summing these contributions, we derive a lower bound on the number of dimensions (e.g., pixels) an attacker must perturb to reach a target misclassification threshold. This provides a formal guarantee for the entire domain, bounding any future adversarial method.

Implementation Details

  • Laplace Approximation: To handle the non-Gaussian likelihoods inherent in GP classification, we use the Laplace approximation to make the posterior distribution tractable.
  • Sparse Approximations: To ensure the bounds remain tight as data scales, we employ a low-rank approximation using "inducing points." This replaces the full training set with a smaller representative set, making the model both scalable and more provably robust.

Results and Discussion

Our evaluation across various benchmarks, including MNIST and UCI datasets, demonstrates that GPs often outperform traditional models like Logistic Regression (LR) in both accuracy and robustness. For example, on 8x8 MNIST, the GP required at least 3 pixel changes to fail, while LR could be flipped with only 2.

Smoothness as a Proxy for Robustness

A key insight is the relationship between the GP's "lengthscale" parameter and its robustness. By adjusting the lengthscale, we can explicitly trade off accuracy for robustness. A longer lengthscale makes the model smoother and significantly harder to fool with small perturbations.

The trade-off between accuracy and the provable robustness bound (number of pixels) as the inverse kernel lengthscale is varied.

On 28x28 MNIST (0 vs 1), our algorithm proved that with appropriate lengthscales, an attacker would need to change between 15 and 58 pixels to achieve a confident misclassification. Furthermore, on linearly inseparable synthetic data where LR failed completely (50% accuracy), the GP achieved 96% accuracy and proved a minimum of two dimensions must be changed to cause a confident error.

Conclusion and Future Work

While the AB algorithm provides rigorous, universal guarantees, it currently faces computational challenges as the number of simultaneously perturbed dimensions increases. Future work will explore extending these bounds to Deep Gaussian Processes to provide even more flexible and powerful robust classifiers. Additionally, investigating the impact of different kernel choices beyond the Exponentiated Quadratic (EQ) kernel may yield even tighter robustness bounds.

Summary updated

BibTeX
@misc{smith2019adversarial,
  author = {Michael Thomas Smith and Kathrin Grosse and Michael Backes and Mauricio A. Álvarez},
  title = {{Adversarial Vulnerability Bounds for Gaussian Process Classification}},
  year = {2019},
  eprint = {1909.08864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.08864},
}
Figure