Empirical Risk Minimization: Generalization, Rademacher Complexity, and Two-Layer Networks ICTP Summer School on Machine Learning — Lecture 4 (Day 6, Morning)
These notes cover the first lecture of Day 6 by Andrea Montanari. The topic is the classical statistical learning theory framework: empirical risk minimization (ERM), the decomposition of risk into approximation and generalization error, and Rademacher complexity as the tool for controlling the generalization gap. The lecture culminates in a sharp bound on the Rademacher complexity of two-layer neural networks (Bartlett 1996), and an abstract detour into Banach-space approximation theory that leads to the Barron norm and explains why shallow networks can efficiently approximate a broad function class.
Supervised Learning Setup ¶ We observe n n n i.i.d. pairs ( x i , y i ) ∼ P (x_i, y_i) \sim \mathbb{P} ( x i , y i ) ∼ P , where
x i ∈ R d (feature vector) , y i ∈ R (label or response) . x_i \in \mathbb{R}^d \quad \text{(feature vector)}, \qquad y_i \in \mathbb{R} \quad \text{(label or response)}. x i ∈ R d (feature vector) , y i ∈ R (label or response) . A model is a function f : R d → R f : \mathbb{R}^d \to \mathbb{R} f : R d → R . Given a new test pair ( x n + 1 , y n + 1 ) (x_{n+1}, y_{n+1}) ( x n + 1 , y n + 1 ) drawn from the same distribution, we want f ( x n + 1 ) ≈ y n + 1 f(x_{n+1}) \approx y_{n+1} f ( x n + 1 ) ≈ y n + 1 .
Loss, Risk, and Empirical Risk ¶ Fix a loss function ℓ : R × R → R ≥ 0 \ell : \mathbb{R} \times \mathbb{R} \to \mathbb{R}_{\geq 0} ℓ : R × R → R ≥ 0 , mapping ( y , y ^ ) ↦ ℓ ( y , y ^ ) (y, \hat{y}) \mapsto \ell(y, \hat{y}) ( y , y ^ ) ↦ ℓ ( y , y ^ ) . The canonical example is the square loss ℓ ( y , y ^ ) = ( y − y ^ ) 2 \ell(y, \hat{y}) = (y - \hat{y})^2 ℓ ( y , y ^ ) = ( y − y ^ ) 2 .
The population risk (or test loss) of f f f is
R ( f ) = E ℓ ( y , f ( x ) ) , R(f) = \mathbb{E}\,\ell(y, f(x)), R ( f ) = E ℓ ( y , f ( x )) , where the expectation is over ( x , y ) ∼ P (x,y) \sim \mathbb{P} ( x , y ) ∼ P . Since P \mathbb{P} P is unknown, we cannot minimize R ( f ) R(f) R ( f ) directly. We instead minimize the empirical risk
R ^ n ( f ) = E ^ n ℓ ( y , f ( x ) ) = 1 n ∑ i = 1 n ℓ ( y i , f ( x i ) ) . \hat{R}_n(f) = \hat{\mathbb{E}}_n\,\ell(y, f(x)) = \frac{1}{n}\sum_{i=1}^n \ell(y_i, f(x_i)). R ^ n ( f ) = E ^ n ℓ ( y , f ( x )) = n 1 i = 1 ∑ n ℓ ( y i , f ( x i )) . By the law of large numbers, R ^ n ( f ) → R ( f ) \hat{R}_n(f) \to R(f) R ^ n ( f ) → R ( f ) almost surely for any fixed f f f .
This third point is the fundamental tension of learning: by interpolating the training data one can drive R ^ n ( f ) \hat{R}_n(f) R ^ n ( f ) to zero, yet such a function generalizes arbitrarily poorly. Minimizing R ^ n \hat{R}_n R ^ n over all measurable functions does not minimize R R R .
The Approximation–Generalization Decomposition ¶ Let F \mathcal{F} F be a hypothesis class (e.g. neural networks of a given architecture). Define
f ^ n = arg min f ∈ F R ^ n ( f ) , f ∗ = arg min f ∈ F R ( f ) , f F ∞ = arg min f ∈ F R ^ n ( f ) . \hat{f}_n = \operatorname*{arg\,min}_{f \in \mathcal{F}} \hat{R}_n(f), \qquad
f_* = \operatorname*{arg\,min}_{f \in \mathcal{F}} R(f), \qquad
f_{\mathcal{F}\infty} = \operatorname*{arg\,min}_{f \in \mathcal{F}} \hat{R}_n(f). f ^ n = f ∈ F arg min R ^ n ( f ) , f ∗ = f ∈ F arg min R ( f ) , f F ∞ = f ∈ F arg min R ^ n ( f ) . (Here f ∗ f_* f ∗ minimizes the true risk within F \mathcal{F} F , while f ^ n \hat{f}_n f ^ n minimizes the empirical risk; they differ because R ^ n \hat{R}_n R ^ n is a random function of the data.) We decompose the excess risk :
R ( f ^ n ) − R ( f ∗ ) = [ R ( f ^ n ) − R ^ n ( f ^ n ) ] ⏟ (I) + [ R ^ n ( f ^ n ) − R ^ n ( f ∗ ) ] ⏟ (II) ≤ 0 + [ R ^ n ( f ∗ ) − R ( f ∗ ) ] ⏟ (III) . R(\hat{f}_n) - R(f_*) = \underbrace{\bigl[R(\hat{f}_n) - \hat{R}_n(\hat{f}_n)\bigr]}_{\text{(I)}}
+ \underbrace{\bigl[\hat{R}_n(\hat{f}_n) - \hat{R}_n(f_*)\bigr]}_{\text{(II)} \leq 0}
+ \underbrace{\bigl[\hat{R}_n(f_*) - R(f_*)\bigr]}_{\text{(III)}}. R ( f ^ n ) − R ( f ∗ ) = (I) [ R ( f ^ n ) − R ^ n ( f ^ n ) ] + (II) ≤ 0 [ R ^ n ( f ^ n ) − R ^ n ( f ∗ ) ] + (III) [ R ^ n ( f ∗ ) − R ( f ∗ ) ] . Term (II) is ≤ 0 \leq 0 ≤ 0 because f ^ n \hat{f}_n f ^ n minimizes R ^ n \hat{R}_n R ^ n over F \mathcal{F} F , so it does no worse than f ∗ f_* f ∗ . Terms (I) and (III) are both instances of the fluctuation ∣ R ^ n ( f ) − R ( f ) ∣ |\hat{R}_n(f) - R(f)| ∣ R ^ n ( f ) − R ( f ) ∣ at a particular f f f . Bounding them uniformly over F \mathcal{F} F gives
R ( f ^ n ) − R ( f ∗ ) ≲ sup f ∈ F ∣ R ( f ) − R ^ n ( f ) ∣ ⏟ generalization error + O ( 1 n ) ⏟ fluctuations . R(\hat{f}_n) - R(f_*) \lesssim \underbrace{\sup_{f \in \mathcal{F}} |R(f) - \hat{R}_n(f)|}_{\text{generalization error}} + \underbrace{\mathcal{O}\!\left(\tfrac{1}{\sqrt{n}}\right)}_{\text{fluctuations}}. R ( f ^ n ) − R ( f ∗ ) ≲ generalization error f ∈ F sup ∣ R ( f ) − R ^ n ( f ) ∣ + fluctuations O ( n 1 ) . If f ∗ f_* f ∗ is not in F \mathcal{F} F , there is an additional approximation error term
inf f ∈ F R ( f ) − inf f R ( f ) ≥ 0 , \inf_{f \in \mathcal{F}} R(f) - \inf_f R(f) \geq 0, f ∈ F inf R ( f ) − f inf R ( f ) ≥ 0 , representing the best-in-class deficit. The full bound therefore reads
R ( f ^ n ) ≤ inf f ∈ F R ( f ) ⏟ best in class + sup f ∈ F ∣ R ( f ) − R ^ n ( f ) ∣ ⏟ generalization gap + O ( 1 n ) . \boxed{R(\hat{f}_n) \leq \underbrace{\inf_{f \in \mathcal{F}} R(f)}_{\text{best in class}} + \underbrace{\sup_{f \in \mathcal{F}} |R(f) - \hat{R}_n(f)|}_{\text{generalization gap}} + \mathcal{O}\!\left(\tfrac{1}{\sqrt{n}}\right).} R ( f ^ n ) ≤ best in class f ∈ F inf R ( f ) + generalization gap f ∈ F sup ∣ R ( f ) − R ^ n ( f ) ∣ + O ( n 1 ) . The picture below (from the lecture) shows the risk landscape: R ( f ) R(f) R ( f ) has a true minimizer f ∗ f^* f ∗ , while R ^ n \hat{R}_n R ^ n has a jagged empirical minimizer f ^ \hat{f} f ^ that may be far from f ∗ f^* f ∗ if F \mathcal{F} F is too rich.
Rademacher Complexity ¶ The natural tool for bounding the generalization gap uniformly over F \mathcal{F} F is the Rademacher complexity .
Definition ¶ For a set A ⊆ R n A \subseteq \mathbb{R}^n A ⊆ R n , define
R d n ( A ) : = E σ sup a ∈ A 1 n ⟨ σ , a ⟩ , \mathrm{Rd}_n(A) := \mathbb{E}_\sigma \sup_{a \in A} \frac{1}{n} \langle \sigma, a \rangle, Rd n ( A ) := E σ a ∈ A sup n 1 ⟨ σ , a ⟩ , where σ = ( σ 1 , … , σ n ) \sigma = (\sigma_1, \ldots, \sigma_n) σ = ( σ 1 , … , σ n ) are i.i.d. U n i f o r m ( { + 1 , − 1 } ) \mathrm{Uniform}(\{+1,-1\}) Uniform ({ + 1 , − 1 }) (Rademacher variables), independent of everything else. Geometrically, R d n ( A ) \mathrm{Rd}_n(A) Rd n ( A ) measures how well the set A A A can be correlated with a random sign vector: it is large when A A A contains vectors that “stick out” in every direction.
For a function class G = { g : S → R } G = \{g : S \to \mathbb{R}\} G = { g : S → R } with data z 1 , … , z n ∼ iid P z_1, \ldots, z_n \overset{\text{iid}}{\sim} \mathbb{P} z 1 , … , z n ∼ iid P , define
R d n ( G ) : = E z E σ sup g ∈ G 1 n ∑ i = 1 n σ i g ( z i ) . \mathrm{Rd}_n(G) := \mathbb{E}_z\,\mathbb{E}_\sigma \sup_{g \in G} \frac{1}{n}\sum_{i=1}^n \sigma_i g(z_i). Rd n ( G ) := E z E σ g ∈ G sup n 1 i = 1 ∑ n σ i g ( z i ) . The connection to the geometric definition is: fix z 1 , … , z n z_1, \ldots, z_n z 1 , … , z n and let A = { ( g ( z 1 ) , … , g ( z n ) ) : g ∈ G } ⊆ R n A = \{(g(z_1), \ldots, g(z_n)) : g \in G\} \subseteq \mathbb{R}^n A = {( g ( z 1 ) , … , g ( z n )) : g ∈ G } ⊆ R n (the “evaluation set”), e.g. the output vectors of a neural network class on the training points. Then R d n ( G ) = E z [ R d n ( A ) ] \mathrm{Rd}_n(G) = \mathbb{E}_z[\mathrm{Rd}_n(A)] Rd n ( G ) = E z [ Rd n ( A )] .
Upper bound. Let z i ′ z_i' z i ′ be i.i.d. copies of z i z_i z i (a “ghost” sample). By convexity of the supremum (Jensen),
( ∗ ) : = E z sup g ∈ G ∣ E z ′ 1 n ∑ i = 1 n [ g ( z i ) − g ( z i ′ ) ] ∣ ≤ E z , z ′ sup g ∈ G ∣ 1 n ∑ i = 1 n [ g ( z i ) − g ( z i ′ ) ] ∣ . (*) := \mathbb{E}_z \sup_{g \in G} \left|\mathbb{E}_{z'} \frac{1}{n}\sum_{i=1}^n \bigl[g(z_i) - g(z_i')\bigr]\right|
\leq \mathbb{E}_{z,z'} \sup_{g \in G} \left|\frac{1}{n}\sum_{i=1}^n \bigl[g(z_i) - g(z_i')\bigr]\right|. ( ∗ ) := E z g ∈ G sup ∣ ∣ E z ′ n 1 i = 1 ∑ n [ g ( z i ) − g ( z i ′ ) ] ∣ ∣ ≤ E z , z ′ g ∈ G sup ∣ ∣ n 1 i = 1 ∑ n [ g ( z i ) − g ( z i ′ ) ] ∣ ∣ . Since ( z i , z i ′ ) (z_i, z_i') ( z i , z i ′ ) and ( z i ′ , z i ) (z_i', z_i) ( z i ′ , z i ) have the same joint distribution, the sign of each term g ( z i ) − g ( z i ′ ) g(z_i) - g(z_i') g ( z i ) − g ( z i ′ ) can be replaced by an independent Rademacher σ i \sigma_i σ i without changing the distribution:
≤ E z , z ′ , σ sup g ∈ G ∣ 1 n ∑ i = 1 n σ i [ g ( z i ) − g ( z i ′ ) ] ∣ ≤ 2 E z , σ sup g ∈ G ∣ 1 n ∑ i = 1 n σ i g ( z i ) ∣ = 2 R d n ( G ) . \leq \mathbb{E}_{z,z',\sigma} \sup_{g \in G} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i \bigl[g(z_i) - g(z_i')\bigr]\right|
\leq 2\,\mathbb{E}_{z,\sigma} \sup_{g \in G} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i g(z_i)\right|
= 2\,\mathrm{Rd}_n(G). ≤ E z , z ′ , σ g ∈ G sup ∣ ∣ n 1 i = 1 ∑ n σ i [ g ( z i ) − g ( z i ′ ) ] ∣ ∣ ≤ 2 E z , σ g ∈ G sup ∣ ∣ n 1 i = 1 ∑ n σ i g ( z i ) ∣ ∣ = 2 Rd n ( G ) . The last inequality uses the triangle inequality and symmetry of G G G .
To connect E sup ∣ E ^ n g − E g ∣ \mathbb{E}\sup |\hat{\mathbb{E}}_n g - \mathbb{E} g| E sup ∣ E ^ n g − E g ∣ to ( ∗ ) (*) ( ∗ ) : note E g = E z ′ 1 n ∑ i g ( z i ′ ) \mathbb{E} g = \mathbb{E}_{z'} \frac{1}{n}\sum_i g(z_i') E g = E z ′ n 1 ∑ i g ( z i ′ ) , so E ^ n g − E g = E z ′ [ 1 n ∑ i ( g ( z i ) − g ( z i ′ ) ) ] \hat{\mathbb{E}}_n g - \mathbb{E} g = \mathbb{E}_{z'}[\frac{1}{n}\sum_i(g(z_i) - g(z_i'))] E ^ n g − E g = E z ′ [ n 1 ∑ i ( g ( z i ) − g ( z i ′ ))] . Taking the supremum and applying Jensen gives the bound. □ \square □
To apply this to learning, set z i = ( y i , x i ) z_i = (y_i, x_i) z i = ( y i , x i ) , g ( z i ) = ℓ ( y i , f ( x i ) ) g(z_i) = \ell(y_i, f(x_i)) g ( z i ) = ℓ ( y i , f ( x i )) , and G = ℓ ∘ F : = { ( y , x ) ↦ ℓ ( y , f ( x ) ) : f ∈ F } G = \ell \circ \mathcal{F} := \{(y,x) \mapsto \ell(y,f(x)) : f \in \mathcal{F}\} G = ℓ ∘ F := {( y , x ) ↦ ℓ ( y , f ( x )) : f ∈ F } . Then E ^ n g = R ^ n ( f ) \hat{\mathbb{E}}_n g = \hat{R}_n(f) E ^ n g = R ^ n ( f ) and E g = R ( f ) \mathbb{E} g = R(f) E g = R ( f ) , so the lemma gives
R ( f ^ n ) ≤ inf f ∈ F R ( f ) + 2 R d n ( ℓ ∘ F ) + O ( 1 n ) . R(\hat{f}_n) \leq \inf_{f \in \mathcal{F}} R(f) + 2\,\mathrm{Rd}_n(\ell \circ \mathcal{F}) + \mathcal{O}\!\left(\tfrac{1}{\sqrt{n}}\right). R ( f ^ n ) ≤ f ∈ F inf R ( f ) + 2 Rd n ( ℓ ∘ F ) + O ( n 1 ) . We want to compute R d n ( ℓ ∘ F ) \mathrm{Rd}_n(\ell \circ \mathcal{F}) Rd n ( ℓ ∘ F ) ; the contraction lemma reduces this to R d n ( F ) \mathrm{Rd}_n(\mathcal{F}) Rd n ( F ) .
Contraction Inequality ¶ Let ϕ 1 , … , ϕ n : R → R \phi_1, \ldots, \phi_n : \mathbb{R} \to \mathbb{R} ϕ 1 , … , ϕ n : R → R be L L L -Lipschitz with ϕ i ( 0 ) = 0 \phi_i(0) = 0 ϕ i ( 0 ) = 0 . Then
E sup g ∈ G ∣ 1 n ∑ i = 1 n σ i ϕ i ( g ( z i ) ) ∣ ≤ L E sup g ∈ G ∣ 1 n ∑ i = 1 n σ i g ( z i ) ∣ . \mathbb{E}\sup_{g \in G} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i \phi_i(g(z_i))\right|
\leq L\,\mathbb{E}\sup_{g \in G} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i g(z_i)\right|. E g ∈ G sup ∣ ∣ n 1 i = 1 ∑ n σ i ϕ i ( g ( z i )) ∣ ∣ ≤ L E g ∈ G sup ∣ ∣ n 1 i = 1 ∑ n σ i g ( z i ) ∣ ∣ . In other words, R d n ( ϕ ∘ G ) ≤ L R d n ( G ) \mathrm{Rd}_n(\phi \circ G) \leq L\,\mathrm{Rd}_n(G) Rd n ( ϕ ∘ G ) ≤ L Rd n ( G ) .
By induction over the number of functions ϕ i \phi_i ϕ i (the argument does not linearize). We give the base step (n = 1 n=1 n = 1 ) to illustrate the mechanism.
For n = 1 n=1 n = 1 , the expression is E σ ∣ σ 1 ϕ 1 ( g ( z 1 ) ) ∣ sup g = sup g ∣ ϕ 1 ( g ( z 1 ) ) ∣ \mathbb{E}_\sigma |\sigma_1 \phi_1(g(z_1))|_{\sup_{g}} = \sup_g |\phi_1(g(z_1))| E σ ∣ σ 1 ϕ 1 ( g ( z 1 )) ∣ s u p g = sup g ∣ ϕ 1 ( g ( z 1 )) ∣ . We need to compare this to sup g ∣ g ( z 1 ) ∣ \sup_g |g(z_1)| sup g ∣ g ( z 1 ) ∣ . Since ∣ ϕ 1 ( t ) ∣ = ∣ ϕ 1 ( t ) − ϕ 1 ( 0 ) ∣ ≤ L ∣ t ∣ |\phi_1(t)| = |\phi_1(t) - \phi_1(0)| \leq L|t| ∣ ϕ 1 ( t ) ∣ = ∣ ϕ 1 ( t ) − ϕ 1 ( 0 ) ∣ ≤ L ∣ t ∣ by the Lipschitz condition and ϕ 1 ( 0 ) = 0 \phi_1(0)=0 ϕ 1 ( 0 ) = 0 , the bound sup g ∣ ϕ 1 ( g ( z 1 ) ) ∣ ≤ L sup g ∣ g ( z 1 ) ∣ \sup_g |\phi_1(g(z_1))| \leq L\sup_g |g(z_1)| sup g ∣ ϕ 1 ( g ( z 1 )) ∣ ≤ L sup g ∣ g ( z 1 ) ∣ follows.
The inductive step replaces the contribution from one coordinate at a time, using the fact that for a fixed supremum the sign flip σ i → − σ i \sigma_i \to -\sigma_i σ i → − σ i only changes one term, and the Lipschitz condition bounds the resulting change. □ \square □
Application. Assume ℓ \ell ℓ is L L L -Lipschitz in its second argument. Using the triangle inequality to introduce the reference ℓ ( y i , 0 ) \ell(y_i, 0) ℓ ( y i , 0 ) (which handles the ϕ i ( 0 ) = 0 \phi_i(0)=0 ϕ i ( 0 ) = 0 requirement):
R d n ( ℓ ∘ F ) ≤ 1 n E [ ℓ ( y , 0 ) 2 ] 1 / 2 + L R d n ( F ) . \mathrm{Rd}_n(\ell \circ \mathcal{F})
\leq \frac{1}{\sqrt{n}}\,\mathbb{E}\bigl[\ell(y,0)^2\bigr]^{1/2} + L\,\mathrm{Rd}_n(\mathcal{F}). Rd n ( ℓ ∘ F ) ≤ n 1 E [ ℓ ( y , 0 ) 2 ] 1/2 + L Rd n ( F ) . The first term is O ( 1 / n ) \mathcal{O}(1/\sqrt{n}) O ( 1/ n ) (for square-integrable y y y ). So the generalization gap is bounded by R d n ( F ) \mathrm{Rd}_n(\mathcal{F}) Rd n ( F ) up to O ( 1 / n ) \mathcal{O}(1/\sqrt{n}) O ( 1/ n ) corrections.
Rademacher Complexity of Two-Layer Neural Networks ¶ We now compute R d n ( F ) \mathrm{Rd}_n(\mathcal{F}) Rd n ( F ) for a two-layer network class, following Bartlett (1996) .
Setup ¶ A two-layer network with m m m hidden units and activation σ \sigma σ has the form
f ( x ; θ ) = 1 m ∑ k = 1 m a k σ ( w k ⊤ x ) , θ = { ( a k , w k ) } k ≤ m . f(x; \theta) = \frac{1}{m}\sum_{k=1}^m a_k\,\sigma(w_k^\top x),
\qquad \theta = \{(a_k, w_k)\}_{k \leq m}. f ( x ; θ ) = m 1 k = 1 ∑ m a k σ ( w k ⊤ x ) , θ = {( a k , w k ) } k ≤ m . We constrain the parameters by
w k ∈ B 2 d ( C ) ( ∥ w k ∥ 2 ≤ C ) , a ∈ B 1 m ( r 0 ⋅ m ) ( 1 m ∑ k ∣ a k ∣ ≤ r 0 ) . w_k \in B_2^d(C) \quad (\|w_k\|_2 \leq C), \qquad a \in B_1^m(r_0 \cdot m) \quad \left(\frac{1}{m}\sum_k |a_k| \leq r_0\right). w k ∈ B 2 d ( C ) ( ∥ w k ∥ 2 ≤ C ) , a ∈ B 1 m ( r 0 ⋅ m ) ( m 1 k ∑ ∣ a k ∣ ≤ r 0 ) . Call this class F m ( C , r 0 ) \mathcal{F}_m(C, r_0) F m ( C , r 0 ) . The bound on a a a in ℓ 1 \ell^1 ℓ 1 (rather than ℓ 2 \ell^2 ℓ 2 ) is the key structural choice; it limits the total variation of the output layer.
Computation of R d n ( F m ( C , r 0 ) ) \mathrm{Rd}_n(\mathcal{F}_m(C, r_0)) Rd n ( F m ( C , r 0 )) ¶ R d n ( F ) = E x , σ sup a , w ∣ 1 n ∑ i = 1 n σ i ⋅ 1 m ∑ k = 1 m a k σ ( w k ⊤ x i ) ∣ . \mathrm{Rd}_n(\mathcal{F}) = \mathbb{E}_{x,\sigma} \sup_{a, w} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i \cdot \frac{1}{m}\sum_{k=1}^m a_k\,\sigma(w_k^\top x_i)\right|. Rd n ( F ) = E x , σ a , w sup ∣ ∣ n 1 i = 1 ∑ n σ i ⋅ m 1 k = 1 ∑ m a k σ ( w k ⊤ x i ) ∣ ∣ . Interchanging the sums and bounding by ℓ 1 \ell^1 ℓ 1 –ℓ ∞ \ell^\infty ℓ ∞ duality:
1 m ∣ ∑ k a k ( 1 n ∑ i σ i σ ( w k ⊤ x i ) ) ∣ ≤ 1 m ∥ a ∥ 1 ⋅ max k ∣ 1 n ∑ i σ i σ ( w k ⊤ x i ) ∣ ≤ r 0 max k ∣ 1 n ∑ i σ i σ ( w k ⊤ x i ) ∣ . \frac{1}{m}\left|\sum_k a_k \left(\frac{1}{n}\sum_i \sigma_i\,\sigma(w_k^\top x_i)\right)\right|
\leq \frac{1}{m}\|a\|_1 \cdot \max_k \left|\frac{1}{n}\sum_i \sigma_i\,\sigma(w_k^\top x_i)\right|
\leq r_0 \max_k \left|\frac{1}{n}\sum_i \sigma_i\,\sigma(w_k^\top x_i)\right|. m 1 ∣ ∣ k ∑ a k ( n 1 i ∑ σ i σ ( w k ⊤ x i ) ) ∣ ∣ ≤ m 1 ∥ a ∥ 1 ⋅ k max ∣ ∣ n 1 i ∑ σ i σ ( w k ⊤ x i ) ∣ ∣ ≤ r 0 k max ∣ ∣ n 1 i ∑ σ i σ ( w k ⊤ x i ) ∣ ∣ . Taking supremum over a a a at cost r 0 r_0 r 0 , and then supremum over all w w w collapses the max over k k k :
R d n ( F ) ≤ r 0 E σ sup w : ∥ w ∥ 2 ≤ C ∣ 1 n ∑ i = 1 n σ i σ ( w ⊤ x i ) ∣ . \mathrm{Rd}_n(\mathcal{F}) \leq r_0\,\mathbb{E}_\sigma \sup_{w:\|w\|_2 \leq C} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i\,\sigma(w^\top x_i)\right|. Rd n ( F ) ≤ r 0 E σ w : ∥ w ∥ 2 ≤ C sup ∣ ∣ n 1 i = 1 ∑ n σ i σ ( w ⊤ x i ) ∣ ∣ . Applying the contraction inequality with the L L L -Lipschitz activation σ \sigma σ (e.g. L = 1 L=1 L = 1 for ReLU):
≤ L r 0 E σ sup ∥ w ∥ 2 ≤ C ∣ 1 n ∑ i = 1 n σ i w ⊤ x i ∣ = L r 0 E σ sup ∥ w ∥ 2 ≤ C ∣ ⟨ w , 1 n ∑ i σ i x i ⟩ ∣ . \leq L r_0\,\mathbb{E}_\sigma \sup_{\|w\|_2 \leq C} \left|\frac{1}{n}\sum_{i=1}^n \sigma_i\,w^\top x_i\right|
= L r_0\,\mathbb{E}_\sigma \sup_{\|w\|_2 \leq C} \left|\left\langle w,\, \frac{1}{n}\sum_i \sigma_i x_i \right\rangle\right|. ≤ L r 0 E σ ∥ w ∥ 2 ≤ C sup ∣ ∣ n 1 i = 1 ∑ n σ i w ⊤ x i ∣ ∣ = L r 0 E σ ∥ w ∥ 2 ≤ C sup ∣ ∣ ⟨ w , n 1 i ∑ σ i x i ⟩ ∣ ∣ . The sup over ∥ w ∥ 2 ≤ C \|w\|_2 \leq C ∥ w ∥ 2 ≤ C of a linear form is C C C times the ℓ 2 \ell^2 ℓ 2 norm of the argument:
= L r 0 C E σ ∥ 1 n ∑ i σ i x i ∥ 2 . = L r_0 C\,\mathbb{E}_\sigma \left\|\frac{1}{n}\sum_i \sigma_i x_i\right\|_2. = L r 0 C E σ ∥ ∥ n 1 i ∑ σ i x i ∥ ∥ 2 . By Jensen’s inequality (concavity of the square root):
≤ L r 0 C ( E ∥ 1 n ∑ i σ i x i ∥ 2 2 ) 1 / 2 = L r 0 C n ( E ∥ x ∥ 2 2 ) 1 / 2 . \leq L r_0 C \left(\mathbb{E}\left\|\frac{1}{n}\sum_i \sigma_i x_i\right\|_2^2\right)^{1/2}
= \frac{L r_0 C}{\sqrt{n}} \left(\mathbb{E}\|x\|_2^2\right)^{1/2}. ≤ L r 0 C ⎝ ⎛ E ∥ ∥ n 1 i ∑ σ i x i ∥ ∥ 2 2 ⎠ ⎞ 1/2 = n L r 0 C ( E ∥ x ∥ 2 2 ) 1/2 . (The last step uses that σ i \sigma_i σ i are independent mean-zero, so cross-terms vanish.) Assuming E ∥ x ∥ 2 2 ≤ C ′ d \mathbb{E}\|x\|_2^2 \leq C' d E ∥ x ∥ 2 2 ≤ C ′ d , we obtain the boxed result :
R d n ( F m ( C , r 0 ) ) ≤ C ~ r 0 C d n . \boxed{\mathrm{Rd}_n(\mathcal{F}_m(C, r_0)) \leq \tilde{C}\,r_0\,C\sqrt{\frac{d}{n}}.} Rd n ( F m ( C , r 0 )) ≤ C ~ r 0 C n d . Crucially, this bound is independent of m m m (the number of hidden units). Plugging back into the generalization bound:
R ( f ^ n ) ≤ inf f ∈ F m ( r 0 ) R ( f ) + C r 0 d n + C n . R(\hat{f}_n) \leq \inf_{f \in \mathcal{F}_m(r_0)} R(f) + C\,r_0\sqrt{\frac{d}{n}} + \frac{C}{\sqrt{n}}. R ( f ^ n ) ≤ f ∈ F m ( r 0 ) inf R ( f ) + C r 0 n d + n C . This is the result of Bartlett (1996) .
Increasing m m m (more neurons) does not worsen the generalization bound, but it can improve the approximation error inf f ∈ F m ( r 0 ) R ( f ) − inf f R ( f ) \inf_{f \in \mathcal{F}_m(r_0)} R(f) - \inf_f R(f) inf f ∈ F m ( r 0 ) R ( f ) − inf f R ( f ) by making the class richer. This is the classical trade-off, but it is controlled by r 0 r_0 r 0 (the ℓ 1 \ell^1 ℓ 1 norm of the output weights), not by m m m .
The bound is not useful when F \mathcal{F} F can overfit the data. Consider the square loss under the fixed-design model y i = f ∗ ( x i ) + σ g i y_i = f_*(x_i) + \sigma g_i y i = f ∗ ( x i ) + σ g i with x 1 , … , x n x_1, \ldots, x_n x 1 , … , x n fixed and g i ∼ iid N ( 0 , 1 ) g_i \overset{\text{iid}}{\sim} \mathcal{N}(0,1) g i ∼ iid N ( 0 , 1 ) .
If f ^ n \hat{f}_n f ^ n interpolates the data (i.e. f ^ n ( x i ) = y i \hat{f}_n(x_i) = y_i f ^ n ( x i ) = y i for all i i i ), then R ^ n ( f ^ n ) = 0 \hat{R}_n(\hat{f}_n) = 0 R ^ n ( f ^ n ) = 0 , while
R ( f ^ n ) = 1 n ∑ i E g [ ( y i − f ^ n ( x i ) ) 2 ] = 1 n ∥ f ∗ ( X ) − f ^ n ( X ) ∥ 2 + σ 2 . R(\hat{f}_n) = \frac{1}{n}\sum_i \mathbb{E}_g\bigl[(y_i - \hat{f}_n(x_i))^2\bigr]
= \frac{1}{n}\|\mathbf{f}_*(X) - \hat{f}_n(X)\|^2 + \sigma^2. R ( f ^ n ) = n 1 i ∑ E g [ ( y i − f ^ n ( x i ) ) 2 ] = n 1 ∥ f ∗ ( X ) − f ^ n ( X ) ∥ 2 + σ 2 . By the triangle inequality, R ( f ^ n ) − R ( f ∗ ) = 1 n ∥ f ∗ ( X ) − f ^ n ( X ) ∥ 2 ≥ c σ 2 R(\hat{f}_n) - R(f_*) = \frac{1}{n}\|f_*(X) - \hat{f}_n(X)\|^2 \geq c\sigma^2 R ( f ^ n ) − R ( f ∗ ) = n 1 ∥ f ∗ ( X ) − f ^ n ( X ) ∥ 2 ≥ c σ 2 for some constant c > 0 c > 0 c > 0 (the interpolating function has to “reach” each y i = f ∗ ( x i ) + σ g i y_i = f_*(x_i) + \sigma g_i y i = f ∗ ( x i ) + σ g i , moving distance ∼ σ \sim \sigma ∼ σ from f ∗ f_* f ∗ at each point). Moreover,
R d n ( F ) = E σ sup f ∈ F 1 n ∑ i σ i f ( x i ) ≥ c σ , \mathrm{Rd}_n(\mathcal{F}) = \mathbb{E}_\sigma \sup_{f \in \mathcal{F}} \frac{1}{n}\sum_i \sigma_i f(x_i) \geq c\sigma, Rd n ( F ) = E σ f ∈ F sup n 1 i ∑ σ i f ( x i ) ≥ c σ , so the Rademacher bound does not vanish as n → ∞ n \to \infty n → ∞ when F \mathcal{F} F is rich enough to interpolate. Overfitting ⇒ \Rightarrow ⇒ R d n ( F ) \mathrm{Rd}_n(\mathcal{F}) Rd n ( F ) does not go to 0.
Abstract Detour: Banach-Space Approximation and Barron Spaces ¶ The Rademacher bound above controls generalization given r 0 r_0 r 0 but leaves open: how large must m m m be to make inf f ∈ F m ( r 0 ) R ( f ) \inf_{f \in \mathcal{F}_m(r_0)} R(f) inf f ∈ F m ( r 0 ) R ( f ) small? The following abstract framework, due to Maurey and Pisier, gives a clean answer.
Convex Hulls in Banach Spaces ¶ Let ( X , ∥ ⋅ ∥ X ) (X, \|\cdot\|_X) ( X , ∥ ⋅ ∥ X ) be a Banach space, G ⊆ X G \subseteq X G ⊆ X compact and centrosymmetric (g ∈ G ⇒ − g ∈ G g \in G \Rightarrow -g \in G g ∈ G ⇒ − g ∈ G ). Define
c o n v ( G ) = { ∑ i = 1 n a i g i : a i ≥ 0 , ∑ i a i = 1 , g i ∈ G , n ∈ N } = ⋂ F ⊇ G F halfspace F , \mathrm{conv}(G) = \left\{\sum_{i=1}^n a_i g_i : a_i \geq 0,\; \sum_i a_i = 1,\; g_i \in G,\; n \in \mathbb{N}\right\} = \bigcap_{\substack{F \supseteq G \\ F \text{ halfspace}}} F, conv ( G ) = { i = 1 ∑ n a i g i : a i ≥ 0 , i ∑ a i = 1 , g i ∈ G , n ∈ N } = F ⊇ G F halfspace ⋂ F , the closed convex hull of G G G . Define also
B G = c o n v ( G ) ‾ , B ~ G = { x = ∫ G g μ ( d g ) : μ prob. measure on G } . B_G = \overline{\mathrm{conv}(G)}, \qquad
\tilde{B}_G = \left\{x = \int_G g\,\mu(dg) : \mu \text{ prob. measure on } G\right\}. B G = conv ( G ) , B ~ G = { x = ∫ G g μ ( d g ) : μ prob. measure on G } . ( ⊆ ) (\subseteq) ( ⊆ ) Let x ∈ B G x \in B_G x ∈ B G . By definition of the closure of the convex hull, there exist x n = ∑ i = 1 m ( n ) a i ( n ) g i ( n ) → x x_n = \sum_{i=1}^{m(n)} a_i^{(n)} g_i^{(n)} \to x x n = ∑ i = 1 m ( n ) a i ( n ) g i ( n ) → x with a i ( n ) ≥ 0 a_i^{(n)} \geq 0 a i ( n ) ≥ 0 , ∑ i a i ( n ) = 1 \sum_i a_i^{(n)} = 1 ∑ i a i ( n ) = 1 , g i ( n ) ∈ G g_i^{(n)} \in G g i ( n ) ∈ G . Define the discrete measures μ n = ∑ i = 1 m ( n ) a i ( n ) δ g i ( n ) \mu_n = \sum_{i=1}^{m(n)} a_i^{(n)} \delta_{g_i^{(n)}} μ n = ∑ i = 1 m ( n ) a i ( n ) δ g i ( n ) ; then x n = ∫ g μ n ( d g ) x_n = \int g\,\mu_n(dg) x n = ∫ g μ n ( d g ) .
By Prokhorov’s theorem (since G G G is compact metric), the sequence ( μ n ) (\mu_n) ( μ n ) is tight and has a weakly convergent subsequence μ n k ⇒ μ \mu_{n_k} \Rightarrow \mu μ n k ⇒ μ . For any λ ∈ X ∗ \lambda \in X^* λ ∈ X ∗ (continuous linear functional),
λ ( x n k ) = ∫ λ ( g ) μ n k ( d g ) → ∫ λ ( g ) μ ( d g ) , \lambda(x_{n_k}) = \int \lambda(g)\,\mu_{n_k}(dg) \to \int \lambda(g)\,\mu(dg), λ ( x n k ) = ∫ λ ( g ) μ n k ( d g ) → ∫ λ ( g ) μ ( d g ) , so x = ∫ g μ ( d g ) ∈ B ~ G x = \int g\,\mu(dg) \in \tilde{B}_G x = ∫ g μ ( d g ) ∈ B ~ G .
( ⊇ ) (\supseteq) ( ⊇ ) Let x ∈ B ~ G x \in \tilde{B}_G x ∈ B ~ G , so x = ∫ g μ ( d g ) x = \int g\,\mu(dg) x = ∫ g μ ( d g ) . Given ε > 0 \varepsilon > 0 ε > 0 , let N ε = { g 1 , … , g N } \mathcal{N}_\varepsilon = \{g_1, \ldots, g_N\} N ε = { g 1 , … , g N } be an ε \varepsilon ε -net of G G G , and partition G = R 1 ∪ ⋯ ∪ R N G = R_1 \cup \cdots \cup R_N G = R 1 ∪ ⋯ ∪ R N with R i ⊆ B ( g i , ε ) R_i \subseteq B(g_i, \varepsilon) R i ⊆ B ( g i , ε ) . Set a i = μ ( R i ) a_i = \mu(R_i) a i = μ ( R i ) and x ε = ∑ i = 1 N a i g i ∈ c o n v ( G ) x_\varepsilon = \sum_{i=1}^N a_i g_i \in \mathrm{conv}(G) x ε = ∑ i = 1 N a i g i ∈ conv ( G ) . Then
∥ x ε − x ∥ X = ∥ ∑ i = 1 N ∫ R i ( g i − g ) μ ( d g ) ∥ X ≤ ∑ i ∫ R i ∥ g i − g ∥ X μ ( d g ) ≤ ε . □ \|x_\varepsilon - x\|_X = \left\|\sum_{i=1}^N \int_{R_i} (g_i - g)\,\mu(dg)\right\|_X \leq \sum_i \int_{R_i} \|g_i - g\|_X\,\mu(dg) \leq \varepsilon. \qquad \square ∥ x ε − x ∥ X = ∥ ∥ i = 1 ∑ N ∫ R i ( g i − g ) μ ( d g ) ∥ ∥ X ≤ i ∑ ∫ R i ∥ g i − g ∥ X μ ( d g ) ≤ ε . □ The Atomic Norm ¶ The atomic norm induced by G G G is
∥ x ∥ G = inf { λ > 0 : x ∈ B G ( λ ) } = inf { ∣ μ ∣ : x = ∫ g μ ( d g ) , μ not normalized } , \|x\|_G = \inf\{\lambda > 0 : x \in B_G(\lambda)\} = \inf\{|\mu| : x = \int g\,\mu(dg),\; \mu \text{ not normalized}\}, ∥ x ∥ G = inf { λ > 0 : x ∈ B G ( λ )} = inf { ∣ μ ∣ : x = ∫ g μ ( d g ) , μ not normalized } , where ∣ μ ∣ = μ ( G ) |\mu| = \mu(G) ∣ μ ∣ = μ ( G ) is the total mass.
Example 1. X = R n X = \mathbb{R}^n X = R n , G = { ± e 1 , … , ± e n } G = \{\pm e_1, \ldots, \pm e_n\} G = { ± e 1 , … , ± e n } . Then B G = { x : ∥ x ∥ 1 ≤ 1 } B_G = \{x : \|x\|_1 \leq 1\} B G = { x : ∥ x ∥ 1 ≤ 1 } , so ∥ x ∥ G = ∥ x ∥ 1 \|x\|_G = \|x\|_1 ∥ x ∥ G = ∥ x ∥ 1 (the ℓ 1 \ell^1 ℓ 1 norm).
Example 2. X = S y m n ⊆ R n × n X = \mathrm{Sym}_n \subseteq \mathbb{R}^{n \times n} X = Sym n ⊆ R n × n , G = { ± u u ⊤ : ∥ u ∥ 2 = 1 } G = \{\pm uu^\top : \|u\|_2 = 1\} G = { ± u u ⊤ : ∥ u ∥ 2 = 1 } . Then B G = { X : ∑ i ∣ λ i ( X ) ∣ ≤ 1 } B_G = \{X : \sum_i |\lambda_i(X)| \leq 1\} B G = { X : ∑ i ∣ λ i ( X ) ∣ ≤ 1 } (unit ball in the Schatten-1 / nuclear norm), so ∥ X ∥ G = ∥ X ∥ ∗ \|X\|_G = \|X\|_* ∥ X ∥ G = ∥ X ∥ ∗ (the nuclear norm).
Maurey–Pisier Approximation Theorem ¶ Assume X X X is a Hilbert space . Then for every f ∈ X f \in X f ∈ X there exist g 1 , … , g m ∈ G g_1, \ldots, g_m \in G g 1 , … , g m ∈ G and a ∈ R a \in \mathbb{R} a ∈ R such that
∥ f − a m ∑ i = 1 m g i ∥ X ≤ B ∥ f ∥ G m , \left\|f - \frac{a}{m}\sum_{i=1}^m g_i\right\|_X \leq \frac{B\|f\|_G}{\sqrt{m}}, ∥ ∥ f − m a i = 1 ∑ m g i ∥ ∥ X ≤ m B ∥ f ∥ G , where B = sup g ∈ G ∥ g ∥ X B = \sup_{g \in G} \|g\|_X B = sup g ∈ G ∥ g ∥ X .
The rate 1 / m 1/\sqrt{m} 1/ m is the Monte Carlo rate : approximating an integral by a sample average.
Since f ∈ X = c o n v ( G ) ‾ ⋅ ∥ f ∥ G f \in X = \overline{\mathrm{conv}(G)} \cdot \|f\|_G f ∈ X = conv ( G ) ⋅ ∥ f ∥ G (after rescaling), by Lemma Lemma 3 we may write f = ∫ G g μ ( d g ) f = \int_G g\,\mu(dg) f = ∫ G g μ ( d g ) for a positive measure μ \mu μ with ∣ μ ∣ = ( 1 + ε ) ∥ f ∥ G |\mu| = (1+\varepsilon)\|f\|_G ∣ μ ∣ = ( 1 + ε ) ∥ f ∥ G (for any ε > 0 \varepsilon > 0 ε > 0 ). Set a = ∣ μ ∣ a = |\mu| a = ∣ μ ∣ and μ ^ = μ / ∣ μ ∣ \hat{\mu} = \mu/|\mu| μ ^ = μ /∣ μ ∣ (normalized to a probability measure). Then
f = a ∫ G g μ ^ ( d g ) = E g ∼ μ ^ [ a g ] . f = a\int_G g\,\hat{\mu}(dg) = \mathbb{E}_{g \sim \hat{\mu}}[a\,g]. f = a ∫ G g μ ^ ( d g ) = E g ∼ μ ^ [ a g ] . Draw g 1 , … , g m ∼ iid μ ^ g_1, \ldots, g_m \overset{\text{iid}}{\sim} \hat{\mu} g 1 , … , g m ∼ iid μ ^ and set f ^ = a m ∑ i = 1 m g i \hat{f} = \frac{a}{m}\sum_{i=1}^m g_i f ^ = m a ∑ i = 1 m g i . Then E [ f ^ ] = f \mathbb{E}[\hat{f}] = f E [ f ^ ] = f , and
E [ ∥ f − f ^ ∥ X 2 ] = E ∥ a m ∑ i = 1 m ( g i − E [ g i ] ) ∥ X 2 = a 2 m 2 ∑ i = 1 m E ∥ g i − E [ g i ] ∥ X 2 ≤ a 2 m E ∥ g i ∥ X 2 ≤ a 2 B 2 m . \mathbb{E}\left[\|f - \hat{f}\|_X^2\right]
= \mathbb{E}\left\|\frac{a}{m}\sum_{i=1}^m (g_i - \mathbb{E}[g_i])\right\|_X^2
= \frac{a^2}{m^2}\sum_{i=1}^m \mathbb{E}\|g_i - \mathbb{E}[g_i]\|_X^2
\leq \frac{a^2}{m}\,\mathbb{E}\|g_i\|_X^2
\leq \frac{a^2 B^2}{m}. E [ ∥ f − f ^ ∥ X 2 ] = E ∥ ∥ m a i = 1 ∑ m ( g i − E [ g i ]) ∥ ∥ X 2 = m 2 a 2 i = 1 ∑ m E ∥ g i − E [ g i ] ∥ X 2 ≤ m a 2 E ∥ g i ∥ X 2 ≤ m a 2 B 2 . Since E [ f ^ ] = f \mathbb{E}[\hat{f}] = f E [ f ^ ] = f , the expectation of ∥ f − f ^ ∥ X 2 \|f - \hat{f}\|_X^2 ∥ f − f ^ ∥ X 2 being small implies the existence of a particular realization g 1 , … , g m g_1, \ldots, g_m g 1 , … , g m achieving the bound. Taking ε → 0 \varepsilon \to 0 ε → 0 gives a → ∥ f ∥ G a \to \|f\|_G a → ∥ f ∥ G , completing the proof. □ \square □
The Hilbert space assumption is essential: the proof uses that E ∥ g i − E [ g i ] ∥ 2 ≤ E ∥ g i ∥ 2 = B 2 \mathbb{E}\|g_i - \mathbb{E}[g_i]\|^2 \leq \mathbb{E}\|g_i\|^2 = B^2 E ∥ g i − E [ g i ] ∥ 2 ≤ E ∥ g i ∥ 2 = B 2 , which holds in any Hilbert space (or more generally in spaces of Rademacher type 2). For Banach spaces of type p > 1 p > 1 p > 1 but not Hilbert, the same conclusion holds with a worse dependence on the geometry.
Application: Barron Spaces and Two-Layer Networks ¶ Set X = L 2 ( R d ; P ) X = L^2(\mathbb{R}^d; \mathbb{P}) X = L 2 ( R d ; P ) (the Hilbert space of square-integrable functions under the data distribution), and let
G = { ± σ ( ⟨ w , ⋅ ⟩ ) : ∥ w ∥ 2 ≤ 1 } = G + ∪ G − . G = \{\pm\sigma(\langle w, \cdot\rangle) : \|w\|_2 \leq 1\} = G_+ \cup G_-. G = { ± σ (⟨ w , ⋅ ⟩) : ∥ w ∥ 2 ≤ 1 } = G + ∪ G − . The induced atomic norm is the Barron norm :
∥ f ∥ σ = inf { ∣ ν ∣ : f ( ⋅ ) = ∫ G + σ ( ⟨ w , ⋅ ⟩ ) ν + ( d w ) − ∫ G + σ ( ⟨ w , ⋅ ⟩ ) ν − ( d w ) } , \|f\|_\sigma = \inf\left\{|\nu| : f(\cdot) = \int_{G_+} \sigma(\langle w, \cdot\rangle)\,\nu_+(dw) - \int_{G_+} \sigma(\langle w, \cdot\rangle)\,\nu_-(dw)\right\}, ∥ f ∥ σ = inf { ∣ ν ∣ : f ( ⋅ ) = ∫ G + σ (⟨ w , ⋅ ⟩) ν + ( d w ) − ∫ G + σ (⟨ w , ⋅ ⟩) ν − ( d w ) } , where ν = ν + − ν − \nu = \nu_+ - \nu_- ν = ν + − ν − is a signed measure on G + = { w : ∥ w ∥ 2 ≤ 1 } G_+ = \{w : \|w\|_2 \leq 1\} G + = { w : ∥ w ∥ 2 ≤ 1 } . Equivalently,
∥ f ∥ σ = inf { ∣ ν ∣ : f ( ⋅ ) = ∫ G + σ ( ⟨ w , ⋅ ⟩ ) ν ( d w ) , ν signed measure on G + } . \|f\|_\sigma = \inf\left\{|\nu| : f(\cdot) = \int_{G_+} \sigma(\langle w, \cdot\rangle)\,\nu(dw),\; \nu \text{ signed measure on } G_+\right\}. ∥ f ∥ σ = inf { ∣ ν ∣ : f ( ⋅ ) = ∫ G + σ (⟨ w , ⋅ ⟩) ν ( d w ) , ν signed measure on G + } . The class F m ( r 0 ) \mathcal{F}_m(r_0) F m ( r 0 ) defined earlier corresponds to elements of B G ( r 0 ) B_G(r_0) B G ( r 0 ) (the ball of Barron norm ≤ r 0 \leq r_0 ≤ r 0 ) approximated by m m m -neuron networks.
Combining with the Rademacher bound from the previous section, the total excess risk of the ERM estimator over F m ( r 0 ) \mathcal{F}_m(r_0) F m ( r 0 ) satisfies
R ( f ^ n ) − R ( f ∗ ) ≲ C ∥ f ∗ ∥ σ m ⏟ approx. error + ∥ f ∗ ∥ σ ⋅ C d n ⏟ gen. error . R(\hat{f}_n) - R(f_*) \lesssim \underbrace{\frac{C\|f_*\|_\sigma}{\sqrt{m}}}_{\text{approx. error}} + \underbrace{\|f_*\|_\sigma\cdot C\sqrt{\frac{d}{n}}}_{\text{gen. error}}. R ( f ^ n ) − R ( f ∗ ) ≲ approx. error m C ∥ f ∗ ∥ σ + gen. error ∥ f ∗ ∥ σ ⋅ C n d . Balancing these two terms by choosing m ≍ n / d m \asymp n/d m ≍ n / d gives R ( f ^ n ) − R ( f ∗ ) = O ( 1 / n / d ) R(\hat{f}_n) - R(f_*) = \mathcal{O}(1/\sqrt{n/d}) R ( f ^ n ) − R ( f ∗ ) = O ( 1/ n / d ) , a rate independent of the ambient dimension d d d (up to the implicit dependence in ∥ f ∗ ∥ σ \|f_*\|_\sigma ∥ f ∗ ∥ σ ).
Physical interpretation. The Barron norm measures the “spectral complexity” of f ∗ f_* f ∗ as a function of its Fourier/harmonic representation in the weight space. Functions that can be expressed as superpositions of neurons with bounded total variation in the weight space have small Barron norm. This is precisely the class for which shallow networks overcome the curse of dimensionality.
Bartlett, P. L. (1996). For valid generalization the size of the weights is more important than the size of the network. Advances in Neural Information Processing Systems , 9 .