Scaling Convex Neural Networks with Burer-Monteiro Factorization

Arda Sahiner, Tolga Ergen, Batu Ozturkler, John M. Pauly, Morteza Mardani, Mert Pilanci

TL;DR

This paper introduces a method to scale "convex neural networks"—models mathematically guaranteed to find the best possible solution—by utilizing Burer-Monteiro factorization. This technique transforms computationally expensive convex problems into tractable non-convex ones that surprisingly retain their global optimality guarantees, allowing them to finally compete with standard deep learning on datasets like CIFAR-10.

The Challenge of Convex Neural Networks

Training neural networks is traditionally a "non-convex" optimization problem. When using standard tools like Stochastic Gradient Descent (SGD), the optimization process can get stuck in a "local minimum"—a solution that appears optimal locally but is not the best possible global configuration.

Recent theoretical research has demonstrated that training two-layer networks (including Multi-Layer Perceptrons, Convolutional Neural Networks, and Transformers) can actually be reformulated as convex optimization problems. In a convex landscape, every local minimum is a global minimum; if the solver finds a solution, it is guaranteed to be the absolute best one.

The catch? These convex formulations are incredibly computationally heavy. They rely on complex mathematical regularizers (such as the constrained nuclear norm) that are often NP-hard to compute or require prohibitive amounts of memory. Consequently, convex neural networks have largely been restricted to tiny, toy datasets. This paper aims to bridge that gap, making convex training efficient enough to handle real-world scales.

Burer-Monteiro Factorization: A Scalable Approach

To bypass the computational bottleneck, the authors leverage the Burer-Monteiro (BM) factorization.

Instead of optimizing a massive, high-dimensional matrix $Z$ (the standard "convex" approach), they factor it into two smaller matrices, $U$ and $V$, such that $Z = UV^\top$. While this factorization inherently creates a "non-convex" objective—similar to how we usually train networks—the authors prove it retains powerful guarantees.

They successfully map this factorization to three major architectures: MLPs, CNNs with arbitrary pooling, and Multi-Head Self-Attention. To build deeper networks beyond two layers, they employ a greedy, layerwise approach—training one two-layer convex block at a time, freezing it, and stacking the next.

Crucially, the authors develop a novel Relative Optimality Bound. This mathematical formula allows researchers to evaluate a "stationary point" (where training has converged) and calculate exactly how far it is from the true global optimum of the original convex problem.

Key Insights

  • Non-convexity isn't always scary: The paper proves that for these specific factorized problems, if the discovered solution is "rank-deficient" (meaning the matrices have some redundant dimensions), it is guaranteed to be the global optimum.
  • The "Heads" Secret: For self-attention mechanisms, the authors discovered that if a model has enough attention heads ($m \ge d^2 + dc$), the optimization landscape simplifies entirely, eliminating "spurious" local minima.
  • Verifiable Guarantees: Unlike standard deep learning, where convergence to a good solution is often a matter of hope and empirical validation, the Relative Optimality Bound provides a concrete metric to verify if the training actually reached the best possible state.

Experimental Validation and Results

The authors evaluated their approach on a synthetic three-class spiral dataset (to verify the optimality gap theory), as well as standard image classification benchmarks: CIFAR-10 and Fashion-MNIST.

Test accuracy across layerwise training stages for CIFAR-10 and Fashion-MNIST.

The BM factorization drastically reduced memory usage. In CNN experiments, the "pure" convex formulation crashed due to memory limits, while the BM version ran smoothly on a single GPU.

Performance-wise, the layerwise convex CNN achieved 81.5% accuracy on CIFAR-10, nearly identical to a standard non-convex CNN of the same depth (81.6%). On Fashion-MNIST, the convex approach slightly outperformed the standard non-convex baseline, hitting 91.6% compared to 91.2%. As shown in the figure above, accuracy steadily climbs across the layerwise training stages, validating the greedy stacking approach. Ultimately, the authors demonstrate that BM factorization is the first method allowing convex ReLU networks to scale to image classification tasks previously impossible for convex solvers.

Limitations and Future Work

While a significant step forward, the approach has limitations. The theoretical guarantees currently apply strictly to two-layer blocks; a full end-to-end convex theory for deep (10+ layer) networks remains an open challenge. Furthermore, the strongest guarantees require the solution to be rank-deficient. If the optimal solution is full-rank, these guarantees become harder to verify. Finally, calculating the optimality bound for ReLU networks requires solving a "cone-constrained PCA" problem, which is itself computationally non-trivial.

Despite these challenges, this work provides a much-needed efficiency upgrade for convex neural networks, moving them from theoretical curiosities toward practical tools for robust, transparent machine learning.

Summary updated

BibTeX
@inproceedings{sahiner2024scaling,
  author = {Arda Sahiner and Tolga Ergen and Batu Ozturkler and John M. Pauly and Morteza Mardani and Mert Pilanci},
  title = {{Scaling Convex Neural Networks with Burer-Monteiro Factorization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=ikmuHqugN7},
}
Figure