Inferensys

Glossary

OpenMax

An open set recognition algorithm that recalibrates a classifier's softmax scores using Extreme Value Theory to model the distribution of activation vectors for unknown classes.
Engineer reviewing vector database search results on laptop, embeddings visualization on screen, home office coding session.
OPEN SET RECOGNITION

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.

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.

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.

OPEN SET RECOGNITION

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.

01

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.

η > 1
Weibull Shape (Heavy-Tailed)
02

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.

03

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.

04

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.

05

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.

06

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.

OPEN SET RECOGNITION COMPARISON

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.

FeatureOpenMaxStandard SoftmaxOOD 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)

OPENMAX EXPLAINED

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.

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.