TL;DR
Traditional causal frameworks struggle with "preemption" scenarios, where one event blocks another from causing an outcome. This paper demonstrates that explicitly modeling control flow variables within Judea Pearl’s structural equations framework cleanly resolves these edge cases. The authors introduce Control Flow Preserving Sufficient Cause (CFPSC), a simplified definition of actual causation that accurately handles 34 classic causality puzzles without relying on complex, ad-hoc secondary notions like "normality" or "defaults."
What Problem Does This Paper Address?
When we ask what actually caused an event to happen (e.g., "Did a security breach occur because the admin left a port open?"), we usually rely on counterfactual reasoning: Had event A not occurred, would event B still have happened?
While intuitive, this "but-for" test breaks down in preemption scenarios. Consider the classic philosophy example: Suzy and Billy both throw stones at a bottle. Suzy throws slightly faster; her stone hits and shatters the bottle. Billy’s stone arrives a moment later at empty space. If Suzy hadn't thrown, Billy’s stone would have shattered the bottle anyway. Therefore, a naive counterfactual test claims Suzy didn't cause the shatter—an obviously incorrect conclusion.
To fix this, modern frameworks (like Halpern & Pearl’s actual causation) introduce complex secondary concepts like "structural contingencies" and "normality defaults" to mathematically ignore Billy's throw. However, these fixes are often ad-hoc and struggle with data-dependent scenarios. This paper addresses this gap, focusing specifically on how causality interacts with control flow (the execution path of events) in programs and distributed systems, where order and execution paths are paramount for security and accountability.
Methods
The authors propose that preemption is primarily a modeling problem rather than a definitional one. They introduce a formal method to make control flow explicit within Pearl’s structural equations framework:
- Causal Models with Control Flow: They partition variables into two sets: data variables (the actual content or choices) and control flow variables (binary $\top/\bot$ flags indicating whether a specific execution path or event was reached).
- Control Flow Preserving Sufficient Cause (CFPSC): Instead of evaluating counterfactuals by changing any variable arbitrarily, CFPSC restricts interventions strictly to data variables. Crucially, it forces the counterfactual analysis to respect the actual control flow path that occurred in reality. Any control flow path that was inactive in the real scenario is locked to inactive ($\bot$) during counterfactual testing.
- Duality Mapping: The authors mathematically prove a duality theorem showing how their definition of a sufficient cause (what guarantees an outcome) maps directly to a dual definition of a necessary cause (what was required for an outcome) under control flow constraints.
Datasets
The paper evaluates its framework using a newly compiled benchmark suite of 34 classic causality examples from existing literature. This includes:
- Standard puzzles like the Forest Fire (conjunctive vs. disjunctive causes).
- Difficult preemption cases like Suzy & Billy (late preemption) and Early Preemption.
- Highly debated edge cases like Bogus Prevention and Weslake’s Careful Poisoning.
- Distributed system style problems like Vote 5:2, Switch, and Fancy Lamp.
The complete source code for this benchmark suite is publicly available on GitHub at rkunnema/causation-benchmark.
Key Insights and Ideas
- Control Flow as a First-Class Citizen: Preemption happens because one event alters the timeline or execution path of another. By explicitly modeling these paths as variables, the framework naturally "remembers" that Billy's stone arrived too late, eliminating the need for external "normality" rules.
- The Danger of Unconstrained Contingencies: The authors show that Halpern and Pearl's structural contingencies can produce highly unintuitive results when applied to data flow. In a game-theoretic example ("Battle of the Sexes"), traditional frameworks identify a reminder note as a cause for an action even when the actors would have taken that action regardless of the note. CFPSC avoids this by locking the control flow.
- Sufficiency Over Necessity for Systems: For computer security and forensics, determining sufficient causes (which set of vulnerabilities or actions was enough to trigger a breach) is often more useful than finding necessary causes, which can be masked by system redundancies.
Key Results
The authors tested CFPSC against Definition 4 (standard sufficient cause) and Definition 7 (Halpern’s updated actual causation framework) across all 34 benchmark cases:
- Zero Spurious Causes: CFPSC successfully isolated the correct intuitive causes in notoriously difficult examples like Bogus Prevention (where an assassin refrains from poisoning coffee, but a bodyguard adds an antidote anyway). Traditional frameworks mistakenly label the antidote as a cause for survival; CFPSC correctly dismisses it because the "poison branch" was never executed.
- Uniform Elegance: Unlike previous iterations of actual causation that required tweaking equations or adding "normality widgets" for different examples, CFPSC achieved correct results across all 34 diverse examples using a single, unaltered definition.
Limitations and Future Work
- Modeling Overhead: The framework relies on the assumption that the human modeler can accurately translate a real-world scenario into explicit control flow equations. While straightforward for software code or network protocols, it remains an "art" for messy, real-world human interactions.
- Bridging to Formal Verification: The authors note that future work should focus on automatically compiling standard computer science models (like Petri nets, Kripke structures, or process calculi) directly into these control-flow-aware causal models. This would allow automated forensic tools to derive exact causal accountability directly from system logs.
Summary updated