NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Time

Sungyoon Kim, Mert Pilanci

Abstract

In this paper, we study the optimality gap between two-layer ReLU networks regularized with weight decay and their convex relaxations. We show that when the training data is random, the relative optimality gap between the original problem and its relaxation can be bounded by a factor of O(log n^0.5), where n is the number of training samples. A simple application leads to a tractable polynomial-time algorithm that is guaranteed to solve the original non-convex problem up to a logarithmic factor. Moreover, under mild assumptions, we show that local gradient methods converge to a point with low training loss with high probability. Our result is an exponential improvement compared to existing results and sheds new light on understanding why local gradient methods work well.

Introduction

Training even a simple two-layer neural network with ReLU activations is technically NP-Hard. In theory, the loss landscape is a "non-convex nightmare" full of local minima. Yet, in practice, simple algorithms like SGD and Adam find near-global minimizers with ease. This paper bridges the gap between the theoretical hardness of training neural networks and the empirical success of gradient descent.

Previous research showed that these networks have exact convex reformulations. However, these reformulations require a number of variables that grows exponentially with the rank of the data—making them computationally intractable for large datasets. This paper asks: Can we create a "lite" version of this convex problem that is computationally efficient (polynomial time) but still stays close to the global optimum?

Methodology

The authors utilize a technique called Randomized Gaussian Relaxation. The non-convexity of ReLU networks stems from the "on/off" nature of the activation function. Every possible way to split the data with a hyperplane creates a different "pattern." Instead of accounting for every possible exponential pattern, the authors randomly sample a small, polynomial number of patterns using Gaussian vectors.

To prove this works, they introduce a geometric measure called "cone sharpness." They use Gordon’s minimax comparison theorem to show that these random cones are "sharp" enough to contain a good solution. The resulting algorithm has $O(d^3 m^3)$ complexity (where $d$ is data dimension and $m$ is network width) and solves the training problem within a guaranteed relative optimality bound.

Key Results and Insights

The Logarithmic Gap and Sample Efficiency

The most striking finding is that the relative optimality gap between the tractable relaxation and the global optimum is only $O(\sqrt{\log n})$. This is an exponential improvement over previous bounds. For random data, the authors prove that sampling approximately $O(n \log n)$ hyperplane patterns is sufficient to fit the data well, which is far fewer than the theoretical maximum.

Width as an Optimization Advantage

While increasing network width $m$ usually implies more complexity, here it actually makes the optimization easier by allowing the convex relaxation to better approximate the non-convex objective. Empirical validation shows that even with a relatively small number of neurons, the relaxed problem optimizes the objective nearly as well as a theoretical model with an exponential number of variables.

Optimal value vs. network width for various regularization levels.

Why Gradient Descent Works

The authors show that local gradient methods with random initialization converge to "nice" stationary points. Because these points are linked to the global minima of the randomized convex relaxations, they are guaranteed to have low training loss. This is supported by a "coupling lemma," which suggests that hyperplane patterns do not change significantly during training. Experiments on MNIST and synthetic data demonstrate that the portion of changed hyperplanes remains very low throughout the training process.

Portion of changed hyperplanes during training steps, supporting the coupling lemma.

Conclusion and Future Work

This research provides a theoretical justification for why overparameterized networks are so effective and reveals a link between neural network approximation error and the MAX-CUT problem in graph theory. However, limitations remain. The current proofs are limited to two-layer ReLU networks. While deeper networks have convex reformulations, approximation guarantees for them remain an open challenge. Additionally, extending these guarantees to highly structured or adversarial data is a logical next step.

Reference: Kim, S., & Pilanci, M. (2024). Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Time. Proceedings of the 41st International Conference on Machine Learning (ICML).

Summary updated

BibTeX
@inproceedings{kim2024convex,
  author = {Sungyoon Kim and Mert Pilanci},
  title = {{Convex Relaxations of ReLU Neural Networks Approximate Global Optima in Polynomial Time}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Zn44XGFGam},
}
Figure