The New Science of Making Robots You Can Actually Trust
A new survey maps how researchers are using data—no perfect models needed—to mathematically prove that complex systems will behave safely, with implications for
Hundreds of papers now show how to prove robots will behave safely—no perfect model required.
The New Science of Making Robots You Can Actually Trust
Imagine you're in a self-driving car that slams on the brakes for no reason. Or a drone that hovers perfectly in a wind tunnel but wobbles wildly when a gust hits. Or a factory robot that works beautifully in testing but behaves unpredictably with real variability in parts and conditions.
These aren't hypothetical concerns. They're the invisible wall that has held back robotics, autonomous systems, and smart infrastructure for decades. The problem isn't building machines that work in idealized conditions. The problem is building machines you can prove will work in the real world—with all its messy nonlinearity, unseen perturbations, and accumulated uncertainties that no model can fully capture.
This is the central challenge that a remarkable new survey tackles: How do you verify that a complex system will do what you want it to do, when you don't have a perfect model of that system? And how do you do it using data—the actual measurements you can collect from the real thing—rather than relying on equations that might be wrong?
The paper, a comprehensive survey of data-driven formal methods for complex dynamical systems by Behrad Samari and colleagues, accepted at the journal Automatica, maps a field that has exploded from a handful of theoretical ideas into hundreds of practical frameworks in just a few years. It's a landscape of techniques, guarantees, and trade-offs that is reshaping how we think about verification, safety, and control in everything from aerospace to healthcare.
The central insight is deceptively simple: You don't always need a perfect model to prove a system will behave correctly. Sometimes, with the right kind of data and the right mathematical framework, you can provide rigorous guarantees directly from observations of the system itself. This is the promise of data-driven formal methods—a research area that sits at the intersection of control theory, formal verification, and machine learning, and that may be the key to making autonomous systems trustworthy enough for the real world.
The Science: Why Models Fail and Data Isn't Enough
To understand why this field matters, you need to understand two failures that have long plagued engineering: the failure of models and the failure of purely statistical approaches.
Traditional control theory assumes you have a mathematical model of your system—equations that describe how it evolves over time, how it responds to inputs, how it gets pushed around by disturbances. With that model in hand, you can analyze stability, design controllers, and verify safety properties using rigorous mathematical proof.
The problem is that models are always wrong. A model of a robotic arm might capture the ideal physics but ignore friction wear, temperature expansion, or the slight flexibility in the joints. A model of a power grid might accurately predict average loads but miss rare cascades. A model of a biological system might work in a petri dish but fall apart in a living organism.
Nonlinear behavior—where the system responds disproportionately to small inputs, or where relationships between variables aren't proportional—is especially hard to model accurately. And as systems grow more complex, with more state variables and more intricate interactions, the difficulty of building faithful models grows exponentially. This is what researchers call the curse of dimensionality: the computational and modeling demands of high-dimensional systems quickly become intractable.
So why not just use data? Pure machine learning approaches learn patterns from observations and make predictions based on statistical regularities. They can handle nonlinearity and high dimensions far better than first-principles modeling. But they have their own Achilles' heel: they provide probabilistic guarantees at best. A neural network trained on sensor data might correctly predict system behavior 99% of the time—but 99% isn't good enough when the 1% failure means a self-driving car crashes.
This is where formal methods enter. Formal methods, drawn from computer science and logic, aim to provide rigorous proofs that a system satisfies certain properties—mathematical statements that are true with certainty, not just probability. A formal verification might prove that "the controller will never allow the robot arm to enter this forbidden region" or "the power grid will always maintain voltage within safe bounds."
The challenge is that traditional formal methods require a model. You can't formally verify a black box.
Data-driven formal methods resolve this tension. They take data collected from a real system and use it to construct verifiable guarantees about that system's behavior—no perfect model required. The data serves as a stand-in for the model, and the mathematical framework provides the rigor.
Three Pillars of Data-Driven Verification
Samari and colleagues organize the sprawling landscape of data-driven formal methods around three methodological pillars, each representing a fundamentally different strategy for turning observations into guarantees.
Abstractions: When the World Is Simple Enough
The first pillar is abstraction-based techniques, and they work on a beautiful intuition: instead of trying to verify the complex real system, you build a simpler abstract version that is easier to analyze, then prove that properties verified on the abstract system transfer to the real one.
Think of it like a subway map. The actual London Underground is a mess of curved lines, interconnections, and geographical complexities. The schematic map abstracts this complexity—straight lines, 45-degree angles, evenly spaced stations. For many purposes, the abstract map is more useful than the geographical truth because it captures what matters and ignores what doesn't.
In data-driven formal methods, abstraction works similarly. A finite abstraction (sometimes called a finite-state model or a discrete abstraction) converts a continuous-time dynamical system into a finite collection of states—like a flowchart or state machine. You can then use the powerful tools of computer science to verify properties on this discrete model. An infinite abstraction keeps things continuous but simplifies the dynamics in other ways, often by finding a related system that bounds or dominates the original.
The data-driven twist comes from how you construct these abstractions from limited observations. Historically, abstraction required an accurate model—you needed to know the dynamics precisely to build the abstract representation. Data-driven approaches instead infer the abstraction from system trajectories, learning which states connect to which, what the behavior looks like near different operating points, and how uncertainties propagate.
The key challenge is ensuring that the abstraction faithfully represents the real system despite being constructed from finite data. This is where the guarantee frameworks come in—and we'll return to them shortly.
Certificates: Mathematical Proofs You Can Hold
The second pillar is functional certificates, also known as certificate-based approaches or barrier certificate methods. These represent perhaps the most elegant mathematical idea in the field.
A certificate is a mathematical object—typically a function—that serves as proof that a system has a desired property. The name evokes certificates of authenticity or academic degrees: something you can point to that demonstrates compliance with a standard.
Consider control barrier certificates (CBCs), a particularly important subclass. A control barrier certificate is a function defined over the state space of a system with a specific property: if the function is negative at the system's current state, then that state is guaranteed to be safe (outside a forbidden region). The magic is that you can verify this property by checking a few mathematical conditions involving the system's dynamics—without simulating every possible trajectory or exploring every state.
In data-driven settings, the challenge is constructing these certificates from observations rather than from a known model. You need to find a function that separates safe states from unsafe states based on limited data points, while still providing rigorous guarantees that the separation holds everywhere—not just at the points you measured.
The appeal of certificate methods is their interpretability and their computational efficiency. Once you have a certificate, you can inspect it, understand why it proves safety, and reuse it across different verification tasks. This stands in contrast to opaque neural network controllers, where the reasoning behind decisions is buried in millions of learned weights.
Compositional Methods: Divide and Conquer for Complex Systems
The third pillar is compositional methods—the engineering strategy of breaking a complex system into simpler components, verifying each component individually, and then composing these local guarantees into a global guarantee for the whole system.
This approach mirrors how humans manage complexity. A city isn't designed as a single monolithic plan; it's built from neighborhoods, transit systems, utilities, and governance structures, each with its own design and verification. A crash in one subsystem doesn't necessarily cascade to failure of the whole.
In data-driven formal methods, compositional approaches allow you to collect data from individual subsystems rather than needing to observe the integrated whole. You might test each motor, each sensor, each control loop in isolation—much easier than running experiments on the assembled aircraft. Then you verify that if each component satisfies its local specification, the composed system satisfies the global specification.
Compositional methods are especially valuable for tackling the curse of dimensionality. Verifying a system with 20 state variables directly might require astronomical computation. But if you can decompose it into 4 subsystems of 5 variables each, and if the verification conditions are local rather than global, you might reduce an intractable problem to a tractable one.
Three Routes to Rigor: How Data Becomes Proof
The three pillars above describe strategies for turning observations into guarantees. But they don't answer the fundamental question: how do you ensure that conclusions drawn from finite data are correct for the infinite possibilities the system might encounter?
The survey identifies three distinct mathematical frameworks for providing this assurance—three different ways of bridging the gap between what you've measured and what you need to prove.
Probably Approximately Correct: Bounded Risk
The first framework draws from probably approximately correct (PAC) learning theory, originally developed in computational learning theory but now central to data-driven control.
PAC guarantees bound the probability that your conclusion is wrong. A PAC guarantee might say: "With at least 99% probability, the system we verified will have the desired safety property in at least 99% of deployment scenarios." This isn't a mathematical proof—it's a bound on risk.
The key insight is that PAC methods can provide meaningful guarantees with surprisingly little data, as long as the system isn't adversarial and the function classes being learned aren't too complex. The sample complexity—the number of data points needed—depends on how expressive your hypothesis class is. Simple linear relationships need fewer samples than complex nonlinear dynamics.
Scenario optimization provides another statistical route. Here, you treat the verification problem as an optimization: find parameters that satisfy all constraints observed in a sample of scenarios. If the sample is large enough and representative enough, solution quality generalizes to unseen scenarios with quantifiable confidence.
The appeal of PAC and scenario methods is their practicality. You don't need to assume a model; you don't need infinite data; you just need enough samples and a bound on the class of functions you're considering. The trade-off is that you accept a small probability of error. For many safety-critical applications, this is unacceptable—the standards demand mathematical certainty, not 99.9% confidence.
Lipschitz Continuity: Smoothness as Constraint
The second framework exploits Lipschitz continuity—a mathematical property that controls how much a function can change when its inputs change slightly.
Think of a function with Lipschitz constant L: if you move a tiny distance in input space, the output can change by at most L times that distance. A function that's Lipschitz-continuous can't spike wildly or behave chaotically; its variations are bounded by a known rate.
This property is powerful for data-driven verification. If you measure the system at a set of sample points and verify safety at each, Lipschitz continuity lets you interpolate between samples. If the function can't change too quickly, then knowing the values at sample points constrains what it can be everywhere else.
The key challenge is estimating the Lipschitz constant from data. You might bound it based on physical arguments (no physical system can change faster than some rate), estimate it from observed data (how fast do outputs actually change relative to inputs?), or treat it as a design parameter to be conservative.
Lipschitz-based guarantees provide mathematical certainty rather than probabilistic bounds—you can prove that if safety holds at sample points and the Lipschitz condition holds everywhere, then safety holds universally. The trade-off is that Lipschitz continuity is a strong assumption. Many interesting systems—especially those exhibiting bifurcations, chaos, or other nonlinear pathologies—violate it or have impractically large Lipschitz constants.
Structural Properties: Symmetries and Special Structure
The third framework leverages structural properties of the system or the verification problem—special mathematical features that can be exploited to reduce the verification burden.
One example is systems with linear fractionally transforms (LFTs), where the dynamics have a specific block structure that simplifies analysis. Another is monotone systems, where certain partial orderings on inputs guarantee corresponding orderings on outputs—allowing you to verify worst-case behavior without exploring the full state space.
Control-theoretic structures like passivity, dissipativity, and sector boundedness also fall into this category. If a system is passive—if it cannot generate energy but only dissipates or stores it—then stability and other properties can be verified through algebraic conditions on the system's input-output map rather than full state-space analysis.
The advantage of structural approaches is their efficiency: if a system has exploitable structure, verification can be dramatically simpler than for general nonlinear systems. The disadvantage is limited applicability: not all systems have convenient structure, and the verification conditions may only apply under restrictive assumptions.
Stochastic Systems: When Randomness Is Fundamental
So far, we've implicitly focused on deterministic systems—those whose future behavior is uniquely determined by current state and inputs. But many real systems are fundamentally stochastic: their evolution involves randomness, noise, or intrinsic probabilistic behavior.
A power grid subject to stochastic renewable generation, a biological system with genetic noise, a communication network with packet loss—these systems cannot be described by deterministic equations. Verification for stochastic systems asks different questions: not "will the system always stay safe?" but "will the system stay safe with probability at least p?" or "what is the probability that the system fails within time T?"
The survey devotes particular attention to the stochastic case, recognizing that it presents distinct challenges beyond the deterministic setting.
First, the data requirements are more demanding. To bound the probability of rare events (say, a catastrophic failure that might occur 1 in 10,000 times), you need far more samples than to bound common events. Rare samples are, by definition, rare to observe.
Second, the mathematical frameworks for guarantees are more subtle. PAC bounds for stochastic systems must account for both the statistical uncertainty from finite samples and the intrinsic randomness of the system. Concentration inequalities—mathematical results bounding how far a random quantity can deviate from its mean—become central tools.
Third, the specifications themselves differ. Stochastic temporal logic (STL), probabilistic computation tree logic (PCTL), and other formal specification languages extend classical logics with probability operators. "Always stay in the safe region" becomes "stay in the safe region with probability at least 0.999."
Fourth, compositional methods face additional complexity. Composing stochastic systems introduces probability distributions over system configurations that may not factorize cleanly, and verifying compositional properties requires careful treatment of how probabilistic dependencies interact across subsystem boundaries.
The survey notes that the literature on stochastic data-driven formal methods is considerably thinner than for deterministic systems—a gap that reflects both the inherent difficulty and the relative maturity of the deterministic case. This represents both a challenge and an opportunity: important problems remain unsolved, and progress here could have significant impact.
Why This Changes Things: From Theory to Deployment
The implications of this research extend far beyond academic mathematics. Data-driven formal methods sit at the core of making autonomous systems trustworthy enough for deployment in high-stakes domains.
Consider autonomous vehicles. A self-driving car must navigate a state space of billions of possible scenarios—different road geometries, traffic patterns, weather conditions, sensor noise, and adversarial actors. Formal verification asks: can we prove, mathematically, that the vehicle will never cause an accident? Traditional model-based approaches require exhaustive models of vehicle dynamics, tire physics, pedestrian behavior, and sensor characteristics. Data-driven methods allow the vehicle's actual test data to substitute for incomplete models. The car has driven millions of miles; can we extract guarantees from those observations?
Or consider medical devices. An insulin pump must maintain blood glucose within safe bounds despite meal intake, exercise, stress, and individual variation. A cardiac device must respond correctly to arrhythmias with dangerous rarity. Formal methods could prove safety properties, but patients vary and models are imperfect. Data-driven approaches offer a path to patient-specific verification—collect data from an individual, verify properties for that individual, customize the certification.
Aerospace presents similar challenges. Aircraft encounter atmospheric turbulence, system degradations, and operational edge cases that are difficult to model but occasionally observable in flight data. Data-driven formal methods could enable airworthiness verification that doesn't depend solely on wind-tunnel tests and simulation.
Power grids and critical infrastructure are increasingly automated, with distributed control algorithms managing generation, transmission, and load. Formal verification could prove stability and safety properties, but models of the interconnected grid are notoriously difficult to maintain as the system evolves. Data-driven approaches could continuously update and re-verify control algorithms as conditions change.
The common thread is this: in domains where safety is non-negotiable but models are inherently imperfect, data-driven formal methods offer a path to rigorous assurance that doesn't wait for perfect modeling.
The Trade-offs and Limitations
Intellectual honesty requires acknowledging what these methods cannot yet do—and where the challenges remain.
The sample complexity problem persists. Providing meaningful guarantees requires enough data to cover the relevant regions of the state space. For high-dimensional systems or systems with rare failure modes, the data requirements can be prohibitive. A system that fails with probability 10^-6 may require 10^8 samples to observe a single failure—and far more to characterize the failure distribution. For many safety-critical systems, this is impractical.
The distribution shift problem arises when the data used for verification comes from one distribution but the system encounters another at deployment. Data-driven guarantees typically hold under the assumption that future scenarios are similar to past observations. Novel situations—out-of-distribution inputs, adversarial attacks, unprecedented conditions—may void the guarantees. This is a fundamental limitation of any approach grounded in observed data.
The computational complexity of formal methods remains challenging. Even with data-driven techniques reducing model construction effort, the underlying verification problems can be computationally intensive. Finite-state abstractions for high-dimensional systems can have astronomically many states. Certificate search can require solving difficult optimization problems. Compositional methods can reduce complexity but introduce conservativeness—the composed guarantee may be weaker than a direct verification.
The assumption landscape varies across methods. Lipschitz continuity, structural properties, particular noise assumptions—each method makes assumptions that may or may not hold for a given real system. Understanding when assumptions are reasonable, and how violations affect guarantee validity, requires expertise and careful analysis.
The stochastic case remains underdeveloped relative to deterministic systems. While stochastic methods exist, they are less mature, their guarantees are more complex to interpret, and their data requirements are more stringent. For systems where randomness is intrinsic, the current toolkit may be insufficient.
What's Next: Frontiers and Open Problems
The survey concludes by mapping the frontier of the field—a landscape of open problems and promising directions.
Tightening the sample complexity bounds remains fundamental. Current results often require more data than is practically available. Research is actively developing tighter PAC bounds, better concentration inequalities, and adaptive sampling strategies that concentrate data collection where it's most informative.
Distributionally robust methods aim to address distribution shift by providing guarantees that hold across a range of possible deployment distributions, not just the training distribution. This connects to the broader research program on out-of-distribution robustness in machine learning.
Learning-augmented control, where neural networks and other learned components are integrated into control systems, presents both opportunities and verification challenges. How do you formally verify a system with a neural network controller? Data-driven methods may provide the bridge between learning (which excels at handling complexity) and formal verification (which excels at providing guarantees).
Online and real-time verification would extend data-driven methods from offline certification to runtime assurance. As systems operate, new data arrives. Can we update our guarantees in real time? Can we detect when the system has drifted outside the verified region and trigger safe fallback behaviors?
Compositional methods for stochastic systems represent a key open challenge. While deterministic compositional methods are mature, their stochastic counterparts are less developed. Progress here could unlock scalability for stochastic verification of large-scale systems.
Tooling and automation will determine whether data-driven formal methods move from research prototypes to industrial practice. User-friendly software, integration with existing verification pipelines, and case studies demonstrating real-world applicability are essential for adoption.
Benchmarking and comparison across methods is needed to guide practitioners. When should you use abstraction-based methods versus certificate methods? When are PAC guarantees sufficient versus when do you need Lipschitz-based certainty? Systematic comparison could build intuition and guide method selection.
The Larger Significance
The survey by Samari and colleagues arrives at a moment of transition. We are moving from an era where autonomous systems were curiosities—controlled, predictable, confined to structured environments—toward an era where they operate in open worlds, alongside humans, making decisions with real consequences.
Traditional model-based control theory gave us the mathematical framework for this challenge, but it assumed a luxury we increasingly cannot afford: complete, accurate, tractable models of the systems we want to control. Data-driven formal methods acknowledge this limitation and offer a path forward that doesn't require modeling perfection.
The three pillars of the field—abstraction, certificates, and compositionality—represent different philosophical approaches to the verification problem, each with trade-offs suited to different contexts. The three guarantee frameworks—statistical, Lipschitz-based, and structural—offer different bridges from finite data to universal conclusions, each with different assumptions and implications.
What unifies them is a conviction that rigorous guarantees need not require perfect models. That the gap between what we can observe and what we need to prove can be bridged with mathematics. That in an age of increasing complexity and autonomous deployment, formal verification is not a luxury but a necessity—and that data-driven formal methods may be the tool that makes this necessity practical.
The field is young. The challenges are real. But the trajectory is clear: as autonomous systems become more capable, more deployed, and more consequential, the need for rigorous assurance will only grow. Data-driven formal methods are not yet the standard tool of every robotics engineer or control systems designer. But they are moving in that direction—and this survey provides the map of the territory.
Whether the destination is reached, and how long the journey takes, will depend on progress in the research problems outlined here—and on the willingness of the engineering community to embrace methods that are mathematically sophisticated but practically powerful.
The alternative is to continue deploying systems whose guarantees rest on assumptions we know are wrong—and hoping, statistically, that the failures remain rare.
Sign in to join the conversation.
Comments (0)
No comments yet. Be the first to share your thoughts.