Grammar-Constrained Refinement of Safety Operational Rules Using Language in the Loop: What Could Go Wrong
Khouloud Gaaloul, Zaid Ghazal, Madhu Latha Pulimi, Sam Emmanuel Kathiravan

TL;DR
This paper presents a framework for refining safety operational rules in cyber-physical systems using language-in-the-loop, ensuring syntactic correctness and semantic safety during rule updates.
Contribution
It introduces a grammar-constrained, counterfactual reasoning approach for safe, consistent rule refinement, validated on an autonomous driving system.
Findings
Successfully resolved rule inconsistencies in autonomous driving control system
Demonstrated the importance of grammar enforcement and semantic validation in rule refinement
Revealed model-dependent refinement quality through large language model study
Abstract
Safety specifications in cyber-physical systems (CPS) capture the operational conditions the system must satisfy to operate safely within its intended environment. As operating environments evolve, operational rules must be continuously refined to preserve consistency with observed system behavior during simulation-based verification and validation. Revising inconsistent rules is challenging because the changes must remain syntactically correct under a domain-specific grammar. Language-in-the-loop refinement further raises safety concerns beyond syntactic violations, as it can produce semantically unjustified refinements that overfit to the observed outcomes. We introduce a framework that combines counterfactual reasoning with a grammar-constrained refinement loop to refine operational rules, aligning them with the observed system behavior. Applied to an autonomous driving control…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
