Inferensys

Glossary

Query Set

In few-shot learning, the set of unlabeled examples used to evaluate the model's performance on a task after it has been conditioned on the support set.
ML engineer running AI model benchmarks, performance charts on multiple screens, late night home office setup.
FEW-SHOT EVALUATION

What is Query Set?

The query set is the batch of unlabeled examples used to evaluate a model's performance during a few-shot learning episode, distinct from the labeled support set used for conditioning.

In few-shot learning, the query set is the collection of unlabeled data points used to test a model's ability to generalize after it has been conditioned on a small support set. During an episode, the model must classify or predict the labels for these query examples, and the resulting loss is computed to update the meta-learning parameters.

The query set is structurally identical to the support set but serves a distinct role: it measures generalization error rather than providing class definitions. In an N-way K-shot task, the query set typically contains multiple samples per class, and performance is measured by comparing the model's predictions against the held-out ground truth labels.

QUERY SET FUNDAMENTALS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about the role and mechanics of the query set in few-shot learning and meta-learning evaluation.

A query set is the batch of unlabeled examples used to evaluate a model's performance on a specific task after it has been conditioned on the support set. In an N-way K-shot classification episode, the query set typically contains multiple samples per class that the model must classify based solely on the patterns learned from the K labeled examples in the support set. The model's loss is computed exclusively on the query set, and backpropagation uses this loss to optimize the model's ability to generalize from limited data. The query set simulates the novel, unseen instances a deployed model would encounter after rapid enrollment.

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.