Matching Networks is a few-shot learning method for classifying new classes that have only a handful of labeled examples, without additional training. It was proposed in 2016 by Vinyals et al. at Google DeepMind. It maps the image to be classified (the query) and the examples of each class (the support set) into the same feature space, and produces an answer by mixing the examples' labels, weighting more heavily the examples that are more similar to the query.
Ordinary deep learning needs hundreds to thousands of images and many weight updates to learn a single class. Training a class with only one example in the same way quickly leads to overfitting. On the other hand, a method like nearest neighbors, which "answers with the label of the most similar example," can handle new classes without training, but its accuracy is determined by "what counts as similar."
Matching Networks learns this "way of measuring similarity" with a neural network. Picture training, on many practice problems, the ability to compare an unfamiliar character against five examples and answer "it resembles this example, so it is probably this character." The practice problems (episodes) are built in the same form as the test: "a few classes, a few examples each." The paper presented this as the principle that training and test conditions should match.
In the paper's experiments, 5-way classification on Omniglot, a dataset of character images, reached 98.1% accuracy with one example per class (1-shot), and 93.8% with 20 classes. The paper also created miniImageNet (a small dataset of 100 classes with 600 images each, selected from ImageNet), which has since become widely used as a standard benchmark for few-shot learning.

