Random-Set Neural Networks (RS-NN)

Shireen Kudukkil Manchingal, Muhammad Mubashar, Kaizheng Wang, Keivan Shariatmadar, Fabio Cuzzolin

TL;DR

Random-Set Neural Networks (RS-NN) move beyond standard probability vectors by predicting belief functions over sets of classes. This allows models to explicitly represent "epistemic uncertainty"—knowing when they don't know—resulting in superior accuracy, better out-of-distribution detection, and remarkable adversarial robustness without the high computational cost of Bayesian or ensemble methods.

What Problem Does This Paper Address?

Standard deep learning models are notoriously "confidently wrong." When faced with unfamiliar data (out-of-distribution, or OoD) or subtle adversarial noise, they often assign high probability to incorrect classes. This is a major hurdle for safety-critical applications like autonomous driving or medical diagnostics.

While existing solutions like Bayesian Neural Networks (BNNs) and Deep Ensembles attempt to quantify uncertainty, they come with significant baggage:

  1. Computational Cost: BNNs often require expensive sampling at inference time, and Ensembles require training and running multiple models.
  2. Prior Bias: Bayesian methods require choosing prior distributions for weights, which can lead to selection bias if the priors are misspecified.

RS-NN aims to provide a single-model solution that is as fast as a standard CNN but offers the robust uncertainty quantification typically reserved for more complex frameworks.

Methods

The core innovation of RS-NN is the use of Random Set theory (specifically belief functions) in the output layer.

  • Belief Functions vs. Probabilities: Instead of a vector that must sum to 1 across individual classes, RS-NN predicts values for sets of classes. Mathematically, this predicted belief function is equivalent to a credal set—a convex set of possible probability distributions.
  • The Budgeting Algorithm: Predicting values for every possible subset of $N$ classes is exponentially complex ($2^N$). To solve this, the authors introduce a "budgeting" step. They use a pre-trained feature extractor and Gaussian Mixture Models (GMM) to identify which classes naturally overlap in feature space. The model then only predicts belief values for these "relevant" sets.
The budgeting process uses GMMs to identify overlapping class clusters to form a manageable 'budget' of focal sets.
  • Training and Inference: The network is trained as a multi-label classifier using Binary Cross-Entropy on the budgeted sets, plus regularization terms to ensure the outputs form a valid belief function. At inference time, a point prediction is derived via the pignistic probability (the center of mass of the credal set).
  • Uncertainty Measures: RS-NN provides two distinct measures: Pignistic Entropy (similar to standard softmax entropy) and Credal Set Width, which specifically captures epistemic uncertainty (ignorance due to lack of representative training data).

Datasets

The authors evaluated RS-NN across a wide range of standard and out-of-distribution benchmarks:

  • In-Distribution (iD): MNIST, CIFAR-10, CIFAR-100, Intel Image, and ImageNet.
  • Out-of-Distribution (OoD): SVHN, Fashion-MNIST, K-MNIST, and ImageNet-O.
  • Architectures: The method was tested as a "wrapper" on ResNet50, WideResNet-28-10, VGG16, Inception V3, EfficientNetB2, and Vision Transformers (ViT-Base-16).

Key Insights and Ideas

  • Sets as Ground Truth: By training the model to recognize that an image of a '3' belongs to the set {'3'}, but also potentially to sets like {'3', '8'} if they are visually similar, the model learns a more nuanced representation of class boundaries.
  • Epistemic Uncertainty via Geometry: The "width" of the credal set provides a geometric measure of uncertainty. If the model sees an OoD sample, the credal set expands, signaling that it doesn't have enough evidence to commit to a specific probability distribution.
  • Adversarial Immunity: Standard CNNs are easily fooled because their loss surfaces are highly sensitive to small input changes. RS-NN often makes "precise correct predictions with zero gradient," meaning adversarial attacks like FGSM fail to find a direction to perturb the image effectively.
RS-NN maintains much lower confidence than standard CNNs when faced with adversarial attacks, effectively 'knowing when it doesn't know.'

Key Results

  • Superior Accuracy: RS-NN consistently outperformed Bayesian and Ensemble baselines. On CIFAR-10, it achieved 93.53% accuracy compared to 92.08% for a standard CNN and 89.95% for a Laplace-bridge BNN.
  • Better OoD Detection: On the difficult ImageNet vs. ImageNet-O task, RS-NN achieved an AUROC of 60.38%, significantly higher than the standard CNN (54.28%) and BNN (41.08%).
  • Efficiency: Because it doesn't require sampling, RS-NN's inference time is identical to a standard CNN (e.g., 1.91ms on CIFAR-10), whereas Ensembles and BNNs can be orders of magnitude slower.

Limitations and Future Work

  • Budgeting Overhead: While the budgeting step is a one-time pre-training cost, it can be time-consuming for very large datasets (e.g., 60 minutes for ImageNet).
  • Hyperparameter Tuning: The number of focal sets ($K$) must be chosen manually. The authors suggest that a dynamic strategy for adjusting $K$ based on class overlap would be a valuable improvement.
  • Extension to Regression: Currently, the framework is designed for classification. Extending random-set theory to continuous regression tasks is a key direction for future research.

Summary updated

BibTeX
@inproceedings{manchingal2025random,
  author = {Shireen Kudukkil Manchingal and Muhammad Mubashar and Kaizheng Wang and Keivan Shariatmadar and Fabio Cuzzolin},
  title = {{Random-Set Neural Networks (RS-NN)}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=pdjkikvCch},
}
Figure