Few-Shot Learning with Per-Sample Rich Supervision

Roman Visotsky, Yuval Atzmon, Gal ChechikarXiv 2019 · arXiv

Abstract

Deep learning models traditionally require vast amounts of data, whereas humans learn efficiently from few examples by leveraging contextual "hints." We present the Ellipsotron, an online learning algorithm that incorporates per-sample rich supervision (RS) to accelerate few-shot learning. By modeling uncertainty as sample-dependent ellipsoids, the Ellipsotron focuses on relevant features, effectively reducing the problem's dimensionality. Empirical evaluations on the SUN and CUB datasets demonstrate significant accuracy improvements (up to 44%) over standard baselines with minimal samples, proving that sample-specific context is a powerful catalyst for machine learning efficiency.

Introduction

Few-Shot Learning (FSL) is the challenge of training a model to recognize new categories using only a handful of labeled examples. While modern techniques like meta-learning have made strides, they often struggle in online settings where data arrives in a stream and the model must learn and predict simultaneously.

The authors argue that the missing ingredient in machine learning is "Rich Supervision" (RS). When a human teacher shows a child a picture of a bird, they don't just provide a label; they might add, "notice the bright red feathers and the crest on its head." This side information helps the learner ignore irrelevant noise and focus on the features that actually matter. This paper formalizes this "hint-giving" process for machine learning models through a novel geometric framework.

Methods

The authors propose a framework for integrating per-sample side information into the learning process via two core components:

  1. Ellipsoid-Margin Loss: Standard classifiers use a fixed margin to separate classes. This paper introduces a sample-dependent margin. Each data point is surrounded by an "uncertainty bubble" (an ellipsoid). The shape of this bubble is defined by the rich supervision: if a feature is deemed irrelevant for a specific image, the bubble stretches along that dimension. The model only incurs a loss if its decision boundary cuts through this bubble.
Geometric representation of the ellipsoid-margin loss, where uncertainty bubbles around samples guide the decision boundary.
  1. The Ellipsotron Algorithm: This is an online learning algorithm based on the "Passive-Aggressive" (PA) framework. For every new sample, the Ellipsotron performs a minimal update to the model's weights to satisfy the ellipsoid margin. It transforms the data into a "spherized" space where uncertainty is uniform, performs the update, and then maps it back to the original feature space.

Theoretical analysis shows that per-sample information effectively reduces the "dimension" of the data. By knowing which features to ignore for a specific sample, the model behaves as if it is working in a much simpler, lower-dimensional space, lowering the number of samples needed to reach target accuracy.

Experimental Setup

The researchers evaluated their approach on two challenging computer vision benchmarks:

  • SUN (Scene UNderstanding): A dataset of complex visual scenes. Rich supervision was derived from human-provided free-text tags (e.g., "table," "person") describing objects present in the image.
  • CUB (Caltech-UCSD Birds-200-2011): A fine-grained classification dataset of 200 bird species. Rich supervision came from binary attributes (e.g., "has a red wing").

Key Results and Insights

The Ellipsotron consistently outperformed standard learning methods ("Lean Supervision") and simple feature scaling:

  • Accuracy Gains: With only 10 samples per class, the Ellipsotron improved accuracy by 33% on the SUN dataset (from 25% to 33%) and by 44% on the CUB dataset (from 18% to 26%).
  • Learning Efficiency: The "cumulative error" (total mistakes made during the online process) was significantly lower, proving the model learns much faster from the start of the data stream.
  • Sample-Specific Relevance: The paper highlights that feature importance is often sample-specific. In one photo of a forest, "snow" might be the key feature; in another, it might be "sunlight." By scaling the margin instead of the features, the Ellipsotron maintains a stable and theoretically sound learning process.
  • Robust Transfer: In SUN experiments, object detectors trained on MS-COCO provided features for scene classification, demonstrating the method's robustness in "strong transfer" scenarios.

Conclusion

The Ellipsotron demonstrates that incorporating per-sample hints can drastically reduce the data requirements for training accurate classifiers. While the cost of obtaining rich labels remains a bottleneck, the authors suggest that future work could involve automatically generating this supervision using large language models or automated explanations. This approach paves the way for more human-like, efficient learning in artificial intelligence.

Summary updated

Abstract

Learning with few samples is a major challenge for parameter-rich models like deep networks. In contrast, people learn complex new concepts even from very few examples, suggesting that the sample complexity of learning can often be reduced. Many approaches to few-shot learning build on transferring a representation from well-sampled classes, or using meta learning to favor architectures that can learn with few samples. Unfortunately, such approaches often struggle when learning in an online way or with non-stationary data streams. Here we describe a new approach to learn with fewer samples, by using additional information that is provided per sample. Specifically, we show how the sample complexity can be reduced by providing semantic information about the relevance of features per sample, like information about the presence of objects in a scene or confidence of detecting attributes in an image. We provide an improved generalization error bound for this case. We cast the problem of using per-sample feature relevance by using a new ellipsoid-margin loss, and develop an online algorithm that minimizes this loss effectively. Empirical evaluation on two machine vision benchmarks for scene classification and fine-grain bird classification demonstrate the benefits of this approach for few-shot learning.
BibTeX
@misc{visotsky2019few,
  author = {Roman Visotsky and Yuval Atzmon and Gal Chechik},
  title = {{Few-Shot Learning with Per-Sample Rich Supervision}},
  year = {2019},
  eprint = {1906.03859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03859},
}
Figure