Nonparametric Learning of Two-Layer ReLU Residual Units

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

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 given by $\mathbf{y} = \boldsymbol{B}^\ast\left[\left(\boldsymbol{A}^\ast\mathbf{x}\right)^+ + \mathbf{x}\right]$, where $\boldsymbol{A}^\ast$ is a full-rank matrix with nonnegative entries and $\boldsymbol{B}^\ast$ is a full-rank matrix with $m \geq d$. We design layer-wise objectives as functionals whose analytic minimizers express the exact ground-truth network. Learning these units from finite samples is formulated using convex optimization of a nonparametric function: empirical risk minimization (ERM) is first solved as a positive semi-definite quadratic program (QP), then simplified into a linear program (LP). We prove strong statistical consistency and demonstrate robustness and sample efficiency on synthetic and benchmark datasets.

Introduction

Training deep neural networks is traditionally viewed as a "black box" optimization problem. Practitioners typically define an architecture, initialize weights randomly, and rely on Stochastic Gradient Descent (SGD) to navigate a complex, non-convex landscape. While effective in practice, this approach lacks theoretical guarantees of global convergence and often requires extensive hyperparameter tuning.

In this work, researchers from Amazon, Georgia Tech, and the University of Edinburgh propose a paradigm shift for learning one of the most fundamental components of modern architectures: the residual unit. By transforming the learning problem into a series of convex optimization tasks, they provide a method with provable statistical consistency and superior sample efficiency compared to standard backpropagation.

The Residual Unit Architecture

The study focuses on a specific two-layer residual unit structure that has become ubiquitous due to its ability to facilitate gradient flow through skip connections. The model is defined by the equation: $$\mathbf{y} = \boldsymbol{B}^\ast[(\boldsymbol{A}^\ast\mathbf{x})^+ + \mathbf{x}]$$

Architecture of the two-layer ReLU residual unit.

In this architecture, the input $\mathbf{x}$ undergoes a linear transformation $\boldsymbol{A}^\ast$ followed by a ReLU activation. This result is added back to the original input via a skip connection before a final linear transformation $\boldsymbol{B}^\ast$ is applied. The presence of the skip connection ($+ \mathbf{x}$) is crucial, as it naturally breaks the permutation and scaling symmetries that typically make neural network parameters difficult to identify.

A Convex Optimization Framework

The core innovation of this research lies in its "nonparametric" approach to learning. Instead of attempting to optimize the weights of the ReLU activation directly—which introduces non-linearity and non-convexity—the authors treat the activation values at each sample point as independent variables. This trick maintains a quadratic objective function.

The learning process is decomposed into two primary stages:

  1. Second-Layer Optimization: The algorithm first solves for the second-layer weights ($\boldsymbol{B}$) and the activation values using a Quadratic Program (QP). In ideal, noiseless scenarios, this can be further simplified into a more efficient Linear Program (LP).
  2. First-Layer Recovery: Once the second layer and activations are determined, the first-layer weights ($\boldsymbol{A}$) can be solved for directly.

By formulating the problem as a QP or LP, the authors guarantee that a solution can be found in polynomial time relative to the sample size and input dimensionality. This avoids the "exponential sample complexity" that plagues many other provable algorithms, which often require an unmanageable amount of data as the number of features increases.

Key Results and Empirical Performance

The proposed algorithm was evaluated against standard SGD across synthetic tests and seven real-world benchmark regression datasets (e.g., Housing, Ailerons, RedWine).

  • Sample Efficiency: Synthetic tests revealed that the convex approach achieves near-zero error with significantly fewer samples than SGD. While SGD struggles with high relative error in high-dimensional spaces, the QP/LP approach remains efficient.
  • Statistical Consistency: The paper provides a mathematical proof for the algorithm's strong consistency, meaning that as the sample size grows, the estimated parameters are guaranteed to converge to the true ground-truth weights.
  • Benchmark Superiority: On real-world data such as the DeltaAilerons dataset, the algorithm achieved a Root Mean Square Error (RMSE) of 0.00030, a nearly ten-fold improvement over the 0.00216 achieved by standard SGD.
  • Robustness: While the LP formulation is sensitive to noise, the QP version demonstrates significant robustness, maintaining high accuracy even when label noise is introduced.

Conclusion

This research demonstrates that the non-convexity of neural network training is not an insurmountable barrier for residual units. By leveraging nonparametric estimation and convex optimization, it is possible to learn these units with high precision and theoretical guarantees. While currently best suited for regression tasks and high-quality model initialization, this framework paves the way for more transparent and efficient training methodologies in deep learning.

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