Neural Sum-of-Squares: Certifying the Nonnegativity of Polynomials with Transformers
Not on the map. Why?
Abstract (arXiv)
Certifying nonnegativity of polynomials is a well-known NP-hard problem with direct applications spanning non-convex optimization, control, robotics, and beyond. A sufficient condition for nonnegativity is the Sum of Squares (SOS) property, i.e., it can be written as a sum of squares of other polynomials. In practice, however, certifying the SOS criterion remains computationally expensive and often involves solving a Semidefinite Program (SDP), whose dimensionality grows quadratically in the size of the monomial basis of the SOS expression; hence, various methods to reduce the size of the monomial basis have been proposed. In this work, we introduce the first learning-augmented algorithm to certify the SOS criterion. To this end, we train a Transformer model that predicts an almost-minimal monomial basis for a given polynomial, thereby drastically reducing the size of the corresponding SDP. Our overall methodology comprises three key components: efficient training dataset generation of over 100 million SOS polynomials, design and training of the corresponding Transformer architecture, and a systematic fallback mechanism to ensure correct termination, which we analyze theoretically. We validate our approach on over 200 benchmark datasets, achieving speedups of over 100× compared to state-of-the-art solvers and enabling the solution of instances where competing approaches fail. Our findings provide novel insights towards transforming the practical scalability of SOS programming.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 9 of its 22 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
9 of 22 references.
References · 9
- 2017Attention Is All You Needcited by 60,361
- 2018Attention, Learn to Solve Routing Problems!cited by 656
- 2020Solving Mixed Integer Programs Using Neural Networkscited by 182
- 2020Algorithms with Predictionscited by 153
- 2019TSSOS: A Moment-SOS hierarchy that exploits term sparsitycited by 14
- 2020Chordal-TSSOS: a moment-SOS hierarchy that exploits term sparsity with chordal extensioncited by 11
- 2025Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithmscited by 7
- 2025SoS1: O1 and R1-Like Reasoning LLMs are Sum-of-Square Solverscited by 5
- 2023Synthesizing Control Laws from Data using Sum-of-Squares Optimizationcited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.