Skip to content
Robotics.world

Research

Sufficient and Necessary Causal Explanations for the Analysis of Autonomous Systems

When an autonomous system such as a neural-network-controlled car crashes, engineers want explanations, but they may want two different things: a description of conditions that are enough to recreate…

The paper’s first page · arXiv:2610.29724
arXiv
2610.29724 · Preprint · not peer-reviewed
Published
2026-10-21
Authors
Tom Yaacov, Khen Elimelech, Hana Chockler, Moshe Y. Vardi

In plain words

When an autonomous system such as a neural-network-controlled car crashes, engineers want explanations, but they may want two different things: a description of conditions that are enough to recreate the crash, or a description of what must be changed so the crash does not happen.

AI summary

Overview

Research area: Explainable AI (XAI) and failure analysis for autonomous systems, formalized through the framework of actual causality.

Technical level: Advanced. The paper builds on formal causal models, interventions, and the "degree of responsibility" from the actual-causality literature, though its central idea (two different questions you can ask about a failure) is easy to state in plain language.

Scope: The paper argues that failure explanations serve two distinct purposes — reproducing a failure and avoiding it — shows that the existing "sufficient explanation" formalism only serves the first, introduces a dual "necessary explanation" formalism for the second, and provides a scalable responsibility-guided algorithm with simulator-based evaluations.

What This Paper Is About

When an autonomous system such as a neural-network-controlled car crashes, engineers want explanations, but they may want two different things: a description of conditions that are enough to recreate the crash, or a description of what must be changed so the crash does not happen. Prior causal-explanation work for cyber-physical systems formalized only the first kind, called sufficient explanations, which the authors argue is the wrong tool for repair. This paper introduces necessary explanations — minimal sets of scene elements whose removal changes the outcome — places them in the same actual-causality framework, and gives an efficient approximation algorithm for computing them.

Key Contributions

  1. A conceptual split of explanation objectives. The authors separate outcome reproduction (understanding what is enough to make the failure happen again) from outcome avoidance (understanding what must be changed to prevent it), and argue that neither objective's explanation can be deduced from the other.

  2. The definition of necessary explanations. A necessary explanation is a minimal subset of the scene's elements such that removing them changes the outcome, formalized as two conditions (EX1 and EX2), mirroring the structure of the existing sufficient-explanation definition but intervening in the opposite direction.

  3. A scalable generation algorithm. Because exact computation of these explanations is intractable as the number of inputs grows, the authors present an approximation algorithm that samples random interventions, estimates each element's degree of responsibility, ranks elements, greedily builds a candidate explanation, then minimizes it. The algorithm is guaranteed to return a valid necessary explanation regardless of how accurate the responsibility estimate is.

  4. An empirical study against non-causal baselines. The method is evaluated on two driving simulators, and necessary explanations are used as a targeted counterfactual generator, compared against DeCaF (a model-learning counterfactual method) and a random-search baseline.

Main Findings

  • Necessity and sufficiency genuinely differ. In the paper's illustrated crash scene, obstacles 3, 5, and 6 form a sufficient explanation because they alone reproduce the crash. Obstacle 3 is nevertheless not necessary, since removing it alone does not change the outcome — obstacles 1, 5, and 6 also form a sufficient explanation. Conversely, obstacles 1 and 3 together form a necessary explanation even though they are not sufficient to reproduce the crash. The authors also note that removing the obstacle the car actually crashes into clearly avoids that crash but is not an interesting explanation.

  • Responsibility-guided search uses fewer simulations than exhaustive search everywhere tested. The evaluation measures computational effort as the number of simulation runs. Across all environments and obstacle counts (15 to 19 obstacles), the responsibility-guided approach required fewer runs than exhaustive search. Illustrative values from the reported table: on LiteRacer's Sin-SN track with 19 obstacles, 2816 runs for exhaustive search versus 2076 for the guided method; on Seg-LN with 18 obstacles, 447 versus 97; on Seg-LW with 18 obstacles, 264 versus 60.

  • The advantage is larger in LiteRacer than in MetaDrive. The authors state the magnitude of improvement is more pronounced in LiteRacer, and that in some MetaDrive configurations the guidance from responsibility ranking is insufficient to fully offset the extra simulation budget needed to estimate it. For example, on MetaDrive's Straight track with 17 obstacles the gap is 1601 versus 1213 runs, and with 15 obstacles 761 versus 573.

  • Counterfactual validity is perfect in LiteRacer for the proposed method. At a budget of 400 simulation runs, both the necessary-explanation approach and the random baseline achieved a 100% validity rate across all LiteRacer settings, while DeCaF failed in several cases (values ranging from .70 to 1.0 in the reported table).

  • The proposed method is best on MetaDrive counterfactuals. No method achieved perfect success in MetaDrive. The necessary-explanation approach consistently achieved the highest validity rate: on Curve across 15–19 obstacles it reported .85, .95, 1.0, .90, and 1.0; on Straight .75, .90, .80, .75, and .85; on Mixed .75, .90, 1.0, .95, and .95. DeCaF on Straight reported .40, .45, .65, .40, and .35, and the random baseline .45, .55, .55, .60, and .40.

  • Similarity and timing results are not available in the reviewed text. The paper states it measures similarity by Euclidean distance and also reports efficiency in generation time, and references Table III for average counterfactual distance, but the supplied content is truncated at that point, so those specific figures are not reported here.

