Single-world counterfactual reasoning in ProbLog
Saimun Habib, Vaishak Belle, Fengxiang He
Key points
From the paper's conclusion- We formally prove the correctness of our approach, which avoids the additional cross-world independence commitments induced by duplicated twin-network representations and is consistent with conditional independencies, showing that the resulting marginal probabilities match the counterfactual distributions of the underlying structural causal model across a broad class of domains.
Abstract
Probabilistic logic programming (PLP) languages such as ProbLog naturally support reasoning under uncertainty while maintaining a declarative and interpretable framework. Counterfactual reasoning (i.e. answering ‘what if’ questions) is important for explanation, diagnosis and causal reasoning in probabilistic logic models. However, integrating this capability into PLP can be computationally prohibitive. This paper addresses this challenge by proposing an efficient programme transformation for counterfactuals as single-world intervention programmes in ProbLog. By systematically splitting ProbLog clauses into observed and fixed components relevant to a counterfactual, we obtain a transformation with the same worst-case asymptotic construction order as existing methods but a strictly smaller representation under the stated assumptions. We formally prove the correctness of our approach, which avoids the additional cross-world independence commitments induced by duplicated twin-network representations and is consistent with conditional independencies, showing that the resulting marginal probabilities match the counterfactual distributions of the underlying structural causal model across a broad class of domains. Our method achieves a 35% reduction in inference time versus existing methods in extensive experiments. This work makes complex counterfactual reasoning more computationally tractable and reliable, providing a crucial step towards developing more robust and explainable AI systems. The code is at https://github.com/EVIEHub/swip.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Optimal Correction Sets for Provable Redress of Contestable Causal DiscoveryarXiv · 2026
- Optimal Probabilistic Answer Set Programming: Complexity and ImplementationsarXiv · 2026
- COUNTERMEM: World-Model Verified Counter-Factual Memory for Language AgentsarXiv · 2026
- CORE: Conflict-Oriented Reasoning Elimination for Verifiable Language-Model SearcharXiv · 2026
- Prosecutor: Bayesian Counterfactual Fault LocalizationProceedings of the ACM on Programming Languages · 2026
- Exploring the Logic of Counterfactuals for Explaining Algorithmic DecisionsTopoi · 2026