Why Combine Two Layer Norms?
A spectral-norm constraint controls how strongly a layer can amplify a vector. It therefore helps control the magnitude and sensitivity of network predictions. But a spectral constraint alone does not describe how many directions in a layer’s parameter matrix have substantial size. The Frobenius norm supplies complementary information: when it is small relative to the spectral norm, the layer’s matrix is concentrated in fewer effective directions.
This tutorial uses both constraints to build a uniform cover of a network class and then turn that cover into a risk bound. The resulting bound is explicit rather than dimension-free: it depends on the number of parameters, the input radius, the product of spectral-norm bounds, and each layer’s Frobenius-to-spectral norm ratio. This makes clear both what the norm constraints buy and how depth can amplify their effect.
Network Class and Norm Constraints
Consider a feedforward ReLU network with \(L\geq 1\) weight matrices \(W_l\in\mathbb{R}^{d_l\times d_{l-1}}\), where \(d_L=1\), and with no bias terms. For \(L>1\), ReLU is applied after each of the first \(L-1\) layers. Write \(\sigma(u)\) for coordinatewise ReLU, \(\sigma(u)_j=\max\{u_j,0\}\). The output for input \(x\in\mathbb{R}^{d_0}\) is
For \(L=1\), this means \(f_W(x)=W_1x\). Let the input domain \(\mathcal{X}\) satisfy \(\|x\|_2\leq B\). For each layer, impose positive spectral-norm bounds \(s_l>0\) and Frobenius-norm bounds \(F_l\geq 0\):
Here \(\|\cdot\|_2\) for a matrix is its operator norm induced by the Euclidean vector norm, and \(\|\cdot\|_F\) is the square root of the sum of its squared entries. Define \(S=\prod_{l=1}^L s_l\) and \(p_l=d_ld_{l-1}\). The class of all such networks is denoted by \(\mathcal{F}\).
The constraints imply an immediate output bound. ReLU is nonexpansive in Euclidean norm and satisfies \(\|\sigma(u)\|_2\leq\|u\|_2\), so repeated application of the layer bounds gives \(|f_W(x)|\leq BS\). We will use the same nonexpansiveness fact to control prediction changes under parameter perturbations.
Worked Example: Bounding the Output Magnitude
Take a two-layer network with input radius \(B=1\), and spectral bounds \(s_1=2\) and \(s_2=1.5\). For every admissible input and network,
Thus \(S=s_1s_2=3\) and the uniform output bound is \(BS=3\). This bound uses the spectral constraints; the Frobenius constraints will further restrict how finely the class must be covered.
A Layerwise Perturbation Bound
A useful first step is to compare two networks with the same architecture. Suppose both \(W=(W_1,\ldots,W_L)\) and \(V=(V_1,\ldots,V_L)\) satisfy the spectral bounds. Their predictions can be compared by replacing one layer at a time. At the layer being replaced, the change is measured by \(\|W_l-V_l\|_2\); all other layers contribute their spectral bounds.
Proof. Define \(G(W_1,\ldots,W_L)=f_W(x)\) for a fixed input \(x\). Use the telescoping decomposition that starts with all layers from \(W\) and replaces them by the corresponding layers from \(V\), one at a time. In the term where layer \(l\) is replaced, all layers before it are from one network and all layers after it are from the other. Their spectral norms are bounded by their respective \(s_j\). ReLU does not increase Euclidean distances: coordinatewise, \(|\max(a,0)-\max(b,0)|\leq |a-b|\), and summing squared coordinate inequalities proves the vector statement. Applying this fact at the hidden layers, and the matrix inequality \(\|Au\|_2\leq\|A\|_2\|u\|_2\), bounds the change from layer \(l\) by
Summing the \(L\) changes and using \(\|x\|_2\leq B\) proves the inequality. \(\square\)
Worked Example: Choosing Layerwise Covering Radii
For a two-layer network, suppose \(B=1\), \(s_1=2\), \(s_2=1.5\), and we want prediction error at most \(\varepsilon=0.06\). Set \(S=2(1.5)=3\) and choose the Frobenius covering radii
Since \(L=2\), these are \(\eta_1=0.06(2)/(1\cdot3\cdot2)=0.02\) and \(\eta_2=0.06(1.5)/(1\cdot3\cdot2)=0.015\). A Frobenius error at most \(\eta_l\) also bounds the spectral error by \(\eta_l\). The lemma then bounds the first layer’s contribution by \((3/2)(0.02)=0.03\), and the second layer’s by \((3/1.5)(0.015)=0.03\). The total prediction error is at most \(0.06\), as required.
Covering the Network Class
For functions on \(\mathcal{X}\), define the uniform distance \(d_\infty(f,g)=\sup_{x\in\mathcal{X}}|f(x)-g(x)|\). A radius-\(\varepsilon\) cover is a finite set of functions such that every function in the class is within uniform distance \(\varepsilon\) of at least one member. Write \(N_\infty(\varepsilon,\mathcal{F})\) for the smallest possible size of such a cover.
Proof. For each layer, consider its admissible matrix set, a subset of the Frobenius ball of radius \(F_l\) in a \(p_l\)-dimensional Euclidean space. For any \(\eta_l>0\), this set has a Frobenius \(\eta_l\)-cover with centers in the set and size at most \((1+2F_l/\eta_l)^{p_l}\). To see the bound, take a maximal subset whose distinct elements are more than \(\eta_l\) apart. Frobenius balls of radius \(\eta_l/2\) around those points are disjoint and lie within the ball of radius \(F_l+\eta_l/2\). Comparing their \(p_l\)-dimensional volumes bounds the number by \((1+2F_l/\eta_l)^{p_l}\). Maximality ensures that the subset covers the admissible set to radius \(\eta_l\). If \(F_l=0\), the admissible set contains only the zero matrix, and the same bound gives one center.
Choose \(\eta_l=\varepsilon s_l/(BSL)\), which is well defined because \(B>0\), \(S>0\), and \(L\geq1\). Form every network from a choice of one center in each layer’s cover. The centers obey the spectral constraints because they lie in the admissible matrix sets. For any network and its selected center network, the lemma and \(\|A\|_2\leq\|A\|_F\) give
The number of combined networks is at most the product of the layerwise cover sizes. Taking logarithms and substituting the chosen radii yields the stated inequality. \(\square\)
Worked Example: A Two-Layer Cover Size
Consider matrices of dimensions \(3\times2\) and \(1\times3\), so \(p_1=6\) and \(p_2=3\). Let \(B=1\), \(L=2\), \(s_1=2\), \(s_2=1.5\), \(F_1=2.5\), \(F_2=1.8\), and \(\varepsilon=0.06\). As above, \(S=3\), \(\eta_1=0.02\), and \(\eta_2=0.015\). The theorem gives
Numerically, this is approximately \(49.6071\). Thus the cover size is at most \(\exp(6\log(251)+3\log(241))\), approximately \(\exp(49.6071)\). This is a conservative finite-class bound, not a claim that the actual class has that many distinguishable functions. In this example the Frobenius-to-spectral ratios are \(2.5/2=1.25\) and \(1.8/1.5=1.2\), and they enter the covering factors together with the common scale \(BSL/\varepsilon\).
From Covers to Estimation Error
A finite cover becomes a statistical bound under standard sampling and loss conditions. Let \(Z=(X,Y)\) have distribution \(P\), and let \(Z_1,\ldots,Z_n\) be independent observations from \(P\). For a predictor \(f\), write its risk as \(R(f)=E[\ell(f(X),Y)]\), and its empirical risk as \(R_n(f)=n^{-1}\sum_{i=1}^n\ell(f(X_i),Y_i)\).
Consequently, any empirical risk minimizer \(\hat f\in\mathcal{F}\) satisfies
Proof. Fix a radius-\(\varepsilon\) cover. For each \(f\), choose a cover element \(g\) with \(d_\infty(f,g)\leq\varepsilon\). By the Lipschitz condition, the losses at \(f\) and \(g\) differ by at most \(K\varepsilon\) for every observation. Their population risks and empirical risks each differ by at most \(K\varepsilon\), so
For each fixed cover element \(g\), the losses are independent and in \([0,1]\). Hoeffding’s inequality gives probability at most \(2e^{-2nt^2}\) that \(|R(g)-R_n(g)|>t\). Applying the union bound to all cover elements and setting \(t=\sqrt{\log(2N_\infty(\varepsilon,\mathcal{F})/\delta)/(2n)}\) shows that all their deviations are at most \(t\) with probability at least \(1-\delta\). This proves the uniform bound. On that event, empirical risk minimization gives
for every \(f\in\mathcal{F}\). Taking the infimum over \(f\) proves the excess-risk inequality. \(\square\)
Worked Example: Reading the Depth Dependence
Suppose a four-layer network has \(B=1\), all spectral bounds \(s_l=1.2\), all Frobenius bounds \(F_l=2\), and we seek a cover at \(\varepsilon=0.1\). Then \(S=1.2^4=2.0736\), and the common layer radius is
For each layer, the volumetric factor inside the logarithm is \(1+2F_l/\eta_l\), approximately \(1+4/0.01447\approx277.5\). Hence \(\log N_\infty(0.1,\mathcal{F})\leq(\sum_{l=1}^4p_l)\log(277.5)\). The product of spectral bounds has grown to about \(2.07\), while depth also appears in the covering radius through the factor \(L\). If instead each spectral bound were \(1\), the product would be \(1\), and that multiplicative amplification would disappear. The norm bound does not say that depth always worsens generalization by itself: the effect depends on the layer norms, widths, and the chosen accuracy.
Interpreting the Bound and Avoiding a Pitfall
Substituting the covering theorem into the risk theorem makes the roles of the quantities visible. The logarithm of the cover is a sum over layers, with a term involving \(p_l\) and \(BSL F_l/(\varepsilon s_l)\). Thus the Frobenius constraint can reduce the cover when \(F_l/s_l\) is small, while the spectral product \(S\) controls overall amplification. Width enters through \(p_l=d_ld_{l-1}\). These are explicit, sometimes conservative bounds; they should not be mistaken for a sharp characterization of the class’s statistical complexity.
A common mistake is to say that spectral norms alone determine the complexity, or to treat the Frobenius norms as if they could simply replace the spectral norms in the output bound. The spectral product controls the telescoping amplification, whereas the Frobenius radii control how many layer matrices must be covered. The two norms play different roles. Another important edge case is \(B=0\): the displayed choice of covering radius divides by \(B\), so the theorem’s proof requires \(B>0\). If the input domain is contained in the radius-zero ball, every input is zero and, because the network has no biases, every network predicts zero. The function class then contains one function and \(N_\infty(\varepsilon,\mathcal{F})=1\) for every \(\varepsilon>0\); this case is handled directly rather than by the radius formula.
Check Your Understanding
Use the definitions and results above to answer the following.
- Why does a Frobenius perturbation of size \(\eta\) also control the spectral perturbation by at most \(\eta\)?
- For a network with \(L\) layers, explain why the layerwise radii \(\eta_l=\varepsilon s_l/(BSL)\) allocate a total prediction error of at most \(\varepsilon\).
- Which part of the covering-number bound reflects the number of parameters in layer \(l\), and which part reflects its Frobenius-to-spectral ratio?
- What is the prediction class when \(B=0\) for the bias-free networks considered here, and why can the positive-\(B\) radius formula not be used?
- If all spectral bounds equal one, which multiplicative depth effect disappears, and which depth dependence remains in the stated cover construction?