Manuscript Offprint
arXiv:2611.04211Two-Layer Random ReLU Networks Can Separate Disjoint Classes
Abstract
Set separation by continuous linear functionals is fundamental in functional analysis and convex optimization and underlies binary classification in machine learning. Support vector machines provide maximum-margin affine separators for linearly separable data, while kernel methods represent nonlinear decision rules through linear separation in a reproducing-kernel Hilbert space. We study when two classes, not necessarily convex or linearly separable in the input space, can be separated with positive margin by finite ReLU networks and by random ReLU features.
At the deterministic level, we prove that positive-margin separation by a finite ReLU network is equivalent to the existence of finite closed convex covers whose opposite-label members have positive pairwise distances, and exactly two hidden layers suffice. For random separation, suppose each class is represented as a finite union of nonempty closed convex cells, possibly unbounded. If every opposite-label cell pair has positive distance and its closed difference cone is pointed, then two independent random ReLU layers yield a common positive-margin affine separator with high probability.
The first layer separates the feature image of each negative cell from the feature image of the positive class by a hyperplane through the origin. It also controls all cross-class distances uniformly. The second layer combines cellwise scores through Chebyshev polynomials and realizes the resulting polynomial using Gaussian Hermite features, followed by a uniform finite-width approximation. With the remaining geometric, bias, and confidence parameters fixed, each sufficient width is quadratic in the largest Gaussian width of a spherical difference-cone section, hence at most linear in its span dimension. A linearly inseparable construction based on translated circular cones and singletons shows that the squared Gaussian-width dependence is sharp for both layers.
Keywords: Random neural networks; ReLU; linear separability; unbounded classes; Gaussian width; convex cones; random features.
2020 Mathematics Subject Classification: Primary 68T07; Secondary 60B20, 60D05, 52A20.
1 Introduction
Separating two sets by continuous linear functionals is a basic problem in functional analysis and convex optimization. Under appropriate hypotheses, separation theorems turn geometric information such as disjointness or positive distance into linear certificates for duality and optimality [25]. In machine learning, the same principle underlies binary classification. When input features are linearly
*Email: yichen-liu@hhu.edu.cn. †Corresponding author. Email: jbyang@hhu.edu.cn.
separable, a support vector machine selects a maximum-margin affine separator [5]. When linear separation fails, a kernel method can map the data into a reproducing-kernel Hilbert space (RKHS), where a linear separator gives a nonlinear decision rule in the original space [28]. This approach is powerful, but its geometry depends on the chosen kernel and can entail substantial computational and storage costs. These limitations motivate a complementary question: when can a fixed random network feature map separate two entire classes, including classes that are unbounded or not linearly separable in the input space?
Random neural networks offer one approach to this question. Their hidden weights are sampled once, producing nonlinear features on which a linear readout can be fitted; random-feature methods use this principle for scalable classification and regression [24]. ReLU is especially natural because it is positively homogeneous and widely used in neural networks. Recent work has studied whether random ReLU layers can create linear separability without training the hidden weights [7, 8]. We study separation of whole classes rather than only finite samples. The classes themselves need not be convex: finite closed convex covers provide the geometric structure used in our deterministic characterization and random-network analysis.
Our first result gives an exact deterministic criterion. For arbitrary nonempty classes , a finite ReLU network with an affine output separates them with positive margin if and only if each class is contained in a finite union of nonempty closed convex sets and every pair of opposite-label covering sets has positive distance. Moreover, exactly two hidden layers suffice whenever such covers exist.
We next state the random result. For this theorem, write
where the cells and are nonempty, closed, and convex; neither class is required to be convex. Assume that every opposite-label gap is positive. For each i, j, define the closed difference cone . The random separation theorem assumes that each is pointed:
Put , let and be the scale and cone-depth parameters defined in Section 2, and set
For any , take the second-layer bias radius to be . There are explicit factors , given in Theorems 2.5 and 2.7, such that the first-layer bias radius and both widths may be chosen to satisfy
Here is an absolute constant. Under these conditions, with probability at least over the two independent random layers, there exist a unit vector , an offset , and a deterministic margin such that
Our construction gives . In both widths, the dependence on is quadratic, hence at most linear in the intrinsic span dimension when the other geometric parameters are fixed; and have at most singly exponential dependence on the remaining parameters.
Our contributions are threefold.
(1) A deterministic characterization of set separation. Positive-margin separation by a finite ReLU network is equivalent to the existence of finite closed convex covers with positive distances between all opposite-label cover sets; exactly two hidden layers suffice (Theorem 2.1). We also give an explicit unbounded example for which no finite-width one-hidden-layer ReLU network achieves strict separation (Example 2.2).
(2) Random two-layer separation beyond bounded data. For an individual pair of convex covering cells at positive distance, pointedness of the difference cone is equivalent to positive probability of strict Gaussian affine separation with a suitable finite uniform bias range; cone depth quantifies the angular margin (Proposition 2.4). Under positive opposite-cell gaps and pairwise pointedness, the first random layer separates the image of each negative cell from the image of the entire positive class and controls all cross-class distances uniformly. A second independent layer combines these cellwise separators into one positive-margin separator for the full classes. The proof uses normalized endpoints, Chebyshev polynomials, and Gaussian Hermite features. A nonpointed strip example shows that positive gaps alone do not ensure random separation at any fixed finite depth (Example 3.1).
(3) Intrinsic width bounds and sharpness. Each sufficient width is quadratic in the largest Gaussian width of a spherical difference-cone section, and this order is necessary for both layers on a linearly inseparable family of translated circular cones and singletons (Example 3.2). Thus the width dependence is governed by intrinsic cone geometry rather than ambient dimension, while both prefactors have at most single-exponential dependence on the remaining parameters. Numerical experiments illustrate the width trends for non-linearly-separable classes with convex components.
Random-feature methods have been studied for kernel approximation and learning [24], and recent work gives random-ReLU separation guarantees for bounded data and quadratic-feature guarantees for unions of subspaces [7, 8, 31]. A detailed comparison of these results with our theorems, along with related geometric-embedding results, appears in Subsection 3.3.
The remainder of the paper is organized as follows. Section 2 states the deterministic characterization, the geometric criterion for random affine separation, and the two-layer random separation theorem. Section 3 gives the pointedness obstruction and matching width lower bounds, and compares these results with related work. Section 4 reports the numerical experiments. The main text closes with concluding remarks; the appendices contain the proofs.
Let , and let denote the Euclidean projection onto a closed convex set . We write cone , cl , and conv for the conic hull, closure, and convex hull of a set , respectively.
Define the closed unit ball and the unit sphere in by
For each positive integer , write . For a nonempty bounded set , define its Gaussian width by
where g is a standard Gaussian vector in the ambient space of A.
For a real random variable , a Euclidean random vector , and , define
The inner norm is Euclidean, and the norm of a function is taken with respect to the random argument specified by the context. For matrices, denotes the Frobenius norm.
2.1 Network model and separation criteria
The criterion below applies to arbitrary nonempty sets. It identifies exactly when a finite ReLU network can separate them with positive margin and shows that two hidden layers always suffice.
Theorem 2.1 (Finite convex-cover characterization). For nonempty sets , the following are equivalent.
(i) A finite ReLU network followed by an affine output separates and with positive margin.
(ii) There exist finite families of nonempty closed convex sets and such that
(iii) A ReLU network with exactly two hidden layers followed by an affine output separates and with positive margin.
The proof is in Appendix C.
For bounded classes, the cover condition in Theorem 2.1 is equivalent to , and a finite-width one-hidden-layer ReLU network also suffices [8]. For unbounded classes, one hidden layer may fail, as the example below shows.
Why one hidden layer may fail. Let and define
The two classes in Example 2.2 are
The two classes have distance 2.
Example 2.2 (Shallow obstruction). For the classes in (4), with cells from (3), no finite-width one-hidden-layer ReLU function
has opposite signs with a uniform positive margin on and . The same is true for strict zero-threshold separation. The example embeds into every , .
The proof is in Appendix C.
Remark 2.3 (Necessity of two hidden layers). The example above shows that one hidden layer can fail even when the deterministic finite-cover criterion holds. By Theorem 2.1, two hidden layers suffice for this example. Thus, two hidden layers are necessary for some class pairs.
In the following, we consider the composition of two independent random ReLU layers,
where and have standard Gaussian entries. The bias vectors and have entries uniform on and , respectively. All matrix and vector entries are mutually independent.
This sampling scheme follows [7, Definition 1]. The factor compensates for the second-moment reduction of ReLU under symmetric inputs, as in random initialization [11]. Here each layer is normalized by the square root of its output width.
Two-layer random ReLU separation problem. Given the classes in (1) and a failure probability , assume that and every difference cone in (2) is pointed. We seek conditions on the widths and bias scales that guarantee the following: there is a margin , fixed before sampling, such that with probability at least the sampled network admits a unit vector and an offset satisfying
The next result concerns the random directions used in our class-separation theorem. For an individual pair of convex covering cells, positive distance guarantees deterministic affine separation, but a Gaussian draw can miss all strictly separating directions with probability one when the cells are unbounded. The parameter measures the robustness of a separating direction. A larger value gives greater tolerance to changes in direction. It also enters the bounds on separation probabilities and sufficient widths for random ReLU networks.
Proposition 2.4 (Cone geometry of affine separation). Let be nonempty closed convex sets with positive distance. Put . Define
For , the affine hyperplane linearly separates and with margin if
When , the parameter t is a geometric margin. The following assertions hold.
(i) is pointed if and only if there exist such that, with positive probability, the random affine hyperplane , where and are independent, separates and with margin .
(ii) If is pointed, set . Then , and is the unique solution of
In particular,
The proof is in Appendix C.
(a) Cone depth

