Learning Two-Layer Residual Networks with Nonparametric Function Estimation by Convex Programming

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

Abstract

We describe an algorithm that learns two-layer residual units with 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 such a residual unit, 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}$ is a nonnegative full-rank matrix and $\boldsymbol{B}^\ast \in \mathbb{R}^{m\times d}$ is full-rank with $m \geq d$ and for $\mathbf{c} \in \mathbb{R}^d$, $[\mathbf{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 statistical strong consistency of our algorithm, and demonstrate the robustness and sample efficiency of our algorithm by experiments.

Introduction

Training neural networks is notoriously difficult because the optimization landscape is typically a non-convex mess. Standard practice relies on Stochastic Gradient Descent (SGD), which, while effective in many scenarios, offers few theoretical guarantees and often requires massive amounts of data to navigate complex landscapes. Researchers from Amazon, Georgia Tech, Edinburgh, and the Instituto de Telecomunicações have proposed a significant alternative: transforming the learning of a fundamental building block—the ReLU Residual Unit—into a convex programming problem.

The Residual Unit Architecture

The core of modern ResNets is the "Residual Unit," which introduced skip connections to allow gradients to flow through deep architectures. However, even a simple two-layer residual unit is non-convex due to the ReLU activation function ($max(0, x)$). The model studied here is defined as $\mathbf{y} = \boldsymbol{B}^*[(\boldsymbol{A}^*\mathbf{x})^+ + \mathbf{x}]$, where $\boldsymbol{A}^*$ and $\boldsymbol{B}^*$ are the ground-truth weights.

Architecture of a two-layer residual unit with a skip connection.

Standard training via SGD faces several pain points in this context, including identifiability issues, poor sample efficiency, and instability when weight matrices are ill-conditioned (nearly singular).

A Convex Detour: Nonparametric Function Estimation

The key innovation of this research is the use of Nonparametric Function Estimation. Instead of attempting to find the weights $\boldsymbol{A}$ and $\boldsymbol{B}$ directly in a single non-convex step, the problem is broken down by layer. The output of the ReLU is treated as a set of independent variables for each training sample.

  1. Layer-wise Objectives: The authors designed specific mathematical functionals for each layer, proving that their unique minimizers are exactly the ground-truth parameters.
  2. From Non-convex to Convex: By introducing a new variable to represent the ReLU output for each sample, the nonlinear problem is transformed into a Quadratic Program (QP).
  3. Linear Program Simplification: In noiseless scenarios, the solution space of the QP is shown to be identical to a simpler Linear Program (LP).
  4. Rescaling: A final linear regression step corrects for the scale-invariance of ReLU, recovering the exact weights.

Key Insights and Results

This approach leverages the fact that skip connections break the symmetry found in standard networks, making the "true" parameters identifiable. Furthermore, by treating ReLU outputs as variables, the method effectively "linearizes" the problem without sacrificing the expressive power of the nonlinearity.

Empirical evaluations on both synthetic and real-world benchmark datasets (such as UCI and Delve repositories) yielded several key findings:

  • Perfect Recovery: On synthetic data, the algorithm recovered ground-truth weights with near-zero error, significantly outperforming SGD.
  • Robustness to Ill-Conditioning: The LP/QP approach proved indifferent to the "condition number" of the weights, succeeding even when matrices were nearly impossible for SGD to invert.
  • Hybrid Performance: Using the QP solution to initialize SGD (a method termed SGD+QP) achieved the best results across benchmark datasets, reaching lower error in fewer iterations than standard methods.

Conclusion

While currently focused on two-layer units with $L_2$ loss and non-negative first-layer weights, this work provides a provably consistent and sample-efficient roadmap for training residual architectures. Future work aims to extend these convex formulations to deeper networks and broader classes of loss functions, potentially offering a more stable alternative to traditional backpropagation.

Summary updated

Abstract

We describe an algorithm that learns two-layer residual units with 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 such a residual unit, given by \[\mathbf{y}= \boldsymbol{B}^\ast\left[\left(\boldsymbol{A}^\ast\mathbf{x}\right)^+ + \mathbf{x}\right]\text{,}\] where ground-truth network parameters $\boldsymbol{A}^\ast \in \mathbb{R}^{d\times d}$ is a nonnegative full-rank matrix and $\boldsymbol{B}^\ast \in \mathbb{R}^{m\times d}$ is full-rank with $m \geq d$ and for $\mathbf{c} \in \mathbb{R}^d$, $[\mathbf{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 statistical strong consistency of our algorithm, and demonstrate the robustness and sample efficiency of our algorithm by experiments.
BibTeX
@article{wang2022learning,
  author = {Zhunxuan Wang and Linyun He and Chunchuan Lyu and Shay B. Cohen},
  title = {{Learning Two-Layer Residual Networks with Nonparametric Function Estimation by Convex Programming}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=YiOI0vqJ0n},
}
Figure