TL;DR
This paper introduces "Agnostophobia"—the fear of the unknown in deep learning—and proposes two novel loss functions, Entropic Open-Set and Objectosphere, to address it. By forcing unknown inputs to have high entropy and low feature magnitudes, the authors create a clear geometric separation that allows networks to identify and reject previously unseen classes far more effectively than standard methods.
The Problem: AI's Overconfidence
Deep neural networks are notoriously overconfident. When presented with an image of something they weren't trained on (an "unknown"), they often assign it to a known category with high probability. For example, a network trained only on digits might see a random squiggle or a letter and confidently claim it’s a "7."
In real-world, uncontrolled environments, this is dangerous. This "Agnostophobia" (fear of the unknown) stems from the fact that network behavior is undefined for inputs far from the training set. Traditional fixes involve thresholding the Softmax output or adding a "background" class. However, the authors argue these are insufficient: Softmax is inherently biased toward picking some class, and a single background class cannot possibly represent the infinite variety of the "unknown" universe.
Methods: Shaping the Feature Space
The authors propose moving away from simply adding a new class and instead focus on shaping the network's internal feature representation.
- Entropic Open-Set Loss: Instead of a background class, this loss trains the network to produce a uniform probability distribution (maximum entropy) when it encounters "known unknowns" (samples from a background dataset used during training). Essentially, it tells the network: "If you see this, you should be completely confused."
- Objectosphere Loss: This is the core innovation. It builds on the Entropic loss by adding a geometric constraint in the deep feature space. It pushes the feature vectors of unknown samples toward the origin (minimizing their Euclidean magnitude) while pushing known samples to have a magnitude above a certain threshold ($\xi$).
- OSCR Metric: The authors introduce the Open-Set Classification Rate (OSCR). Unlike standard accuracy, OSCR measures the trade-off between correctly classifying known samples and falsely identifying unknown samples as knowns, providing a more robust evaluation for open-set scenarios.
Key Insights and Ideas
- Magnitude as a Proxy for Confidence: The most striking insight is that the length of a feature vector captures "known-ness." By explicitly training the network to collapse unknown features to the origin, they create a "sphere" of known classes (the Objectosphere) surrounding a core of unknowns.
- Entropy isn't Enough: Simply maximizing entropy (making the network "confused") helps, but adding the magnitude constraint provides a much cleaner separation, especially at very low false-positive rates.
- Geometric Separation: Visualizations show that while standard networks overlap known and unknown features significantly, Objectosphere-trained networks cluster known classes into distinct "lobes" far away from the origin where unknowns reside.
Datasets and Key Results
The researchers evaluated their approach using combinations of "Knowns" (MNIST, CIFAR-10), "Known Unknowns" used during training (NIST letters, CIFAR-100 subsets), and "Unknown Unknowns" used during testing (Devanagari characters, NotMNIST, SVHN).
The Objectosphere approach significantly outperformed standard Softmax and traditional background class methods, particularly in high-stakes scenarios where false positives must be near zero:
- MNIST vs. Devanagari: At a tiny False Positive Rate (FPR) of $10^{-4}$, the Objectosphere model achieved a 73.5% Correct Classification Rate (CCR), while a standard Softmax model achieved 0% (it was completely unable to reject unknowns at that threshold).
- CIFAR-10 vs. SVHN: Using a ResNet-18 architecture, the "Scaled Objectosphere" approach achieved a CCR of 25.47% at $10^{-4}$ FPR, nearly doubling the performance of a standard background class approach (20.12%).
Limitations and Future Work
- Hyperparameter Sensitivity: The Objectosphere loss introduces two new hyperparameters: $\lambda$ (balancing the loss terms) and $\xi$ (the minimum magnitude for knowns). Finding the optimal values requires careful cross-validation.
- The "Unknown" Choice Matters: The authors found that the choice of the "known unknown" training set is crucial. If the training unknowns are too different from the test unknowns (e.g., training on letters but testing on natural objects), the performance gains can diminish.
- Complexity: While effective, the authors acknowledge that the additional magnitude constraints make the training process slightly more complex than standard cross-entropy.
Future work could involve automating the selection of these hyperparameters or finding ways to generate "synthetic" unknowns that better cover the infinite space of possible inputs.
Summary updated