DeepSWIP: Quotient-WMC Counterfactuals for Neural Probabilistic Logic Programs
Summary
DeepSWIP introduces a single-world counterfactual semantics for DeepProbLog programs, addressing the need for causal reasoning beyond associational inference in neurosymbolic systems. This new approach leverages neural materialization to convert fixed-context neural predicates into standard ProbLog choices, then applies Single World Intervention Programs (SWIPs) to compute counterfactuals via weighted model counting (WMC) over a single transformed program. Operating under finite grounding and unique-supported-model assumptions, DeepSWIP achieves exact results relative to the learned materialized FCM. The method's quotient-WMC form clarifies active neural probabilities, explaining phenomena like intervention cleaning and calibration sensitivity. Experiments on MPI3D validated the transformation against 12,000 queries, demonstrating a 2.14x inference speedup compared to DeepTwin. Further, a SUMO HOV experiment revealed that neural calibration degradation biases plug-in estimates, a bias largely mitigated by a correctly scoped randomized-policy AIPW estimator for population mean and ATE estimands.
Key takeaway
For AI Engineers developing neurosymbolic systems requiring causal reasoning, DeepSWIP offers a robust method for exact single-world counterfactuals in DeepProbLog. You should consider integrating this approach to achieve 2.14x inference speedups and ensure accurate causal estimates, especially when neural calibration issues might otherwise bias your plug-in models. Evaluate the randomized-policy AIPW estimator to mitigate first-order bias in population mean and ATE estimands.
Key insights
DeepSWIP enables exact single-world counterfactual reasoning in neurosymbolic DeepProbLog programs via a novel WMC transformation.
Principles
- Quotient-WMC identifies active neural probabilities.
- Neural calibration degradation biases plug-in estimates.
- Randomized-policy AIPW reduces first-order bias.
Method
DeepSWIP reduces neural predicates to ProbLog choices, applies SWIPs, and computes counterfactuals using weighted model counting on a single transformed program.
In practice
- Use DeepSWIP for causal inference in DeepProbLog.
- Employ randomized-policy AIPW for unbiased estimates.
- Leverage neural materialization for predicate conversion.
Topics
- DeepSWIP
- Neurosymbolic AI
- Counterfactual Reasoning
- Probabilistic Logic Programs
- Causal Inference
- Weighted Model Counting
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.