arXiv:2610.24336cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24336

Uniform convergence at optimal rate and scale

Noga Alon, Steve Hanneke, Shay Moran, Tom Waknine

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 dd, the sharp worst-case sample complexity for additive error ε\varepsilon is of order d/ε2d/\varepsilon^2. For real-valued functions, the analogous combinatorial parameter is the fat-shattering dimension, which depends on an approximation scale γ\gamma. The challenge is to achieve error γ+ε\gamma + \varepsilon with order d/ε2d/\varepsilon^2 samples, matching the sample bound for binary classes, where dd is now the fat-shattering dimension at scale γ\gamma. 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 ℓ2\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. We also highlight open problems and directions for future research arising from these results.

1 Introduction

Suppose we wish to estimate the expectation of a bounded function ff under an unknown distribution. We can draw independent samples and average the values of ff on these samples. The Law of Large Numbers guarantees that this average converges to the expectation. Hoeffding's Inequality [Hoe63] makes this quantitative: O(ε−2log⁡(1/δ))O(\varepsilon^{-2}\log(1/\delta)) samples suffice for error at most ε\varepsilon with confidence 1−δ1 - \delta. Suppose now we wish to estimate the expectations of MM such functions. A union bound gives the simultaneous guarantee with

O(log⁡M+log⁡(1/δ)ε2)O\left(\frac{\log M+\log(1/\delta)}{\varepsilon^{2}}\right)

samples. Thus, the number of functions enters only logarithmically.

Uniform convergence asks when a single sample can accurately estimate all expectations in an infinite class F\mathcal{F} of functions 1^{1}. The required sample size may depend on F\mathcal{F}, the desired accuracy, and the

*Department of Mathematics, Princeton University, Princeton, NJ, USA. Research supported in part by NSF grant DMS-2553988 and by AFOSR grant FA9550261B300.

†^{\dagger}Department of Computer Science, Purdue University, West Lafayette, IN, USA. Research supported by grant no. 2024243 from the United States - Israel Binational Science Foundation (BSF).

‡^{\ddagger}Departments of Mathematics, Computer Science, and Data and Decision Sciences, Technion–Israel Institute of Technology; Google Research. Shay Moran acknowledges support by Israel by ISF grant 2362/26. and by the European Union (ERC, GENERALIZATION, 101039692).

§^{§}Department of Mathematics, Technion–Israel Institute of Technology, Haifa, Israel.

1^{1}Throughout the paper, we assume that F satisfies some mild measurability conditions such as [Pol84, Appendix C] confidence, but must work for every underlying distribution. Classes F for which the empirical averages uniformly approximate the expectations are called uniform Glivenko–Cantelli classes [DGZ91].

A classical example is estimating a cumulative distribution function (CDF). For independent samples S=(x1,…,xn)S = (x_1, \ldots, x_n) from a distribution D\mathcal{D} on R\mathbb{R}, the true and empirical CDFs are

FD(t)=Px∼D[x≤t],F^S(t)=1n∑i=1n1{xi≤t}.F_{\mathcal{D}}(t)=\mathbb{P}_{x\sim\mathcal{D}}[x\leq t],\qquad\widehat{F}_{S}(t)=\frac{1}{n}\sum_{i=1}^{n}\mathbf{1}_{\{x_{i}\leq t\}}.

These two CDFs are the expectations and sample averages of the threshold functions ft(x)=1{x≤t}f_t(x) = \mathbf{1}_{\{x \leq t\}}. Uniform convergence for this class means that the same sample estimates FD(t)F_{\mathcal{D}}(t) accurately for all thresholds simultaneously. The Glivenko–Cantelli Theorem, proved in 1933 [Gli33, Can33], guarantees this accuracy with high probability for sufficiently large samples. An entire CDF can thus be estimated without a parametric model. The theorem is therefore sometimes called the Fundamental Theorem of Mathematical Statistics [Rén07, p.400].

Binary-valued functions. For classes of binary-valued functions, Vapnik and Chervonenkis [VC71] showed that uniform convergence holds precisely when the VC dimension is finite. This characterization also forms a major part of the Fundamental Theorem of PAC Learning [BEHW89]. Their proof also bounds the number of samples needed. For a class of VC dimension d, their classical symmetrization argument, based on an independent ghost sample, gives

m(ε,δ)=O(dlog⁡(1/ε)+log⁡(1/δ)ε2),m(\varepsilon,\delta)=O\left(\frac{d\log(1/\varepsilon)+\log(1/\delta)}{\varepsilon^{2}}\right),

where ε\varepsilon is the approximation error and δ\delta is the allowed failure probability.

The extra logarithmic factor can be removed by combining chaining with bounds on the covering numbers of the function class. Dudley's chaining method [Dud78], Haussler's covering estimates [Hau95], and Talagrand's bounds for empirical processes [Tal94] yield the optimal worst-case sample complexity

