← Latest papers
⚡ electrical engineering

Training with Hard Constraints: Learning Neural Certificates and Controllers for SDEs

This paper proposes two constraint-driven training frameworks that guarantee the satisfaction of hard constraints for neural certificate and controller synthesis in stochastic differential equation systems, utilizing a bound-based loss for low-dimensional cases and a scenario-based approach with PAC guarantees for high-dimensional scalability.

Original authors: Chun-Wei Kong, Sebastian Escobar, Ibon Gracia, Jay McMahon, Morteza Lahijanian

Published 2026-03-03
📖 5 min read🧠 Deep dive

Original authors: Chun-Wei Kong, Sebastian Escobar, Ibon Gracia, Jay McMahon, Morteza Lahijanian

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to drive a car through a chaotic, foggy city where the roads are slippery and the wind is unpredictable. Your goal is to get the car from point A (the start) to point B (the destination) without ever hitting a wall or falling off a cliff.

In the world of engineering, this is called a Reach-Avoid problem. The "Reach" is getting to the destination, and the "Avoid" is staying safe.

The problem is that the city is governed by Stochastic Differential Equations (SDEs). In plain English, this just means the car's movement is a mix of your steering commands and random, unpredictable jitters (like a gust of wind or a pothole). Because of this randomness, you can't just say, "If I turn left, I will definitely arrive." You have to say, "If I turn left, there is a 99% chance I will arrive safely."

For a long time, engineers struggled to teach AI (Neural Networks) to do this with hard guarantees. Usually, AI learns by trial and error. It might drive safely 99 times out of 100, but that 100th time it crashes, it's a disaster. Engineers need a way to prove before the car even moves that the AI will never crash, no matter how the wind blows.

This paper introduces two new "training camps" to teach these AI drivers how to be perfectly safe.

The Two Training Camps

The authors propose two different ways to train the AI, depending on how complex the city is.

1. The "Grid Map" Method (Bound-Training)

Best for: Small to medium-sized cities (up to 5 dimensions).

Imagine you have a map of the city. To prove the AI is safe, you divide the entire map into a giant grid of tiny squares (like a chessboard).

  • The Old Way: You check a few random spots on the map. If the AI looks good there, you assume it's good everywhere. But what if the AI fails in a spot you didn't check?
  • The New Way: The authors force the AI to prove it is safe in every single square of the grid. They use a special mathematical trick (called "Interval Arithmetic") to calculate the "worst-case scenario" for each square.
    • Analogy: Instead of asking, "Is the bridge strong enough?" you ask, "Is the bridge strong enough even if a 10-ton truck drives on the very weakest plank?"
  • The Result: If the AI passes this test for every square, you have a mathematical guarantee that it will never crash. The paper shows this method works incredibly well for systems with up to 5 "variables" (like position, speed, angle, etc.).

2. The "Sampling" Method (Scenario-Based Training)

Best for: Massive, complex cities (10+ dimensions).

Here's the problem with the Grid Map method: If your city has 10 dimensions (position, speed, acceleration, temperature, humidity, etc.), the number of grid squares needed to cover the map becomes infinite. It's like trying to count every grain of sand on a beach; it takes too long and runs out of computer memory.

So, the authors switch tactics. Instead of checking every square, they use Statistical Sampling.

  • The Analogy: Imagine you want to know if a new medicine works for everyone. You can't test it on every human on Earth. Instead, you test it on 1,000 random people. If it works for them, you can say with 99.9% confidence that it works for almost everyone else.
  • The New Method: The AI is trained on a massive number of random "what-if" scenarios (samples). The math proves that if the AI passes these samples, it is guaranteed to be safe for 99.9999% of the city. The only places it might fail are in tiny, invisible "holes" in the map that are so small they don't matter.
  • The Result: This method scales up to 10 dimensions and beyond, giving you a "Probably Approximately Correct" (PAC) guarantee. It's not a 100% absolute proof like the grid, but it's so close to 100% that for all practical purposes, it's safe.

The "Double Agent" Strategy

Usually, engineers train the driver (the controller) first, and then try to find a safety certificate (a rulebook) to prove the driver is safe. If the driver is too reckless, the rulebook fails, and they have to start over.

This paper introduces a Joint Synthesis approach. They train the driver and the rulebook at the same time.

  • Analogy: Imagine a dance instructor (the rulebook) and a dancer (the driver) practicing together. The instructor doesn't just watch; they actively guide the dancer's moves in real-time. If the dancer is about to trip, the instructor immediately adjusts the dance steps to keep them safe.
  • This ensures the driver learns to be safe while learning to reach the goal, rather than learning to drive fast and then trying to fix the safety issues later.

Why This Matters

  • Safety First: This isn't just about making AI faster; it's about making AI safe enough for critical jobs like self-driving cars, flying drones in storms, or controlling nuclear reactors.
  • Scalability: Previous methods could only handle simple, low-dimensional problems. This paper pushes the boundary, allowing us to verify complex, high-dimensional systems that were previously impossible to guarantee.
  • Hard Guarantees: In safety-critical fields, "it usually works" isn't good enough. You need to know it will work. This paper provides the tools to get that certainty.

Summary

The authors built two new "safety nets" for AI.

  1. The Grid Net: Checks every single possibility for smaller, complex systems to give a 100% guarantee.
  2. The Sampling Net: Checks a huge number of random possibilities for massive systems to give a 99.999% guarantee.

Both methods allow the AI to learn a "safety certificate" (a mathematical proof of safety) at the same time it learns how to drive, ensuring that the AI doesn't just hope to be safe, but is proven to be safe.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →