Nonparametric Learning of Two-Layer ReLU Residual Units

Zhunxuan Wang, Linyun He, Chunchuan Lyu, Shay B. Cohen

TL;DR

Training even simple neural networks is traditionally a non-convex optimization nightmare, heavily reliant on the heuristics of gradient descent. This paper changes the game for a specific architecture by proving that two-layer ReLU residual units can be learned exactly and efficiently via convex optimization. By framing the problem nonparametrically, the authors reduce network training to Quadratic Programming (QP) and Linear Programming (LP), providing strong statistical consistency guarantees.

What Problem Does This Paper Address?

While deep learning has achieved monumental success, training neural networks remains more of an art than a precise science. The culprit is non-convexity: nonlinear activation functions (like ReLU) create a rugged optimization landscape riddled with local minima and saddle points. Standard training relies on Stochastic Gradient Descent (SGD), which lacks global convergence guarantees and can easily get stuck.

The authors tackle the challenge of provable learning for a fundamental building block of modern architectures: the two-layer residual unit with ReLU activation, mathematically expressed as: $$\mathbf{y} = \boldsymbol{B}^\ast\left[\left(\boldsymbol{A}^\ast\mathbf{x}\right)^+ + \mathbf{x}\right]$$ Even for this shallow structure, standard mean squared error minimization is non-convex. The authors aim to find an alternative optimization route that guarantees exact parameter recovery without making restrictive assumptions about the input distribution.

Methods

The paper introduces a novel layer-wise, nonparametric learning framework that transforms a non-convex problem into a convex one:

  1. The Nonparametric Trick: Instead of directly optimizing the weights $\boldsymbol{A}$ inside the non-linear ReLU function $(\cdot)^+$, which destroys convexity, the authors treat the activation outputs for each sample as independent variables ($\xi^{(i)}$). This keeps the empirical risk minimization objective quadratic.
  2. Convex Optimization (QP and LP): For Layer 2, the problem is formulated as a convex Quadratic Program (QP) with linear constraints. In noiseless scenarios, they show the solution space can be simplified even further into a Linear Program (LP) based on the geometric constraint $C\mathbf{y}^{(i)} - \mathbf{x}^{(i)} \ge 0$.
  3. Layer-by-Layer Recovery: The algorithm first solves the LP/QP to find the weights of Layer 2 ($\boldsymbol{B}$). Once Layer 2 is known, the hidden layer outputs become observable. The algorithm then recovers Layer 1 ($\boldsymbol{A}$) using linear regression combined with a rescaling step to correct for scale equivalence in the solution space.

Datasets

The authors evaluated their approach using both synthetic and real-world datasets:

  • Synthetic Data: Generated using folded Gaussian distributions (to ensure nonnegativity constraints for Layer 1) and standard Gaussian distributions for Layer 2.
  • Real-World Regression Benchmarks: Seven standard datasets from the UCI Machine Learning Repository and Delve: Housing, DeltaElevators, DeltaAilerons, Ailerons, RedWine, WhiteWine, and Jigsaw (a large-scale text toxicity dataset utilizing FastText embeddings).

Key Insights and Ideas

  • Skip Connections Break Symmetry: In standard feedforward networks, you can permute hidden neurons or scale weights interchangeably without changing the output, creating "identifiability" issues. The skip connection ($+ \mathbf{x}$) in a residual unit breaks this symmetry, making exact parameter recovery mathematically possible.
  • Data-Dependent Convexity: By introducing sample-specific variables for the ReLU outputs, the authors decouple the weights from the nonlinearity. The cost is that the number of optimization variables grows with the sample size, but the reward is a guaranteed convex landscape.
  • QP to LP Reduction: The authors reveal that the boundary of the valid weight space is defined by a set of linear inequalities, meaning that finding a perfect network configuration in a noiseless setting is fundamentally just a feasibility problem solvable by linear programming.

Key Results

  • Extreme Sample Efficiency: On synthetic data, the proposed LP/QP method successfully recovers the ground-truth parameters with a fraction of the samples where SGD completely fails or requires exponentially more data as the input dimension $d$ scales.
  • Deterministic Runtime: Unlike SGD, which takes a highly variable number of epochs to converge depending on the random initialization, the LP/QP approach runs once with a predictable, polynomial-time complexity.
  • A Powerful Hybrid Initializer: When applied to real-world datasets, using the paper's QP algorithm to initialize standard backpropagation (SGD+QP) yielded significantly lower Root Mean Squared Error (RMSE) than standard random initialization.
  • Drastic Convergence Speedup: On the DeltaAilerons dataset, standard SGD required an average of 16,555 epochs to converge. The hybrid SGD+QP approach achieved a lower error in just 3 epochs.

Limitations and Future Work

  • Loss Function Rigidity: The current formulation is strictly tied to the $L_2$ (mean squared error) loss. It cannot be easily adapted to other loss functions, such as cross-entropy or log-loss, which limits its direct application to classification tasks.
  • Scalability Bottleneck: Because the nonparametric approach instantiates optimization variables for every single training sample, the size of the QP/LP matrix grows linearly with the dataset size ($n$). This makes the algorithm computationally expensive for massive, web-scale datasets.
  • Weight Constraints: The theoretical guarantees rely on the assumption that the first-layer weight matrix $\boldsymbol{A}$ contains only nonnegative entries. While the authors demonstrate empirical robustness when some negative weights are present, fully relaxing this constraint remains a task for future research.

Summary updated

Abstract

We describe an algorithm that learns two-layer residual units using rectified linear unit (ReLU) activation: suppose the input $\mathbf{x}$ is from a distribution with support space $\mathbb{R}^d$ and the ground-truth generative model is a residual unit of this type, given by $\mathbf{y} = \boldsymbol{B}^\ast\left[\left(\boldsymbol{A}^\ast\mathbf{x}\right)^+ + \mathbf{x}\right]$, where ground-truth network parameters $\boldsymbol{A}^\ast \in \mathbb{R}^{d\times d}$ represent a full-rank matrix with nonnegative entries and $\boldsymbol{B}^\ast \in \mathbb{R}^{m\times d}$ is full-rank with $m \geq d$ and for $\boldsymbol{c} \in \mathbb{R}^d$, $[\boldsymbol{c}^{+}]_i = \max\{0, c_i\}$. We design layer-wise objectives as functionals whose analytic minimizers express the exact ground-truth network in terms of its parameters and nonlinearities. Following this objective landscape, learning residual units from finite samples can be formulated using convex optimization of a nonparametric function: for each layer, we first formulate the corresponding empirical risk minimization (ERM) as a positive semi-definite quadratic program (QP), then we show the solution space of the QP can be equivalently determined by a set of linear inequalities, which can then be efficiently solved by linear programming (LP). We further prove the strong statistical consistency of our algorithm, and demonstrate its robustness and sample efficiency through experimental results on synthetic data and a set of benchmark regression datasets.
BibTeX
@article{wang2022nonparametric,
  author = {Zhunxuan Wang and Linyun He and Chunchuan Lyu and Shay B. Cohen},
  title = {{Nonparametric Learning of Two-Layer ReLU Residual Units}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=YiOI0vqJ0n},
}
Figure