A support set is the small, labeled collection of examples provided during inference to define the classes for a specific few-shot task. Unlike a traditional training set, the support set is not used for extensive weight updates; instead, it acts as a conditioning context that teaches the model what to compare against for that single episode.
Glossary
Support Set

What is a Support Set?
In few-shot learning, the support set is the small, labeled collection of examples provided at inference time to define the classes for a specific task or episode.
In an N-way K-shot task, the support set contains exactly K labeled examples for each of the N distinct classes. The model encodes these samples into an embedding space and computes a class prototype, typically the mean vector, which is then used to classify the unlabeled query set via a distance metric like cosine similarity.
Key Characteristics of a Support Set
The support set is the small, labeled collection of examples provided at inference time that defines the classes for a specific few-shot task. Its composition directly determines the model's ability to generalize.
Task-Specific Definition
The support set defines the classification space for a single episode or inference task. In an N-way K-shot configuration, it contains N unique classes with K labeled examples each. Unlike a traditional training set, the support set is provided at runtime, conditioning a pre-trained model to recognize classes it may have never seen before. This mirrors real-world scenarios like enrolling a new IoT device with only a few RF fingerprint captures.
Prototype Computation
In metric-based architectures like Prototypical Networks, the support set is used to compute a class prototype—the mean embedding vector of all support examples belonging to that class. Query samples are then classified by finding the nearest prototype in the embedding space. The support set's role is to establish these decision boundaries in real-time, making the quality and representativeness of each support example critical to accuracy.
Contrastive Pair Formation
For Siamese Networks trained with Triplet Loss, the support set provides the anchor and positive examples that define class membership. The model learns to pull embeddings of same-class pairs together while pushing different-class pairs apart by a defined margin. The support set must contain both positive pairs (same device, different captures) and implicit negative pairs (different devices) to establish discriminative boundaries.
Rapid Gradient Adaptation
In optimization-based methods like Model-Agnostic Meta-Learning (MAML), the support set is used to compute a task-specific gradient update. The model performs a small number of inner-loop gradient descent steps on the support set loss, rapidly adapting its parameters from a meta-learned initialization. The support set must be sufficiently informative to guide this adaptation without causing overfitting to the few available examples.
Episode Sampling Strategy
During episode-based training, support sets are repeatedly sampled from a larger dataset to simulate few-shot tasks. Each episode randomly selects N classes and K examples per class, training the model to generalize across diverse task distributions. This sampling strategy must match the deployment scenario—for RF fingerprinting, episodes might sample across different transmitter models, environmental conditions, or signal-to-noise ratios to ensure robustness.
Enrollment in Production
In a deployed few-shot device authentication system, the support set functions as the enrollment database. When a new IoT transmitter is onboarded, a small number of RF captures form its support set, creating a unique fingerprint template. The model compares future transmissions against this support set using cosine similarity or Euclidean distance. The enrollment process must capture representative samples across expected operating conditions to minimize False Rejection Rates.
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.
Frequently Asked Questions
Clear, direct answers to the most common questions about the role and mechanics of the support set in few-shot learning and device enrollment workflows.
A support set is the small collection of labeled examples provided to a model at inference time to define the classes for a specific task. In an N-way K-shot classification scenario, the support set contains K labeled examples for each of the N distinct classes. The model first encodes all support set samples into an embedding space, often computing a class prototype—the mean vector of the embeddings for each class. When a query sample arrives, the model encodes it and classifies it by measuring its distance to each prototype. This mechanism allows a single trained model to authenticate or classify entirely new device types without any weight updates, making it ideal for rapid IoT onboarding where only a handful of enrollment captures are available.
Related Terms
The support set is a core component of the few-shot learning paradigm. These related terms define the surrounding architecture, training strategies, and evaluation mechanisms that give the support set its functional context.
Query Set
The unlabeled set of examples used to evaluate the model's performance on a specific few-shot task. After the model is conditioned on the support set, it must classify or predict the labels for the query set. The loss is computed on query set predictions, driving the meta-learning optimization. In an N-way K-shot task, the query set typically contains multiple samples per class distinct from the support examples.
Prototypical Networks
A metric-based few-shot learning architecture that computes a prototype for each class by averaging the embeddings of its support set examples. Classification of a query sample is performed by finding the nearest prototype in the embedding space using Euclidean distance. This non-parametric approach requires no fine-tuning at inference time, making it computationally efficient for rapid device enrollment scenarios.
Episode-Based Training
A meta-learning training strategy where each iteration simulates a complete few-shot task. An episode is constructed by randomly sampling a support set and a query set from the training data. The model is trained across thousands of episodes to learn a generalizable initialization that can rapidly adapt to new classes defined by a novel support set. This mimics the test-time conditions of few-shot device enrollment.
N-Way K-Shot Classification
The standard problem formulation for few-shot learning tasks. N-way specifies the number of distinct classes in the episode, and K-shot defines the number of labeled examples per class in the support set. A 5-way 1-shot task requires the model to distinguish between 5 device classes using only a single enrollment sample per device. Higher K values generally improve accuracy by providing richer class representations.
Embedding Space
A lower-dimensional, continuous vector space where semantically similar data points are mapped close together. The support set and query set are both projected into this space by an encoder network. The quality of the embedding space—its ability to form tight, well-separated clusters—directly determines few-shot classification accuracy. Distance metrics like cosine similarity or Euclidean distance operate within this space.
Model-Agnostic Meta-Learning (MAML)
An optimization-based meta-learning algorithm that learns an initial model parameterization that can rapidly adapt to new tasks. During meta-training, the model performs a few gradient steps on the support set and is evaluated on the query set. The outer loop optimizes the initial parameters so that a small number of inner-loop updates on any support set yields strong generalization. This is ideal for quick device enrollment with minimal samples.

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