# Sparse Sum-of-Squares Layers for Certified Learning

arXiv: https://arxiv.org/abs/2610.34590 · HTML: https://mlsanity.com/paper/2610.34590/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 26 of its 45 references that are in the map.
- Submitted 25 Oct 2026.

## Builds on (most cited first, 26 of 26)

- [OptNet: Differentiable Optimization as a Layer in Neural Networks](https://mlsanity.com/paper/1703.00443/) (2017)
- [Differentiable Convex Optimization Layers](https://mlsanity.com/paper/1910.12430/) (2019)
- [Efficient and Modular Implicit Differentiation](https://mlsanity.com/paper/2105.15183/) (2021)
- [Neural Lyapunov Control](https://mlsanity.com/paper/2005.00611/) (2020)
- [SE-Sync: A Certifiably Correct Algorithm for Synchronization over the Special Euclidean Group](https://mlsanity.com/paper/1612.07386/) (2016)
- [Deep Declarative Networks: A New Hope](https://mlsanity.com/paper/1909.04866/) (2019)
- [Differentiating Through a Cone Program](https://mlsanity.com/paper/1904.09043/) (2019)
- [Neural Lyapunov Control of Unknown Nonlinear Systems with Stability Guarantees](https://mlsanity.com/paper/2206.01913/) (2022)
- [Lyapunov-stable Neural Control for State and Output Feedback: A Novel Formulation](https://mlsanity.com/paper/2404.07956/) (2024)
- [Neural Lyapunov Control for Discrete-Time Systems](https://mlsanity.com/paper/2305.06547/) (2023)
- [Finding Global Minima via Kernel Approximations](https://mlsanity.com/paper/2012.11978/) (2020)
- [DSOS and SDSOS Optimization: More Tractable Alternatives to Sum of Squares and Semidefinite Optimization](https://mlsanity.com/paper/1706.02586/) (2017)
- [Flexible Differentiable Optimization via Model Transformations](https://mlsanity.com/paper/2206.06135/) (2022)
- [Distributed Certifiably Correct Pose-Graph Optimization](https://mlsanity.com/paper/1911.03721/) (2019)
- [TSSOS: A Moment-SOS hierarchy that exploits term sparsity](https://mlsanity.com/paper/1912.08899/) (2019)
- [Certified Training with Branch-and-Bound for Lyapunov-stable Neural Control](https://mlsanity.com/paper/2411.18235/) (2024)
- [Chordal decomposition in operator-splitting methods for sparse semidefinite programs](https://mlsanity.com/paper/1707.05058/) (2017)
- [Infinite-Dimensional Sums-of-Squares for Optimal Control](https://mlsanity.com/paper/2110.07396/) (2021)
- [SDPRLayers: Certifiable Backpropagation Through Polynomial Optimization Problems in Robotics](https://mlsanity.com/paper/2405.19309/) (2024)
- [Differentiating the Value Function by using Convex Duality](https://mlsanity.com/paper/2012.14017/) (2020)
- [Sampling algebraic varieties for sum of squares programs](https://mlsanity.com/paper/1511.06751/) (2015)
- [Optimization over Structured Subsets of Positive Semidefinite Matrices via Column Generation](https://mlsanity.com/paper/1512.05402/) (2015)
- [Decomposed Structured Subsets for Semidefinite and Sum-of-Squares Optimization](https://mlsanity.com/paper/1911.12859/) (2019)
- [Sum of Squares Basis Pursuit with Linear and Second Order Cone Programming](https://mlsanity.com/paper/1510.01597/) (2015)
- [Sparse sum-of-squares (SOS) optimization: A bridge between DSOS/SDSOS and SOS optimization for sparse polynomials](https://mlsanity.com/paper/1807.05463/) (2018)
- [Sampling-Based Global Optimal Control and Estimation via Semidefinite Programming](https://mlsanity.com/paper/2507.17572/) (2025)

## Abstract (arXiv)

A central limitation of modern machine learning systems is the lack of formal certificates guaranteeing their behavior beyond empirical, sample-based evaluation. Sum-of-squares (SOS) methods provide such guarantees by certifying polynomial inequalities over continuous domains via semidefinite programming (SDP). While prior work has introduced SDP layers as differentiable components in neural networks, repeated learning calls can lose the computational benefit of the forward program's sparse representation. We propose Sparse SOS Layers, differentiable value layers whose backward passes reuse the local coordinates of the forward solve. Under a fixed template and learned objective coefficients, each layer avoids building dense certificates and reuses its sparse structure across training steps. Compared with existing methods, our approach achieves up to 2.7 times speedup in total warm-call time, with nearly 100 times lower memory usage (1.7 vs. 160 GiB) for relatively large problem sizes for the tested dense parameterization. Experiments cover sparse polynomial certification, pendulum control, combinatorial relaxations, robotics projection, oscillator chains, and pose graph synchronization. A design study achieves zero certified violations across unseen problem instances and sizes, while requiring roughly 7 times fewer optimization solves than estimating gradients by perturbing the objective coefficients and re-solving the problem (finite differences). These results show that sparse certificate values can be effectively integrated into learning pipelines when the backward pass respects the verifier's structure.
