Detecting Unknowns via Classifier Confidence

This direction is split into other directions: maximum softmax probability, open-set probability estimation. Its last version stays readable and citable here.

Version 1 of 180 papers93 conceptsfrozen 2026-10-04

Standard neural network classifiers operate under a "closed-world" assumption: they are forced to categorize every input into one of a few pre-defined labels. When a model trained only on "cats" and "dogs" is shown a picture of a "tractor," it doesn't say "I don't know"; it confidently (and incorrectly) picks the animal that looks most like a tractor.

This research direction focuses on Open-Set Recognition (OSR) and Out-of-Distribution (OOD) Detection. The goal is to move beyond forced choices by enabling models to identify when an input belongs to a category they have never seen before.

The Intuition: Relative Overconfidence

The core insight of this field is that while neural networks are notoriously overconfident, they are differently overconfident about familiar versus unfamiliar data.

In their seminal work, Dan Hendrycks and Kevin Gimpel established that the Maximum Softmax Probability (MSP)—the highest value in the model's final output layer—serves as a surprisingly effective baseline for detecting anomalies. Even if a model assigns a high probability to an incorrect class, that probability is typically lower than the score it would give to a correctly classified, in-distribution example. This gap allows researchers to treat the softmax output not as a calibrated probability, but as a relative ranking signal to flag potential errors or novelties.

The Rejection Mechanism

To turn this observation into a functional system, researchers implement a rejection threshold. If the model’s highest confidence score falls below a specific value, the system "abstains" from a prediction or labels the input as "unknown."

This mechanism has been applied across diverse domains:

  • Medical Imaging: Dzenan Zukic and colleagues used probability thresholds to identify unknown 3D volume datasets, preventing the system from misidentifying a random scan as a specific medical category.
  • Robotics: In the ImageCLEF Robot Vision track, participants used penalized frameworks where a neutral "unknown" response was rewarded more than an incorrect guess, forcing robots to manage spatial uncertainty.
  • NLP and Intent Detection: Jianguo Zhang demonstrated that while Transformers are powerful, they require confidence-based thresholding to catch "out-of-scope" user queries that are semantically similar to supported tasks but technically unsupported.

Refining the Signal

Simply looking at the raw softmax output is often insufficient because models can be "optimistically" overconfident on outliers. To address this, Shiyu Liang and Yixuan Li proposed principled detection methods that enhance the reliability of these scores without requiring model retraining.

Other researchers have moved toward architectural changes. Lei Shu and Bing Liu developed DOC (Deep Open Classification), which replaces the standard Softmax layer with a 1-vs-rest sigmoid layer. This allows the model to treat each class independently, making it easier to reject an input if none of the individual class probabilities meet a Gaussian-calibrated threshold.

Teaching Models to Say No

Recent advancements have shifted from passive thresholding to active negation. In the context of vision-language models, Hualiang Wang and Yi Li introduced CLIPN, a framework that teaches models like CLIP to explicitly "say no." By comparing the relative probabilities of positive class descriptors against learnable "negative" prompts, the system can autonomously flag OOD samples without needing a manually tuned threshold.

Similarly, Y.-C Lee proposed using "neutral agents" or prompts that act as intermediaries. In this setup, out-of-distribution data naturally gravitates toward the neutral agent, effectively lowering the confidence score of the known classes and making the OOD signal much clearer.

Why It Works

The success of these methods relies on the geometry of the model's feature space. In-distribution data typically clusters into tight, well-defined manifolds. When a model encounters OOD data, the input falls into the "empty" space between these clusters. While the normalization of Softmax forces these points into a class, the underlying logit variance (as explored in VarMax) or the statistical likelihood (as seen in GMM-Det) reveals that the sample does not truly belong. By monitoring these internal signals, we can build systems that are not just accurate, but also aware of their own limitations.

Papers in this version

Showing 60 of 80 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_detecting_unknowns_via_classifier_confid_732a4f58,
  title = {Detecting Unknowns via Classifier Confidence},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/detecting-unknowns-via-classifier-confidence/rdr_732a4f586cd94cb6aa0d49f297bbda9a},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_detecting_unknowns_via_classifier_confid_732a4f58_v1,
  title = {Detecting Unknowns via Classifier Confidence},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/detecting-unknowns-via-classifier-confidence/rdr_732a4f586cd94cb6aa0d49f297bbda9a/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}