Modeling Uncertainty by Learning a Hierarchy of Deep Neural Connections

Raanan Y. Rohekar, Yaniv Gurwicz, Shami Nisimov, Gal Novik

Introduction

Deep neural networks (DNNs) have achieved remarkable success across various domains, yet they remain prone to "overconfidence." This phenomenon occurs when a model provides high-certainty predictions for incorrect outputs or out-of-distribution (OOD) data. In safety-critical applications like autonomous driving or medical diagnosis, reliable uncertainty quantification is as important as predictive accuracy.

Traditional Bayesian Neural Networks (BNNs) attempt to address this by placing a fixed, data-agnostic prior over network weights. However, these priors often fail to capture the underlying generative structure of the input data. This paper introduces BRAINet (Bayesian Recursive Autonomy Identification Network), a framework that models uncertainty by learning a hierarchy of neural connections directly informed by the data's generative process.

The BRAINet Framework

The fundamental innovation of BRAINet lies in its causal assumptions. Standard discriminative models assume that the model parameters are independent of the input distribution. BRAINet challenges this by introducing a latent "confounder" ($\theta$) that influences both the input features ($X$) and the discriminative parameters ($\phi$).

Causal graph showing the relationship between input features X, discriminative parameters φ, and the latent confounder θ.

By conditioning the model's structure on the generative process, BRAINet ensures that the network's internal connectivity reflects the dependencies found in the training data. When the model encounters an input that deviates from this learned structure, its structural uncertainty naturally increases, leading to better-calibrated predictions.

Methods: Learning Structure from Data

BRAINet employs an unsupervised algorithm called B-RAI to learn a hierarchy of inter-layer connectivity patterns. Unlike standard dense layers where every neuron connects to the next, BRAINet identifies specific connections supported by the data, resulting in a sparse, hierarchical ensemble of potential network structures.

Key technical features include:

  • Hierarchical Sampling: The model represents an ensemble of potential structures coupled into a single hierarchy. Sub-networks are sampled during training and inference based on their posterior probability.
  • Partial Weight Sharing: BRAINet balances the diversity of "Deep Ensembles" with the efficiency of "MC-Dropout" by sharing weights primarily in deeper layers.
  • Efficiency: Due to its learned sparsity, BRAINet can perform inference with significantly fewer operations (roughly 5.5x fewer parameters/ops) than equivalent dense networks of the same full size.

Results and Performance

The researchers evaluated BRAINet on standard benchmarks including MNIST, CIFAR-10, and SVHN for classification and OOD detection, as well as several UCI regression datasets.

Performance metrics (NLL, classification error, Brier score) for BRAINet compared to Bayes-by-Backprop and MC-dropout across stochastic forward passes.

As shown in the performance plots, BRAINet consistently outperforms baselines like Bayes-by-Backprop and MC-dropout. It achieves lower Negative Log-Likelihood (NLL), reduced classification error, and superior Brier scores, particularly as the number of stochastic forward passes increases. In OOD detection tasks (SVHN vs. CIFAR-10), BRAINet achieved an AUC-ROC of 92.13%, significantly higher than the 90.38% baseline. On regression tasks like the Yacht dataset, BRAINet + Ensemble reduced RMSE from 3.09 to 1.10.

Conclusion

BRAINet represents a significant step forward in uncertainty modeling by bridging the gap between generative and discriminative learning. By allowing the data's structure to guide the network's connectivity, it provides a more principled approach to model calibration and OOD detection. While the initial structure learning phase is more complex than standard backpropagation, the resulting efficiency and reliability make it a compelling choice for safety-critical AI applications.

Summary updated

BibTeX
@inproceedings{rohekar2019modeling,
  author = {Raanan Y. Rohekar and Yaniv Gurwicz and Shami Nisimov and Gal Novik},
  title = {{Modeling Uncertainty by Learning a Hierarchy of Deep Neural Connections}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure