Imagine you are designing the control software for an autonomous drone. To guarantee that the drone will remain stable and never crash, you must find an energy function—known as a Lyapunov function—that is strictly positive everywhere except at the origin. This engineering requirement boils down to a fundamental mathematical question: Is a given multivariate polynomial non-negative for all possible inputs?
Despite its simple phrasing, answering this question exactly is notoriously difficult. As Amir Ali Ahmadi et al. demonstrated, verifying the stability or safety of continuous-time dynamical systems is NP-hard, even when the underlying systems are modeled by low-degree polynomials. Because the input space is continuous and infinite, we cannot simply check every point. Instead, we must look for an algebraic certificate of nonnegativity.
The Core Mechanism: Sum of Squares Decompositions
How do we bypass this computational wall? The most intuitive way to prove that a polynomial $p(x)$ never takes a negative value is to express it as a Sum of Squares (SOS). If we can rewrite $p(x)$ as:
$$p(x) = \sum_{i} q_i(x)^2$$
where $q_i(x)$ are other polynomials, then $p(x)$ is guaranteed to be non-negative for any real input, because any real number squared is non-negative.
The breakthrough that turned this algebraic fact into a practical computational tool lies in its connection to convex optimization. Finding the component polynomials $q_i(x)$ directly is difficult, but we can reformulate the problem by expressing $p(x)$ in a quadratic form:
$$p(x) = m(x)^T Q m(x)$$
Here, $m(x)$ is a vector containing all monomials up to a certain degree (for example, $[1, x, y, x^2, xy, y^2]$), and $Q$ is a matrix of unknown coefficients. The polynomial $p(x)$ can be decomposed into a sum of squares if and only if there exists a matrix $Q$ that is positive semidefinite ($Q \succeq 0$).
Finding a positive semidefinite matrix subject to linear constraints is a Semidefinite Program (SDP). Because SDPs are convex optimization problems, they can be solved efficiently in polynomial time using interior-point methods. As shown by Bernd Sturmfels and synthesized in the comprehensive survey on the Moment-SOS hierarchy by Jean B. Lasserre, this connection transforms an intractable global verification problem into a structured, solvable numerical optimization task.
The Gap Between Geometry and Algebra
While every SOS polynomial is non-negative, the converse is unfortunately not true: there are polynomials that are globally non-negative but cannot be written as a sum of squares. This reveals a fundamental gap between geometric nonnegativity and algebraic tractability.
James Saunderson provided a constructive answer to this boundary by identifying explicit convex forms that fail to be representable as an SOS. Similarly, Amir Ali Ahmadi et al. mapped out the exact boundary where algebraic "SOS-convexity" fails to capture geometric convexity, proving that the two concepts only align under very specific constraints on the number of variables and the polynomial degree. Furthermore, Amir Ali Ahmadi et al. showed that for a fixed polynomial degree, an SOS relaxation can fail to find a valid Lyapunov function even when one exists.
To circumvent this limitation, researchers have developed clever algebraic workarounds:
- Perturbation: Jean B. Lasserre demonstrated that any non-negative polynomial can be slightly perturbed by adding a small, explicit epsilon-term to guarantee that the resulting polynomial has an SOS decomposition.
- Domain Restrictions: Often, we do not need global nonnegativity; we only care about nonnegativity over a specific region. For instance, Jean B. Lasserre proved that any polynomial that is non-negative over a discrete grid can be represented as a weighted sum of squares with a known, bounded degree, allowing discrete optimization problems to be solved via fixed-size SDPs.
Scaling Up: Overcoming the SDP Bottleneck
Although SDPs are solvable in polynomial time, standard SOS optimization scales poorly. As the number of variables or the degree of the polynomial grows, the size of the monomial vector $m(x)$ increases combinatorially, causing the underlying SDP solvers to exhaust memory. To deploy nonnegativity verification to real-world engineering tasks, the field has introduced several scaling strategies.
Alternative Algebraic Cones
To avoid the heavy computational cost of full semidefinite programming, Amir Ali Ahmadi et al. introduced DSOS (Diagonally Dominant Sum of Squares) and SDSOS (Scaled Diagonally Dominant Sum of Squares). By restricting the matrix $Q$ to be diagonally dominant or scaled diagonally dominant, the optimization can be cast as a Linear Program (LP) or a Second-Order Cone Program (SOCP). These formulations are far more scalable than SDPs, enabling real-time safety certificates for high-dimensional systems like quadrotors. Yang Zheng et al. later bridged these concepts by exploiting the inherent sparsity of polynomials, ensuring that users do not have to sacrifice accuracy for speed.
Exploiting Structure
Physical systems often possess geometric or structural properties that can be leveraged mathematically:
- Symmetry: Karin Gatermann showed that group representation theory can be combined with SDPs to "shatter" massive, symmetric SOS problems into a collection of much smaller, independent sub-problems.
- Alternative Theorems: Rather than relying on the SOS framework, Reza Kamyar et al. utilized Handelman's theorem to decompose convex regions into simpler sub-regions, formulating pure linear programs to construct piecewise-polynomial Lyapunov functions.
Exact Proofs and Neural Certificates
Standard SDP solvers rely on floating-point arithmetic, which introduces numerical rounding errors. For pure mathematics or high-stakes verification, a numerical approximation is insufficient.
To address this, Victor Magron et al. designed a hybrid numeric-symbolic framework that takes a floating-point SDP result and purifies it into an exact rational SOS decomposition. This allows for absolute certainty when proving complex mathematical statements, such as the combinatorial proofs delivered by Erich L. Kaltofen et al. using sums of squares of rational functions.
┌───────────────────────────┐
│ Multivariate Polynomial │
└─────────────┬─────────────┘
│
▼ (Transformer Prediction)
┌───────────────────────────┐
│ Predicted SOS Matrix (Q) │
└─────────────┬─────────────┘
│
▼ (Exact Rational Verification)
┌───────────────────────────┐
│ Rigorous Safety Guarantee │
└───────────────────────────┘
The latest evolution in this domain merges classical real algebraic geometry with deep learning. Nico Pelleriti et al. introduced Neural Sum-of-Squares, a framework that trains Transformer models to predict the exact SOS decomposition matrices directly from a polynomial's coefficients. By substituting the costly optimization step with a neural network forward pass—while maintaining rigorous verification at the end—this approach combines the execution speed of modern deep learning with the absolute mathematical guarantees of classical SOS certificates.
Key Foundational Work
Symmetry groups, semidefinite programs, and sums of squares (2004) — contributed 1 concept elements to this direction.
Minimizing Polynomial Functions (2001) — contributed 1 concept elements to this direction.
Polynomials nonnegative on a grid and discrete optimization (2001) — contributed 1 concept elements to this direction.