Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Adversarial Spheres: Bayesian Inference and Adversarial Examples in a Noiseless Setting

Artur Bekasov, Iain Murray|arXiv (Cornell University)|Nov 29, 2018
Adversarial Robustness in Machine LearningComputer Science14 references8 citations
TL;DR

This paper investigates Bayesian inference in a noiseless adversarial spheres setup, where deep models exhibit confident misclassifications despite perfect validation accuracy. Using Bayesian logistic regression with MCMC and variational inference, it shows that only proper Bayesian methods capture epistemic uncertainty for adversarial examples, while standard regularization and approximate inference fail to detect them.

ABSTRACT

Modern deep neural network models suffer from adversarial examples, i.e. confidently misclassified points in the input space. It has been shown that Bayesian neural networks are a promising approach for detecting adversarial points, but careful analysis is problematic due to the complexity of these models. Recently Gilmer et al. (2018) introduced adversarial spheres, a toy set-up that simplifies both practical and theoretical analysis of the problem. In this work, we use the adversarial sphere set-up to understand the properties of approximate Bayesian inference methods for a linear model in a noiseless setting. We compare predictions of Bayesian and non-Bayesian methods, showcasing the advantages of the former, although revealing open challenges for deep learning applications.

Motivation & Objective

  • To study epistemic uncertainty in a noiseless setting where adversarial examples persist despite perfect generalization.
  • To evaluate whether Bayesian methods can detect adversarial examples when standard deep learning models fail.
  • To compare the performance of MCMC, variational inference, and bootstrap ensembling in capturing uncertainty under adversarial conditions.
  • To investigate the impact of prior choice and model architecture on uncertainty estimation in high-dimensional, linearly separable problems.

Proposed method

  • Uses a synthetic dataset of two concentric hyperspheres (adversarial spheres) with deterministic labels to eliminate aleatoric uncertainty.
  • Applies Bayesian logistic regression with squared features to model axis-aligned ellipsoidal decision boundaries.
  • Employs MCMC for exact posterior approximation and variational inference with both standard and hierarchical parameterizations.
  • Uses a broad isotropic Gaussian prior (σw = 100) to reflect weakly informative beliefs in high-dimensional, linearly separable settings.
  • Compares model confidence and error rates on in-distribution validation points and adversarial examples across methods.
  • Visualizes posterior distributions in low-dimensional projections to analyze uncertainty structure in weight space.

Experimental results

Research questions

  • RQ1Can Bayesian methods detect adversarial examples in a noiseless, deterministic setting where standard models achieve 100% validation accuracy?
  • RQ2How do different approximate inference methods (MCMC, variational inference, bootstrap) perform in estimating epistemic uncertainty for adversarial inputs?
  • RQ3Does model capacity or prior specification affect the ability to capture uncertainty in linearly separable, high-dimensional problems?
  • RQ4Why do standard regularization techniques fail to prevent adversarial examples in the absence of data noise?
  • RQ5Can richer variational families improve uncertainty estimation, or do they degrade downstream performance despite better posterior approximation?

Key findings

  • Even a linear model trained on the adversarial sphere dataset produces confident misclassifications, demonstrating that adversarial examples arise from epistemic uncertainty, not data noise.
  • MCMC-based Bayesian inference correctly identifies adversarial examples with high uncertainty, while maintaining high confidence on in-distribution validation points.
  • Bootstrap ensembling fails to detect adversarial examples, indicating that model averaging does not capture epistemic uncertainty in this setting.
  • A more flexible hierarchical prior improves MCMC posterior approximation by allowing larger weight magnitudes consistent with the true posterior.
  • A standard variational inference approximation underestimates uncertainty and rules out large weights, but still performs surprisingly well on the benchmark despite poor posterior approximation.
  • Increasing the complexity of the variational family does not improve downstream performance, suggesting that posterior approximation quality does not always correlate with predictive success.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.