Inferensys

Glossary

Weibull Calibration

A statistical technique that fits a Weibull distribution to the distance between a sample and its class mean to model the probability of inclusion for open space risk management.
Risk analyst performing AI risk assessment on laptop, risk matrices visible, casual office risk session.
OPEN SET RECOGNITION

What is Weibull Calibration?

A statistical post-hoc calibration technique that fits a Weibull distribution to the distance between a sample and its class mean to model the probability of inclusion for open space risk management.

Weibull Calibration is a statistical technique that models the tail of the distance distribution between correct class samples and their class mean using a Weibull distribution. This fitted distribution is then used to compute a calibrated probability that a new sample belongs to a known class, enabling the model to reject out-of-distribution inputs that fall far from any training centroid.

Derived from Extreme Value Theory (EVT), this method is foundational to the OpenMax algorithm, where it replaces the standard SoftMax layer. By modeling the probability of extreme distances for each known class, Weibull Calibration quantifies open space risk and provides a statistically grounded rejection score for unknown emitters in dynamic spectrum environments.

Statistical Rejection Modeling

Key Characteristics of Weibull Calibration

Weibull Calibration is a statistical technique that fits a Weibull distribution to the distance between a sample and its class mean to model the probability of inclusion, enabling robust open space risk management.

01

Extreme Value Theory Foundation

Weibull Calibration is grounded in Extreme Value Theory (EVT), which models the statistical behavior of tail-end events. Rather than assuming a Gaussian distribution of distances, it fits a Weibull distribution to the largest distances between correctly classified training samples and their class means. This provides a principled, non-parametric way to model the boundary of class inclusion, directly quantifying the probability that a query sample belongs to a known class based on its distance in the feature embedding space.

02

Distance-to-Mean Modeling

The calibration process operates on the distance metric space of a trained neural network. For each known class, the algorithm:

  • Computes the mean activation vector (class prototype) from training samples
  • Calculates the Euclidean or Mahalanobis distance from each sample to its class mean
  • Fits a Weibull distribution to the tail of these distances (largest 10-20%) This tail distribution models the probability that a sample at a given distance is a genuine member of the class, rejecting those that fall into the open space beyond.
03

Integration with OpenMax

Weibull Calibration is the core statistical engine behind the OpenMax algorithm, which replaces the standard SoftMax layer for open set recognition. OpenMax uses the per-class Weibull CDF to recalibrate activation vectors:

  • It computes the probability of inclusion for each top-k class
  • Unknown classes are assigned a pseudo-activation based on the cumulative rejection probability
  • The final output is a probability distribution over K+1 classes, where the +1 represents the unknown This transforms a closed-set classifier into an open-set recognizer without retraining the feature extractor.
04

Tail Size Selection

A critical hyperparameter in Weibull Calibration is the tail size—the percentage of largest distances used to fit the distribution. This parameter controls the trade-off between:

  • Statistical stability: Larger tails include more data but may violate EVT assumptions
  • Extreme value fidelity: Smaller tails better model true extremes but increase variance Typical values range from 10% to 25% of the training samples per class. Cross-validation on a held-out validation set with known and unknown classes is used to optimize this parameter for the target openness measure.
05

LibMR Meta-Recognition Library

The canonical implementation of Weibull Calibration is found in the LibMR (Library for Meta-Recognition) framework. LibMR provides efficient routines for:

  • Fitting Weibull distributions using maximum likelihood estimation
  • Computing cumulative distribution function values for query distances
  • Performing statistical tests for goodness-of-fit This library is the computational backbone of the original OpenMax implementation and has been integrated into numerous open set recognition pipelines for radio frequency fingerprinting and computer vision applications.
06

Calibration for Open Space Risk

The primary purpose of Weibull Calibration is to manage open space risk—the risk of labeling an unknown emitter as a known class. By modeling the tail of the distance distribution, the technique quantifies how far a sample can be from a class mean before it should be rejected. This provides a statistically rigorous threshold that adapts to each class's natural variance:

  • Compact classes have tight Weibull fits with sharp rejection boundaries
  • Dispersed classes have broader fits reflecting higher intra-class variance This per-class calibration is essential for dynamic spectrum environments where emitter signatures vary in consistency.
WEIBULL CALIBRATION

Frequently Asked Questions

Explore the core concepts behind using Weibull distributions to model open space risk and calibrate rejection thresholds in open set emitter recognition systems.

Weibull Calibration is a statistical technique that fits a Weibull distribution to the distance between a sample's feature embedding and its class mean to model the probability of inclusion for open space risk management. In open set emitter recognition, this method replaces the standard SoftMax layer with a probabilistic rejection mechanism. The core principle leverages Extreme Value Theory (EVT) to model the tail of the distance distribution for each known class, establishing a per-class threshold that determines whether an incoming signal belongs to a known transmitter or should be rejected as unknown. This calibration directly addresses the open space risk—the danger of incorrectly classifying an unknown emitter as a known one—by providing a statistically grounded confidence score rather than an arbitrary heuristic threshold.

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.