OpenMax is a meta-recognition algorithm that extends deep neural network classifiers for open set recognition by modeling the distribution of penultimate-layer activation vectors. Instead of forcing a closed-world assumption where all inputs map to a known class, OpenMax fits a Weibull distribution to the extreme values of each class's activation distances using Extreme Value Theory (EVT). This recalibration of the softmax scores produces a calibrated probability for an explicit 'unknown' class, allowing the model to reject anomalous or novel signal types.
Glossary
OpenMax

What is OpenMax?
OpenMax is an open set recognition algorithm that replaces a standard softmax layer with a recalibrated probability distribution, enabling deep neural networks to reject unknown inputs not seen during training.
In adversarial robustness for automatic modulation classification, OpenMax serves as a critical defense against evasion attacks and out-of-distribution waveforms. By analyzing the activation vector magnitude for a test sample, the algorithm determines if the input lies far from any known class's statistical boundary. This provides a principled rejection mechanism that prevents an adversary from forcing a high-confidence misclassification on a perturbed or entirely novel modulation scheme, complementing certified defenses like randomized smoothing.
Key Features of OpenMax
OpenMax replaces the standard softmax layer with an Extreme Value Theory-based mechanism to estimate the probability that an input belongs to an unknown class, enabling deep networks to reject novel signals.
Weibull Distribution Fitting
For each known class, OpenMax fits a Weibull distribution to the tail of the distance between the class's mean activation vector (MAV) and the top incorrectly classified training samples. This models the extreme value statistics of outlier activations, providing a per-class probabilistic model of what constitutes 'far away' from known data. The fitting uses the libMR framework for efficient Weibull parameter estimation.
Activation Vector Recalibration
Rather than taking the raw softmax output, OpenMax recalibrates the penultimate layer's activation vector (AV). For each top-ranked class, it computes the distance to the class's MAV and queries the fitted Weibull CDF to determine the probability of observing such a distant sample. These probabilities are used to discount the logits of known classes, effectively reducing their scores when the input appears atypical.
Unknown Class Probability Estimation
The recalibrated logits are re-normalized to produce a new probability distribution over K+1 classes: the K known classes plus a dedicated 'unknown' class. The probability mass assigned to the unknown class is the sum of the discounts applied to the known classes. This provides a calibrated rejection score that can be thresholded to trigger out-of-distribution detection or flag novel modulation schemes.
Threshold-Driven Rejection
A critical operational parameter is the rejection threshold (ε). If the probability of the unknown class exceeds ε, the classifier rejects the input entirely. This threshold can be tuned to balance the trade-off between open-set risk (misclassifying an unknown as known) and closed-set accuracy. In signal classification, this prevents a cognitive radio from erroneously identifying a novel adversarial waveform as a known friendly protocol.
Meta-Recognition Calibration
OpenMax implements a meta-recognition layer that operates on top of the base classifier. It does not require retraining the original network; it only needs the activation vectors from the training set. This makes it a post-hoc method that can be applied to pre-trained models. The Weibull fitting is performed per-class, assuming that the tail behavior of the distance distribution follows an Extreme Value Theory model.
Limitations in High-Dimensional Spaces
OpenMax assumes that the distance between an AV and the MAV is a meaningful indicator of novelty. In very high-dimensional activation spaces, distances can concentrate, making separation difficult. Additionally, the method relies on the top-k incorrect classes during training to fit the Weibull tail, which may not capture all modes of novelty. For complex signal environments, it may be outperformed by more recent density-based or energy-based open-set methods.
OpenMax vs. Standard Softmax vs. Out-of-Distribution Detection
A feature-level comparison of OpenMax against standard closed-set softmax classifiers and general out-of-distribution detection methods for open set recognition tasks.
| Feature | OpenMax | Standard Softmax | OOD Detection |
|---|---|---|---|
Core mechanism | Recalibrates softmax using EVT on activation vectors | Normalizes logits into a probability distribution over K known classes | Scores samples based on distance from training distribution |
Open set capability | |||
Requires outlier data for calibration | |||
Theoretical foundation | Extreme Value Theory (Weibull distribution) | Boltzmann/Gibbs distribution | Statistical hypothesis testing or density estimation |
Rejects unknown classes | |||
Outputs calibrated known-class probabilities | |||
Computational overhead vs. standard softmax | Moderate (distance computation + EVT fitting) | Minimal (baseline) | Varies (low for MSP, high for density-based) |
Sensitivity to adversarial perturbations | High (activation vector shifts can alter Weibull fit) | High (gradient-based attacks exploit softmax saturation) | Moderate (depends on detector robustness) |
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.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the OpenMax algorithm, its mechanisms, and its role in open set recognition for signal classification.
OpenMax is an open set recognition algorithm that replaces the standard softmax layer of a deep neural network to enable it to reject unknown classes. It works by modeling the distribution of activation vectors for each known class using Extreme Value Theory (EVT), specifically fitting a Weibull distribution to the tail of the distances between a class's mean activation vector and its correctly classified training examples. At inference time, OpenMax recalibrates the logits by estimating the probability that an input belongs to an unknown class based on its distance from known class distributions, appending a dedicated 'unknown' score to the output layer.
Related Terms
Concepts and techniques that complement or contrast with OpenMax for managing unknown classes and adversarial inputs in machine learning classifiers.
Out-of-Distribution Detection
The task of identifying test samples drawn from a fundamentally different distribution than the model's training data. While OpenMax focuses on activation vector distributions in the penultimate layer, general OOD detection methods may use energy-based scores, Mahalanobis distance, or gradient-based statistics. Key distinction: OOD detection flags distributional shift broadly, whereas OpenMax specifically models the boundary between known and unknown classes within the same feature space.
Extreme Value Theory (EVT)
The statistical foundation underpinning OpenMax. EVT models the behavior of the tail of a distribution—the extreme, rare events. OpenMax applies the Weibull distribution to fit the distance between a sample's activation vector and the mean activation vector of each known class. This calibrated model determines the probability that a sample belongs to an unknown class, rejecting it if the probability exceeds a threshold.
Softmax vs. OpenMax Recalibration
A standard softmax layer forces a closed-world assumption: probabilities always sum to 1 across known classes, even for nonsensical inputs. OpenMax recalibrates these scores by:
- Fitting Weibull models per class on Mean Activation Vectors (MAVs)
- Computing a pseudo-probability for an explicit 'unknown' class
- Redistributing the softmax probabilities to include this rejection class This prevents confident misclassifications on novel signal types.
Adversarial Detection
A security mechanism designed to distinguish between legitimate data samples and adversarial inputs before classification. While OpenMax handles unknown but benign classes, adversarial detection targets maliciously perturbed samples. The two concepts intersect: an adversarially perturbed known signal may appear as an unknown class. Combining OpenMax with feature squeezing or local intrinsic dimensionality detectors creates a layered defense against both novelty and attacks.
Conformal Prediction
A model-agnostic framework that produces prediction sets with a finite-sample, distribution-free guarantee of marginal coverage. Unlike OpenMax's parametric EVT approach, conformal prediction uses a calibration set to determine nonconformity scores. For modulation classification, this means outputting a set like {QPSK, 16QAM} instead of a single label when uncertainty is high, providing a statistically rigorous alternative to OpenMax's rejection mechanism.
Certified Robustness
A formal guarantee that a classifier's prediction will not change for any input within a mathematically verified Lp-norm bound. While OpenMax provides empirical open-set rejection, certified robustness via randomized smoothing or interval bound propagation offers provable guarantees against adversarial perturbations. In safety-critical RF systems, combining OpenMax for unknown modulation rejection with certified robustness for known-class stability creates a defense-in-depth architecture.

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