Implicit Convex Regularizers of CNN Architectures: Convex Optimization of Two- and Three-Layer Networks in Polynomial Time

Tolga Ergen, Mert Pilancı

Abstract

We study training of Convolutional Neural Networks (CNNs) with ReLU activations and introduce exact convex optimization formulations with a polynomial complexity with respect to the number of data samples, the number of neurons, and data dimension. More specifically, we develop a convex analytic framework utilizing semi-infinite duality to obtain equivalent convex optimization problems for several two- and three-layer CNN architectures. We first prove that two-layer CNNs can be globally optimized via an $\ell_2$ norm regularized convex program. We then show that multi-layer circular CNN training problems with a single ReLU layer are equivalent to an $\ell_1$ regularized convex program that encourages sparsity in the spectral domain. We also extend these results to three-layer CNNs with two ReLU layers. Furthermore, we present extensions of our approach to different pooling methods, which elucidates the implicit architectural bias as convex regularizers.

Introduction

Training neural networks is traditionally a "non-convex" challenge. Due to nonlinearities like ReLU and the hierarchical stacking of layers, the loss landscape is often riddled with local minima and plateaus. Practitioners typically rely on Stochastic Gradient Descent (SGD) and heuristic initialization to find viable solutions, but global optimality is rarely guaranteed.

While previous research has explored convex formulations for fully connected networks, these often required "infinite width" or suffered from exponential complexity, limiting their practical utility. This paper addresses these limitations by focusing on CNNs, deriving exact convex optimization problems that can be solved in polynomial time relative to the number of samples, neurons, and data dimensions.

Methods: From Weight Space to Dual Space

The authors employ a framework based on semi-infinite duality to transform the non-convex training objective into a convex dual problem. This transition involves several key technical components:

  1. Hyperplane Arrangements: The data is partitioned based on the activation patterns of ReLU neurons. For CNNs, the focus is on "patch matrices"—subsets of the image processed by the filters. Because filter sizes are typically small, the number of possible activation patterns is significantly lower than in fully connected networks, enabling polynomial complexity.
  2. Equivalent Convex Programs: By leveraging Caratheodory’s theorem, the authors show that the dual problem, which initially has an infinite number of constraints, can be reduced to a finite set. This leads to specific convex programs for various architectures, such as those incorporating average or max pooling.

Key Insights: Architecture as Regularization

A core contribution of this work is the revelation that CNN architectural choices act as implicit convex regularizers. For instance, average pooling is shown to be equivalent to a Group $\ell_1$ norm, while circular convolutions correspond to an $\ell_1$ norm in the spectral domain.

Figure 1: Summary of CNN architectures and their corresponding implicit convex regularizers.

This "parameter sharing" and locality in CNNs reduce the number of hyperplane arrangements, making global optimization tractable. The paper also extends this framework to three-layer networks with two ReLU layers, representing a significant advancement in the theoretical understanding of multi-layer optimization.

Key Results and Experimental Validation

The theoretical findings were validated using synthetic datasets, MNIST, and CIFAR-10. The authors demonstrated that the convex formulation consistently reaches the global minimum, whereas standard SGD often requires multiple restarts to avoid local optima.

Figure 3: Comparison of objective values over time for multiple SGD trials versus the global optimum found by the convex solver. Note how some non-convex trials fail to reach the global minimum.

Key findings include:

  • Polynomial Complexity: Training complexity is proven to be $O(n^{r_c})$, where $r_c$ is the rank of the patch matrices (bounded by filter size), ensuring tractability.
  • Robust Convergence: The convex solver directly identifies the global optimum, outperforming SGD in consistency.
  • Generalization: On standard benchmarks like CIFAR-10 and MNIST, the convex approach achieved lower training objectives and competitive or superior test accuracy.

Limitations and Future Work

Despite the breakthrough in polynomial-time global optimization for three-layer CNNs, challenges remain for deeper architectures like ResNets. Additionally, while the complexity is polynomial, the number of variables in the convex program can grow large for high-resolution data, necessitating the development of more efficient, specialized solvers. Finally, the current framework is specific to ReLU activations; extending these results to other functions like GELU or Swish remains an open area for research.

Summary updated

Abstract

We study training of Convolutional Neural Networks (CNNs) with ReLU activations and introduce exact convex optimization formulations with a polynomial complexity with respect to the number of data samples, the number of neurons, and data dimension. More specifically, we develop a convex analytic framework utilizing semi-infinite duality to obtain equivalent convex optimization problems for several two- and three-layer CNN architectures. We first prove that two-layer CNNs can be globally optimized via an $\ell_2$ norm regularized convex program. We then show that multi-layer circular CNN training problems with a single ReLU layer are equivalent to an $\ell_1$ regularized convex program that encourages sparsity in the spectral domain. We also extend these results to three-layer CNNs with two ReLU layers. Furthermore, we present extensions of our approach to different pooling methods, which elucidates the implicit architectural bias as convex regularizers.
BibTeX
@misc{ergen2020implicit,
  author = {Tolga Ergen and Mert Pilancı},
  title = {{Implicit Convex Regularizers of CNN Architectures: Convex Optimization of Two- and Three-Layer Networks in Polynomial Time}},
  year = {2020},
  eprint = {2006.14798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.14798},
}
Figure