arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.07679cs.SEcs.LGcs.SYeess.SY
收藏

面向CPS调试的反事实解释与断言推断

Towards Counterfactual Explanation and Assertion Inference for CPS Debugging

University of Michigan-Dearborn(密歇根大学迪尔伯恩分校)

Zaid Ghazal, Hadiza Yusuf, Khouloud Gaaloul

AI总结:

本文提出DeCaF框架,通过反事实引导生成最小必要输入变化,推断可解释的断言条件,提升CPS调试的准确性和可解释性。

摘要:

针对CPS通过大规模仿真验证时出现的难以解释的故障问题,本文提出DeCaF框架,通过生成反事实输入变化将测试从失败转为通过,并推断可解释的断言条件。该方法结合三种反事实生成器与两种因果模型,在三个CPS案例研究中,KD-Tree最近邻与M5模型树组合在成功率上表现最佳,而遗传算法与随机森林则在成功率与因果精度之间取得最佳平衡。

英文摘要:

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. Then, it infers assertions as logical predicates over inputs that generalize recovery conditions in an interpretable form engineers can reason about, without requiring access to internal model details. Our approach combines three counterfactual generators with two causal models, and infers success assertions. Across three CPS case studies, DeCaF achieves its best success rate with KD-Tree Nearest Neighbors combined with M5 model tree, while Genetic Algorithm combined with Random Forest provides the strongest balance between success and causal precision.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