Sharp sample bounds improve learning with real valued functions

Uniform convergence at optimal rate and scale

Machine Learning

Summary

When teaching a computer to predict or recognize things, it's important to know how many examples it needs to learn well. For simple yes/no decisions, we already understand how many examples are needed to be confident the computer learns correctly. But for more complex tasks where predictions can be real numbers, earlier methods either got the best number of examples or the best accuracy, but not both. The authors figured out how to get the best possible number of examples and accuracy at the same time. They also developed new math tools about how to cover complicated shapes with simple approximations, which might help other areas in geometry and probability.

What this means in practice

  • For machine learning engineers: Design training routines with precise sample sizes for models predicting real-valued outputs ensuring optimal accuracy and efficiency.
  • For data scientists: Develop more reliable error estimates when validating models with continuous predictions by utilizing sharper convergence guarantees.

A theory result. No direct application yet.

Authors

Noga Alon, Steve Hanneke, Shay Moran, Tom Waknine

Abstract

Uniform convergence asks how many random samples suffice for empirical averages to approximate expectations simultaneously over an entire class of functions. It is a central concept in probability and a foundation of statistical learning. For binary-valued classes, the Vapnik--Chervonenkis theorem characterizes uniform convergence by finiteness of the VC dimension. For dimension $d$, the sharp worst-case sample complexity for additive error $\varepsilon$ is of order $d/\varepsilon^2$. For real-valued functions, the analogous combinatorial parameter is the fat-shattering dimension, which depends on an approximation scale $γ$. The challenge is to achieve error $γ+\varepsilon$ with order $d/\varepsilon^2$ samples, matching the sample bound for binary classes, where $d$ is now the fat-shattering dimension at scale $γ$. Previous results achieved either the optimal scale or the optimal sample complexity, but not both. Our main result closes this gap, establishing the sharp sample complexity at the optimal scale. Along the way, we use several tools that may be of independent interest. The first concerns $\varepsilon$-nets with margin. A classical $\varepsilon$-net intersects every set of mass at least $\varepsilon$ in a prescribed family; we allow the net to intersect a slightly enlarged version of each such set. Remarkably, this relaxation permits bounds independent of the ambient dimension in natural geometric settings. Second, we derive improved covering bounds in both discrete and real-valued settings: we extend Haussler's covering lemma to partial concept classes and use this extension to obtain $\ell_2$ covers at the optimal scale for real-valued function classes. Third, we obtain a chaining bound at the optimal scale by aligning the covers so that successive approximations become increasingly close to one another.