Towards Counterfactual Explanation and Assertion Inference for CPS Debugging
Zaid Ghazal, Hadiza Yusuf, Khouloud Gaaloul

TL;DR
DeCaF is a framework that provides counterfactual explanations and assertions for debugging cyber-physical systems by identifying minimal input changes that fix failures and inferring interpretable success conditions.
Contribution
It introduces DeCaF, a novel approach combining counterfactual generation and causal models to improve CPS debugging insights and interpretability.
Findings
DeCaF successfully identifies minimal input changes to fix failures.
Different combinations of counterfactual generators and causal models optimize success rates.
DeCaF infers logical assertions that generalize recovery conditions for CPS.
Abstract
Verification and validation of cyber-physical systems (CPS) via large-scale simulation often surface failures that are hard to interpret, especially when triggered by interactions between continuous and discrete behaviors at specific events or times. Existing debugging techniques can localize anomalies to specific model components, but they provide little insight into the input-signal values and timing conditions that trigger violations, or the minimal, precisely timed changes that could have prevented the failure. In this article, we introduce DeCaF, a counterfactual-guided explanation and assertion-based characterization framework for CPS debugging. Given a failing test input, DeCaF generates counterfactual changes to the input signals that transform the test from failing to passing. These changes are designed to be minimal, necessary, and sufficient to precisely restore correctness.…
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.
