Inferensys

Glossary

Novelty Detection

Novelty detection is the process of recognizing that a test input originates from a previously unseen pattern or class entirely absent from the training distribution.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
OUT-OF-DISTRIBUTION DETECTION

What is Novelty Detection?

Novelty detection is the machine learning task of identifying test inputs that originate from a previously unseen pattern or class entirely absent from the training distribution, enabling models to recognize when they encounter unknown concepts.

Novelty detection is the process of recognizing that a test input belongs to a new semantic class not represented in the training data. Unlike out-of-distribution detection, which flags any statistically divergent input, novelty detection specifically identifies emerging patterns—such as a new malware family or a previously unseen product defect—that should be isolated for further analysis rather than forced into an existing category.

This capability relies on modeling the support of the training distribution through techniques like Deep SVDD or Local Outlier Factor (LOF). By learning a compact boundary around known data in feature space, the system can reject inputs that fall outside this manifold, preventing the silent misclassification of novel phenomena and forming a critical component of open set recognition systems.

METHODOLOGICAL FOUNDATIONS

Core Novelty Detection Techniques

A taxonomy of the primary algorithmic approaches used to identify inputs that belong to previously unseen classes or patterns, distinct from anomaly detection which flags rare in-distribution events.

01

One-Class Classification

Trains a model exclusively on the target 'normal' class to define a tight decision boundary. Deep SVDD maps data into a minimal hypersphere, flagging points far from the center as novel. One-Class SVM finds a hyperplane that separates the origin from the training data in a high-dimensional kernel space. These methods are ideal when only positive samples are available and the space of potential novelties is unbounded.

02

Distance-Based Rejection

Uses the distance of a test sample's feature representation to the training manifold as a novelty score. Mahalanobis Distance computes the distance to class-conditional Gaussian distributions, capturing covariance structure. KNN Distance uses the distance to the k-th nearest neighbor in the training feature space. Inputs far from the learned manifold are rejected as novel.

03

Uncertainty Quantification

Leverages model uncertainty as a proxy for novelty. Epistemic uncertainty—the model's lack of knowledge—is high for unseen inputs. Techniques include:

  • Monte Carlo Dropout: Multiple forward passes with dropout at inference time
  • Deep Ensembles: Variance across independently trained models High predictive disagreement signals a novel input outside the training distribution.
04

Generative Model Likelihood

Uses the probability density assigned by a generative model as a normality score. Normalizing Flows provide exact likelihood computation through invertible transformations. Diffusion Models detect novelty via high reconstruction error on noised inputs. However, likelihood-based methods can fail on complex datasets—a phenomenon known as the typicality paradox, where OOD inputs receive higher likelihoods than in-distribution samples.

05

Contrastive Representation Learning

Trains encoders to pull augmented views of the same sample together while pushing all others apart in embedding space. This creates a feature manifold where novel classes naturally separate from known ones. Methods like SimCLR and SupCon improve OOD detection by learning representations that are sensitive to semantic shifts, not just pixel-level differences.

06

Outlier Exposure Training

A training strategy that leverages an auxiliary dataset of diverse outliers to teach the model heuristics for detecting unknown inputs. The model is trained to produce uniform softmax distributions or high energy scores on outlier samples. This significantly improves generalization to unseen novelty distributions and is one of the most empirically effective approaches when a representative outlier set is available.

TAXONOMIC COMPARISON

Novelty Detection vs. Related Concepts

Distinguishing novelty detection from adjacent paradigms in out-of-distribution analysis based on training assumptions, output semantics, and operational objectives.

FeatureNovelty DetectionAnomaly DetectionOpen Set Recognition

Training Data Composition

Only normal/in-distribution samples; no anomalies available

Mostly normal data; may contain rare contaminated outliers

Labeled known classes only; unknown classes entirely absent

Primary Objective

Identify inputs from previously unseen classes or patterns

Identify rare events or statistical deviations from the norm

Classify known classes accurately while rejecting unknown classes

Output Semantics

Binary: novel vs. normal; no class discrimination required

Continuous anomaly score or binary outlier flag

Multi-class prediction plus explicit 'unknown' rejection class

Known Class Discrimination

Handles Contaminated Training Data

Typical Supervision Paradigm

Semi-supervised (one-class training)

Unsupervised or semi-supervised

Supervised for known classes; open-set at inference

Core Statistical Assumption

Novel patterns are absent from training distribution entirely

Anomalies are rare and lie in low-density regions

Known and unknown classes are semantically disjoint

Representative Algorithms

Deep SVDD, One-Class SVM, Autoencoder Reconstruction Error

Isolation Forest, LOF, KNN Distance, Robust PCA

OpenMax, Extreme Value Theory calibration, PROSER

NOVELTY DETECTION INSIGHTS

Frequently Asked Questions

Explore the core concepts, methodologies, and distinctions that define how machine learning systems identify previously unseen patterns and classes absent from their training distribution.

Novelty detection is the process of recognizing that a test input originates from a previously unseen pattern or class that was entirely absent from the training distribution. While often used interchangeably, novelty detection and anomaly detection have a critical semantic distinction in machine learning. In novelty detection, the training set is assumed to be clean and consists solely of 'normal' in-distribution data; the goal is to detect new, previously unobserved patterns that emerge later. In anomaly detection, the training set may already contain outliers or anomalies, and the task is to identify these rare, deviant instances within a contaminated dataset. Novelty detection is fundamentally an open set recognition problem where the model must generalize its concept of 'known' to reject the 'unknown' without having been explicitly trained on outlier examples.

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.