Inferensys

Glossary

Deep Ensembles

A method for uncertainty quantification that trains multiple neural networks with different random initializations and uses the variance of their predictions as a robust signal for detecting unknown inputs.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
Uncertainty Quantification

What is Deep Ensembles?

A robust method for estimating predictive uncertainty in neural networks by aggregating the outputs of multiple independently trained models.

Deep Ensembles is a method for uncertainty quantification that trains multiple neural networks with different random initializations and uses the variance of their predictions as a robust signal for detecting unknown inputs. By treating the ensemble's disagreement as a measure of epistemic uncertainty, the system can reliably flag out-of-distribution samples where individual models produce conflicting, high-entropy outputs.

This approach directly addresses the overconfidence of single networks in open set recognition tasks. Unlike a single model that may extrapolate wildly on novel modulation schemes, the ensemble's predictive diversity creates a natural rejection boundary. The technique is a cornerstone of robust out-of-distribution detection, providing a computationally tractable alternative to full Bayesian neural networks for safety-critical spectrum monitoring.

Uncertainty Quantification

Key Features of Deep Ensembles

Deep Ensembles provide a principled Bayesian-inspired framework for quantifying predictive uncertainty by aggregating the outputs of multiple independently trained neural networks.

01

Random Initialization Diversity

The core mechanism relies on training multiple copies of the same architecture with different random seeds. This induces distinct convergence paths in the loss landscape, causing each model to learn slightly different functional modes. The resulting functional diversity is what captures epistemic uncertainty, as models disagree most in regions far from the training data.

02

Variance as Uncertainty Signal

For an input, the ensemble computes the predictive variance across all member outputs. High variance indicates epistemic uncertainty—the model lacks knowledge about this region of input space. This serves as a robust detection statistic for unknown modulation schemes:

  • Low variance: Confident, in-distribution prediction
  • High variance: Novel or ambiguous input, flagged for rejection
03

Decomposition of Predictive Uncertainty

Deep Ensembles naturally decompose total predictive uncertainty into its constituent parts:

  • Aleatoric uncertainty: Inherent noise in the data, captured by each model's output variance
  • Epistemic uncertainty: Model ignorance, captured by the disagreement between models This decomposition is critical for open set recognition, where epistemic uncertainty spikes on unknown modulation types.
04

Adversarial Training Integration

Ensemble members can be individually hardened with adversarial training to improve robustness. By training each member on slightly different adversarial perturbation budgets or attack types, the ensemble achieves collective robustness that exceeds any single model. The variance across members also helps detect adversarial evasion attempts in real-time spectrum monitoring.

05

Computational Overhead Tradeoffs

The primary cost is linear scaling with ensemble size: N models require N times the memory and inference compute. Mitigation strategies include:

  • Shared feature extractors with diverse classification heads
  • Batch ensemble methods that fuse multiple weight sets into a single forward pass
  • Distillation of the ensemble's predictive distribution into a single compact student model
06

Comparison to Bayesian Neural Networks

Deep Ensembles often outperform explicit Bayesian Neural Networks (BNNs) in uncertainty quality benchmarks while being far simpler to implement. Unlike BNNs requiring complex variational inference or MCMC sampling, ensembles use standard training pipelines. Research shows ensembles provide a non-parametric approximation to the posterior predictive distribution without the convergence difficulties of variational methods.

DEEP ENSEMBLES FOR OPEN SET RECOGNITION

Frequently Asked Questions

Addressing common technical questions about using ensembles of neural networks for uncertainty quantification and unknown signal detection in automatic modulation classification.

A deep ensemble is an uncertainty quantification technique that trains multiple neural networks with different random initializations on the same dataset and uses the statistical variance of their predictions as a robust signal for detecting unknown inputs. Unlike a single model that may produce overconfident predictions, an ensemble of M networks, each parameterized by θ_m, generates a set of probability vectors {p(y|x, θ_m)}. The epistemic uncertainty is computed as the variance or entropy of this predictive distribution. In the context of automatic modulation classification, when an unknown modulation type is received, each network in the ensemble will disagree and produce divergent predictions, resulting in high variance. This disagreement is a direct measure of the model's lack of knowledge, which is reducible by adding that novel signal to the training set. The final prediction is the average of the ensemble's outputs, and the uncertainty is the spread around that average.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.