arXiv:2610.30737cs.ROOct 2026

Manuscript Offprint

arXiv:2610.30737

Causal Analysis of Failures of Cyber-Physical Systems with Continuous Inputs

Tom Yaacov, David A. Kelly, Khen Elimelech, Hana Chockler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Tom Yaacov ∗^{*}, 1^{1} ID^{ID}, David A. Kelly 1^{1} ID^{ID}, Khen Elimelech 1^{1} ID^{ID}, and Hana Chockler 1^{1} ID^{ID}

Abstract—Modern autonomous Cyber-Physical Systems (CPSs), such as self-driving cars, operate in increasingly complex environments while expected to maintain high reliability. The black-box nature of many of these systems makes it impossible to fully verify their behavior prior to deployment. When a failure occurs, it is important to analyze it to guide improvements to system robustness. A recent work introduced the novel concept of leveraging the framework of actual causality for CPS failure explanation. However, that work considered only a discrete, binary causal model that cannot capture continuous changes in system inputs. In this paper, we address these limitations by extending the actual causality framework with the notion of distance to account for the continuous characteristics of the system. Specifically, we introduce the novel concepts of distance-weighted actual cause and distance-weighted degree of responsibility, enabling causal influence to account for the magnitude of changes required to avoid a failure, rather than only its cardinality. While motivated by the continuous nature of CPSs, this constitutes a general extension of the theory of actual causality and enables more fine-grained analysis of continuous inputs in any causal model. Building on these notions, we present an efficient, practical, system-agnostic explanation-derivation algorithm that uses distance-weighted responsibility to guide the explanation search. We experimentally evaluate our approach across a number of environments from two autonomous-driving simulators with black-box neural controllers. The results show that the proposed extension provides more effective guidance than the current discrete approach.

I. INTRODUCTION

Autonomous robots and Cyber-Physical Systems (CPSs) are becoming increasingly prevalent in modern life. Such systems leverage digital components to control physical machines that operate in and interact with the real world. To operate safely and reliably, these systems must be robust, i.e., resist failures and maintain performance under a wide range of circumstances [1], [2]. However, due to the complexity of modern systems and the intractability of real-world scenarios, verifying their robustness prior to deployment is unrealistic. This is especially true for systems built on “black-box” neural components, such as controllers and perception units, which typically can only be verified empirically.

When a failure occurs, it is important to analyze it to help ensure that similar scenarios do not repeat in the future, or at least to ensure the user is better prepared to mitigate them if they do. Perhaps the most useful output of this analysis is an explanation, identifying the elements in the potentially rich scenario that led to a failure.

Problem definition: Our goal is, given a specific failure example (input environment and simulated system run), to derive an explanation of the cause of failure. We aim to derive a valid explanation while minimizing the computational effort required to find it.

While the usefulness of causal analysis has been demonstrated for discrete systems, there is little work to connect it to CPS, which have challenging properties such as continuous input variables and temporally extended operations. A recent work [3] was the first to leverage the framework of actual causality to explain CPS failures. We note that, unlike the more common framework of general causality [4], which derives forward-looking, probabilistic causal models, actual causality [5] is backward-looking, using causal models to explain specific past events. The work in [3] took the first step toward bridging the gap between CPSs and actual causality, providing guidelines for integrating a system-testing model with a causal model to ensure correct failure explanations. Since the standard search for such explanations quickly becomes intractable, it also introduced an efficient heuristic-guided explanation-derivation algorithm based on causal degree of responsibility [6], [5]—a quantification of the causal influence of an input variable.

While serving as a stepping stone, that work made significant assumptions. Most importantly, it did not allow for continuous variability of the testing-model inputs. This is a critical limitation, as explanation derivation requires examining modified scenarios and reasoning about their effect on system behavior. Yet, the causal-model inputs accepted only binary valuations: elements could either exist or not exist, but could not vary continuously. This assumption clashes with the continuous nature of CPSs and potentially limits the utility and accuracy of explanations that can be derived. Moreover, this limitation carries over to responsibility, the key heuristic guiding the explanation search. When evaluating modified scenarios to compute an element's responsibility, the approach cannot distinguish between small and large modifications, as all modifications are treated equally. Consequently, the responsibility measure loses much of its nuance, providing less effective guidance for the search.

