Skip to content

Archive

Out-of-Distribution Detection

4 articles
Artificial Intelligence 14 Sep 2026 6 min read

Detect Feature Outliers with Mahalanobis Distance

A feature vector can sit close to a reference mean in Euclidean distance and still be unusual for the distribution that produced the reference data. Mahalanobis distance accounts for this by scaling displacement according to covariance. Directions with little observed variation contribute more to the score than directions in which the reference data naturally spreads out. That behavior makes the distance useful as a compact outlier score for model features or embeddings, provided the reference statistics are meaningful and the covariance estimate is numerically usable.

Artificial Intelligence 13 Sep 2026 6 min read

Detect Out-of-Distribution Inputs with Classifier Energy Scores

A classifier can assign high softmax confidence to an input that does not resemble the data used to fit its parameters. Softmax normalizes scores across the available classes; it does not add a separate class for unfamiliar inputs. As a result, a large maximum probability is not evidence that an input belongs to the expected data distribution. Energy-based out-of-distribution detection uses the full logit vector to produce a scalar score before a deployment policy decides whether an input looks familiar enough to accept. The score is simple to compute for an existing classifier, but its interpretation depends on the model, temperature, data regime, and threshold calibration.

Artificial Intelligence 08 Sep 2026 9 min read

Detect Out-of-Distribution Inputs with Energy Scores

A classifier can be highly accurate on its test set and still behave confidently on inputs that are unlike anything it was trained to recognize. A product classifier trained on shoes, bags, and watches may receive a photo of a bicycle and still be forced to choose one of its known classes. That creates a deployment problem: ordinary classification answers which known class looks most likely, but many systems also need to ask whether this input resembles the data on which the classifier was validated.

Artificial Intelligence 04 Sep 2026 10 min read

Detect Out-of-Distribution Inputs Before Trusting a Model

A model can produce a confident-looking prediction for an input that is unlike anything it was designed to handle. A product classifier trained on shoes, shirts, and bags still has to return some class when given a photo of a bicycle. The classifier’s output layer does not automatically gain an unknown class just because the input is unfamiliar. This is the problem addressed by out-of-distribution detection, usually shortened to OOD detection. The goal is to recognize inputs that differ meaningfully from the data the model is expected to handle, before the application treats an ordinary model prediction as trustworthy.