OpenMax is a meta-recognition algorithm that extends a closed-set classifier for open set recognition. It recalibrates the final activation vector (logits) by fitting a Weibull distribution to the distance of each known class's correctly classified training samples from their class mean. This statistical model of class boundaries allows the network to reject inputs that fall far from any known distribution.
Glossary
OpenMax

What is OpenMax?
OpenMax is an inference-time algorithm that replaces the standard SoftMax layer in deep neural networks with a mechanism calibrated using Extreme Value Theory to estimate the probability of an unknown class.
During inference, OpenMax uses the fitted Weibull models to adjust the logits, redistributing probability mass from the top-ranked classes to a synthetic unknown class when the input appears to be an outlier. This provides a calibrated open space risk estimate, enabling the model to say 'I don't know' instead of forcing a misclassification into a known category.
Key Features of OpenMax
OpenMax replaces the standard SoftMax layer with a mechanism calibrated using Extreme Value Theory (EVT) to estimate the probability of an unknown class, enabling neural networks to reject unseen emitters.
Weibull Calibration of Activation Vectors
OpenMax recalibrates the penultimate layer's activation vector (the logits) by fitting a Weibull distribution to the distances between correctly classified training samples and their class mean activation vectors. This statistical model captures the tail behavior of each known class, establishing a robust boundary for inclusion. During inference, the distance of a query sample to each class mean is evaluated against the fitted Weibull CDF to compute a recalibrated score, effectively shrinking the open space risk for each known class.
Explicit Unknown Class Probability
Unlike standard SoftMax, which forces a closed-world assumption by normalizing probabilities to sum to 1, OpenMax introduces an explicit unknown class index. The algorithm computes the probability of an input belonging to this unknown class based on the cumulative rejection scores from the Weibull models. If the recalibrated activation vector indicates the sample is far from all known class distributions, mass is shifted to this unknown index, allowing the model to output a calibrated probability that the emitter is novel or adversarial.
Meta-Recognition for Thresholding
OpenMax employs a meta-recognition stage to determine the final classification. It sorts the top-k predicted classes and applies a sequential thresholding process using the Weibull CDF. If the probability of the top class falls below a calibrated rejection threshold, the sample is labeled as unknown. This mechanism avoids the brittle, arbitrary threshold selection common in simple anomaly detection by grounding the rejection logic in the statistical properties of the training data's tail distribution.
Distance Metric in Activation Space
The algorithm operates on the Mean Activation Vector (MAV) for each known class, computed from the correctly classified training samples. For each class, a Weibull model is fit to the tail of the Euclidean distances between the MAV and the samples. This distance metric learning is crucial: it assumes that in a well-trained deep network, the activation space is semantically meaningful, and proximity to a class centroid correlates strongly with class membership, making it effective for open set emitter recognition.
Computational Efficiency for Edge Deployment
OpenMax is designed as a lightweight post-processing layer that replaces the final SoftMax operation. It does not require retraining the backbone neural network or adding auxiliary output heads. The computational overhead involves only a few distance calculations and Weibull CDF lookups per inference, making it highly suitable for edge AI signal identification on SDRs and FPGAs where latency and power budgets are constrained. The Weibull parameters are pre-computed offline during a calibration phase.
Foundation in Extreme Value Theory
The theoretical rigor of OpenMax comes from Extreme Value Theory (EVT), which models the probability of rare, extreme events. By fitting a Weibull distribution to the tail of the distance distribution for each class, OpenMax provides a principled statistical basis for rejecting outliers. This contrasts with heuristic methods that use raw SoftMax confidence scores, which are known to be poorly calibrated and often produce high probabilities for out-of-distribution inputs, making EVT essential for reliable open set emitter recognition.
Frequently Asked Questions
Clear, technical answers to the most common questions about the OpenMax algorithm, its calibration with Extreme Value Theory, and its role in open set recognition systems.
OpenMax is an algorithm that replaces the standard SoftMax layer in a neural network with a mechanism calibrated using Extreme Value Theory (EVT) to estimate the probability of an unknown class. It works by first extracting the feature embedding vector from the penultimate layer of a trained network. For each known class, it fits a Weibull distribution to the distance between correctly classified training samples and their class mean activation vector. During inference, the algorithm recalibrates the top activation scores by weighting them against the Weibull cumulative distribution function, reserving a portion of the probability mass for an explicit 'unknown' class. This allows the model to reject inputs that fall far from any known distribution, directly addressing the open space risk inherent in standard closed-set classifiers.
OpenMax vs. Other Open Set Recognition Methods
A technical comparison of OpenMax against alternative open set recognition and out-of-distribution detection approaches for emitter identification tasks.
| Feature | OpenMax | Deep SVDD | Energy-Based Models | Monte Carlo Dropout |
|---|---|---|---|---|
Core Mechanism | EVT-calibrated Weibull fitting on logits | Minimal-volume hypersphere boundary | Energy function scoring | Stochastic forward passes at inference |
Requires Unknown Samples for Calibration | ||||
Computational Overhead at Inference | Minimal (single forward pass) | Minimal (distance computation) | Moderate (energy calculation) | High (10-100 forward passes) |
Open Space Risk Management | Explicit probabilistic modeling of extreme distances | Implicit via hypersphere radius | Explicit via energy landscape | Implicit via variance estimation |
Sensitivity to Hyperparameters | High (tail size, distance metric) | Moderate (center, radius) | Moderate (energy function design) | Low (dropout rate only) |
Known Class Accuracy Retention | 95-98% | 90-94% | 93-97% | 88-93% |
AUROC on Unknown Detection | 0.92-0.96 | 0.85-0.91 | 0.90-0.95 | 0.82-0.89 |
Theoretical Foundation | Extreme Value Theory (Fisher-Tippett) | One-class classification | Energy-based learning (LeCun) | Bayesian approximation (Gal & Ghahramani) |
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
OpenMax operates within a broader framework of statistical and architectural techniques designed to manage the open world. The following concepts are essential for understanding how neural networks can be calibrated to recognize and reject the unknown.
Extreme Value Theory (EVT)
The statistical foundation of OpenMax. EVT models the distribution of maxima in data, specifically the tail behavior where extreme events occur. OpenMax uses EVT to fit a Weibull distribution to the distances between a sample's activation vector and the mean activation vector of each known class. This calibration models the probability of a sample belonging to the tail of a class distribution, enabling a principled estimate of the likelihood that an input is an unknown class rather than a poorly matched known class.
SoftMax vs. OpenMax Layer
A standard SoftMax layer forces a closed-world assumption by normalizing all logits into a probability distribution that sums to 1.0, guaranteeing a prediction even for nonsense inputs. OpenMax replaces this by:
- Fitting a Weibull model per class using EVT on the penultimate layer's activation vectors.
- Recalibrating the logits based on the probability of being an outlier.
- Introducing an explicit unknown class score. The output is a probability distribution over K+1 classes, where the +1 represents the rejection of all known categories.
Open Space Risk Management
The core problem OpenMax solves. Open Space Risk is the probability of labeling an unknown sample as a known class, quantified by the volume of feature space far from any training data that is nonetheless classified. OpenMax explicitly bounds this risk by using EVT to define a probability of inclusion for each class. If a sample falls in the tail beyond a calibrated threshold, its probability mass is shifted to the unknown class, effectively shrinking the decision boundary around the known training data.
Weibull Calibration
The specific EVT technique used by OpenMax. For each known class, the algorithm computes the distances between all correctly classified training samples and their class mean activation vector. A Weibull distribution is fit to the tail of these distances. At inference, the distance of a new sample to each class mean is evaluated against the fitted Weibull CDF. A low CDF value indicates the sample is an outlier relative to that class, triggering a recalibration of the logit that reduces the false confidence of the SoftMax output.
Feature Embedding & Activation Vectors
OpenMax operates on the penultimate layer of a neural network, known as the embedding or activation vector space. This layer represents the high-level features extracted from the input before final classification. The algorithm relies on the assumption that in a well-trained network, samples from the same class cluster tightly in this space. The Mean Activation Vector (MAV) for each class serves as the prototype, and the distance to this MAV is the signal used for EVT calibration and outlier detection.
Open Set Recognition (OSR)
The broader classification paradigm that OpenMax implements. OSR requires a model to simultaneously:
- Accurately classify inputs belonging to known classes.
- Detect and reject inputs from unknown classes not seen during training. This contrasts with closed-set classification, which assumes all test classes were present in training. OSR is critical for deploying models in dynamic, real-world environments like spectrum surveillance and cognitive radio, where new emitters constantly appear.

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