Learning from few examples with nonlinear feature maps

Ivan Yu. Tyukin, Oliver J. Sutton, Alexander N. GorbanarXiv 2022

Abstract

In this work we consider the problem of data classification in post-classical settings were the number of training examples consists of mere few data points. We explore the phenomenon and reveal key relationships between dimensionality of AI model's feature space, non-degeneracy of data distributions, and the model's generalisation capabilities. The main thrust of our present analysis is on the influence of nonlinear feature transformations mapping original data into higher- and possibly infinite-dimensional spaces on the resulting model's generalisation capabilities. Subject to appropriate assumptions, we establish new relationships between intrinsic dimensions of the transformed data and the probabilities to learn successfully from few presentations.

Introduction

Classical machine learning theory, such as Vapnik-Chervonenkis (VC) theory, suggests that to generalize well, the number of training examples should be significantly larger than the model's complexity. However, modern deep learning often defies this: models with millions of parameters can learn to recognize new categories from a handful of images (few-shot learning). This paper addresses the "paradox of generalization": how can a model avoid overfitting or simply memorizing noise when data is scarce? The authors seek to move away from distribution-agnostic bounds and instead ask: what specific properties of data distributions and feature spaces make few-shot learning mathematically possible?

Theoretical Framework

The researchers employ a framework rooted in the geometry of high-dimensional spaces and the concentration of measure phenomenon. Key components include:

  • Nonlinear Feature Maps: Raw data is mapped via a transformation $\phi_n$ into a high-dimensional (or even infinite-dimensional) Hilbert space.
  • Quasi-Orthogonality: The "Generalised Lemma" shows that in sufficiently high dimensions, random vectors drawn from a distribution are likely to be nearly perpendicular (quasi-orthogonal) to each other and to the mean of the distribution.
  • The Law of High Dimension: Theorem 1 provides a mathematical guarantee that the distance between the average of $k$ samples (the "prototype") and the true distribution center is bounded with high probability in high-dimensional spaces.

Empirical Analysis of Kernels

To validate the theory, the authors used synthetic data sampled from a uniform distribution in $[-1, 1]^n$ to demonstrate how different kernels affect the probability of points being quasi-orthogonal and linearly separable as dimensionality increases.

Probability of two points satisfying quasi-orthogonality with various kernels.

Nonlinear kernels effectively act as "dimension inflators." As shown in the figure above, nonlinear transformations (especially Gaussian and higher-order polynomials) significantly increase the probability of quasi-orthogonality at lower dimensions compared to simple linear maps. For example, at 100 dimensions, a Gaussian kernel makes points almost perfectly orthogonal, whereas a linear map requires much higher dimensions to achieve the same effect.

Few-Shot Learning Success

The core result, Theorem 2, provides explicit formulas for the probability of success for a new class. This "blessing of dimensionality" ensures that a new, small cluster of data is likely to be linearly separable from the rest of the "existing knowledge" space.

Probability of separating a point from a sample using a hyperplane normal to x with margin at least 0.5.

The probability of successfully separating a point from a sample increases rapidly with dimensionality, particularly when using nonlinear feature maps. This provides a rigorous justification for successful heuristics like Prototypical Networks, which use the mean of a class in feature space as a representative "prototype."

Conclusion and Future Work

While the results rely on specific assumptions about probability density functions in feature space, they offer a path toward designing neural network layers with explicit high-level specifications for volume compression and separability. Future work aims to explore how these properties can be engineered into models to make them better at few-shot learning by design.

Summary updated

BibTeX
@misc{tyukin2022learning,
  author = {Ivan Yu. Tyukin and Oliver J. Sutton and Alexander N. Gorban},
  title = {{Learning from few examples with nonlinear feature maps}},
  year = {2022},
  eprint = {2203.16935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.16935},
}
Figure