WorksComputer Science
Propagation and Optimization of Low-Frequency Spectral Alignment in ReLU Networks on a Fixed Sample Graph
Abstract
We study how low-frequency structure, measured with respect to the Laplacian of a fixed graph built on the training samples, propagates through a ReLU network to the least-squares readout , and how individual neurons can be optimized to capture low-frequency eigenvectors. The readout error splits into a low-frequency part controlled by coverage (how well the feature span contains the low eigenvectors) and a high-frequency part controlled by the smoothness (Dirichlet energy) of the target. We prove an error bound that makes this precise, with coverage measured by the coverage gap, the largest principal-angle sine between the low eigenvectors and the feature span, and show that coverage can always be preserved across ReLU layers. Finally, we define a count of captured low-frequency features, relate it to our error bounds, and prove that error can be reduced to a smoothness component when captures every low frequency feature. Lastly, we show that a ReLU layer can strictly increase whenever the previous layer keeps the samples distinct and coverage is not yet full, that neurons suffice to preserve coverage, that greedily chosen neurons drive the coverage gap down at rate governed by a ReLU variation norm of the low eigenvectors, and that neurons can reduce the coverage gap no further than the -st principal-angle sine.
Setting and notation
Let be the sample and the target values. Let be a weighted undirected graph on the samples with symmetric nonnegative weights , degrees , and . We consider the use of Laplacians such as the combinatorial or symmetric normalized:
see [2, 3]. Their quadratic forms are
Throughout, denotes either or unless stated otherwise. Write with orthogonal and . Let , and .
Definition 1.1 (Energy and Rayleigh quotient). The Dirichlet energy of is , and is the Dirichlet energy seminorm. For the Rayleigh quotient is
the average eigenvalue weighted by the spectral mass of , so that , with .
Network. Let act entrywise. Set and, for ,
The readout features are , , where is the orthogonal projector onto , and the residual is .
Single neuron. For a neuron in layer let , , the pre-activation and
For vectors and matrices, is the entrywise absolute value and inequalities between vectors are entrywise.
Coverage. For a matrix define the coverage gap
When , is the sine of the largest principal angle between and its closest -dimensional subspace of [6, 7, 5].
Preliminaries
Lemma 2.1 (High-frequency mass). If then for every , .
Proof. With , Parseval gives .
Coverage of the low frequencies
The least-squares error splits into a low-frequency part, controlled by how well contains as measured by the coverage gap , and a high-frequency part, controlled by the smoothness of .
Corollary 3.1 (Target-only coverage bound). Let . Then
the last inequality requiring .
Proof. Since and , the triangle inequality gives , and . The second inequality uses and Lemma 2.1.
Lemma 3.2 (Monotonicity of the coverage gap). If then .
Proof. , so and .
Proposition 3.3 (Coverage can always be preserved across ReLU layers).
(a) For every , ; hence .
(b) For , the entries of are nonnegative, so a layer containing the neurons with weights and zero bias reproduces exactly, and .
(c) For , a layer containing the neurons with weights and zero bias satisfies .
Consequently, if and for , there exist weights for which is nonincreasing in , with the remaining neurons free to add coverage (Section 5 shows when and how fast they do).
Proof. (a) holds entrywise: . (b) since . (c) By (a), lies in . The consequence follows from Lemma 3.2. □
Definition 3.4 (Captured low-frequency features). For with orthonormal basis of , define
Lemma 3.5 (Properties of ).
(i) , where are the principal angles between and .
(ii) .
(iii) For a single nonzero vector, .
(iv) , so and .
Proof. (i) The singular values of are the cosines of the principal angles [6]. (ii) There are principal angles and each . (iii) Take . (iv) and , so Pythagoras gives the identity; then . □
Optimizing neurons to capture low frequencies
By Lemma 3.5(iii) a single neuron captures at most one low-frequency dimension; capturing many is a property of a layer. We first bound what a single gated neuron can achieve, then give a fixed-gating formulation for a single neuron and for the marginal gain of adding a neuron to a layer.
Proposition 4.1 (Limits imposed by the active set). Let be supported on (for a ReLU neuron, its active set) and let be the complement. Let be the leverage scores of [9]. Then
where is the principal submatrix on . Moreover .
Proof. Write for the restriction of to . Then . The spectral norm is at most because has orthonormal columns, and at most the Frobenius norm, whose square is . Next, . Finally, Cauchy interlacing [4] for an principal submatrix gives . □
Remark 4.2. Since , for delocalized eigenvectors and a neuron active on vertices captures at most about . Small active sets cap low-frequency capture, formalizing why dead or very sparse ReLUs hurt coverage. The bound is a Dirichlet eigenvalue: the inactive set acts as a boundary on which , in the spirit of the harmonic-extension theorem [1 Thm. 11.6.1]. Conversely, by Proposition 3.3(a), the pair , supported on the positive and negative nodal domains of , recovers ; discrete nodal domain theorems [13] bound how many such domains has.
Proposition 4.3 (Fixed-gating formulation for one neuron). Fix a diagonal matrix and let , a polyhedral cone. For we have , and if ,
Moreover
where is an orthonormal basis of , with equality if a maximizer of the unconstrained ratio lies in . The global problem equals the maximum of the cone-constrained problems over the finitely many gating patterns realized by .
Proof. If and then ; if and then . So on the neuron is the linear map , and Lemma 3.5(iii) with gives the ratio. Dropping the cone constraint, the ratio ranges over for nonzero , whose maximum is , the squared cosine of the smallest principal angle [6]. Every lies in , which proves the last claim; the number of realized patterns is finite and, for fixed rank , polynomial in [10, 11].
Remark 4.4. A maximizer of the unconstrained ratio ( a top right singular vector of ) is realizable in iff, for one choice of sign, and the linear program is feasible, where are the active and inactive index sets of . Maximizing a Rayleigh quotient over a cone is a cone-constrained (Pareto) eigenvalue problem [12]. The cone and the enumeration over patterns are the same objects as in the convex reformulation of two-layer ReLU networks [11].
Proposition 4.5 (Marginal gain of a new neuron). Let have orthonormal basis , let , and set and . Then
For fixed gating and this is the ratio , so Proposition 4.3 applies verbatim with these matrices.
Proof. Gram–Schmidt gives the orthonormal basis of with , so
Finally .
Increasing coverage across layers
Proposition 3.3 shows that coverage need not decrease from one layer to the next. This section asks when, and how fast, the remaining neurons of a layer can increase it. Fix a layer and . For a feature matrix built in this layer write
so that is the coverage deficit (Lemma 3.5(iv)) and, by Proposition 4.5, is the increase of obtained by appending . Since for the unit vector , we always have . We also use that is monotone: if then , so .
When can a layer increase coverage?
What a layer can add is determined by which samples it can still tell apart.
Theorem 5.1 (Span of ReLU features). Let be the partition of into classes of samples with identical rows in , let be the number of classes, and let be the -dimensional subspace of vectors that are constant on each class, with orthogonal projector . Then
(a) for every ;
(b) . In fact neurons sharing one weight direction suffice.
In particular, if the rows of are pairwise distinct, ReLU features of layer span .
Proof. (a) Samples with identical rows receive identical pre-activations. (b) Choose one representative per class. Their rows are distinct, so a generic (one avoiding the finitely many hyperplanes on which two representatives have equal projection) gives distinct projections, which we order as . Choose and for , and let , the neuron with . On class , equals , which is for and positive for . In the basis of class indicators, therefore form a triangular matrix with positive diagonal, so they are linearly independent and span the -dimensional space . This is the interpolation construction of [14]. □
Corollary 5.2 (Coverage ceiling). Samples with identical rows in have identical rows in every later layer. Hence the readout features of every network that agrees with the given one up to layer satisfy , and
If the rows of are distinct then and the ceiling is . Otherwise, any variation of the low eigenvectors within a collapsed class is lost for all subsequent layers.
Proof. Identical inputs to a layer give identical outputs, so by induction every column of every later , and the bias column, lies in . Monotonicity of gives the inequality, and Lemma 3.5(iv) applied to gives the identity. □
Theorem 5.3 (Strict increase of coverage). Let consist of outputs of layer- neurons and possibly the bias column (for instance the copy neurons of Proposition 3.3), so that . Then
and
(a) if , there exists with ;
(b) if , no neuron of layer , and no choice of later layers, can increase beyond .
Proof. Since , the projectors and commute and is an orthogonal projector, so . (a) A neuron has positive gain iff ; note is then automatic, since . By Theorem 5.1(b), such a neuron exists iff does not vanish on , i.e. iff , which is exactly the condition that the gap is positive. (b) This follows from Corollary 5.2. □
Corollary 5.4 (A layer can increase coverage). Suppose the rows of are pairwise distinct and . Then there is a layer of width (or when ) with and .
Proof. Take the copy neurons of Proposition 3.3(b) or Proposition 3.3(c). Together with they give with (with equality when ), so and, by Lemma 3.2, . Here and . If , the copies already give a strict increase over . Otherwise Theorem 5.3(a) supplies one more neuron with positive gain, so . Appending it does not increase , by Lemma 3.2. □
The copy neurons of Proposition 3.3 cost (or ) units. For coverage, far fewer suffice.
Proposition 5.5 (Preserving coverage with neurons). Let , let be an orthonormal basis of , let be the top right singular vectors of , and let be the corresponding principal vectors in . Suppose the rows of are distinct, and let be such that has distinct entries. Then any layer containing the neurons , , and satisfies
and has pairwise distinct rows.
Proof. By Proposition 3.3(a), , so . The matrix has at most nonzero singular values , and retains all of them, so by Lemma 3.5(i). If , then ; if , then , so some unit vector in is orthogonal to and . Monotonicity of and Lemma 3.2 give the two inequalities. A direction exists because the rows of are distinct and a generic avoids finitely many hyperplanes. If rows of were equal, then would equal , a contradiction. □
Remark 5.6. A layer of width therefore preserves coverage, keeps Theorem 5.1 applicable at the next layer, and leaves neurons free to add coverage. Under the hypotheses of Corollary 5.4, width already gives a strict increase: either the principal-vector neurons alone give , or Theorem 5.3(a) applies to them. The inequality is typically strict, because the pieces span more than .
Remark 5.7. (Skip connections). Propositions 3.3 and 5.5 spend , or neurons of every layer only on preserving coverage. Skip connections, as in residual networks [18], do this for free. We consider the concatenated form of [19],
with , so that the columns of are neurons of the form (2). The skip path preserves coverage, while the ReLU branch tries to increase it. Indeed, for every , so is nonincreasing (Lemma 3.2) and nondecreasing in . Rows that are distinct in stay distinct, so the ceiling of Corollary 5.2 never drops and Theorem 5.1 applies at every layer. The branch contributes exactly the marginal gains of Proposition 4.5: all branch neurons are free to add coverage, Theorem 5.3(a) with guarantees that one can unless , and Theorem 5.10 applies with . The additive skip of residual networks mixes the branch into the existing features, so need not contain ; we leave its analysis to future work.
How fast can a layer increase coverage?
Theorem 5.3 guarantees a positive gain but not its size. Width trivially attains the ceiling (Theorem 5.1(b)), and for distinct rows , which makes and . The relevant question is therefore how much coverage neurons provide. This depends on how economically ReLU features represent the low eigenvectors.
Definition 5.8 (ReLU variation norm). Let be the normalized neurons of layer , and for let
(finite sums; ). By Theorem 5.1, iff . We say is -representable by layer if every unit vector can be written with and .
If the rows of are distinct, then , so for every . Since is a seminorm, every unit satisfies . Hence is -representable with , although this may be very large.
Lemma 5.9 (Best single neuron). Let be -representable by layer , let be any feature matrix, and let . Then
Proof. For every we have ; this also holds if , since then . Let be a unit vector with , and write with , for arbitrary , and . Since ,
Let and rearrange.
Theorem 5.10 (Greedy coverage rate). Let be -representable by layer and fix . Let be any initial features of layer (for example from Proposition 3.3 or Proposition 5.5), and for let , where the appended neuron achieves at least for in Lemma 5.9. Write and . Then, as long as (with the convention ),
and for all ,
Consequently, if the readout features contain , Corollary 3.1 gives with bounded as above.
Proof. By Lemma 3.2, is nonincreasing, so the steps with form an initial segment. On it, , and Lemma 3.5(iv) with gives . Lemma 5.9 then gives a gain of at least with , so . If then and
and induction gives the bound on . If , all later deficits and gaps vanish. Hence on the initial segment , and after it . The final claim is Corollary 3.1 combined with Lemma 3.2, which gives .
Remark 5.11. Theorem 5.10 is the rate of greedy approximation in Hilbert space [15, 16, 17], applied to subspace coverage rather than to a single target. The candidate neurons can be produced by the fixed-gating formulation of Propositions 4.3 and 4.5, but the theorem requires an -approximate maximizer of the gain over all gating patterns, which a local method does not certify. The bound is informative only when is small enough that .
Example 5.12 (Clusters cut off by hyperplanes). Suppose the samples are partitioned into clusters , and each is cut off from the rest by a hyperplane with a margin in layer- features: for some , with , no entry of lies in an interval , and . Then, exactly on the sample,
Both ReLU terms vanish off and have entries at most on . Hence the normalized indicator satisfies , where is a spread-to-margin ratio. The are orthonormal, so every unit splits as with . Thus is -representable with
Here measures how far the low eigenvectors are from piecewise constant on the clusters, and Davis–Kahan bounds [8] control it through the between-cluster edge weight relative to . By Theorem 5.10, about greedy neurons reach coverage gap , independently of .
What no layer can do
Theorem 5.13 (Limits per neuron). Let be the singular values of (when , the sines of the principal angles between and ), and set for . If for a subspace with , for example when and consists of the copy neurons of Proposition 3.3(b), further neurons and , then
Both bounds are attained, without the ReLU constraint, by taking spanned by the top left singular vectors of .
Proof. By monotonicity of and Lemma 3.2, it suffices to treat . Let be an orthonormal basis of , so has at most columns and . Then , so and
a positive semidefinite downdate of rank at most . Weyl’s inequality [4] gives for every . Taking gives the bound on . Summing over gives , and since , this is the bound on . For attainment, the left singular vectors of lie in , and removing the top of them leaves exactly the singular values .
Remark 5.14. Increasing and decreasing are different goals. A single neuron can strictly decrease only if the largest singular value of is simple, and pushing below a level requires at least as many new neurons as there are . Theorem 5.13 is the unconstrained (Ky Fan) benchmark; Theorem 5.10 quantifies how closely ReLU neurons approach it. Together with Theorem 5.3, this is the precise sense in which the neurons left free by Proposition 3.3 add coverage.
Concluding remarks
Remark 6.1 (Reduction to the smoothness of the target, and future work). By Lemma 3.5(iv), , so Corollary 3.1 gives, for ,
Hence as , and the error reduces to the smoothness component: once , . By Corollary 5.2 this is attainable whenever the rows of are distinct, and Theorem 5.10 bounds how many greedily chosen neurons it takes. Two directions remain for future work. First, the remaining term depends only on and the graph, so we will investigate how to choose the graph, and hence the Laplacian , to minimize this smoothness component; since also determines , this has to be balanced against the coverage the network can achieve. Second, Theorem 5.10 assumes an -approximate maximizer of the gain over all gating patterns (Remark 5.11); we will develop methods that find maximal-gain neurons using the fixed-gating formulation of Proposition 4.3, applied to the marginal gain through Proposition 4.5, by searching over gating patterns and solving the resulting cone-constrained generalized eigenvalue problems.
References
References
- [1]D. A. Spielman. Spectral and Algebraic Graph Theory. Book draft, Yale University, 2019.
- [2]F. R. K. Chung. Spectral Graph Theory, volume 92 of CBMS Regional Conference Series in Mathematics. American Mathematical Society, 1997.
- [3]U. von Luxburg. A tutorial on spectral clustering. Statistics and Computing, 17(4):395–416, 2007.arxiv.org/abs/0711.0189
- [4]R. A. Horn and C. R. Johnson. Matrix Analysis. Cambridge University Press, 2nd edition, 2013.
- [5]G. H. Golub and C. F. Van Loan. Matrix Computations. Johns Hopkins University Press, 4th edition, 2013.
- [6]Å. Björck and G. H. Golub. Numerical methods for computing angles between linear subspaces. Mathematics of Computation, 27(123):579–594, 1973.DOI
- [7]G. W. Stewart and J.-G. Sun. Matrix Perturbation Theory. Academic Press, 1990.
- [8]C. Davis and W. M. Kahan. The rotation of eigenvectors by a perturbation. III. SIAM Journal on Numerical Analysis, 7(1):1–46, 1970.DOI
- [9]P. Drineas, M. Magdon-Ismail, M. W. Mahoney, and D. P. Woodruff. Fast approximation of matrix coherence and statistical leverage. Journal of Machine Learning Research, 13:3475–3506, 2012.arxiv.org/abs/1109.3843
- [10]T. M. Cover. Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE Transactions on Electronic Computers, EC-14(3):326–334, 1965.DOI
- [11]M. Pilanci and T. Ergen. Neural networks are convex regularizers: Exact polynomial-time convex optimization formulations for two-layer networks. In Proceedings of the 37th International Conference on Machine Learning (ICML), 2020.arxiv.org/abs/2002.10553
- [12]A. Seeger. Eigenvalue analysis of equilibrium processes defined by linear complementarity conditions. Linear Algebra and its Applications, 292(1–3):1–14, 1999.DOI
- [13]E. B. Davies, G. M. L. Gladwell, J. Leydold, and P. F. Stadler. Discrete nodal domain theorems. Linear Algebra and its Applications, 336:51–60, 2001.
- [14]C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations (ICLR), 2017.arxiv.org/abs/1611.03530
- [15]L. K. Jones. A simple lemma on greedy approximation in Hilbert space and convergence rates for projection pursuit regression and neural network training. The Annals of Statistics, 20(1):608–613, 1992.DOI
- [16]A. R. Barron. Universal approximation bounds for superpositions of a sigmoidal function. IEEE Transactions on Information Theory, 39(3):930–945, 1993.DOI
- [17]R. A. DeVore and V. N. Temlyakov. Some remarks on greedy algorithms. Advances in Computational Mathematics, 5:173–187, 1996.DOI
- [18]K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.arxiv.org/abs/1512.03385
- [19]G. Huang, Z. Liu, L. van der Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4700–4708, 2017.arxiv.org/abs/1608.06993