(b) Separating directions

Figure 1: Cone depth (a). The purple sector in (b) shows separating directions; its dashed boundary rays are excluded.
2.2 Random two-layer separation of the classes
We now state the random separation theorem. To quantify the geometry of the opposite-label cells, define
The parameter records the scale of the nearest points of these cells to the origin and remains finite. Under (2), write , , and by Proposition 2.4(ii).
The first random ReLU layer separates each from , as illustrated in Figure 2. The next theorem gives sufficient width and bias conditions and a uniform margin that the second layer uses to separate the two classes as a whole.
Theorem 2.5 (First-layer separation). Given the classes in (1), assume that (2) holds and . Let . There exists a positive constant C, independent of , and , such that if
and
(8) then, with probability at least , there exist a common constant and unit vectors , , such that, simultaneously for every , , and ,
and
In particular, every clcone( ) is pointed. Here
The constant can be determined from the parameters chosen before sampling.
The proof is in Appendix A.
(a) Original sets

(b) First-layer features Cellwise separation
(c) Radial separation Feature-difference directions
Figure 2: First-layer ReLU transformation and radial separation (Theorem 2.5). (a) The two classes are represented by positive and negative convex cells. (b) The map produces feature cells for which each is separated from the entire by , with normal pointing towards the negative cell. Dashed blue outlines enclose positive convex hulls. (c) For a fixed , the difference cone lies in the gray angular envelope: every nonzero satisfies . The origin is that of the difference space.
The second layer takes the first-layer features , as its inputs. The following proposition shows that is comparable to . These norm estimates are used to derive the parameter bounds for the second layer.
Proposition 2.6 (Bounds on ). Under the assumptions of Theorem 2.5, with probability at least , the conclusions of that theorem hold together with the following bounds, uniformly for all :
The proof is in Appendix A.
The following theorem establishes our main random separation result. The first layer separates each feature image from . The second layer then makes the full feature sets and linearly separable with a positive margin, as illustrated in Figure 3.
Theorem 2.7 (Second-layer separation). Assume the setting of Theorem 2.5, and suppose that the first-layer conditions (7)–(8) hold. Set . There exists a universal constant , independent of the sets and , such that the following holds. If
then with probability at least , there exist a margin and a unit vector such that
Here
On the same event, the conclusions of Theorem 2.5 and Proposition 2.6 also hold. The margin depends only on parameters fixed before sampling, whereas may depend on the sampled network.
The proof of Theorem 2.7 is given in Appendix B.

Figure 3: Linear separation after two random ReLU layers. The feature sets and are separated with positive margin by . The normal points towards .
The theorem applies to disjoint classes, which may be unbounded, and provides sufficient widths for their separation with probability at least . Fix the remaining geometric parameters and , and define the intrinsic dimension
For each , if , then
where the second inequality follows from the Cauchy–Schwarz inequality. Hence
so both sufficient width bounds grow at most linearly with when the remaining parameters are fixed.
3 Geometric Obstructions and Sharp Width Bounds
This section examines the necessity of pointedness and the dependence of network width on Gaussian complexity. We first construct classes at positive distance with nonpointed difference cones. Every fixed finite-depth, finite-width random ReLU network fails to separate these classes almost surely. We then use translated circular cones and singletons to derive necessary widths for both layers. These lower bounds match the squared Gaussian-width dependence in our sufficient bounds. The section concludes with a comparison of our results with related work
3.1 Necessity of the pointedness assumption
Positive opposite-cell gaps alone do not guarantee random separation. Example 3.1 exhibits classes with nonpointed difference cones for which every fixed finite-depth, finite-width random ReLU network fails to separate the classes almost surely. Thus, a positive gap condition alone cannot yield a uniform random separation guarantee.
Consider the planar convex cover
The three cells are closed and convex with nonempty interiors. Both opposite-cell gaps equal 1/2, whereas
Both difference cones contain the line , so neither is pointed and .
Example 3.1 (Random separation fails at every finite depth). For the classes in (14), fix any finite depth , widths , and finite bias ranges . Let and
where all weight entries are independent variables and all bias entries are independent uniform variables on their respective , independently of the weights. Then, almost surely,
Consequently, no affine readout separates the two classes for almost every network realization, even if the readout is chosen after observing the network. In particular, positive-margin separation fails almost surely.
The proof is in Appendix C.
The deterministic two-neuron score satisfies on and on . Random hidden layers encounter a different obstruction: on a sufficiently distant common tail, their composition is affine and preserves a cross-class midpoint relation. Figure 4 illustrates this geometry;
(a) Three unbounded convex strips

Positive gaps; shared recession direction
(b) A common affine tail

