Introduction
Traditional deep neural networks are typically designed for "closed set" recognition, where the model is trained on a fixed set of categories and forced to classify every input into one of those categories. In real-world scenarios, however, systems frequently encounter "open set" inputs—objects from unknown classes or even meaningless "fooling" images. Standard models often classify these inputs into known categories with dangerously high confidence. This paper introduces OpenMax, a novel alternative to the SoftMax layer that enables deep networks to recognize and reject unknown inputs.
The Open Set Challenge
The primary limitation of the standard SoftMax layer is its inherent "sum-to-one" constraint. Because it must distribute a total probability of 1.0 across the $N$ trained classes, it lacks a mechanism to express that an input belongs to none of them. This leads to two critical failure modes:
- Open Set Errors: Misclassifying novel objects (e.g., a toaster) as a known class (e.g., a dog).
- Fooling Images: High-confidence classification of synthetic "rubbish" images that appear as noise to humans but trigger strong internal activations in the network.
The OpenMax Layer
To address these issues, the authors propose replacing the final SoftMax layer with OpenMax. This layer utilizes the internal state of the network to perform meta-recognition.
Activation Vectors and Distance Modeling
Instead of relying solely on the final output, OpenMax analyzes the Activation Vector (AV)—the values from the penultimate fully connected layer. For each known class, the model calculates a Mean Activation Vector (MAV) during training.
Using Extreme Value Theory (EVT), the system models the distribution of distances between training examples and their respective class MAVs. By fitting a Weibull distribution to the "tail" of these distances, OpenMax can determine if a new input is a statistical outlier.
Probability Redistribution
At inference time, if an input's activation pattern is significantly distant from the MAVs of the predicted classes, OpenMax redistributes the probability. It shifts confidence away from the $N$ known classes and into a newly defined $(N+1)$-th "Unknown" class, effectively allowing the model to say "I don't know."
Experimental Results
The method was evaluated using AlexNet trained on ImageNet 2012 (1,000 classes), tested against "open set" images from ImageNet 2010 (360 unseen categories) and 15,000 specifically engineered fooling images.
As shown in the scatter plot above, OpenMax successfully pulls the probabilities of fooling and open set images toward zero, whereas SoftMax often assigns them high confidence. Quantitatively, OpenMax achieved a 12.3% absolute improvement in F-measure over the baseline on a combined test set of 80,000 images.
Conclusion and Limitations
OpenMax provides a theoretically grounded approach to "bounded open space risk," significantly improving the robustness of deep networks against unknown and fooling inputs. However, the authors note that while it handles "rubbish" fooling images well, it remains vulnerable to carefully crafted adversarial images—samples designed to look like one class to humans but specifically manipulated to land near the MAV of another class in the network's feature space. Future work may involve using multiple centroids per class to better capture intra-class variance.
Summary updated