The Machine Proposes. The Proof Disposes: Neuro-Symbolic Synthesis of Formally Verified Markov Usage Models from Natural Language Requirements
This paper introduces Neuro-Symbolic MBST, a framework that automates the synthesis of formally verified Markov usage models from natural language requirements by integrating L* learning, grammar-constrained LLMs, and convex optimization, thereby achieving high-fidelity fault detection and coverage that significantly outperforms pure-neural baselines while eliminating manual modeling bottlenecks for safety-critical systems.
Original paper licensed under CC BY 4.0 (https://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 trying to teach a robot how to drive a car or navigate a website. To do this safely, you need a map of every possible move the robot can make. In the world of software testing, this map is called a "usage model." It's like a flowchart that shows every state the system can be in (like "braking" or "shopping cart full") and the probability of moving from one state to another (like "80% chance the user clicks 'buy'").
For decades, experts have used these maps to run "statistical tests." Instead of just checking if the code works once, they use the map to simulate thousands of random journeys through the system. If the map is accurate, the tests will find hidden bugs that only appear in rare, tricky situations. However, there's a huge problem: drawing these maps by hand is slow, boring, and prone to human error. It's like trying to draw a detailed map of a whole city while blindfolded. Recently, we've had a new tool: Artificial Intelligence (AI) that can read text and guess what the map should look like. But here's the catch: AI is great at guessing the shape of the map, but it's terrible at getting the numbers right. It might draw a road that doesn't exist, or say there's a 150% chance of rain (which is impossible). This paper asks: Can we combine the AI's creativity with a strict mathematical "rulebook" to build a perfect map automatically?
The paper, titled "The Machine Proposes. The Proof Disposes," introduces a new system called NeSy-MBST. Think of it as a team-up between a creative writer and a strict math teacher. The "writer" is a Large Language Model (LLM), an AI that reads natural language requirements (like "the user should be able to add items to the cart") and proposes a draft map of the system. The "math teacher" is a symbolic solver, a computer program that checks the draft against the laws of mathematics.
Here is how the team works together:
- The Proposal: The AI reads the requirements and sketches out the states and transitions. It's fast and understands human language well.
- The Proof: The math teacher immediately checks the sketch. Did the AI invent a transition that is physically impossible? Did it forget a step? The teacher says, "No, that road doesn't exist," or "You missed a turn."
- The Fix: The AI gets the feedback, fixes the map, and tries again.
- The Numbers: Once the map shape is perfect, the math teacher takes over to assign the probabilities. Instead of the AI guessing numbers (which often leads to errors), the teacher uses a "convex optimizer" to calculate the exact probabilities so that they add up to 100% correctly and reflect real-world usage.
The researchers tested this system on two types of challenges: an autonomous vehicle (a self-driving car system) and two e-commerce websites (a user shopping page and an admin dashboard). They compared their new "team-up" system against using just the AI alone and against traditional manual methods.
The results were impressive. When using just the AI, the system missed about half of the important paths and made errors in the map structure. But with the NeSy-MBST team-up, the system achieved a score of 0.9125 on a scale where 0.90 is the safety threshold required for critical systems like self-driving cars. This means the AI alone wasn't good enough, but the team-up passed the safety test.
Specifically, the new system managed to cover 85.7% of the possible transitions (the paths the system can take), whereas the AI-only version only covered 50%. This is a massive 35.7 percentage-point gain. In plain English, the new system found a much wider variety of potential bugs because it didn't miss the "dead ends" or "impossible roads" that the AI alone kept hallucinating.
The paper also looked at how well the system got the numbers right. It used a metric called Jensen–Shannon divergence to measure how close the AI's probability guesses were to the real math. The new system achieved a score of 0.012, which is extremely close to perfect, while the AI-only version was much further off at 0.157. This proves that the math teacher successfully fixed the AI's bad math.
The researchers ran a special experiment called an "ablation study" to see which part of the team was doing the heavy lifting. They found that the symbolic verification loop (the math teacher checking the map structure) was the main reason the system found so many more paths. The convex optimizer (the math teacher doing the probability calculations) was the main reason the numbers were so accurate. The closed-loop feedback (where the system learns from running tests) helped a little bit, but the core magic was in the initial team-up.
In conclusion, this paper suggests that we don't have to choose between the speed of AI and the safety of human experts. By letting the AI propose ideas and a strict mathematical system verify and correct them, we can build software testing maps that are both fast to create and safe enough for critical systems. The authors note that while this works very well for the systems they tested (up to 42 states), more work is needed to see if it scales to massive, complex industrial systems. But for now, they have shown that "The Machine Proposes" is a great start, as long as "The Proof Disposes" of any mistakes before the final map is used.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.