The negative tail meets the positive convex hull
Figure 4: A planar obstruction to random separation at every finite depth (Example 3.1). (a) Two positive strips surround a negative strip, with opposite-cell gaps 1/2 and a common recession direction. (b) Almost surely, the network is affine on for some finite ; a nondegenerate affine image is shown. In particular, , so the negative image meets the convex hull of the positive image.
3.2 Necessity of the squared Gaussian width
We now give a family of sets that attains a lower bound of this squared order with fixed geometric parameters. Let , , and define
(16)
Each class consists of a translated circular cone and a singleton. Both convex hulls contain , so the classes are not linearly separable in the input space. They satisfy
(17)
The spherical section of is a singleton and has Gaussian width zero. Hence
For , the Gaussian width of the spherical section satisfies
Fix and increase r. The other geometric parameters remain unchanged, while the squared Gaussian width is of order r.
Example 3.2 (Necessary width of each layer). For (16), consider a two-layer ReLU network with independent Gaussian weights. The biases may take any finite values. Let . If and are strictly linearly separable with probability at least , then each layer must satisfy
If only the first-layer radial separation in Theorem 2.5 is required with probability at least , then is still necessary.
The proof is in Appendix C. The obstruction is a pair of points from different classes with identical features. Thus adding any constant to cannot separate the classes. Take and . Fix as a sufficiently large absolute constant according to (7), and take . Then
Theorems 2.5 and 2.7 give a sufficient width of for each layer. Equation (19) and give
This shows that, for independent Gaussian random hidden layers, the squared Gaussian-width order cannot be reduced in uniform width bounds over this family of sets. The lower bound constrains each layer separately; widening one layer cannot remove the restriction on the other.
3.3 Comparison of results and related work
This subsection compares our results with related work on random neural networks and compressive classification.
Linear separability of shallow features. Studies of trained networks show that, as depth increases, features can become more linearly separable and features within each class can cluster more tightly [1, 10, 21]. For random networks, earlier results establish separation of bounded classes using one or two ReLU layers [7, 8]. Quadratic random features have also been studied for union-of-subspaces models [31]. Related work establishes generalization rates for deep ReLU classifiers with logistic loss and optimization and generalization guarantees for minimal-width shallow networks [18, 32]. Approximation results give optimal width-depth rates for Hölder functions and nearly optimal bounds for smooth functions [19, 29]. We study entire-class separation by fixed random ReLU layers, including on unbounded sets, with widths controlled by difference-cone geometry. Our result allows finite unions of closed convex sets, provided that opposite-set gaps are positive and the difference cones are pointed. The first layer separates each ) from . The second layer then makes and linearly separable with a positive margin. With the remaining parameters fixed, the sufficient width of each layer is quadratic in the Gaussian widths of the spherical difference-cone sections and at most linear in their intrinsic span dimension. Table 1 gives the precise set assumptions, network models, and separation guarantees.
Table 1: High-probability separation by random features. Widths are sufficient bounds with remaining geometric and covering parameters and failure probability fixed; bias scales satisfy the cited bounds. In the first two rows, intrinsic dimension is the span dimension of the input classes. Weights are Gaussian; ReLU layers have uniform biases and are independent.
| Work | Sets | Network | Separation and sufficient width |
|---|---|---|---|
| Dirksen et al. [7] | Two bounded sets at positive distance | Two ReLU layers. | Positive margin. First width: quadratic in Gaussian widths, at most linear in intrinsic dimension. Second: exponential in squared Gaussian widths, at most exponential in dimension. |
| Ghosal et al. [8] | Two bounded sets at positive distance | One ReLU layer. | Positive margin. Width exponential in squared Gaussian width, at most exponential in intrinsic dimension; additional mutual-complexity dependence (Theorem 1.4). |
| Xu et al. (UoS) [31] | Two r-dimensional linear subspaces intersecting only at 0. | One quadratic layer; zero bias. | Strict separation off 0; no uniform positive margin. Width for fixed minimum principal angle. |
| This work Theorems 2.5, 2.7 | Finite unions of closed convex sets, possibly unbounded; positive opposite-set gaps and pointed difference cones. | Two ReLU layers. | Positive margin. Each width: quadratic in cone Gaussian widths, at most linear in intrinsic dimension; sharp complexity order (Example 3.2). |
Compressive classification and cone geometry. Compressive classification uses compressed measurements directly, without first reconstructing the signal [6]. Bandeira et al. study the rare eclipse problem [3]. It asks how Gaussian projections can reduce dimension while keeping two disjoint closed convex sets disjoint with high probability. Using Gordon's escape through a mesh theorem [9], they bound sufficient measurement counts in terms of the squared Gaussian width of the spherical difference-cone section. In convex recovery, exact recovery is equivalent to the measurement kernel intersecting the tangent cone at the target signal only at the origin [4]. Sufficient Gaussian measurement counts are likewise controlled by the squared Gaussian width of this cone's spherical section.
Our width lower bounds also connect random kernels with cone geometry. Here the kernel is the nullspace of a random linear map. In Example 3.2, if this nullspace intersects the interior of the specified cone, we can find two points from opposite classes that have identical network features. No subsequent layer or classifier can distinguish these points. Estimating the probability of this event gives the width lower bounds.
Random-feature methods. Random-feature methods and extreme learning machines fix the hidden parameters after random sampling and learn only the output coefficients [14, 24]. Recent empirical studies show that these methods can achieve test performance comparable to networks trained end to end on selected classification and regression benchmarks [13, 20].
Random features also admit theoretical guarantees in kernel learning. For example, under suitable assumptions, ridge regression with random features can match the learning rate of full kernel ridge regression [26]. For shift-invariant kernels, random features allow linear SVMs to approximate kernel SVMs without forming the full kernel matrix [24]. Function approximation theory provides another justification for fixing the hidden parameters. Under suitable activation and sampling assumptions, a linear combination of random features can approximate a target function to a prescribed accuracy with high probability [12, 22, 27]. The sufficient width depends on the target function class, the required accuracy, and the input dimension. In some bounds, the dependence on dimension is exponential or superexponential.
Our results give a geometric guarantee for this approach. With high probability, the two fixed random hidden layers admit an affine output function that separates the entire classes with a positive margin. Only the output coefficients need to be chosen after sampling; the hidden weights and biases remain fixed.
4 Numerical Experiments on Gaussian-Width Dependence
We examine how the Gaussian width in Theorems 2.5 and 2.7 relates to the widths needed for certified separation. The experiments use four convex cells arranged in an XOR pattern. The first varies Gaussian width while fixing the intrinsic span dimension; the second varies the intrinsic span dimension while keeping Gaussian width nearly fixed.
4.1 Geometry and experimental setting
Work in with . Set , take , and let .
Here is the unit Euclidean ball in . The set is an ellipsoidal disk with semiaxis along and semiaxes along . Set
Each component is a compact convex ellipsoidal disk of affine dimension . For every , each class contains two points whose midpoint is . Hence ), so no affine hyperplane strictly separates the classes. Both experiments keep
The four cell centers are , and each is orthogonal to span . Thus the projection of the origin onto each cell is its center, giving . For every opposite-label pair, the center difference is orthogonal to span and has length 1 or 2. Since , the cell distance equals the center-difference length, and therefore . Each difference cone spans the -dimensional space generated by its center difference and span . The pairs ) and ) attain . By rotational invariance of Gaussian width, it suffices to compute this width on the spherical section of .
We use the network in (5) with first-layer bias radius and second-layer bias radius , as prescribed for the second layer in Theorem 2.7. These bias choices are fixed across all configurations. The first-layer radius is an experimental choice; the theorem's universal constant is not evaluated numerically, so the experiment does not test its explicit sufficient-bias threshold. In each trial, we sample and freeze the random layers, then fit affine readouts on the resulting features. We certify margins over each entire ellipsoidal cell using affine bounds for ReLU and outward-rounded arithmetic; a trial counts as successful only when all required certified margins are strictly positive. For the first-layer criterion, each ) must be separated with positive margin from ; the separating hyperplane may depend on . We count a two-layer trial as a joint success only when this first-layer criterion holds and a common positive-margin affine separator exists for and . The empirical final readout allows an offset, whereas Theorem 2.7 provides a separator with zero output offset; the reported final-layer thresholds therefore describe the broader affine-readout criterion and illustrate width trends rather than directly test the theorem's zero-offset guarantee.
We use nonuniform candidate-width grids, with finer spacing at smaller widths; the first- and second-layer grids range from 8 to 1024 and from 8 to 4096, respectively. All settings and candidate widths are fixed before running 200 random trials per configuration. We use the same seed list across configurations, so the comparisons are paired. Among tested width pairs with at least 190 joint successes, we select the pair minimizing , breaking ties by smaller n. The selected first-layer width can therefore exceed the standalone first-layer 95% threshold. The bootstrap intervals in Figure 5 are obtained by resampling the paired seeds and reselecting the width pair.
4.2 Gaussian width and intrinsic dimension
At fixed , we vary to change while keeping the parameters in (20) fixed. Table 2 reports the smallest tested first-layer width achieving at least 190 successes out of 200 trials. The ratio of this threshold to ranges from 6.86 to 8.00. This near-proportional trend is consistent with the complexity dependence in (8); it does not estimate the theorem's unspecified constant.
Table 2: Empirical thresholds at . The first-layer column gives the smallest tested width with at least 190/200 successes. The selected pair minimizes subject to the joint-success criterion; is rounded.
| First layer alone | Joint successes | |||
|---|---|---|---|---|
| 0.06219 | 0.05 | 8 | (8, 12) | 190/200 |
| 0.30414 | 0.50 | 12 | (16, 24) | 190/200 |
| 0.43946 | 1.00 | 16 | (20, 40) | 190/200 |
| 0.54280 | 1.50 | 20 | (24, 80) | 192/200 |
| 0.63007 | 2.00 | 24 | (40, 112) | 193/200 |
| 0.70724 | 2.50 | 24 | (56, 160) | 193/200 |
| 0.77732 | 3.00 | 28 | (56, 256) | 191/200 |
Figure 5(a) and Table 2 report the selected width pairs. The selected widths generally increase with , with a more pronounced increase in the second layer. Because and the other parameters in (20) are fixed, this variation is consistent with the Gaussian-width dependence in (12).
For Figure 5(b), we take and adjust so that . The standalone first-layer threshold is 12 for every tested . Each selected pair is (16, 24), with 190–192 joint successes out of 200. Thus, the cone span dimension increases by a factor of 16, while the selected widths remain unchanged on this grid. As grows, reducing the transverse semiaxes keeps the Gaussian width nearly constant. These results are consistent with the width bounds' dependence on Gaussian width rather than span dimension alone: for fixed Gaussian width and the other geometric parameters, the sufficient bounds do not increase with .
Taken together, these experiments support Gaussian width as a more informative measure of separation complexity than span dimension alone. The term in (8) and (12) reflects the effect of set geometry on the observed network widths. In particular, high intrinsic dimension need not require wide networks when Gaussian width and the other parameters remain fixed.


