Bayesian Neural Networks Avoid Encoding Complex and Perturbation-Sensitive Concepts

Qihan Ren, Huiqi Deng, Yunuo Chen, Siyu Lou, Quanshi Zhang

Introduction

Standard Deep Neural Networks (DNNs) are powerful but often function as black boxes, frequently relying on "non-robust features"—complex, high-dimensional correlations that exist in training data but vanish under slight input perturbations. This paper investigates the representation capacity of Bayesian Neural Networks (BNNs), specifically mean-field variational BNNs. By representing weights as probability distributions rather than fixed points, BNNs introduce inherent uncertainty into the learning process. The authors explore whether this uncertainty naturally biases BNNs against learning fragile, high-order "interactive concepts" (e.g., an "AND" relationship requiring multiple specific variables to activate simultaneously), favoring simpler, more robust concepts instead.

Methodology

To quantify these interactive concepts, the researchers utilized a framework based on Harsanyi dividends. They defined the complexity (or "order") of a concept by the number of input variables involved in the interaction. For example, a 1st-order concept might be a single pixel, while a 10th-order concept is a specific combination of 10 pixels.

Because analyzing BNNs directly is mathematically challenging due to weight uncertainty, the authors proved that a BNN can be closely approximated by a "surrogate DNN"—a standard network where random noise is added to inputs and intermediate features. Using this surrogate, they developed a three-step theoretical proof:

  1. Weight uncertainty in BNNs is mathematically equivalent to feature uncertainty.
  2. High-order (complex) concepts are exponentially more sensitive to noise than low-order (simple) ones.
  3. This heightened sensitivity makes complex concepts significantly harder for the network to capture during training.

The theory was empirically validated across diverse datasets, including image data (MNIST, CIFAR-10), tabular data (UCI Census Income, TV News), and language data (CoLA, SST-2). The researchers employed various architectures—such as MLPs, ResMLPs, CNNs (LeNet), and LSTMs—demonstrating that this phenomenon is a general property of neural networks rather than an architectural artifact.

Key Insights and Results

The core finding of the paper is that high-order concepts are inherently brittle. Because they require multiple variables to align perfectly, even minor noise in a single variable can deactivate the entire concept. In BNNs, the continuous "shaking" of internal representations—caused by weight uncertainty—acts as a natural regularizer, effectively filtering out these fragile patterns.

Experimental results confirmed this theory:

  • Concept Strength: Across all tested datasets, the "strength" of high-order concepts in BNNs was significantly lower than in standard DNNs.
  • Generalization Gap: The authors demonstrated that high-order concepts have much lower Jaccard similarity between training and testing sets, confirming that these complex patterns are often memorized noise rather than generalizable features.
  • Adversarial Robustness: Because they avoid brittle concepts, BNNs consistently outperformed their DNN counterparts under Projected Gradient Descent (PGD) attacks. For instance, on the Census dataset, the BNN achieved 77.51% adversarial accuracy compared to the DNN's 75.22%.

Ultimately, the paper argues that avoiding complex concepts is not a weakness of BNNs. Since complex concepts typically exhibit low generalization power and high adversarial vulnerability, a BNN's preference for simplicity is a feature that actively boosts model robustness.

Limitations and Future Directions

The study focuses specifically on mean-field variational BNNs, where weight distributions are assumed to be independent Gaussians. Other BNN variants, such as those utilizing Monte Carlo Dropout, were not explored. Furthermore, the authors note that if a specific task strictly requires complex concepts to be solved, a BNN might be forced to reduce its weight variance to near zero, essentially reverting to a standard DNN.

A promising direction for future research involves investigating how to explicitly tune the uncertainty of a BNN. Doing so could allow practitioners to find the optimal balance between simplicity (robustness) and complexity (fitting power) for specific industrial applications.

Summary updated

BibTeX
@inproceedings{ren2023bayesian,
  author = {Qihan Ren and Huiqi Deng and Yunuo Chen and Siyu Lou and Quanshi Zhang},
  title = {{Bayesian Neural Networks Avoid Encoding Complex and Perturbation-Sensitive Concepts}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=UkG4Nn634P},
}
Figure