Parallel Deep Neural Networks Have Zero Duality Gap

Yifei Wang, Tolga Ergen, Mert Pilanci

Training deep neural networks (DNNs) is notoriously difficult because their objective functions are highly non-convex. In practice, we rely on heuristics like Stochastic Gradient Descent (SGD) and hope they converge to a "good enough" local minimum. But what if we could mathematically guarantee finding the global optimum?

This paper, "Parallel Deep Neural Networks Have Zero Duality Gap" (ICLR 2023), provides a significant theoretical breakthrough in understanding why certain deep learning architectures might be easier to optimize than others. By looking through the lens of convex duality, the authors show that "parallel" architectures—those with multiple branches—can be transformed into convex problems that guarantee global optimality.

The Problem: Non-Convexity and the Duality Gap

In optimization theory, Lagrangian duality is a powerful tool. For convex problems, the "dual" problem has the exact same optimal value as the "primal" (original) problem. This equivalence is known as strong duality or a zero duality gap.

For non-convex problems like training standard DNNs, there is usually a "gap," meaning the dual problem only provides a lower bound rather than an exact solution. Previous research successfully showed that two-layer ReLU networks exhibit a zero duality gap, allowing them to be solved as convex problems. However, extending this property to deeper networks remained an open challenge. This paper asks: Can we find deep architectures where strong duality holds, allowing us to treat deep learning as a convex optimization problem?

The Solution: Parallel Architectures

To tackle this, the authors contrast "Standard" architectures (a single sequential chain of layers) with "Parallel" architectures. A parallel network consists of multiple independent branches whose outputs are summed together at the end, conceptually similar to Inception or ResNeXt modules.

Parallel Network Architecture

The authors employ a rigorous mathematical framework based on convex analysis to prove that while depth breaks duality in standard networks, parallelism restores it.

Key Theoretical Insights

  1. Depth Breaks Standard Duality: For standard sequential linear networks with three or more layers ($L \ge 3$), a duality gap almost always exists unless the data-label relationship is perfectly uniform. This provides a theoretical explanation for why deeper sequential networks are fundamentally harder to optimize.
  2. Parallelism as a "Convexifier": Stacking networks in parallel effectively eliminates the duality gap. If a network has enough branches, the non-convex optimization landscape becomes "benign," and the dual problem becomes exact.
  3. The Power of Depth-Scaled Regularization: Standard weight decay ($\ell_2$ regularization) is insufficient for deep networks to achieve this property. To achieve a zero duality gap, the regularization must be "boosted"—specifically, the Frobenius norm of the weights must be raised to the power of the network's depth ($L$).
  4. Implicit Low-Rank Bias: Through Schatten-norm analysis, the authors demonstrate that weight decay in deep linear networks explicitly encourages low-rank solutions, an effect that amplifies as the network gets deeper.

Summary of Theoretical Results

The paper's core contributions can be summarized by its theorems on when strong duality holds:

Summary of Strong Duality Results
  • The Gap (Theorem 3): Proves that for standard deep linear networks ($L \ge 3$), the duality gap is non-zero if the singular values of the mapping $X^\dagger Y$ are not equal.
  • The Solution (Theorems 4 & 6): Proves that for both deep linear and deep ReLU networks, a parallel architecture with sufficient branches has a zero duality gap.
  • Convex Equivalence: Because the duality gap is zero, the authors show that there exists an equivalent convex program for these parallel networks. Solving this convex program is mathematically guaranteed to yield the global optimum of the original, non-convex deep network.
  • Rank-1 Data Exception: As a special case, they show that strong duality holds even for standard 3-layer ReLU networks if the input data matrix is rank-1.

Limitations and Future Work

While a massive step forward in deep learning theory, the paper operates under specific theoretical constraints. It primarily focuses on "minimum norm interpolation"—fitting the data perfectly with minimum weight energy. Real-world training often involves different loss functions and early stopping.

Furthermore, while the paper proves a convex equivalent exists, the number of variables in that convex problem scales with the number of data points. This computational complexity might make direct "convex training" expensive for massive datasets like ImageNet. Future work will likely explore the practical implementation of these convex formulations in large-scale training and generalize the formal proofs to broader loss functions like squared or logistic loss.

Summary updated

BibTeX
@inproceedings{wang2023parallel,
  author = {Yifei Wang and Tolga Ergen and Mert Pilanci},
  title = {{Parallel Deep Neural Networks Have Zero Duality Gap}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=6zrOr_Rdhjs},
}
Figure