Figure 5: Empirical width pairs based on whole-set separation certificates, selected by minimizing at 95% joint success. Blue diamonds show ; orange triangles show . (a) Varying at fixed . (b) Varying at nearly fixed . Bars show paired bootstrap 95% intervals with pair reselection. Lines connect tested configurations.
5 Conclusions
This paper establishes geometric conditions for separation by ReLU networks. Positive-margin separation by a finite ReLU network is equivalent to the existence of finite closed convex covers whose opposite-label sets are pairwise at positive distance. Under this condition, two hidden layers always suffice, although one hidden layer may fail. For random networks, pointedness of the difference cones provides a sufficient geometric condition, including for unbounded classes. The first layer separates each ) from and controls all cross-class distances. The second layer combines these cellwise separations into a single positive-margin separator.
The sufficient width of each layer is governed by the squared Gaussian widths of the spherical sections of the difference cones. With the cover sizes, remaining geometric parameters, bias ratios, and failure probability fixed, the width bounds grow at most linearly with the intrinsic span dimension. A linearly inseparable family of translated cones and singletons yields a matching lower bound for each layer. Thus, the quadratic dependence on Gaussian width is optimal uniformly over this family. The experiments use XOR classes that are not linearly separable in the input space. Increasing Gaussian width raises the certified thresholds, although the second-layer thresholds do not exhibit approximately linear growth. At nearly fixed Gaussian width, increasing the intrinsic dimension from 32 to 512 leaves both selected widths unchanged.
The counterexamples also clarify the scope of the assumptions. The shallow obstruction shows that two hidden layers are necessary for some classes. The nonpointed-strip example shows that positive distance alone does not guarantee random separation: every fixed finite-depth, finite-width Gaussian ReLU network fails to separate these strips almost surely, even though a deterministic ReLU network separates them. Thus, pointedness cannot simply be omitted from a general random-separation theorem.
A Proof of the first-layer results
This appendix proves the first-layer separation result and provides the estimates needed for the second layer. Section A.1 derives uniform linear separation margins from the class gaps and pointedness of the difference cones. It also bounds the Gaussian width of . Section A.2 combines the pairwise separation conditions using a polynomial and represents it as an expectation of random ReLU features. Section A.3 uses truncation and error estimates to obtain a finite-width approximation. Section A.4 constructs hyperplanes separating each ) from and bounds the angular margin and cross-class distances. Section A.5 bounds and the Gaussian width of , and combines the failure probabilities from all steps.
Probabilities in statements about the first layer are taken under the joint distribution of . Probabilities in statements about the two-layer network are taken under the joint distribution of . For conditional probabilities in the proofs, we specify which variables are fixed.
A.1 Separation margins and Gaussian width
In this subsection, we derive uniform linear separation margins for and bound the Gaussian width of . The class gaps control separation at bounded scales, while pointedness controls separation along unbounded directions. Together, they yield a margin proportional to . To express these estimates, for any , define
When the argument is denoted by y, write accordingly.
Lemma A.1. There exists a vector with such that
Proof. Apply (6) from Proposition 2.4(ii) with . For a pair of sets , let
The projection onto the closed difference set exists, and . The projection inequality gives
To center the threshold for each direction, for or write
Comparison with the two anchors shows that these infima and suprema are finite, and . For , the metric direction gives ; also, , and . Their sum is therefore at least
The argument for is the same. Set
so that . The lower bound for attains its minimum when . Hence,
The last inequality uses . Thus (22) holds.
The subsequent uniform approximation requires control of the complexity of . Define the compact set
Its closure includes limiting directions of unbounded input sequences. The following width estimate relates its complexity to the difference cones.
Use the anchor for and for to decompose each input into an anchor and a vector in a difference cone. For example, if , take . Then
The coefficient satisfies . For , using and gives the same estimate. For any nonempty subset of the unit sphere, fixed , and standard Gaussian vector of the same dimension, basic properties of Gaussian width [30, Proposition 7.5.2 and Exercise 7.20] give
Taking and applying this comparison to the decomposition above yields
Hence
The constant term in (23) comes from the last coordinate of and the two anchors.
A.2 From set margins to random feature representations
For each fixed , we combine the pairwise separation margins into a single function that distinguishes from . We construct this function using a polynomial, and then represent it as an expectation of Gaussian ReLU features. By bounding the polynomial degree and the representation coefficients, we obtain the estimates needed for the finite-width approximation in the next subsection.
Lemma A.2 (A gap polynomial preserving parity). Let and . There exists a polynomial containing only a linear term and even powers, of degree satisfying , such that
Moreover, is nondecreasing on , and the sum of the absolute values of its nonzero coefficients is at most .
Proof. Take the smallest odd integer at least , and . Let denote the Chebyshev polynomial of the first kind. In this proof, define
Use the continuous extension at zero. Since is odd, is a nonnegative even polynomial, and is an odd, nondecreasing polynomial with . Thus on , , , and . This proves the first two properties in (24) and the required parity structure. The degree is , and is comparable to up to absolute constants.
The trigonometric identity for Chebyshev polynomials gives
for ; also, for . Hence
Using , we obtain
Finally, the Chebyshev recurrence bounds the sum of the absolute values of the power-basis coefficients of by . Submultiplicativity of this coefficient sum under polynomial multiplication bounds the coefficient sum of by . The first integration does not increase the coefficient sum, so that of is at most
Next write . The second integration does not increase the coefficient sum of the nonconstant terms. Since , the coefficient sum of is at most
The last step uses and a sufficiently large positive constant C, independent of the sets and .
In Lemma A.2, take and retain from (21). The resulting satisfies on and
For , use from Lemma A.1 to define
Since , all arguments lie in . For , at least one argument is at least , and for ; for , all arguments are at most . Thus
(27)
For every , we have .
We next express as an expectation of random ReLU features, so that finitely many neurons can approximate it. For the probabilists' Hermite polynomials, write
Two integrations by parts give
Odd coefficients above degree one vanish. Thus the restriction to a linear term and even powers ensures that every denominator in the following representation is nonzero. If , then for with , define
For , define . Fix and . First condition on and average the generating function over the orthogonal Gaussian component . Then average over to obtain
Approximating this expectation by finite samples requires moment bounds on its coefficients. For , Gaussian hypercontractivity [15, Theorem 5.1] (see also [23]) gives
Applying these estimates term by term and using the power-basis coefficient sum, after adjusting the positive constant , independent of the sets and , gives
For , since , we have
Thus the expectation representation of has the constant coefficient . Let
Since , the factor from summation can be absorbed into . Hence and
A.3 Truncation and finite-sample approximation
This subsection derives finite-width approximations of and from the representations in (28). Truncation and a change of measure adapt these representations to the network's uniform biases and give bounded coefficients. We then control the truncation and sampling errors uniformly relative to over both classes.
Write , where and are independent, and let . We truncate and the representation coefficients. To bound each target's total relative error by , take
(29)
The term ensures , so the constant coefficient in the representation of is not truncated. Its truncation error therefore comes only from restricting . For and , Hölder's inequality and elementary truncation estimates give
By the Gaussian tail bound and (29), these two terms are bounded respectively by
The same estimate for truncating the last Gaussian coordinate applies to the expectation representation of .
Since and ,
These thresholds depend on the geometric parameters and deterministic coefficient moments and are fixed before sampling the network. Since all satisfy the same moment bound, the threshold sizes are uniform over .
Let be independent of , and set
The density ratio rewrites the uniform-bias integral as a truncated Gaussian integral. For all ,
For the expectation representation of , the same change of measure gives
The corresponding coefficient for the uniform-bias representation satisfies .
Lemma A.3 (An empirical estimate with bounded row coefficients). Let and ( ) be independent and identically distributed, where and are independent and . For a deterministic nonempty compact set and satisfying for , with probability at least ,
(31)
The coefficients may depend on the entire random row. The probability is over the joint distribution of .
Proof. The case is immediate. Assume and . Fix and , and write
Let be independent Rademacher signs, independent of the rows. For fixed rows, is 1-Lipschitz and vanishes at zero. Symmetrization [17, Chapter 6] and contraction over the signs [17, Chapter 4], followed by averaging over the rows, give
Write and let , so . Conditional on , , where . For a fixed anchor , Gaussian symmetry gives
Jensen's inequality with an independent gives
Since is 1-Lipschitz, Gaussian concentration and moment estimates [30, Theorem 5.2.3 and Proposition 2.6.6] yield
Conditional on , the Rademacher moment bound [30, Theorem 2.7.5] gives
Since , taking unconditional norms bounds the bias contribution by . The triangle inequality and therefore give
Set , so . Markov's inequality and a union bound yield
Absorbing the absolute factors into proves (31). By continuity, all suprema may be taken over a countable dense subset of , so the random variables above are measurable.
Apply Lemma A.3 simultaneously to the targets () and , taking , , and . The joint empirical error is at most
Squaring the bracket and absorbing absolute factors inside logarithms into shows that the error is at most whenever
By the positive homogeneity of ReLU, this gives an error at each of at most
The Gaussian width estimate for finite unions [30, Theorem 5.2.3 and Proposition 2.7.6] gives
Substitute (23) and (32), expand the square, and use . Bounding both logarithmic terms by reduces the sufficient condition to
Indeed, (30) gives and , while (25) gives . Thus , the additional factor , and the remaining fixed powers can all be absorbed into , with absolute comparison constants.
The two truncation errors are at most and of the target error, and the empirical error is at most . These fractions sum to less than one, so each target's total relative error is less than .
A.4 , and radial separation
This subsection uses the finite-sample estimates above to construct and . The linear function separates ) from , while is comparable to . Normalizing then gives an angular separation margin and cross-class distance bounds.
For the first layer in (5), let denote row of and denote component of , where . Each and each , with all row vectors and bias components mutually independent.
Proof of Theorem 2.5.
construction and geometric estimates. Let . By (30) and (25), choosing the absolute constant in (7) appropriately ensures . Among the row indices in the first layer of (5), select those satisfying and define the actual number of accepted rows by
Here M is the random count after the network is sampled, rather than the total width n; the preceding sample-size condition is a lower bound required of the actual M.
Each row is accepted with probability , so . Conditioning on all acceptance indicators makes deterministic. Under this conditional distribution, the accepted rows remain independent: , is standard Gaussian, is , and the two are independent. This is precisely the distribution required by the empirical estimate above. We apply that estimate to the accepted rows under this conditional distribution.
For the indicators , the Chernoff lower-tail bound gives
Increasing the absolute constant in (8) and using (32) ensures both and that is at least the right side of (33). Thus, when the acceptance count reaches this threshold, M meets the sample-size condition for joint empirical approximation; the count fails with probability
Finally, let . On the count event above, gives
At each accepted coordinate , let and set
Set all unaccepted coordinates to zero. Fix any acceptance-indicator configuration satisfying , and apply the approximation estimate from the preceding subsection under the conditional joint distribution of the accepted rows . The conditional probability that the following inequalities fail to hold simultaneously is at most :
(35)
The bounds on and follow directly from the bounded coefficients on accepted coordinates, and each is nonnegative. Together with (27), since and , this gives
Multiply the conditional failure probability above by the indicator that the count reaches its threshold, then average over the distribution of . This gives the following failure probability over the joint distribution of :
The norm bound (36) follows from deterministic coefficient bounds and adds no failure event.
Normalization of , angular margin, and cross-class distances. To turn a lower bound on into an angular margin in feature space, first bound .
Apply the Gaussian matrix deviation bound [16] to on , taking . If , the norm deviation divided by is at most the fixed number . By (32), (8) implies this width requirement. For every and , the normalized difference vector belongs to . Applying the 1-Lipschitz property of ReLU coordinatewise gives
The common bias cancels in the first difference bound; the matrix event depends only on and holds for every allowed . Since , the failure probability of the cross-class distance upper bound under the joint distribution of satisfies
Let . By (37) and (36), and are at least times and , respectively. Bounding and using
gives an angular margin of at least . By , , and (25), we may take
For this choice, all , and simultaneously satisfy
and the bound on above gives (9). For any , choose such that . Since , these score bounds also give
Together with the preceding distance upper bound, this proves (10). Finally, fix . For any finite nonnegative linear combination
(9) and the triangle inequality give
By continuity of the inner product and norm, passing to limits extends this inequality to all . If both and belong to this closed cone, then
Since , this forces . The closed cone therefore intersects its negative only at , so it is pointed. The probability bookkeeping, including the norm and feature-complexity events, is completed at the end of the proof of Proposition 2.6.
A.5 Bounds on
In this subsection, we prove Proposition 2.6, including (11), and
Proof of Proposition 2.6 and (41). The bound on uses the scale . Write
First bound in terms of . The first-layer bias condition ensures , hence
To prove this, let . Since
for all we have
Projecting onto its first coordinates does not increase its Gaussian width. Choose an anchor in this projection, whose norm is at most 1. Adding the origin increases the width by at most . Thus
Using , take the supremum in the preceding inequality and average over to obtain (42). Taking closures does not change the suprema of these continuous Gaussian processes.
To prove (11), fix and take independent and . Conditional Jensen inequalities give
Apply Lemma A.3 on to the sample rows , with probability over the joint distribution of ; take coefficient , , , and . If , the empirical-mean error is at most .
For , take , so that
Since the root mean square is at least the arithmetic mean, this proves the lower bound in (11), with failure probability satisfying
Projection does not increase Gaussian width. Thus, under the same width condition, the bound in [16] with gives . Together with and , this yields
The matrix event here depends only on , and the bias bound holds for all . Thus, under the joint distribution of , the failure probability of the upper bound on satisfies
Both bounds on retain the scale .
Next prove (41). Fix and, for , write
By the positive homogeneity of ReLU, for ,
Fix , take independent of the network, and compare the centered Gaussian processes indexed by :
The 1-Lipschitz property of ReLU gives for . Since , both centered Gaussian processes extend to with . if one index is zero, we likewise have
The increment-variance comparison therefore holds on all of . The Sudakov–Fernique comparison thus gives
Keep fixed and average the right side over . First fix the auxiliary vector and randomize only ; then is distributed as times a standard Gaussian vector, and
Average first over and apply the projection and anchor estimates above to , then average over the auxiliary vector . Using and gives
The 1-Lipschitz property of ReLU also gives
Since , we have
For each fixed , apply Gaussian concentration in . Averaging the resulting bound over gives
The suprema of these processes can be taken over the compact set , so unbounded inputs do not affect the argument or measurability.
On the norm lower-bound event controlled by (43), continuity implies for every . When with , . Fix satisfying this norm lower bound. Gaussian symmetry gives
The last inequality follows by separating positive and negative parts and using Gaussian symmetry. On the norm lower-bound event and the concentration event controlled by (45), (42) and (23) give (41), with no additional failure event. The required sample size is . These bounds and (32) show that (8) suffices.
Joint probability. Each of the six failure bounds (34), (39), (40), (43), (44), and (45) is at most under the joint law of . The approximation bound already averages over and counts failures only when meets its threshold, so no further union bound over is needed. Since (41) adds no failure event, a union bound shows that all conclusions of Theorem 2.5 and Proposition 2.6, together with the auxiliary estimates for the second layer, hold with probability at least . This establishes Theorem 2.5 with probability at least and completes its proof.
B Proof of separation by the second layer
This appendix proves Theorem 2.7 in three steps. Subsection B.1 constructs an even-degree homogeneous polynomial separating from . It also bounds the degree and coefficients of . Subsection B.2 gives a random ReLU expectation with the same separating signs and proves the multiplier estimates. Subsection B.3 approximates this expectation uniformly with finitely many neurons. This yields a common separating hyperplane for and , together with the required width and margin bounds.
Proof of Theorem 2.7. Fix a first-layer realization satisfying the events in Appendix A, whose total failure probability is at most , and retain the notation and estimates established there. All probabilities below are conditional on this realization until the final probability estimate. The second layer remains independent and follows its original distribution.
B.1 From to a common separating polynomial
This subsection constructs an even-degree homogeneous polynomial that separates from . Throughout, write with . Each is positive on ) and negative on . Define linear forms that are positive on by
Substituting (26) into (35) gives, for all and ,
Here the errors come from and , and . The sum lies in . By (26) and (27), it is at least on and at most on . Combining these bounds with the preceding error estimate gives
(46)
By (46), all are positive on . Together with (38), this gives
To make the th powered term on ) dominate the sum on , take
Here and . For , clearing denominators gives a homogeneous polynomial of degree . Otherwise, we use Chebyshev polynomials with common denominator . This choice depends only on geometric parameters fixed before sampling.
Case one: . By these ratio bounds,
whereas on each , the th term is at least and the other terms are nonnegative, so the expression is at least . Multiplying by the product of the positive denominators preserves the sign and gives
On , the right-hand side is exactly
Each term consists of linear factors; when , the empty product is 1. If is odd, multiply the right-hand side by and still denote it by . Then is homogeneous of even degree , with
The positive factor preserves the separating signs of . The second bracket has absolute value at least . Applying (46) to each factor and, in the odd case, using , we obtain
Since and , both cases give
We may take . This strict margin also rules out ; since every term is homogeneous of degree , the actual degree of is exactly the even integer . We next bound the coefficients used in the random feature representation. By (36), the coefficient vector of satisfies
The norms of in the numerator and of the possible added factor are both at most . Keeping the products of linear factors intact, the sum of the absolute scalar coefficients in (48) is . Thus there exists a decomposition
where the absorption in the last step is
using and and increasing the positive constant , independent of the sets and , as needed. This decomposition need not be expanded into coordinate monomials. Its coefficient bound matches the Wick isometry estimate below and introduces no ambient dimension factor.
Case two: . In this case, divide each by instead. By (46) and (38),
Apply an affine transformation to the ratios so that their values on lie in the interval where Chebyshev polynomials are bounded:
Specifically, the ratio bounds above give
Thus the values on lie in . Chebyshev polynomials are bounded on and grow exponentially with the degree to the right of 1; after squaring, the terms corresponding to all are nonnegative. We therefore take
and set
Here is the Chebyshev polynomial of the first kind, with the notation of Lemma A.2. For ,
Here . Using (), we have on
Hence the th squared term is at least . The other squared terms are nonnegative, and each term is at most 1 on . Thus
Although (52) is expressed through ratios, it extends to a polynomial on all of . To see how the denominators cancel, write . When ,
The right-hand side has no denominators and each term is homogeneous of degree , so it is also defined when . Squaring the right-hand side, summing over , and subtracting gives an expression for on all of . Every term is homogeneous of degree , and (53) rules out the zero polynomial, so the actual degree is the even integer .
The Chebyshev recurrence gives . The linear forms used in homogenization are and
and their coefficient vectors all have norm at most . Squaring increases the sum of absolute scalar coefficients to at most . Summing over and including gives
The last step uses from (51) and , with only an increase in the absolute constant. Thus both constructions satisfy (50).
Unified bounds for the degree and relative margin. In case one, directly controls ; to bound , we combine the denominator of with the logarithm in . By (47),
Thus and (25) give
The condition in case two forces to be relatively large. Since , we have . By the definition of the ceiling, this requires , hence . Also,
Together with (51), this gives
The last comparison uses , with an absolute constant. Again by (25),
Thus both cases give and the preceding bound for . Substituting yields
(54)
The two cases are and , with equality included in case one. When , we have , so case one applies; multiplying the linear polynomial by gives . For , the logarithms reduce to and , so the bounds remain valid.
To apply random feature approximation, we must also express the margin relative to instead of . Since ,
Combining the upper bound in (11) with gives
Case one already satisfies (49); in case two, (53) and (38) give , so (49) holds as well. Thus in both cases,
By the degree lower bound in (25),
Here is the absolute constant above, so these absorptions are independent of the geometric parameters. It follows that is at least . Together with the opposite signs already obtained on the two classes, we may take
so that is at most on and at least on .
B.2 Random ReLU representation of the common polynomial
The Hermite identity gives a random ReLU expectation with the same separating signs. The multiplier estimate controls the uniform approximation error and the coefficient norm in (59). These bounds preserve the signs and yield a margin bound for .
Let and . For even , let . Using (50), set
Here the colons denote the Wick polynomial of order associated with , namely the orthogonal projection of this product onto the Hermite subspace of order in Gaussian [15, Definition 3.1]. Its generating function is
Fix and a scalar bias . First condition on and average over the orthogonal Gaussian component , then integrate over to obtain
Since all linear factors of come from , , also depends only on their span. Keeping the first-layer realization, , , and the scalar bias fixed, the Wick isometry formula [15, Chapters 3–4] gives
where runs over all permutations of [k]. The triangle inequality gives
To verify (56), fix the value of , average the generating function over the orthogonal component , and then take the mixed derivative at . This gives
Combining this with and averaging over yields (56); two integrations by parts on give the expression for above.
By (50) and , we obtain
For the random ReLU expectation in (56) to preserve the classification signs and relative separation margin of , we must control the multiplier introduced by the bias, . Write . The explicit Hermite coefficients give
Thus when . For , verify this directly using . This condition restricts only the size of and applies to unbounded feature sets.
When approximating (56) by finitely many samples, the coefficient is correlated with the ReLU feature in the same network row and may be unbounded. The following multiplier estimate uses its polynomial structure and the dimension of the subspace on which it depends to give uniform bounds on high moments.
Lemma B.1 (Polynomial multiplier estimate). Let and let be a polynomial of total degree at most , with . Suppose there exists a fixed -dimensional linear subspace such that for every , where is the orthogonal projection onto . Let and () be independent and identically distributed, with independent of and almost surely. For a nonempty compact set , let
Then for ,
There exists a positive constant , independent of the sets and , as well as of .
Proof. Write and let be independent Rademacher signs, independent of the sample rows. Minkowski's inequality and Gaussian hypercontractivity [15, Theorem 5.1] give
which proves (59).
For fixed sample rows, set if and otherwise. These maps vanish at zero and are 1-Lipschitz. Symmetrization and conditional contraction [17, Chapter 4], applied to and then averaged over the rows, give
Adding the origin does not change the absolute suprema, so is not required.
Decompose , where , and write . We bound the and components separately. Conditional on , the vector is centered Gaussian with covariance . For , Gaussian concentration and comparison with an anchor point [30, Proposition 2.6.6, Theorem 5.2.3, and Exercise 7.20] bound the conditional norm of the absolute supremum by . Averaging and using the sum-of-squares estimate above and [30, Proposition 7.5.2(g)] yield
The scalar Rademacher moment bound [30, Theorem 2.7.5] and Minkowski's inequality give, for deterministic vectors ,
Condition on all sample rows, apply this with , and average over the rows. Hölder's inequality and hypercontractivity then give
Here we used and , which follows from and Gaussian concentration.
Combining the two component bounds gives
Using , , and gives (58), with constants independent of . All suprema may be taken over a countable dense subset of , so the random variables above are measurable.
B.3 Finite-width approximation and parameter estimates
This subsection uses a finite-width network to approximate the preceding expectation. The resulting width and margin estimates complete the proof of Theorem 2.7.
Finite-width realization and probability estimates. Fix a first-layer realization satisfying the preceding estimates. Retain the corresponding and degree , and take . For the second layer in (5), set . Let denote row of and component of , where . Then and , with all row vectors and bias components mutually independent.
Let , and let the scalar follow the uniform bias distribution conditional on , independently of . Write and define
where the second equality follows from (56), with and the first-layer realization fixed. All sums without a specified range in this section run only over accepted coordinates.
Neuron selection and definition of . For , select the neurons satisfying and denote the actual number accepted by
Here is a random count, distinct from the total width . When and the denominator below is nonzero, define the coordinates of by
By definition, ; the count and approximation bounds below ensure both conditions hold. When , define
Each neuron has acceptance probability , using . Keep the first layer fixed and also fix the values of all acceptance indicators . Under this conditional distribution, the accepted rows remain independent, with and uniform on , and the weights and biases are independent. Thus the multiplier estimate applies to these coordinates.
Expectation margin and uniform approximation. By (11), , so
Thus simultaneously for all . By the definition of and (55), is at most on and at least on .
Continue to fix the first layer and acceptance indicators such that . In Lemma B.1, take , , and
The selection above ensures , and the positive homogeneity of ReLU gives
Thus Z in the lemma is
By (41),
The last coordinate increases the Gaussian width by at most . Both the degree estimate after (48) and (51) give the degree bound for the common separating polynomial . Together with , this yields
Take moment order ; in this section, no longer denotes the power used in (47) to combine the ratios. By (58), to ensure , it suffices that
Substitute (57), (55), and the Gaussian width bound above, and use (25) to absorb and into . This gives
(60)
Here comes from . Let be the ceiling of the deterministic right-hand side. If
we keep the first layer fixed and apply the Chernoff bound only to the distribution of acceptance indicators induced by the second-layer bias vector . This gives
Outside this event,
Thus a total width suffices. Fix the first layer and any acceptance indicator configuration satisfying this count condition. Markov's inequality under the conditional joint distribution of the accepted rows gives
where denotes this conditional probability. Hence preserves the sign of and has margin at least relative to . This conditional probability bound is uniform over all satisfying the six groups of first-layer events and all qualifying acceptance indicator configurations.
Coefficient bound and separation margin. Still fixing the first layer and acceptance indicator configuration above, apply (59), (57), and the same Markov estimate under the conditional joint distribution of the accepted rows. Under the same conditioning, this gives
On the joint success event, , and the strict separation margin for in the preceding paragraph ensures , so the vector defined above is valid. The second-layer normalization gives
is at most on and at least on ), so the minus sign gives the sign orientation in (13). Since , absorbing into and using the denominator bound gives the deterministic margin
Parameter simplification and joint probability. In (60), the factor uses the bound for in (54), while and use only its bound for . To simplify the discussion, write
Since and , we have and
Substituting the respective bounds in (54) gives
On the other hand, (32) gives
Using the bound for in (54) again, absorb , , and the factor above into the preceding exponent estimate. This proves (12). Applying the same estimates to (64), we may take
Finally, the first-layer events have total failure probability at most , as shown in Section A.5. Fix a first layer satisfying these events. By (61), the count condition fails with conditional probability at most . For every acceptance indicator configuration meeting this condition, (62) and (63) each contribute at most . Averaging over these configurations and applying a union bound gives conditional second-layer failure probability at most . Averaging over and adding the first-layer failure probability yields
The positive constant is independent of the sets and , and is an absolute constant. This proves Theorem 2.7.
C Proofs of necessary width and cone geometry
This appendix proves the width lower bounds and geometric separation results. Subsection C.1 proves the finite convex-cover characterization (Theorem 2.1). Subsection C.2 shows why one hidden layer may fail (Example 2.2). Subsection C.3 characterizes random affine separation through pointedness (Proposition 2.4). Subsection C.4 proves the nonpointed counterexample (Example 3.1). Subsection C.5 computes the geometric parameters and Gaussian width of the lower-bound construction (Example 3.2). Finally, Subsection C.6 proves the width lower bounds in Example 3.2 by constructing points from different classes with identical features.
C.1 Finite convex-cover characterization
Proof of Theorem 2.1. Assume (i), with scalar output on and on for some . The finitely many activation patterns of a finite ReLU network [2, Definition 3 and
Theorem 2.1] give closed polyhedral cells covering , on each of which agrees with an affine map . With , define
and discard empty cells. A global Lipschitz constant gives, for and ,
Thus every opposite-label pair has distance at least , proving (ii).
Assume (ii), and set . The open convex sets and are disjoint. The strong separation theorem [25, Theorem 11.4] gives an affine function which, after normalization, satisfies
The distance need not be attained. The first hidden layer contains ; the second contains
For , choosing with gives . For , choose with . Then and for every . Consequently,
has opposite signs with a uniform positive margin, proving (iii). The implication (iii) (i) is immediate.
C.2 Necessity of two hidden layers
Proof of Example 2.2. Suppose that on and on . Absorb terms with into and consider the recession function
For , let . The labels imply on . Here is the class label of in (3). Using , write
The inequalities at and give , where . Hence . Approaching each coordinate axis through orthants of opposite parity forces . Thus is even, and the opposite labels of and force on every open orthant. Continuity gives on .
Outside the finitely many ridge hyperplanes , the active set along rv is eventually fixed. Since cancels the coefficient of r,
For all sufficiently large , . Choose with , avoiding ridge hyperplanes that do not contain . For sufficiently small , the active sets at differ only for normals parallel to . Hence the jump
is independent of the signs of and . If , the labels force ; if , they force . This contradiction proves both assertions. Restricting a putative separator in to the first three coordinates proves the final statement.
C.3 Cone geometry of affine separation
Proof of Proposition 2.4. For (ii), pointedness implies : a convex combination of unit vectors in equal to zero would give a nonzero vector in . Compactness of gives . The projection inequality for yields (6). Testing any unit at proves optimality; equality in Cauchy-Schwarz gives uniqueness.
Write for all for the dual cone. For (i), pointedness and (ii) give . Choose a compact spherical cap of positive surface measure and put
The Gaussian weight event with and has positive probability. On this event, writing ,
for every cross pair. The finite support values and satisfy . Fixed anchors and bound both values uniformly. For , the admissible biases
form an interval of length at least , contained in a fixed for sufficiently large . Thus the conditional bias probability is uniformly positive. Conversely, separation with margin parameter implies on , hence . If is not pointed, it contains a nonzero line, so lies in a proper orthogonal hyperplane of Gaussian measure zero, regardless of the bias.
C.4 Necessity of pointedness
Proof of Example 3.1. The opposite difference sets and give the stated gaps and cones. Inductively, almost surely, each is either constant or has the form
on for some finite . The assertion holds for , and constant tails persist. For a nonconstant tail of , condition on the first layers. Under this conditioning,
so all coordinates are nonzero almost surely. Set
This threshold is finite almost surely. For all and , each preactivation has the sign of the corresponding coordinate of . The next layer is therefore affine there, with coefficient of t given by
This coefficient vanishes only if all preactivation slopes are negative, in which case the output is identically zero there. Positive normalization factors preserve these properties, and the finite architecture completes the induction on a probability-one event.
Thus, for all sufficiently large t,
Since and , this proves (15) and rules out strict affine separation. Finally, has the asserted signs and output gaps.
C.5 Cone geometry and Gaussian width
For (16), every has . The anchors are therefore for and for , giving . The intervals joining each class's anchors overlap on . Thus their convex hulls intersect, which rules out strict affine separation. The opposite-set differences are
Their distances are respectively 3, 1, 1, 1, attained by the anchors, so . For every , the inclusion and the limit for give . This proves the difference-cone identities in (17). Every direction in the spherical section of has first coordinate at least , while two boundary directions with opposite transverse components have midpoint . Thus and . The ray has depth 1; its spherical section has Gaussian width for . Consequently, , and the largest squared Gaussian width is exactly that of .
Write . Parametrizing the spherical section by , with and , gives
Taking and using gives the lower bound. For the upper bound, use
Since and has the law of ,
By and , the last term is at most , proving (18). Cauchy-Schwarz gives the upper bound below; bounding the norm from below by the sum of absolute coordinates divided by gives the lower bound:
which yields the stated width bounds for .
C.6 Random kernels and collisions between classes
Proof of Example 3.2. Let . The probability bound is trivial for , so assume . We show that intersection of a suitable random kernel with produces a cross-class pair with identical features.
The first layer is narrower: . Here . If , choose in this intersection. For sufficiently large , remains in the cone, so and . Since , their first-layer features and all subsequent outputs coincide. This also proves the obstruction for first-layer separation alone, since the condition for includes this pair.
The second layer is narrower: . Set . Almost surely, row has dimension . Conditional on such a , the rows of are independent nondegenerate Gaussian vectors in this space. Thus has full row rank, and its row space contains none of the nonzero rows of , almost surely. Averaging over gives
Fix weights satisfying these conclusions and arbitrary finite biases . If , this relatively open set cannot lie in finitely many proper hyperplanes. Choose in it with for every , and let . Full row rank provides satisfying . Because is interior and all biases are finite, for sufficiently large , the vector lies in , and the point satisfies
The corresponding preactivations have opposite signs in each coordinate, giving
Since and ,
The common second-layer bias cancels, so for all finite biases.
Intersection probability and the width lower bound. Take in the first case and in the second. The corresponding matrix has rank and a right-rotation-invariant distribution, so is a uniform -dimensional subspace. For any subspace, maximizing the axial projection over unit vectors gives
Successful separation therefore requires . Here the law of is induced by in the first case and by the joint law of in the second; is not fixed in the latter. Rotational invariance and give . Markov's inequality yields
Since and probabilities are at most 1,
By (18) and ,
which gives (19). For first-layer separation alone, take and ; when , the lower bound holds automatically.
Funding
This work was supported in part by the National Natural Science Foundation of China under Grant 12271140, and the Fundamental Research Funds for the Central Universities under Grant B260203007.
References
[1] G. Alain and Y. Bengio, Understanding intermediate layers using linear classifier probes. In International Conference on Learning Representations, Workshop Track, 2017.
[2] R. Arora, A. Basu, P. Mianjy, and A. Mukherjee, Understanding deep neural networks with rectified linear units. In International Conference on Learning Representations, 2018.
[3] A. S. Bandeira, D. G. Mixon, and B. Recht, Compressive classification and the rare eclipse problem. In Compressed sensing and its applications, pp. 197–220, Appl. Numer. Harmon. Anal., Birkhäuser, Cham, 2017. DOI 10.1007/978-3-319-69802-1_6
[4] V. Chandrasekaran, B. Recht, P. A. Parrilo, and A. S. Willsky, The convex geometry of linear inverse problems. Found. Comput. Math. 12 (2012), no. 6, 805–849. DOI 10.1007/s10208-012-9135-7
[5] C. Cortes and V. Vapnik, Support-vector networks. Mach. Learn. 20 (1995), no. 3, 273–297. DOI 10.1007/BF00994018
[6] M. A. Davenport, P. T. Boufounos, M. B. Wakin, and R. G. Baraniuk, Signal processing with compressive measurements. IEEE J. Sel. Top. Signal Process. 4 (2010), no. 2, 445–460. DOI 10.1109/JSTSP.2009.2039178
[7] S. Dirksen, M. Genzel, L. Jacques, and A. Stollenwerk, The separation capacity of random neural networks. J. Mach. Learn. Res. 23 (2022), no. 309, 1–47.
[8] P. Ghosal, S. Mahankali, and Y. Sun, Randomly initialized one-layer neural networks make data linearly separable. 2023, arXiv:2205.11716v2. DOI 10.48550/arXiv.2205.11716
[9] Y. Gordon, On Milman's inequality and random subspaces which escape through a mesh in . In Geometric aspects of functional analysis: Israel seminar 1986–87, pp. 84–106, Lecture Notes in Math. 1317, Springer, Berlin, 1988. DOI 10.1007/BFb0081737
[10] H. He and W. J. Su, A law of data separation in deep learning. Proc. Natl. Acad. Sci. USA 120 (2023), no. 36, e2221704120. DOI 10.1073/pnas.2221704120
[11] K. He, X. Zhang, S. Ren, and J. Sun, Delving deep into rectifiers: surpassing human-level performance on ImageNet classification. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1026–1034, IEEE, 2015. DOI 10.1109/ICCV.2015.123
[12] D. Hsu, C. H. Sanford, R. A. Servedio, and E.-V. Vlatakis-Gkaragkounis, On the approximation power of two-layer networks of random ReLUs. In Proceedings of the 34th Conference on Learning Theory, pp. 2423–2461, Proc. Mach. Learn. Res. 134, 2021.
[13] M. Hu, J. H. Chion, P. N. Suganthan, and R. K. Katuwal, Ensemble deep random vector functional link neural network for regression. IEEE Trans. Syst. Man Cybern. Syst. 53 (2023), no. 5, 2604–2615. DOI 10.1109/TSMC.2022.3213628
[14] G.-B. Huang, Q.-Y. Zhu, and C.-K. Siew, Extreme learning machine: theory and applications. Neurocomputing 70 (2006), no. 1–3, 489–501. DOI 10.1016/j.neucom.2005.12.126
[15] S. Janson, Gaussian Hilbert spaces. Cambridge Tracts in Math. 129, Cambridge University Press, Cambridge, 1997. DOI 10.1017/CB09780511526169
[16] H. Jeong, X. Li, Y. Plan, and Ö. Yilmaz, Sub-Gaussian matrices on sets: optimal tail dependence and applications. Comm. Pure Appl. Math. 75 (2022), no. 8, 1713–1754. DOI 10.1002/cpa.22024
[17] M. Ledoux and M. Talagrand, Probability in Banach spaces: isoperimetry and processes. Springer, Berlin, Heidelberg, 1991. DOI 10.1007/978-3-642-20212-4
[18] Y. Lei, P. Wang, Y. Ying, and D.-X. Zhou, Optimization and generalization of gradient descent for shallow ReLU networks with minimal width. J. Mach. Learn. Res. 27 (2026), no. 34, 1–35.
[19] J. Lu, Z. Shen, H. Yang, and S. Zhang, Deep network approximation for smooth functions. SIAM J. Math. Anal. 53 (2021), no. 5, 5465–5506. DOI 10.1137/20M134695X
[20] U. Markowska-Kaczmar and M. Kosturek, Extreme learning machine versus classical feedforward network: comparison from the usability perspective. Neural Comput. Appl. 33 (2021), no. 22, 15121–15144. DOI 10.1007/s00521-021-06402-y
[21] W. Masarczyk, M. Ostaszewski, E. Imani, R. Pascanu, P. Miłos, and T. Trzciński, The tunnel effect: building data representations in deep neural networks. In Advances in Neural Information Processing Systems 36, pp. 76772–76805, 2023. DOI 10.52202/075280-3355
[22] D. Needell, A. A. Nelson, R. Saab, P. Salanevich, and O. Schavemaker, Random vector functional link networks for function approximation on manifolds. Front. Appl. Math. Stat. 10 (2024), article no. 1284706. DOI 10.3389/fams.2024.1284706
[23] R. O'Donnell, R. A. Servedio, and L.-Y. Tan, Fooling Gaussian PTFs via local hyperconcentration. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing (STOC '20), pp. 1170–1183, Association for Computing Machinery, New York, 2020. DOI 10.1145/3357713.3384281
[24] A. Rahimi and B. Recht, Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems 20, pp. 1177–1184, 2007.
[25] R. T. Rockafellar, Convex analysis. Princeton Math. Ser. 28, Princeton University Press, Princeton, NJ, 1970. DOI 10.1515/9781400873173
[26] A. Rudi and L. Rosasco, Generalization properties of learning with random features. In Advances in Neural Information Processing Systems 30, pp. 3215–3225, 2017.
[27] P. Salanevich and O. Schavemaker, Efficient uniform approximation using random vector functional link networks. In 2023 International Conference on Sampling Theory and Applications (SampTA), pp. 1–5, IEEE, 2023. DOI 10.1109/SampTA59647.2023.10301394 Corrected version (2025): arXiv:2306.17501v2.
[28] B. Schölkopf and A. J. Smola, Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT Press, Cambridge, MA, 2002. DOI 10.7551/mitpress/4175.001.0001
[29] Z. Shen, H. Yang, and S. Zhang, Optimal approximation rate of ReLU networks in terms of width and depth. J. Math. Pures Appl. 157 (2022), 101–135. DOI 10.1016/j.matpur.2021.07.009
[30] R. Vershynin, High-dimensional probability: an introduction with applications in data science. Second ed., Cambridge Ser. Stat. Probab. Math. 58, Cambridge University Press, Cambridge, 2026. DOI 10.1017/9781009490672
[31] A. S. Xu, C. Yaras, P. Wang, and Q. Qu, Linearly separable features in shallow nonlinear networks: width scales polynomially with intrinsic data dimension. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, pp. 172–180, Proc. Mach. Learn. Res. 300, 2026.
[32] Z. Zhang, L. Shi, and D.-X. Zhou, Classification with deep neural networks and logistic loss. J. Mach. Learn. Res. 25 (2024), no. 125, 1–117.