Towards Counterfactual Explanation and Assertion Inference for CPS Debugging
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 53 references that are in the map. First posted on arXiv 9 Apr 2026.
Builds on
14 of 53 references.
References · 14
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
- 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
- 2015A Random Forest Guided Tourcited by 168
- 2020Towards Unifying Feature Attribution and Counterfactual Explanations: Different Means to the Same Endcited by 66
- 2021GeCo: Quality Counterfactual Explanations in Real Timecited by 32
- 2018Causal Testing: Finding Defects' Root Causescited by 22
- 2019Requirements-driven Test Generation for Autonomous Vehicles with Machine Learning Componentscited by 18
- 2021When Cyber-Physical Systems Meet AI: A Benchmark, an Evaluation, and a Way Forwardcited by 5
- 2021Combining Genetic Programming and Model Checking to Generate Environment Assumptionscited by 3
- 2023Applications of Causality and Causal Inference in Software Engineeringcited by 2
- 2024A Roadmap for Simulation-Based Testing of Autonomous Cyber-Physical Systems: Challenges and Future Directioncited by 2
- 2020Root Cause Detection Among Anomalous Time Series Using Temporal State Alignmentcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.