Solving systems of Random Equations via First and Second-Order Optimization Algorithms

Andrea Montanari, Eliran SubagarXiv 2023 · DOI

TL;DR

Researchers have mapped out the "computational limits" of solving systems of random non-linear equations using standard optimization tools like Gradient Descent. They discovered that as the number of equations increases relative to the number of variables, the optimization landscape undergoes distinct "phase transitions"—moving from easy-to-solve, to solvable-but-unstable, to computationally "hard," and finally to having no solutions at all.

What Problem Does This Paper Address?

In machine learning and engineering, we often use first-order (gradient-based) or second-order (Hessian-based) optimization to solve massive non-convex problems. While these methods work surprisingly well in practice (e.g., training a neural network), we lack a rigorous understanding of when they are guaranteed to succeed.

To study this, the authors revisit a classic mathematical challenge: solving a system of $n$ random equations in $d$ real variables. This is closely related to Smale’s 17th problem, which asks if we can find approximate solutions to random polynomial systems in average-case polynomial time. The paper seeks to define the exact boundary where local optimization algorithms fail to find global optima, even when those optima exist.

Methods

The authors combine tools from Spin Glass Theory (statistical physics) and Random Matrix Theory to analyze the "energy landscape" of these equation systems.

  1. The Models: They primarily study the Gaussian Equations (GE) model, where equations are realizations of a Gaussian process. To test the "universality" of their findings, they also use an Average of Ridges (AoR) model and a two-layer neural network.
  2. The Two-Phase Optimal Algorithm: They propose and analyze a specific algorithm designed to be the "best possible" local optimizer:
  3. Phase 1 (AMP-like): Uses a variant of Approximate Message Passing to get into the right neighborhood of a solution.
  4. Phase 2 (Hessian Descent): Once close, it uses the eigenvectors of the Hessian (the matrix of second derivatives) to "slide" down the most promising directions toward a zero-energy state.
  5. Theoretical Analysis: They use the "replica method" from physics to predict the minimum energy achievable at different ratios of $\alpha = n/d$.

Datasets

As a theoretical physics and mathematics paper, it does not use standard datasets like ImageNet. Instead, it relies on:

  • Synthetic Gaussian Processes: Generated to satisfy specific covariance structures.
  • Average of Ridges (AoR): A model where equations are sums of random "ridge functions," providing a non-Gaussian test case.
  • Neural Network Interpolation: They test their theory by tasking a 2-layer ELU network with interpolating random binary labels (pure noise) to see if the predicted phase transitions hold in a deep learning context.

Key Insights and Ideas

  • The Three Thresholds: The paper identifies three critical values for the ratio $\alpha = n/d$:
  • $\alpha_{sens}$ (Sensitivity): Below this, the solution you find is stable. Above this, a tiny change in your starting point leads to a completely different solution.
  • $\alpha_{alg}$ (Algorithmic): The "breaking point" for local algorithms. Beyond this ratio, solutions may exist, but local optimization (like SGD) will get stuck in "high-energy" traps and fail to find them.
  • $\alpha_{SAT}$ (Satisfiability): The point beyond which no solutions exist at all.
  • The "Hard" Phase: There is a gap between $\alpha_{alg}$ and $\alpha_{SAT}$. In this regime, solutions exist, but they are computationally "invisible" to local search methods—a classic "hard" phase often seen in constraint satisfaction problems.
  • Universality: Remarkably, the thresholds calculated for purely Gaussian models predict the behavior of the AoR model and neural networks with high accuracy. This suggests that the "physics" of the optimization landscape is determined by the covariance of the functions, not their specific form.

Key Results

  • Optimal Thresholds: The authors rigorously characterize $\alpha_{alg}$ and show that their two-phase algorithm is optimal among the class of "Lipschitz algorithms" (algorithms that aren't hyper-sensitive to small input changes).
  • Hessian Spectrum: They show that as the algorithm approaches a solution, the Hessian's eigenvalues split into two "bulks." This spectral signature can be used to track the progress of the optimization.
  • SGD Performance: Numerical experiments show that standard Stochastic Gradient Descent (SGD) performs nearly as well as the theoretically "optimal" algorithm, approaching the $\alpha_{alg}$ limit.
  • Sensitivity Transition: They demonstrate that the "Sensitivity" transition ($\alpha_{sens}$) happens much earlier than the algorithmic failure. This means that even in regimes where we can find solutions, the optimization process might be highly unstable.

Limitations and Future Work

  • Rotation Invariance: The current theory assumes the equations are "rotationally invariant" (they don't favor any specific direction in space). Real-world data often has much more structure.
  • The Universality Conjecture: While the authors observed universality empirically, proving why the Gaussian theory works so well for non-Gaussian models remains an open mathematical challenge.
  • Beyond Square Loss: The paper focuses on "square loss" (minimizing the sum of squared errors). Extending this to other loss functions (like cross-entropy) is a suggested next step.
  • Complexity vs. Lipschitzness: The optimality proof is restricted to "Lipschitz" algorithms. Whether a non-Lipschitz algorithm could beat the $\alpha_{alg}$ threshold is still a question for future research.

Summary updated

Abstract

Gradient-based (a.k.a. `first order') optimization algorithms are routinely used to solve large scale non-convex problems. Yet, it is generally hard to predict their effectiveness. In order to gain insight into this question, we revisit the problem of solving $n$ random equations in $d$ variables. We assume that the equations are independent realizations of a common Gaussian process. A special case is the one of random polynomials, which has been studied since Littlewood-Offord and Kac in the 1940s, and Shub-Smale in the 1990s. The last authors first investigated the computational aspect of this problem. Smale's `17th problem' asks whether a system of random polynomial equations can be (approximately) solved in average-case polynomial time. We formulate this as a nonconvex optimization problem, and develop gradient and Hessian-based algorithms to solve it. Leveraging recent advances in spin glass theory, we characterize the optimal algorithm in this class, and show that it undergoes a phase transition when $α=n/d$ crosses a threshold. For $α>α_{\text{alg}}$ solutions may exist (depending on the distribution of the equations) but are not found by local algorithms. We compare these predictions with numerical experiments and observe that stochastic gradient descent approaches the optimal algorithm. We show that the geometry of solutions in a neighborhood of a random initialization undergoes a phase transition when $α$ crosses a threshold $α_{\text{sens}}$ (for `sensitivity') smaller than $α_{\text{alg}}$. This geometric phase transition has algorithmic implications. Finally, we observe that the dynamics of these algorithms exhibits remarkable universality with respect to the details of the cost function.
BibTeX
@misc{montanari2023solving,
  author = {Andrea Montanari and Eliran Subag},
  title = {{Solving systems of Random Equations via First and Second-Order Optimization Algorithms}},
  year = {2023},
  eprint = {2306.13326},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.13326},
}
Figure