Vector-output ReLU Neural Network Problems are Copositive Programs: Convex Analysis of Two Layer Networks and Polynomial-time Algorithms

Arda Sahiner, Tolga Ergen, John M. Pauly, Mert Pilanci

Training a neural network is famously a "black box" process. We usually initialize weights randomly and use Stochastic Gradient Descent (SGD) to navigate a messy, non-convex landscape, hoping to land in a "good enough" local minimum. But what if we could treat neural network training as a well-behaved convex optimization problem where the global optimum is mathematically guaranteed?

In their ICLR 2021 paper, "Vector-output ReLU Neural Network Problems are Copositive Programs," Arda Sahiner and colleagues from Stanford University bridge the gap between the chaotic world of deep learning and the rigorous world of convex analysis. They prove that training a two-layer ReLU neural network with vector outputs is equivalent to solving a finite-dimensional convex copositive program.

The Challenge of Vector Outputs

Most theoretical breakthroughs in "convexifying" neural networks have historically focused on scalar-output models, such as simple binary classification tasks. However, real-world applications like multi-class classification or image-to-image regression require vector outputs.

Moving from scalar to vector outputs isn't just a matter of adding more dimensions; it fundamentally changes the optimization geometry. The authors tackle the challenge of finding a "strong dual"—a convex version of the training problem—that remains mathematically tractable for these more complex, multi-dimensional outputs.

Transforming the Optimization Landscape

The researchers employ several sophisticated mathematical tools to transform the standard non-convex training objective into a convex one:

  1. Convex Duality: They derive a "semi-infinite" dual problem. While it initially has infinitely many constraints, they show it can be represented using a finite number of variables.
  2. Copositive Programming: They identify a novel connection between neural networks and copositive programs (optimization over the set of completely positive matrices). This is a significant breakthrough, as it links neural training to a well-studied class of NP-hard convex problems.
  3. Frank-Wolfe Algorithm: To solve the resulting convex problem, they use a modified Frank-Wolfe approach. Each step of this algorithm involves solving a "cone-constrained PCA" problem, which they show can be done efficiently if the data has a fixed rank.
  4. Soft-Thresholded SVD: For a specific class of "spike-free" or whitened data, they prove that the global optimum has a closed-form solution based on Singular Value Decomposition (SVD), bypassing iterative training entirely.

Key Insights: SGD as a Heuristic

By comparing standard SGD to their global solver, the authors uncovered fascinating insights into how network width affects training.

Comparison of SGD convergence for narrow (10 neurons) vs. wide (50 neurons) networks against the optimal convex solution.

As shown above, for narrow networks (e.g., 10 neurons), SGD often gets stuck in local minima and fails to reach the optimal loss. However, as the network gets wider (e.g., 50 neurons), the SGD solution reliably "approaches" the global optimum found by their convex solver. This confirms theoretically and empirically why over-parameterization helps SGD succeed.

Furthermore, in the convex version of the problem, a "nuclear norm" penalty naturally emerges. This suggests that ReLU networks are implicitly trying to perform a low-rank matrix factorization of the data.

Results and Practical Implications

The paper provides the first algorithm guaranteed to find the global minimum of a vector-output ReLU network in $\mathcal{O}(n^r)$ time, where $n$ is the number of samples and $r$ is the rank of the data.

This has immediate practical benefits for specific architectures. For convolutional layers, the "rank" of the data is determined by the filter size (e.g., a $3 \times 3$ filter has a rank of 9). This means their polynomial-time algorithm is actually practical for training convolutional architectures, regardless of how many images are in the dataset. On whitened CIFAR-10 data, their closed-form SVD solution found the exact same optimal loss as SGD but in a fraction of the time (0.018 seconds versus minutes of iterative training).

Limitations and Future Work

The primary limitation of this approach is the curse of dimensionality. While the algorithm is polynomial in the number of samples ($n$), it remains exponential in the data rank ($r$). For high-resolution, full-rank images without convolutional patches, the exact global solver is still computationally expensive.

The authors suggest that the next frontier is extending this analysis to deep networks with more than two layers. They propose that deep networks could eventually be viewed as "stacked" versions of these convex problems, potentially leading to new, highly stable ways to train deep architectures without the traditional headaches of non-convex optimization.

Summary updated

BibTeX
@inproceedings{sahiner2021vector,
  author = {Arda Sahiner and Tolga Ergen and John M. Pauly and Mert Pilanci},
  title = {{Vector-output ReLU Neural Network Problems are Copositive Programs: Convex Analysis of Two Layer Networks and Polynomial-time Algorithms}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=u82oCaMYA93},
}
Figure