Θ(d+log⁡(1/δ)ε2),d=VC(F).\Theta\left(\frac{d+\log(1/\delta)}{\varepsilon^{2}}\right),\qquad d=\mathbf{V C}(\mathcal{F}).

This gives a tight theorem for binary classes, using techniques with applications in probability, functional analysis, and theoretical computer science. Our proof refines the covering and chaining tools, which we recall in Section 2.

Real-valued functions. The binary case corresponds to estimating probabilities of events. More generally, we often want to estimate expectations of real-valued functions. For such classes, VC dimension is replaced by a scale-dependent extension, called the fat-shattering dimension [KS94].

Fix a scale γ>0\gamma > 0. The dimension fatγ(F)\text{fat}_{\gamma}(\mathcal{F}) is the largest nn for which there are points x1,…,xnx_1, \ldots, x_n and thresholds r1,…,rnr_1, \ldots, r_n with the following property: for each of the 2n2^n ways to label the points x1,…,xnx_1, \ldots, x_n high or low, there is a function f∈Ff \in \mathcal{F} satisfying all the corresponding inequalities simultaneously:

f(xi)≥ri+γ2ifxiislabeledhigh,f(x_{i})\geq r_{i}+\frac{\gamma}{2}\quad if x_{i}is labeled high, f(xi)≤ri−γ2ifxiislabeledlow.f(x_{i})\leq r_{i}-\frac{\gamma}{2}\quad if x_{i}is labeled low.

The thresholds are chosen once, while f may depend on the labeling.

For {0,1}\{0,1\}-valued classes and γ=1\gamma = 1, this recovers VC dimension: realizing these patterns is exactly realizing every binary labeling. For real-valued classes, the fat-shattering dimension may decrease as the scale increases. Classical work showed that a bounded class satisfies uniform convergence exactly when its fat-shattering dimension is finite at every positive scale [ABDCBH97, BL98]. These classical works reduce the study of uniform convergence to understanding what can be guaranteed at each scale:

If the fat-shattering dimension is finite at a scale γ\gamma, how accurately can we estimate the expectations of all functions in the class simultaneously?

Without information at finer scales, we cannot in general guarantee error below γ\gamma. The natural target is therefore γ+ε\gamma + \varepsilon, where the additional error ε\varepsilon can be reduced by drawing more samples. Our goal is to achieve this with the same sample complexity as in the binary case. We denote the required sample size, at confidence 1−δ1 - \delta, by mγ(ε,δ)m_{\gamma}(\varepsilon, \delta). If this sample size is finite for every accuracy and confidence, the class satisfies γ\gamma-uniform convergence.

The classical bounds gave error Cγ+εC\gamma + \varepsilon, for a universal constant C>1C > 1, with additional logarithmic factors in the sample complexity [ABDCBH97, BL98]. Colomboni, Esposito, and Paudice [CEP25], using bounds of Rudelson and Vershynin [RV06], obtained the optimal binary rate, but with error Cγ+εC\gamma + \varepsilon for a universal constant C>1C > 1. The result of [AMM +^{+}26] reaches error γ+ε\gamma + \varepsilon, but retains additional logarithmic factors in the sample complexity. Thus, the optimal rate and the optimal scale were available separately.

Our contribution. We obtain both simultaneously:

Theorem 1.1: Main result

Let F⊆[−1,+1]X\mathcal{F} \subseteq [-1,+1]^{\mathcal{X}}, let γ∈(0,1)\gamma \in (0,1), and suppose that d:=fatγ(F)<∞d := \text{fat}_\gamma(\mathcal{F}) < \infty. Then F\mathcal{F} satisfies γ\gamma-uniform convergence, with

mγ(ε,δ)=O(d+log⁡(1/δ)ε2)ε,δ∈(0,1).m_{\gamma}(\varepsilon,\delta)=O\left(\frac{d+\log(1/\delta)}{\varepsilon^{2}}\right)\qquad\varepsilon,\delta\in(0,1).

Moreover, for every γ∈(0,1)\gamma \in (0,1) and integer d≥1d \geq 1, there is a class F\mathcal{F} with fatγ(F)=d\text{fat}_\gamma(\mathcal{F}) = d such that, for all sufficiently small ε,δ>0\varepsilon, \delta > 0,

mγ(ε,δ)=Ω(d+log⁡(1/δ)ε2).m_{\gamma}(\varepsilon,\delta)=\Omega\left(\frac{d+\log(1/\delta)}{\varepsilon^{2}}\right).

The theorem gives the optimal binary sample complexity at error γ+ε\gamma + \varepsilon. The matching lower bound shows that this cannot be improved in general using only the fat-shattering dimension at scale γ\gamma. Particular classes may admit stronger guarantees when more is known about their behavior at finer scales. Our proof combines covering bounds with chaining at optimal scale; the full proof appears in Section 4.5.

In section 2 we give an self-contained presentation overview of technical tools used to prove our main result. In section 3 we give a proof overview of the main results in the paper. And finally, in section 4 we give formal proofs for all results in the paper.

References (29)