← Latest papers
🤖 AI

Neurosymbolic Auditing of Natural-Language Software Requirements

This paper introduces VERIMED, a neurosymbolic pipeline that leverages large language models and SMT solvers to audit natural-language software requirements by detecting ambiguity through stochastic formalization variations and verifying consistency and safety via counterexample-guided repair, achieving a significant accuracy boost in medical-device safety requirements.

Original authors: Bethel Hall, William Eiers

Published 2026-05-14
📖 5 min read🧠 Deep dive

Original authors: Bethel Hall, William Eiers

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 the architect of a life-saving machine, like a dialysis device that cleans blood for patients. You write down the rules for how this machine should behave in plain English: "If the blood flow stops, sound the alarm."

The problem is that human language is messy. Words can be vague, sentences can contradict each other, or a rule might be impossible to follow without anyone noticing. If a computer program tries to build this machine based on your messy notes, it might build something that looks perfect on paper but is actually dangerous in real life.

This paper introduces VERIMED, a new "neurosymbolic" system (a fancy term for a team-up between a creative AI and a rigid logic robot) designed to act as a super-auditor for these safety rules.

Here is how VERIMED works, explained through everyday analogies:

1. The Translator and the Logic Robot

Think of the system as having two parts:

  • The Translator (The LLM): This is a creative AI that reads your English rules and tries to translate them into a strict, mathematical language (SMT) that a computer can verify.
  • The Logic Robot (The SMT Solver): This is a rigid, unyielding machine that checks the math. It doesn't care about "feelings" or "intent"; it only cares if the rules make logical sense.

2. The "Stress Test" for Rules

Before the machine is built, VERIMED runs four specific tests on the translated rules to find hidden defects:

  • The "Can It Happen?" Test (Vacuousness): Imagine a rule says, "If the machine is underwater, turn off the power." If the machine is never supposed to be underwater, this rule is useless. The Logic Robot checks: "Is it actually possible for the machine to be underwater?" If the answer is "No," the robot flags the rule as a ghost—it exists but never does anything.
  • The "Can It Break?" Test (Violatability): The robot tries to break the rules. It asks, "Can I make the machine do something unsafe while still following the rules?" If it finds a way to break the safety, it shows you exactly how (a "counterexample"), like a proof that says, "See? If you set the dial to 50, the alarm doesn't go off, even though you said it should."
  • The "Double-Bookkeeping" Test (Redundancy): Sometimes, you write two rules that say the exact same thing. One might be, "Don't let the pressure go above 200," and another says, "Don't let the pressure go above 200." The robot finds these duplicates and says, "You're repeating yourself. Do you mean to have both, or is one of them wrong?"
  • The "Global Harmony" Test (Consistency): The robot checks if all the rules fight each other. If Rule A says "Turn the pump on" and Rule B says "The pump must be off," and both are supposed to happen at the same time, the robot screams, "This is impossible!"

3. The "Ambiguity Detector" (The Magic Trick)

This is the paper's most creative idea. Sometimes, a sentence is so vague that it can be interpreted in two different ways.

  • The Analogy: Imagine you tell a chef, "Cook the steak until it's done." The chef might think "done" means medium-rare, while you meant well-done.
  • How VERIMED catches this: Instead of asking the AI to translate the rule once, it asks the AI to translate the same rule five different times, like asking five different chefs to interpret "done."
    • If all five chefs write down the exact same recipe, the rule is clear.
    • If one chef writes "medium-rare" and another writes "well-done," the system spots the disagreement. It then says to the human: "Hey, your rule is ambiguous! Here are two different ways your sentence could be read. Please clarify."

4. The "Repair Shop"

When the Logic Robot finds a mistake or an ambiguity, it doesn't just say "Error." It acts like a helpful mechanic:

  • For broken logic: It shows the AI the exact scenario where the rule failed (the counterexample). The AI then rewrites the rule to fix that specific hole.
  • For vague language: It shows the human the specific point of confusion (e.g., "Is 200 degrees included or excluded?"). The human clarifies, and the system re-translates until everyone agrees.

What Did They Find?

The researchers tested this on a set of 64 safety rules for a dialysis machine.

  • The Results: The system found that 2 rules were redundant (duplicates) and 12 rules were ambiguous (could be read in multiple ways).
  • The Fix: When they used the "counterexample" feedback (showing the AI exactly how it failed), the AI's ability to answer safety questions jumped from about 55% accuracy to nearly 99%.
  • The Ambiguity Fix: After the system flagged the vague rules and humans clarified them, the AI stopped producing conflicting translations. The "ambiguity" dropped to zero.

The Bottom Line

VERIMED is a safety net. It uses a creative AI to translate human rules into math, and a rigid logic robot to check if those math rules are consistent, unambiguous, and actually safe. It doesn't just check if the code works; it checks if the instructions for the code make sense before the machine is ever built.

Important Note: The paper explicitly states this was tested on medical device requirements (dialysis machines) and a pain-management pump. The authors warn that this system is a tool for experts to review requirements, not a replacement for human experts, and it should not be used in real life without independent human review.

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 →