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.
Glossary
Weibull Calibration

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Weibull Calibration is a foundational technique for open space risk management. These related concepts form the mathematical and architectural backbone of modern open set emitter recognition systems.
Extreme Value Theory (EVT)
The statistical discipline underpinning Weibull Calibration. EVT models the probability of rare, extreme events—specifically, the tail behavior of distance distributions. The Weibull distribution is one of three extreme value distributions, making it ideal for modeling the probability of inclusion for samples far from class means. In open set recognition, EVT provides the theoretical justification for rejecting inputs that fall into the distributional tail.
Mahalanobis Distance
A critical distance metric often used as input to Weibull Calibration. Unlike Euclidean distance, Mahalanobis distance accounts for feature covariance, measuring how many standard deviations a sample is from the class mean along each principal axis. This produces a more statistically meaningful distance for EVT modeling, as it respects the correlation structure of the learned feature space rather than assuming spherical class distributions.
Open Space Risk
The precise risk that Weibull Calibration is designed to mitigate. Defined as the volume of feature space far from any training data that is nonetheless labeled as a known class. Weibull Calibration quantifies this risk by modeling the probability that a sample at a given distance belongs to a class, enabling a principled threshold for rejection. The goal is to bound open space risk while maintaining high accuracy on known classes.
Confidence Calibration
A broader framework that Weibull Calibration extends to open set scenarios. Standard calibration aligns predicted probabilities with empirical accuracy using methods like Temperature Scaling. Weibull Calibration adds a spatial dimension: it calibrates confidence based on distance from training data, not just SoftMax magnitude. This spatial awareness is essential for distinguishing between high-confidence correct predictions and high-confidence errors on unknown inputs.
Feature Embedding
The low-dimensional vector space where Weibull Calibration operates. Neural networks learn to map high-dimensional RF signals into compact embeddings where semantic similarity equals geometric proximity. Weibull Calibration then models the distribution of distances within this space:
- Class means serve as prototypical anchors
- Distance distributions characterize class boundaries
- Tail behavior determines rejection thresholds

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us