arXiv:2611.04211stat.MLNov 2026

Manuscript Offprint

arXiv:2611.04211

Two-Layer Random ReLU Networks Can Separate Disjoint Classes

Yichen Liu, Jianbin Yang

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 S+,S−⊂RdS^+, S^- \subset \mathbb{R}^d, 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

S+=⋃i=1N+Ei+,S−=⋃j=1N−Ej−,(1)S^{+}=\bigcup_{i=1}^{N_{+}}E_{i}^{+},\qquad S^{-}=\bigcup_{j=1}^{N_{-}}E_{j}^{-}, \tag{1}

where the cells Ei+E_{i}^{+} and Ej−E_{j}^{-} are nonempty, closed, and convex; neither class is required to be convex. Assume that every opposite-label gap δij=dist(Ei+,Ej−)\delta_{ij} = \mathrm{dist}(E_{i}^{+}, E_{j}^{-}) is positive. For each i, j, define the closed difference cone Kij=clcone(Ei+−Ej−)K_{ij} = \mathrm{cl}\mathrm{cone}(E_{i}^{+} - E_{j}^{-}). The random separation theorem assumes that each KijK_{ij} is pointed:

Kij∩(−Kij)={0}.(2)K_{i j}\cap(-K_{i j})=\{0\}. \tag{2}

Put δ0=min⁡i,jδij\delta_{0}=\min_{i,j}\delta_{ij}, let RR and κmin⁡\kappa_{\min} be the scale and cone-depth parameters defined in Section 2, and set

ω∗:=max⁡i,jw(Kij∩Sd−1).\omega_{*}:=\max_{i,j}w(K_{i j}\cap S^{d-1}).

For any 0<η<10 < \eta < 1, take the second-layer bias radius to be λ^=δ0\widehat{\lambda} = \delta_0. There are explicit factors θ1,θ2\theta_1, \theta_2, given in Theorems 2.5 and 2.7, such that the first-layer bias radius and both widths may be chosen to satisfy

λ≥Cδ01+R/δ0κmin⁡log⁡(4N+),\lambda\geq C\delta_{0}\frac{1+R/\delta_{0}}{\sqrt{\kappa_{\min}}}\sqrt{\log(4N_{+})}, n≥Cθ1[1+ω∗2+log⁡48N+N−η],n\geq C\theta_{1}\left[1+\omega_{*}^{2}+\log\frac{48N_{+}N_{-}}{\eta}\right], n^≥Cθ2(1+ω∗2).\widehat{n}\geq C\theta_{2}(1+\omega_{*}^{2}).

Here C>0C > 0 is an absolute constant. Under these conditions, with probability at least 1−η1 - \eta over the two independent random layers, there exist a unit vector vv, an offset τ∈R\tau \in \mathbb{R}, and a deterministic margin m>0m > 0 such that

⟨v,F(x)⟩+τ≥m(x∈S+),⟨v,F(y)⟩+τ≤−m(y∈S−).\langle v,F(x)\rangle+\tau\geq m\quad(x\in S^{+}),\qquad\langle v,F(y)\rangle+\tau\leq-m\quad(y\in S^{-}).

Our construction gives τ=0\tau=0. In both widths, the dependence on ω∗\omega_* is quadratic, hence at most linear in the intrinsic span dimension when the other geometric parameters are fixed; θ1\theta_1 and θ2\theta_2 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.

References (27)