Two-Layer Random ReLU Networks Can Separate Disjoint Classes

Yichen Liu, Jianbin YangarXiv 2026

TL;DR

This paper proves that two layers of fixed, random ReLU neurons are sufficient to linearly separate complex and even unbounded disjoint classes with high probability. It establishes that the required network width scales quadratically with the Gaussian width of the data's "difference cones," providing a precise geometric characterization of when random features can solve non-linear classification problems.

What Problem Does This Paper Address?

In machine learning, we often want to find a "decision boundary" that separates different classes of data. While Support Vector Machines (SVMs) work great for linearly separable data, most real-world data is non-linear. Kernel methods solve this by mapping data into a high-dimensional space where it becomes linearly separable, but this can be computationally expensive.

A popular alternative is using random features—fixed, non-trained hidden layers that produce non-linear transformations. While previous work showed that random ReLU layers can separate finite sets of points, this paper asks a harder question: Can a fixed random network separate entire classes (infinite sets), even if they are non-convex or unbounded?

Methods

The authors analyze a two-layer neural network where the hidden weights are sampled from a Gaussian distribution and kept fixed. Only the final linear readout is "learned" (or shown to exist).

  1. Deterministic Characterization: They first prove that for any finite ReLU network to separate two sets with a positive margin, those sets must be coverable by a finite number of closed convex sets that don't touch each other.
  2. Random Two-Layer Architecture: To achieve this separation randomly, they propose a two-step mechanism:
  3. Layer 1 (Radial Separation): This layer separates the image of each "negative" cell from the entire "positive" class using hyperplanes through the origin.
  4. Layer 2 (Aggregation): This layer uses a clever construction involving Chebyshev polynomials and Gaussian Hermite features to combine those individual cell-wise separations into one global linear separator.
  5. Geometric Tools: The analysis relies heavily on convex cone geometry and Gaussian width—a measure of the "complexity" or "thickness" of a set in high dimensions.
The first layer produces features where each negative cell is separated from the positive class.

Datasets

The paper uses synthetic, geometrically controlled datasets to test their theories:

  • XOR-pattern Ellipsoids: Four convex cells arranged in an XOR pattern in high-dimensional space ($d=1024$). This is a classic "linearly inseparable" problem.
  • Translated Circular Cones: Used to prove that their theoretical bounds on network width are "sharp" (meaning they can't be improved).

Key Insights and Ideas

  • Pointedness is Essential: For unbounded sets (like infinite cones), random separation is only possible if the "difference cone" between classes is pointed (it doesn't contain a full line). If it's not pointed, a random network will almost certainly "collapse" points from different classes onto the same feature, making them inseparable.
  • Gaussian Width > Ambient Dimension: The "difficulty" of separating sets isn't determined by the number of input features ($d$), but by the Gaussian width of the difference cones. A high-dimensional set that is "thin" is easier to separate than a low-dimensional set that is "thick."
  • Two Layers are a Must: The authors provide a counterexample (the "shallow obstruction") where one hidden layer fails to separate classes that two layers can handle easily.
Figure 1: Cone depth (a). The purple sector in (b) shows separating directions; its dashed boundary rays are excluded.

Key Results

  • Quadratic Scaling: The sufficient width ($n$) for both layers is quadratic in the Gaussian width: $n \gtrsim w(K)^2$. This is significant because Gaussian width is often much smaller than the ambient dimension $d$.
  • Sharpness: They prove that this $w(K)^2$ dependence is optimal; you cannot separate these classes with fewer neurons using this random approach.
  • Empirical Validation: Experiments on XOR-patterned data confirmed that as the Gaussian width of the sets increased, the required network width grew accordingly, while increasing the ambient dimension alone had little effect.
Figure 3: Linear separation after two random ReLU layers. The feature sets F(S+) and F(S−) are separated with positive margin by Hout = {z : ⟨v, z⟩= 0}. The normal v points towards F(S+).

Limitations and Future Work

  • Pointedness Constraint: The requirement for pointed difference cones is a strict geometric assumption. While it's necessary for random separation, deterministic networks can sometimes bypass it.
  • Separation vs. Generalization: This paper focuses on separation (can we draw a line between them?). It doesn't directly address generalization (how well will this line work on new data?), though the two are closely linked via margin theory.
  • Fixed Weights: The study is limited to fixed random weights. Future work could explore how training these weights changes the geometric requirements for separation.

Summary updated

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. An example shows that this squared Gaussian-width dependence is sharp for both layers.
BibTeX
@misc{liu2026two,
  author = {Yichen Liu and Jianbin Yang},
  title = {{Two-Layer Random ReLU Networks Can Separate Disjoint Classes}},
  year = {2026},
  eprint = {2611.04211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04211},
}
Figure