Fast Convex Optimization for Two-Layer ReLU Networks: Equivalent Model Classes and Cone Decompositions

Aaron Mishkin, Arda Sahiner, Mert Pilanci

TL;DR

This paper presents a novel approach to training two-layer ReLU neural networks by reformulating the non-convex optimization problem into an equivalent, efficiently solvable convex problem. They introduce fast algorithms that outperform standard methods like SGD and Adam in both speed and robustness, achieving comparable or better accuracy on various datasets.

What Problem Does This Paper Address?

Training neural networks, especially deep ones, is notoriously difficult due to the non-convex nature of their objective functions. While stochastic gradient descent (SGD) and its variants (like Adam) are widely used and can achieve impressive results, they offer no guarantees of finding a global optimum and are sensitive to hyperparameters, leading to inconsistent training and results. This makes it challenging to reliably train neural networks and understand their behavior. The paper tackles this by finding a way to make the training of a specific class of neural networks—two-layer ReLU networks—a convex optimization problem, thereby enabling the use of powerful, guaranteed optimization techniques.

Methods

The core of the paper lies in a clever convex reformulation of the standard two-layer ReLU network training problem. They leverage existing work that shows a connection between ReLU networks and group-$\ell_1$-regularized models with polyhedral cone constraints.

Key methodological contributions include:

  • Convex Reformulation: They show that the standard weight-decay penalized training problem for two-layer ReLU networks can be exactly reformulated as a convex problem. This involves decomposing the problem into "data-local models" constrained by polyhedral cones.
  • "Gated ReLU" Equivalence: For the specific case of zero regularization, they demonstrate an exact equivalence between the original ReLU network and a "gated ReLU" network, which is inherently convex and unconstrained.
  • Approximation Bounds: For non-zero regularization, they establish data-dependent approximation bounds, showing that their convex formulation can achieve performance comparable to the non-convex problem.
  • Accelerated Proximal Gradient (R-FISTA): They develop a fast, GPU-accelerated proximal gradient method tailored for the unconstrained convex reformulation (C-GReLU). This method achieves better iteration complexity than subgradient methods.
  • Augmented Lagrangian (AL) Solver: They propose a practical augmented Lagrangian solver that uses R-FISTA as a subroutine to tackle the constrained convex reformulation (C-ReLU). This solver is shown to outperform commercial interior-point solvers.
  • Cone Decomposition: They introduce techniques to handle the polyhedral cone constraints, including an approximate decomposition method (CD-A) that is efficient and scalable.

Datasets

The authors evaluate their methods on a wide range of datasets:

  • Synthetic Classification: A custom dataset generated to be realizable, used to illustrate the difference between convex and non-convex optimization.
  • UCI Machine Learning Repository: A collection of 73 binary and multi-class classification datasets used for extensive empirical evaluation.
  • Image Classification: MNIST and CIFAR-10 datasets are used to demonstrate scalability to larger, real-world problems.

Key Insights and Ideas

  • Convexity is Achievable: The most significant insight is that the training of two-layer ReLU networks, a seemingly complex non-convex problem, can be transformed into an equivalent convex optimization problem. This opens the door to guaranteed convergence and optimality.
  • Singular Cones Can Be Ignored: They identify "singular" cones in their formulation that do not contribute to the solution and can be safely omitted, simplifying the problem without sacrificing optimality.
  • Gated ReLUs as a Bridge: The "gated ReLU" network serves as a crucial intermediate step, providing an unconstrained convex problem that is easier to optimize and relates directly to the original ReLU network.
  • Algorithmic Synergy: The combination of an accelerated proximal gradient method (R-FISTA) and an augmented Lagrangian solver provides a powerful and scalable optimization framework.
  • Robustness Beyond Speed: The convex approach not only offers speedups but also demonstrates greater robustness to hyperparameters and initialization compared to SGD-based methods.

Key Results

  • Speedup: Their proposed methods (R-FISTA and AL) solve a significantly higher proportion of problems faster than standard methods like Adam and SGD. For example, R-FISTA solves 50% of problems two orders of magnitude faster than Adam and SGD.
  • Accuracy: The convex solvers achieve test accuracies comparable to or better than non-convex baselines and other machine learning models (SVMs, Random Forests) on many datasets. They achieve the best test accuracy on 14 out of 18 UCI datasets.
  • Scalability: The methods scale to image classification tasks on MNIST and CIFAR-10, demonstrating practical applicability.
  • Robustness: The convex optimization approach is less sensitive to hyperparameters and initialization, leading to more consistent and reliable results.
  • Outperforming Commercial Solvers: Their augmented Lagrangian solver outperforms commercial interior-point solvers like MOSEK, especially on larger problems where MOSEK struggles with memory and computation time.

Limitations and Future Work

  • Two-Layer Networks: The current work focuses on two-layer ReLU networks. Extending these convex reformulations and optimization techniques to deeper networks remains a significant challenge.
  • GPU Acceleration for Cone Solvers: While R-FISTA is GPU-accelerated, the cone decomposition step (especially CD-SOCP) relies on CPU-based solvers, limiting its scalability. Developing native GPU acceleration for these components is a key future direction.
  • Approximation Guarantees: While they provide approximation guarantees for the cone decomposition, further work could explore tighter bounds or more efficient decomposition methods.
  • Deeper Networks: The authors explicitly mention extending convex optimization to deeper networks via layer-wise training as a promising future direction.

Summary updated

BibTeX
@inproceedings{mishkin2022fast,
  author = {Aaron Mishkin and Arda Sahiner and Mert Pilanci},
  title = {{Fast Convex Optimization for Two-Layer ReLU Networks: Equivalent Model Classes and Cone Decompositions}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=hk66-XsL3Y},
}
Figure