Prototype learning is a discriminative method that represents each known class by a single, characteristic embedding point in a high-dimensional feature space. During training, the network is optimized to map input samples close to their corresponding class prototype while maximizing the distance to all other prototypes. Classification is performed by computing the distance—typically Euclidean or cosine—from a query sample's embedding to every prototype, assigning the label of the nearest one.
Glossary
Prototype Learning

What is Prototype Learning?
Prototype learning is a classification methodology where a neural network learns a single representative embedding vector, or prototype, for each known class, and novelty is detected by measuring the distance of a query sample to these learned prototypes.
For open set signal recognition, prototype learning provides a natural mechanism for novelty detection. If the distance from a query sample to its nearest prototype exceeds a learned or statistically derived threshold, the sample is rejected as belonging to an unknown modulation class. This approach avoids the closed-set assumption of traditional SoftMax classifiers, making it robust to the appearance of new signal types in dynamic spectrum environments.
Key Features of Prototype Learning
Prototype learning constructs a discriminative embedding space where each known modulation class is represented by a single prototype vector. Classification and novelty detection are performed by measuring distance to these learned representatives.
Prototypical Networks
The foundational architecture computes a class prototype as the mean embedding vector of its support examples. A query signal is classified by finding the nearest prototype in the embedding space using a distance metric, typically squared Euclidean distance.
- Produces a distribution over classes via a softmax over distances
- Naturally episodic training mimics few-shot scenarios
- Distance to the nearest prototype serves as a direct novelty score
Distance-Based Novelty Detection
Unlike closed-set softmax classifiers that force a decision, prototype networks reject unknown modulations by thresholding the minimum distance to any known class prototype.
- If
min_distance > threshold, the signal is flagged as unknown - Threshold can be calibrated using Extreme Value Theory on known-class distances
- Avoids the feature collapse problem common in discriminative models
Reciprocal Point Learning
An extension where each known class is represented by a reciprocal point rather than a central prototype. Classification uses the maximum distance to these points, creating a more robust open space risk boundary.
- Unknown samples are pushed away from all reciprocal points simultaneously
- Provides stronger theoretical guarantees against open space risk
- Integrates naturally with deep convolutional feature extractors for IQ samples
Prototype Refinement with Outlier Exposure
Training is regularized by exposing the network to auxiliary outlier datasets during prototype learning. This forces prototypes to be compact and well-separated from potential unknown signal regions.
- Outlier samples are pushed to a background prototype or uniform distribution
- Improves AUROC for novelty detection by 10-15% in spectrum monitoring tasks
- Prevents prototype drift toward ambiguous feature space regions
Mahalanobis Distance Prototypes
Replaces Euclidean distance with the Mahalanobis distance, which accounts for the covariance structure of each class's embedding distribution. This provides a statistically informed metric that adapts to the spread of each modulation type.
- Class-specific covariance matrices are learned during training
- Handles anisotropic clusters common in high-SNR signal representations
- More robust to distributional shift in channel conditions
Incremental Prototype Registration
Supports open world learning by allowing new modulation classes to be registered without retraining the entire network. A new prototype is computed from a few labeled examples and added to the gallery.
- Enables field-updatable signal libraries for SIGINT platforms
- Avoids catastrophic forgetting of previously learned modulations
- Compatible with few-shot and one-shot registration scenarios
Frequently Asked Questions
Explore the core concepts behind prototype-based classification and its critical role in building robust open set signal recognition systems.
Prototype learning is a classification methodology where a neural network learns a single, representative embedding vector—called a prototype—for each known class. Instead of drawing complex, non-linear decision boundaries through the entire feature space, the model maps input samples to a high-dimensional embedding space where each class is represented by a single point. Classification of a new query sample is performed by measuring its distance (typically Euclidean or cosine) to these learned prototypes; the sample is assigned to the class of the nearest prototype. This distance-based mechanism is what makes the approach inherently suitable for open set recognition: an input that is far from all known prototypes can be rejected as unknown or novel. The network is trained using a loss function, such as a variant of the Prototypical Network loss, that minimizes intra-class distance to the prototype while maximizing inter-class separation.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Prototype learning is a foundational technique for open set recognition. The following concepts are essential for understanding how prototype-based classifiers distinguish known modulation schemes from novel, unknown signals.
Open Set Recognition
The overarching classification paradigm where a model must accurately identify known classes while simultaneously detecting and rejecting unknown classes not seen during training. Prototype learning provides a natural mechanism for this by measuring distance to learned class representatives. In a spectrum monitoring context, this means a classifier can identify standard modulations like QPSK and 16QAM while flagging a novel, proprietary waveform as 'unknown' rather than forcing a misclassification.
Out-of-Distribution Detection
The specific task of identifying input samples that differ significantly from the training data distribution. Prototype networks enable this by establishing a distance threshold in the embedding space. Key mechanisms include:
- Mahalanobis Distance: Accounts for class covariance structure, providing a more statistically informed metric than Euclidean distance
- Feature Magnitude Thresholding: Unknown samples often produce embeddings with smaller norms, creating a natural rejection boundary
- Energy-Based Scoring: Assigns high energy to OOD samples based on their distance from all known prototypes
Extreme Value Theory in OpenMax
A statistical framework for modeling the tail behavior of distance distributions. The OpenMax layer replaces standard SoftMax by fitting a Weibull distribution to the distances of correctly classified samples from their class mean. This recalibrates activation vectors to estimate the probability of an input belonging to an unknown class. For modulation recognition, EVT provides a principled way to set rejection thresholds that adapt to the geometry of each class's embedding space.
Reciprocal Point Learning
An alternative classification strategy where each known class is represented by a reciprocal point in the embedding space rather than a central prototype. Unknown samples are identified by their maximum distance to these reciprocal points. The key insight: known samples cluster near their class prototype but far from reciprocal points, while unknown samples maintain similar distances to all reciprocal points, creating a detectable signature for novelty.
Epistemic Uncertainty Quantification
The model's uncertainty arising from a lack of knowledge or data, which is reducible with more training samples. Prototype distance directly quantifies epistemic uncertainty—a sample far from all prototypes indicates the model has insufficient knowledge to classify it. This is distinct from aleatoric uncertainty (inherent noise). Techniques for measuring this include:
- Evidence Deep Learning: Places a Dirichlet distribution over class probabilities
- Deep Ensembles: Variance across multiple networks signals uncertainty
- Distance to Nearest Prototype: The simplest and most direct metric
Objectosphere Loss
A specialized loss function that creates a distinct separation in feature magnitude between known and unknown samples. It maximizes the feature norm for known samples while minimizing it for unknown samples, creating a thresholdable rejection space. When combined with prototype learning, this loss ensures that known modulation embeddings have large magnitudes and cluster tightly around their prototypes, while unknown signals produce low-magnitude embeddings that fall below a rejection threshold.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us