# Sparse Sum-of-Squares Layers for Certified Learning

*Ege Gursoy, Nicolas Mansard*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150790) · [OpenReview](https://openreview.net/forum?id=fO3zFhG0ES) · [Open on the map](../papers.html#p150790)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Optimization Algorithms](../pgroup/585.md) · Type: new method · Keywords: sparse SOS layers, certified learning, semidefinite programming, differentiable optimization, efficient training, control systems

## Summary
Sparse Sum-of-Squares Layers introduce a differentiable sparse SOS layer that preserves sparsity in both forward and backward passes, enabling efficient certified learning.

## Explained to a 5-year-old
We want computers to be sure about what they say. Right now, making them sure is slow and uses a lot of computer power. This paper makes a new part of the computer that stays simple and fast, so we can train sure computers more easily. It helps in things like robot arms and moving things. It makes learning safe things quicker.

## Explained to a 5-year-old, longer
Computers sometimes make mistakes, and we want them to be careful. When we ask a computer to be careful, it needs to think a lot, which takes a long time. This paper finds a way to make the computer think carefully but stay fast. It keeps the thinking simple by using a sparse structure that reuses parts. This helps the computer learn faster without using too much power. It works well for robot arms, swinging pendulums, and connecting maps of places. The new method lets us train safe models for many real-world tasks. It also keeps the certificates accurate while speeding up training. This makes certified learning more practical for everyday use. It opens the door to safer AI in many fields. It also helps researchers explore new certified models more easily.

## For a technical reader
The paper adds a sparse differentiable layer that keeps the forward pass’s sparsity during backpropagation, cutting training time dramatically. It avoids building dense certificates for scalar losses and reuses local blocks, making SOS-based certification feasible in learning pipelines. Experiments across control and optimization tasks confirm the speed-up while preserving certification quality.

## Problem
Modern machine learning models lack formal certificates guaranteeing their behavior beyond empirical evaluation. Existing certificate-based methods become computationally expensive during training because they do not preserve sparsity and lose certificate structure when gradients are computed.

## Method
The approach introduces a sparse differentiable SOS layer that mirrors the sparse structure of the forward semidefinite program in its backward pass, reusing local blocks and constraints to avoid dense certificates and compute gradients efficiently.

## Results
The approach reduces backward computation time by one to three orders of magnitude while maintaining certification quality, making SOS-based layers practical for learning.

## Contributions
It provides a sparse differentiable SOS layer that retains sparsity in both forward and backward passes, enabling efficient training of certified models, and demonstrates its utility across several control and optimization tasks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150790)