Methodology in Plain English

The authors model a crash scene as a set of variables, one per obstacle, plus a single yes/no outcome variable asking whether a modified scene still produces the same outcome as the original. Each obstacle can be switched off (intervened on), and the system is treated purely as a black box that can be re-run in a simulator.

Within this model, a sufficient explanation is found by starting from an empty track, switching on a minimal set of obstacles, and checking whether the crash comes back. A necessary explanation is found by starting from the full original scene, removing a minimal set of obstacles, and checking whether the crash disappears. Both are defined with an explicit minimality condition.

Since checking every subset is infeasible, the algorithm instead samples a fixed number (m) of random interventions on obstacles that are movable and were observed during the run. Any intervention that changed the outcome contributes its minimal subsets to a scoring pass, where each obstacle's estimated responsibility is updated to the maximum of its current value and 1/|S| for the subset S it belongs to. Obstacles are then sorted by this score, and the algorithm tries removing the top-ranked obstacle, then the top two, and so on, until the outcome changes. Finally, it searches subsets of that candidate set to shrink it to a truly minimal explanation. Because the guarantee comes from the final minimization step rather than from the ranking, a poor responsibility estimate only costs extra simulations, not correctness.

Experiments used LiteRacer and MetaDrive with their default neural-network controllers. LiteRacer had three track shapes (Sinusoidal, Segmented, Lane Shift), each in four configurations combining short/long and narrow/wide tracks; MetaDrive had Curve, Straight, and Mixed tracks. For each configuration the authors generated 100 failing examples with 15 to 19 obstacles (20 examples per obstacle count), keeping only examples where every obstacle was observed by the vehicle, and fixing the obstacle that was actually hit so the algorithm had to find less trivial necessities. The responsibility sample budget was 50 runs; lower and higher budgets gave similar but slightly worse results.

For counterfactual generation, one third of the simulation budget goes to finding necessary explanations and the rest to perturbing elements drawn from a randomly chosen explanation while leaving other elements untouched. This is compared with DeCaF (using the variant with the best success rate: an M5 model tree plus KD-Tree nearest-neighbor search) and with random search, under budgets of 100, 200, 300, and 400 simulation runs. Experiments ran on an Intel Xeon Platinum 8468 with 64GB RAM, and the code is publicly released.

Why This Matters

For research, the paper supplies a missing half of a formal framework: sufficiency and necessity are shown to be duals within one causal setting, which gives future work a common vocabulary for comparing explanation methods that were previously described in unrelated terms (sensitivity analysis versus counterfactual generation).

Real-world applications:

  • Post-incident investigation of autonomous vehicles. Distinguishing which scene elements merely reproduce a crash from which ones must be altered to prevent it changes how incident reports translate into fixes.
  • Scenario-based safety testing. Sufficient explanations support failure amplification — generating many new failing scenes by preserving a small sufficient set and varying the rest — which is valuable when failures are rare.
  • Targeted repair and intervention. A necessary explanation tells an operator which environmental elements to change with minimal effort, rather than perturbing the whole scene.
  • Debugging black-box third-party controllers. Because the method only needs simulation access and no internal model, it applies to controllers whose internals are unavailable.

For industry, the practical claim is efficiency: the responsibility-guided search reduces the number of simulator runs needed relative to exhaustive search, and the counterfactual study shows higher validity rates than a learned-model counterfactual method at a fixed simulation budget. Both map onto the cost structure that autonomy teams actually face, where simulator time and validation throughput are the binding constraints.

Future Directions

  • Reduce the cost of estimating responsibility in harder simulators. The authors observe that in some MetaDrive configurations the ranking guidance did not fully pay for the simulation budget spent estimating it; closing that gap, or adapting the budget per scenario, is a natural next step.
  • Extend beyond obstacle presence/absence. The causal model here uses a Boolean mask over obstacles with an otherwise fixed scene; extending the intervention space to continuous parameters such as positions and track geometry is a logical generalization that the paper does not report.
  • Characterize when necessity and sufficiency diverge sharply. The paper shows the two can disagree, but does not report a systematic account of which environment properties make multiple sufficient explanations common — a question its framework is well positioned to answer.
  • Use necessary explanations inside larger repair loops. The counterfactual experiment uses one third of the budget for explanations and the rest for perturbation; how to allocate that split optimally, and whether explanations can be reused across related failing scenes, is left open.

Target Audience

Researchers and graduate students working on explainable AI, formal methods, and safety validation for cyber-physical and autonomous systems — particularly those already familiar with actual causality or with simulation-based falsification. It is also relevant to practitioners in autonomous driving and robotics safety who need to convert simulator failures into actionable, minimal repair targets, and who can tolerate the formal definitions in exchange for a black-box-compatible method. Readers wanting a purely empirical benchmarking paper will find the contribution is primarily conceptual and formal, with the experiments serving to validate feasibility rather than to establish state-of-the-art performance across the board.

Authors’ abstract

Understanding failures of autonomous systems is challenging, particularly when their behavior depends on black-box components such as neural networks. In this work, we make a distinction between two objectives of failure analysis: reproduction, which seeks to identify conditions sufficient to reproduce an observed failure, and avoidance, which seeks to identify the changes required to prevent it. Previous work on causal explanations of system failures is based on the concept…

The full abstract on arXiv
Read the original paper

Related papers