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

Aaron Mishkin, Arda Sahiner, Mert Pilanci

Training neural networks is notoriously finicky. Because the loss landscape is non-convex, a model's success often depends on a "lucky" random seed or hours of hyperparameter tuning. Recent research from Stanford University changes the game for two-layer ReLU networks by providing fast, reliable algorithms that transform training into a convex optimization problem.

By leveraging "gated ReLU" models and novel cone decomposition techniques, the authors achieve global optimality faster and more reliably than standard heuristics like Stochastic Gradient Descent (SGD) or Adam. They have also released open-source software (scnn) to make these methods accessible.

The Problem with Non-Convexity

In standard deep learning, we use SGD to navigate a mountainous, non-convex loss landscape. This leads to several practical headaches:

  1. Local Optima: Optimization can easily get stuck in a "valley" that isn't the lowest point, leading to sub-optimal performance.
  2. Sensitivity: Results vary wildly based on the random initialization (the "random seed").
  3. Tuning: Finding the right learning rate is a tedious process of trial and error.

While recent theory showed that two-layer ReLU networks could be reformulated as convex problems, the resulting math was computationally heavy. Previous attempts relied on "interior-point" solvers (like MOSEK) that scale poorly with data size and cannot easily utilize GPUs. This paper bridges the gap between theoretical convexity and practical, high-performance training.

Methodology: Bridging Convex and Non-Convex Models

The authors introduce several key innovations to make convex training viable at scale:

  • Gated ReLU Reformulation: They demonstrate that training a standard ReLU network is closely related to a "Gated ReLU" model. This gated model can be solved as an unconstrained convex problem—specifically, a high-dimensional version of the Group Lasso.
  • R-FISTA: To solve this efficiently, they develop a specialized version of the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA). Their version, R-FISTA, includes restarts and an adaptive line-search tailored to the structure of neural network data, allowing it to run efficiently on GPUs.
  • Cone Decomposition: To translate the "easy" Gated ReLU solution back to the standard ReLU model, they utilize a technique called cone decomposition. This maps the learned weights into the specific polyhedral cones defined by the ReLU activations.
  • Augmented Lagrangian (AL) Solver: For the full, constrained convex problem of the standard ReLU network, they propose an AL method that uses R-FISTA as a high-speed subroutine.
Summary of equivalences between convex and non-convex training problems

Key Insights

  • Global Optimality is Practical: The most striking insight is that you do not have to sacrifice speed for the safety of a convex global optimum. In many cases, the convex solver is actually faster than SGD.
  • The "Random Seed" Problem Disappears: Because the problem is convex, every run with the same data and hyperparameters leads to the exact same optimal result. This eliminates "model churn" where different training runs yield different predictions.
  • Singular Cones: The authors discovered that many potential activation patterns in a network are "singular" (degenerate) and can be safely ignored, significantly simplifying the optimization space.

Empirical Results

The researchers validated their approach across a massive range of benchmarks, including synthetic data, 73 datasets from the UCI Machine Learning Repository, and image classification tasks (MNIST and CIFAR-10).

  • Reliability: In a synthetic test where SGD failed to reach the global optimum 40% of the time, the convex solver reached it 100% of the time.
  • Massive Speedups: On the UCI benchmarks, R-FISTA and the AL solver solved 50% of the problems two orders of magnitude faster than Adam or SGD. Furthermore, their custom solvers vastly outperformed commercial software like MOSEK, which often ran out of memory on the same problems.
  • Scaling to Images: The authors achieved 97.6% accuracy on MNIST and 56.4% on CIFAR-10 using their convex formulation. While not state-of-the-art compared to deep ResNets, these are landmark results for provably convex training of neural architectures.
Performance profiles comparing R-FISTA and AL against baselines for Gated ReLU and ReLU activations

Limitations and Future Work

While groundbreaking, the current work is limited to shallow, two-layer networks. Extending these convex reformulations to deep (multi-layer) networks remains a major open challenge. Additionally, the convex reformulation involves "expanding" the data matrix based on activation patterns, which can be memory-intensive for very large datasets.

Looking forward, the authors suggest that their fast shallow solvers could serve as building blocks for training deeper networks layer-by-layer. They also highlight the need for native GPU implementations of conic solvers to further accelerate the cone decomposition step.

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