A machine learning paradigm where models learn to recognize new categories from only a handful (1-10) of labeled examples. Few-shot learning enables rapid adaptation of multimodal AI systems to new domains without large-scale data collection.
Few-shot learning models use prior knowledge from pretraining to generalize from minimal examples. Approaches include metric learning (comparing new examples to support examples in embedding space), optimization-based methods (MAML, learning to adapt quickly), and prompt-based methods (providing examples in the context window of large models). The model leverages patterns learned during pretraining to classify new items based on their similarity to the few provided examples.
N-way K-shot classification uses K examples each from N new classes. Prototypical networks compute class prototypes as the mean embedding of support examples and classify queries by nearest prototype. In-context learning with LLMs provides examples as part of the prompt. Performance degrades gracefully from many-shot to few-shot to zero-shot. Evaluation uses episodic testing with randomly sampled support and query sets.