In this work, we address these limitations by extending actual causality to account for the continuous characteristics of CPSs and exploiting this extension to effectively derive causal explanations of system failures. In particular, we extend actual causality with the notion of distance, enabling a more fine-grained analysis of continuous inputs. While motivated by the continuous nature of CPSs, this extension constitutes a novel contribution to

1^{1} King's College London, {firstname.lastname}@kcl.ac.uk

  • Corresponding Author.

** This work was partially supported by the Causality in Healthcare AI (CHAI) Hub [UKRI AI and EPSRC grant EP/Y028856/1].

the theory of actual causality in general, allowing causal influence to account for the magnitude of interventions (i.e., changes to input variables) rather than only their presence. We then leverage this extension and propose an improved responsibility-guided search approach for failure explanations.

Specifically, we make the following contributions: (1) We extend the framework for CPS failure explanation presented in [3] to support continuous causal models. (2) We extend the framework of actual causality itself with the notions of distance-weighted actual cause and distance-weighted responsibility, allowing causal analysis to account for the magnitude of interventions. (3) Building on these notions, we present an improved and more efficient explanation-derivation algorithm for black-box CPSs that uses distance-weighted responsibility to guide the explanation search. (4) We experimentally evaluate our approach against prior work on autonomous-driving systems, demonstrating that it provides more effective and scalable guidance for explanation search. We further evaluate distance-weighted responsibility by assessing how well it prioritizes the elements involved across multiple possible explanations for a failure, providing further evidence of its effectiveness.

The paper is organized as follows. Sec. II provides preliminaries on the CPS testing model and the actual causality framework and formulates our objectives. Sec. III describes the extension of the actual causality framework with the notion of distance. Sec. IV presents the distance-responsibility-guided failure explanation generation algorithm. The experimental evaluation is covered in Sec. V, and Sec. VI concludes the paper.

Related Work. Actual causality [5], [7] is well-suited for explaining events that have already occurred and has been extensively applied in explainable AI (XAI), including image, audio and medical classification [7], [8], [9], [10]. The XAI tool REX approximates causal responsibility to efficiently derive causal explanations [11]. These approaches, like ours, treat the AI model as a black box. Notably, [8] also uses causal responsibility [6] for guiding explanation generation, but is specifically designed for image classification.

In the context of CPSs, the most relevant work to this paper is [3], which uses actual causality to explain failures. Its algorithm is based on causal responsibility, however, it treats all variables as binary, hence cannot capture or manipulate continuous dependencies between inputs and outcomes. Counterfactual reasoning has recently been used for CPS failure analysis [12]. Actual causality extends and generalizes counterfactual reasoning, allowing to capture more subtle dependencies [5].

Sensitivity analysis, described in [13], perturbs the position of obstacles in failure-causing scenes to analyze CPSs. This analysis can identify parts of the environment associated with the failure, but does not generate explanations. [14] uses a debugger to generate explanations of instrumented CPS failures, an approach whose feasibility depends strongly on the model. In contrast, our method treats the system as a

Figure

Fig. 1: The running example of an autonomous car, taken from the LiteRacer simulator [19]. The car is controlled by a black-box neural network trained to navigate an obstructed track, avoiding collisions and reaching the end of the track.

black box. [15] learns a Bayesian model from simulation data and uses it to generate explanations, a fundamentally different approach from actual causality. [16] and [17] construct ontology-based representations that integrate sensor and environment information with higher-level knowledge for robotic reasoning. Unlike our approach, these methods rely on explicit knowledge representations and reasoning mechanisms tailored to the robotic system. [18] compares system input/output traces using a state-machine encoding of the CPS rather than performing causal analysis; such a state machine may be unavailable or too complex to explain.

References (25)