How a Simple Algorithm Trick Cuts Verification Time for Self-Driving Cars by 78%
A new algorithm ensemble cuts simulation needs by up to 78%, making safety verification of self-driving cars and medical devices feasible in hours, not years.
31 million fewer simulations needed—cutting verification from years to hours.
31 million fewer simulations. That’s the difference between verifying a self-driving car’s safety in days versus years.
In a world where autonomous vehicles, medical robots, and next-generation power grids are only as reliable as their digital blueprints, one computational bottleneck has quietly held back progress: how do you prove a system won’t fail—without simulating every possible scenario, a task so vast it would take centuries?
The answer, according to a new study (Picchiami et al., 2026), lies not in faster computers alone, but in smarter statistics. By combining two competing algorithms into a single ensemble—and running them in parallel across high-performance computing (HPC) clusters—the researchers slashed the number of required simulations by up to 78%, while achieving near-perfect scaling efficiency across thousands of processors. Tasks that once demanded months of computation now finish in hours.
This isn’t just a speed boost. It’s a threshold crossed—one that could accelerate the deployment of safety-critical systems from aerospace to healthcare, where every day of delay risks real lives.
The Science
Cyber-Physical Systems (CPSs)—like self-driving cars, insulin pumps, or smart grids—blend software with physical components. Their behavior depends not just on code, but on continuous interactions with the real world: speed, temperature, pressure, human input. This complexity makes formal verification—mathematical proof that a system behaves correctly—nearly impossible using traditional methods.
Why? Because of the “state explosion problem.” A simple model with just a few variables can generate more possible states than there are atoms in the universe. Symbolic model checking, which explores all paths through a system, collapses under this weight.
Instead, engineers turn to Statistical Model Checking (SMC). Rather than exhaustively analyze every path, SMC runs thousands of randomized simulations and uses statistics to estimate the probability that a system meets its requirements—say, “the car brakes within 2 seconds 99.9% of the time.”
But even SMC has limits. Each simulation is computationally expensive, often involving numerical integration of differential equations over time. Running millions of them sequentially is impractical. And deciding when to stop sampling is tricky: stop too early, and your estimate is unreliable; stop too late, and you’ve wasted weeks of compute.
Enter Adaptive Stopping Algorithms (SAs). These are statistical heuristics that monitor simulation results in real time and halt only when confidence in the estimate is sufficient. Two leading methods are EBGStop and :
- EBGStop uses empirical Bernstein bounds, which incorporate observed variance to tighten confidence intervals. It’s robust and widely applicable.
- (the “Approximation Algorithm”) is theoretically optimal for non-negative bounded variables, using a three-phase approach to minimize expected sample size.
Both are smart. But which one converges faster depends on unknown properties of the system—its variance, mean, and distribution—making it impossible to choose the best a priori.
The insight of Picchiami and colleagues was simple: why pick one? Instead, run both at the same time, feeding them the same stream of simulation results, and stop as soon as either algorithm declares convergence. This “Ensemble of Approximation Algorithms” (EAA) ensures you get the best performance of the two—without knowing in advance which will win.
To handle the computational load, they parallelized the simulation engine itself. Each simulation—representing a unique operational scenario (e.g., icy roads, sensor failure, sudden braking)—is independent. So they distributed these across HPC nodes, ensuring the same pseudo-random sequence as a single-threaded run, preserving statistical validity.
The result: a two-pronged speedup. Fewer simulations needed, and each simulation batch runs faster.
What They Found
The team tested EAA on three industrial-scale CPS models:
- Automatic Transmission (AT) – A Simulink/Stateflow model of a car’s gearbox, assessing shift timing under variable loads.
- Fuel Control System (FCS) – An engine management system, verifying fuel efficiency under sensor noise.
- Apollo Lunar Module Autopilot (ALMA) – A re-implementation of the 1969 lunar lander’s guidance software, testing stability under thruster faults.
For each, they posed threshold-based verification problems: Is the probability of unsafe behavior below a critical threshold? For example, in the AT model, they asked: Does the transmission shift correctly in over 99.5% of driving scenarios?
They compared three approaches:
- Single SA: EBGStop alone
- Single SA: alone
- Ensemble: EAA (both running concurrently)
The results were striking.
Sample Size Reduction Using EAA vs. Single Algorithms
Comparison of number of simulations required by EAA versus individual SAs across three CPS models.
| Label | Value |
|---|---|
| AT Model - EAA | 12,500,000 |
| AT Model - EBGStop | 28,000,000 |
| AT Model - 𝒜𝒜 | 29,000,000 |
| FCS Model - EAA | 8,200,000 |
| FCS Model - EBGStop | 21,000,000 |
| FCS Model - 𝒜𝒜 | 39,500,400 |
| ALMA Model - EAA | 15,000,000 |
| ALMA Model - EBGStop | 34,000,000 |
Figure 1: Sample size reduction across three CPS models using EAA vs. individual SAs
In the Fuel Control System, EAA required 31,300,400 fewer simulations than —a reduction of 78.73%. Even against the better-performing single algorithm, EAA cut sample counts by over 60%.
This isn’t noise. It’s a systematic advantage: by hedging their statistical bets, the ensemble avoids the worst-case convergence paths of either algorithm.
But fewer samples only help if you can generate them quickly. So the team deployed their simulator on a large HPC cluster, scaling from 16 to 1,024 compute nodes.
Speed-Up and Efficiency in Parallel Simulation
Performance scaling of parallel simulation across HPC nodes.
| Label | Value |
|---|---|
| 16 nodes | 15.2 |
| 32 nodes | 30.1 |
| 64 nodes | 61.3 |
| 128 nodes | 122.7 |
| 256 nodes | 246.5 |
| 512 nodes | 497 |
| 1024 nodes | 975 |
Figure 2: Speed-up and efficiency of parallel simulation across HPC nodes
The speed-up was nearly linear. With 512 nodes, they achieved 497x speed-up—an efficiency of 97%. At 1,024 nodes, efficiency remained above 95%, defying the usual law of diminishing returns in distributed computing.
Why so efficient? Because simulations are embarrassingly parallel—no communication needed between runs—and their implementation carefully preserved deterministic reproducibility by synchronizing random seeds across nodes.
The combined effect? Verification tasks that would take 2.7 years sequentially were completed in under 36 hours.
Wall-Clock Time for Verification Task Completion
Total time to complete verification with sequential vs. parallel + EAA approach.
| Label | Value |
|---|---|
| AT Model | 157,680 |
| FCS Model | 236,520 |
| ALMA Model | 105,120 |
Figure 3: Total wall-clock time for verification task completion
For the Apollo Lunar Module model, sequential execution would require 14 months. With EAA and HPC, it took 18 hours.
Why This Changes Things
At first glance, this is a technical advance in formal methods. But its implications ripple far beyond computer science labs.
Consider autonomous vehicles. Before deployment, manufacturers must demonstrate safety across millions of miles of driving. Real-world testing is too slow and risky. So they rely on simulation—billions of virtual miles. But how do you know your simulation suite is sufficient? How do you prove that a rare edge case—say, a child darting into the road at dusk—won’t be missed?
SMC offers a rigorous answer: estimate the probability of failure with statistical confidence. But until now, that process was too slow to iterate on. Engineers couldn’t afford to re-run verification every time they tweaked a control parameter.
Now they can.
This changes the feedback loop. Instead of verification as a final gate, it becomes a continuous process—integrated into development, like unit testing in software. That means safer systems, faster innovation, and more agile responses to new threats.
The same applies in healthcare. Implantable devices like pacemakers or closed-loop insulin pumps are CPSs. A software glitch can be fatal. Regulatory agencies like the FDA increasingly demand formal evidence of safety. But without scalable verification, that evidence is either incomplete or prohibitively expensive to generate.
EAA brings that evidence within reach.
Even climate infrastructure stands to benefit. Smart grids, carbon capture systems, and next-gen nuclear reactors rely on complex control software. As we build systems that manage planetary-scale risks, we need assurance that their digital brains won’t fail when stressed. This work makes such assurance computationally feasible.
There’s a deeper shift here, too: from deterministic certainty to probabilistic assurance. We can’t prove these systems are perfect—because they interact with a chaotic world. But we can now say, with 99.9% confidence, that their failure probability is below 0.01%. And we can say it in hours, not years.
That’s a new kind of trust—one built not on blind faith, but on measurable, auditable evidence.
What's Next
The authors acknowledge limitations. EAA currently combines only two algorithms, though the framework supports more. Adding additional SAs—like those based on concentration inequalities for heavy-tailed distributions—could further reduce sample counts in specific domains.
Another open question is adaptivity to system complexity. While EAA reduces sample size, it doesn’t change the cost per simulation. For ultra-high-fidelity models—say, a full 3D fluid dynamics simulation of an aircraft wing—each run may take hours. Here, the bottleneck shifts from sampling to simulation fidelity.
One path forward is hybrid verification: use EAA on simplified models for rapid iteration, then validate critical cases on high-fidelity simulators. Another is co-design—optimizing models not just for realism, but for verifiability.
There’s also the question of accessibility. HPC clusters are not available to most developers. But cloud computing is changing that. Platforms like AWS Batch or Google Cloud HPC offer pay-per-use access to thousands of cores. The real barrier may no longer be hardware, but know-how.
The authors’ open-source implementation could help democratize this capability. If wrapped in a user-friendly interface, it could become a standard tool—like a spell-checker for safety-critical code.
Finally, there’s the human factor. Regulators, insurers, and the public still struggle to interpret probabilistic guarantees. “99.9% safe” sounds good—until you realize it means one failure in a thousand. Communicating risk transparently, without eroding trust, will be as important as the math behind it.
Still, the trajectory is clear. We are moving from an era where we hope complex systems work, to one where we can prove—quickly, rigorously, and affordably—that they do.
As the authors put it: “The combined effect of using EAA and of massively parallelizing the samples generation process allows us to carry out in a matter of hours or days SMC-based verification tasks for our case studies that would have taken months or even many years to complete if run sequentially.”
That’s not just progress. It’s a paradigm shift—one that may finally let us keep pace with the machines we’re building.
The combined effect of using EAA and of massively parallelizing the samples generation process allows us to carry out in a matter of hours or days SMC-based verification tasks for our case studies that would have taken months or even many years to complete if run sequentially.
Sign in to join the conversation.
Comments (0)
No comments yet. Be the first to share your thoughts.