Causal Structure Learning Assumptions Shape Counterfactual Safety: Expert-Guided Constraints vs. Data-Driven DAGs with Probabilistic Logic Twin Networks †
Abstract
1. Introduction
2. Related Work
3. Learning Algorithms and Common Assumptions for Causal Structure Learning
3.1. Hill Climbing and Bayesian Information Criterion
3.2. Max-Min Parents and Children
3.3. PC-Stable Algorithm
3.4. Common Assumptions
4. Methodology
4.1. Testbed and Datasets
4.2. Learning Causal Bayesian Networks
4.3. Modeling Twin Networks in Probabilistic Logic
4.4. Querying Counterfactual Probabilities
- Assert the interventional action;
- Construct a reduced program containing only the atoms and rules relevant to the query and evidence, represented internally as an and/or graph;
- Ground facts and rules by instantiating all variables so that the program becomes propositional (in the present work, all atoms are already grounded);
- Apply Clark’s completion [52], which converts the logic program into a set of logical equivalences under the negation as failure assumption (i.e., atoms not provable from the program are treated as false);
- Translate the resulting program into a propositional formula in conjunctive normal form (CNF);
4.5. A Simple Example
| Listing 1. ProbLog encoding of the simple causal Bayesian network. | |
| 1 | %%% Error terms |
| 3 | 0.4618446::u1. |
| 4 | 0.3314485::u2(cruise); 0.6685515::u2(keep). |
| 5 | 0.9371515::u3(cruise); 0.0628485::u3(keep). |
| 6 | 0.5765529::u4. |
| 7 | 0.0009990::u5. |
| 8 | 0.0838291::u6. |
| 9 | 0.0009990::u7. |
| 11 | %%% Rules |
| 13 | free_NE :- u1. |
| 15 | action(V) :- u2(V), \+ free_NE. |
| 16 | action(V) :- u3(V), free_NE. |
| 18 | latent_collision :- u4, action(cruise), \+ free_NE. |
| 19 | latent_collision :- u5, action(keep), \+ free_NE. |
| 20 | latent_collision :- u6, action(cruise), free_NE. |
| 21 | latent_collision :- u7, action(keep), free_NE. |
5. Evaluation and Results
5.1. Sampling Procedure and Counterfactual Querying
- Select a state–action pair from the finite –action space (of size 768) for testing. Denote this pair as , where
- Remove all examples from whose component matches to prevent data leakage. This yields a smaller dataset, denoted , used for training and containing triplets:where .
- Train four independent cBNs using constrained HC+BIC, (unconstrained) HC+BIC, MMPC+HC+BIC, and PC-Stable on the same sample , as described in Section 4.2, and construct their corresponding PLTNs as presented in Section 4.3.
- Append to to obtain the tripletThe assignment simulates a potential crash in the observed –action scenario as alerted by the forward collision warning submodule.
- Extend the previous triplet with the variable :
- Instantiate action_i with each value in the setto form a unique query group of six quartets. Each quartet in the query group shares the same components, except for the intervention in .
- Each quartet in the query group is independently presented to the three PLTNs for counterfactual querying. In each model, the goal is to identify which intervention action minimizes the probability of collision. Minimization is formalized aswhere denotes the set of one or more intervention actions that minimize the probability of a potential collision within the group and for a given PLTN instance.
5.2. Examples of Learned DAGs
5.3. Counterfactual Safety Results Across the State–Action Space
5.4. Sensitivity Analysis
5.5. Discussion
6. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| PLTN | Probabilistic Logic Twin Network |
| TN | Twin Network |
| cBN | Causal Bayesian Network |
| DAG | Directed Acyclic Graph |
| HC | Hill Climbing |
| BIC | Bayesian Information Criterion |
| AIC | Akaike Information Criterion |
| MMPC | Max-Min Parents and Children |
| PC-Stable | Peter–Clark Stable algorithm |
| FCI | Fast Causal Inference |
| CI | Conditional Independence |
| CPC | Candidate Parents and Children |
| MLE | Maximum Likelihood Estimation |
| CNF | Conjunctive Normal Form |
| sd-DNNF | Smooth Deterministic Decomposable Negation Normal Form |
| LOSO | Leave-One-State-Out |
| ADs | Annotated Disjunctions |
| MI | Mutual Information |
| MI-SH | Mutual Information (Shrinkage Estimator) |
| Chi-Squared Test | |
| restart | Number of Random Restarts (HC) |
| perturb | Perturbation Strength (HC) |
| maxp | Maximum Number of Parents (HC) |
| alpha | Significance Level for CI Tests |
| max.sx | Maximum Conditioning Set Size |
References
- Li, W.; Wang, B.; Li, T.; Ma, Y.; Jin, H.; Zhao, J.; Xue, Z.; Su, N.; He, Y.; Shi, J.; et al. A Causal and interpretable machine learning framework for postcranioplasty risk prediction and surgical decision support. npj Digit. Med. 2026, 9, 184. [Google Scholar] [CrossRef]
- Yacoby, Y.; Green, B.; Griffin, C.L., Jr.; Doshi-Velez, F. “If it didn’t happen, why would I change my decision?”: How Judges Respond to Counterfactual Explanations for the Public Safety Assessment. In Proceedings of the AAAI Conference on Human Computation and Crowdsourcing, Pittsburgh, PA, USA, 16–19 October 2022; Volume 10, pp. 219–230. [Google Scholar] [CrossRef]
- He, Y.; Payne, S.C.; Yao, X.; Smallman, R. Improving workplace safety by thinking about what might have been: A first look at the role of counterfactual thinking. J. Saf. Res. 2020, 72, 153–164. [Google Scholar] [CrossRef] [PubMed]
- Sokol, K.; Flach, P. Counterfactual explanations of machine learning predictions: Opportunities and challenges for AI safety. In Proceedings of the 2019 AAAI Workshop on Artificial Intelligence Safety, SafeAI 2019, CEUR Workshop Proceedings, Honolulu, HI, USA, 27 January 2019. [Google Scholar]
- Bottou, L.; Peters, J.; Quiñonero-Candela, J.; Charles, D.X.; Chickering, D.M.; Portugaly, E.; Ray, D.; Simard, P.; Snelson, E. Counterfactual reasoning and learning systems: The example of computational advertising. J. Mach. Learn. Res. 2013, 14, 3207–3260. [Google Scholar]
- Zhang, L. Causal transformer and counterfactual reasoning: Deconstruction analysis of the impact of teaching strategies on academic achievement. Int. J. Comput. Syst. Eng. 2026, 9, 17. [Google Scholar] [CrossRef]
- Dandl, S.; Hofheinz, A.; Binder, M.; Bischl, B.; Casalicchio, G. Counterfactuals: An R package for counterfactual explanation methods. J. Stat. Softw. 2025, 115, 1–48. [Google Scholar] [CrossRef]
- Youssef, P.; Seifert, C.; Schlötterer, J. LLMs for generating and evaluating counterfactuals: A comprehensive study. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, FL, USA, 12–16 November 2024; pp. 14809–14824. [Google Scholar]
- Prado-Romero, M.A.; Prenkaj, B.; Stilo, G.; Giannotti, F. A survey on graph counterfactual explanations: Definitions, methods, evaluation, and research challenges. ACM Comput. Surv. 2024, 56, 1–37. [Google Scholar] [CrossRef]
- Molak, A. Causal Inference and Discovery in Python: Unlock the Secrets of Modern Causal Machine Learning with DoWhy, EconML, PyTorch and More; Packt Publishing Ltd.: Birmingham, UK, 2023. [Google Scholar]
- Balke, A.; Pearl, J. Probabilistic Evaluation of Counterfactual Queries. In Probabilistic and Causal Inference: The Works of Judea Pearl; Association for Computing Machinery: New York, NY, USA, 2022; pp. 237–254. [Google Scholar] [CrossRef]
- Vuković, M.; Thalmann, S. Causal discovery in manufacturing: A structured literature review. J. Manuf. Mater. Process. 2022, 6, 10. [Google Scholar] [CrossRef]
- Glymour, C.; Zhang, K.; Spirtes, P. Review of causal discovery methods based on graphical models. Front. Genet. 2019, 10, 524. [Google Scholar] [CrossRef]
- Malinsky, D.; Danks, D. Causal discovery algorithms: A practical guide. Philos. Compass 2018, 13, e12470. [Google Scholar] [CrossRef]
- Gururaghavendran, R.; Murray, E.J. Can algorithms replace expert knowledge for causal inference? A case study on novice use of causal discovery. Am. J. Epidemiol. 2025, 194, 1399–1409. [Google Scholar] [CrossRef]
- Huber, M. An introduction to causal discovery. Swiss J. Econ. Stat. 2024, 160, 14. [Google Scholar] [CrossRef]
- Nogueira, A.R.; Pugnana, A.; Ruggieri, S.; Pedreschi, D.; Gama, J. Methods and tools for causal discovery and causal inference. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2022, 12, e1449. [Google Scholar] [CrossRef]
- Dawid, A.P. Beware of the DAG! In Proceedings of the Causality: Objectives and Assessment, PMLR, Whistler, BC, Canada, 12 December 2008; pp. 59–86. [Google Scholar]
- Zanga, A.; Ozkirimli, E.; Stella, F. A survey on causal discovery: Theory and practice. Int. J. Approx. Reason. 2022, 151, 101–129. [Google Scholar] [CrossRef]
- Emezue, C.C.; Drouin, A.; Deleu, T.; Bauer, S.; Bengio, Y. Benchmarking Bayesian Causal Discovery Methods for Downstream Treatment Effect Estimation. In Proceedings of the ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling, Honolulu, HI, USA, 28 July 2023. [Google Scholar]
- Wang, L.; Huang, S.; Wang, S.; Liao, J.; Li, T.; Liu, L. A survey of causal discovery based on functional causal model. Eng. Appl. Artif. Intell. 2024, 133, 108258. [Google Scholar] [CrossRef]
- Jiao, L.; Wang, Y.; Liu, X.; Li, L.; Liu, F.; Ma, W.; Guo, Y.; Chen, P.; Yang, S.; Hou, B. Causal inference meets deep learning: A comprehensive survey. Research 2024, 7, 0467. [Google Scholar] [CrossRef] [PubMed]
- Luo, H.; Zhuang, F.; Xie, R.; Zhu, H.; Wang, D.; An, Z.; Xu, Y. A survey on causal inference for recommendation. Innovation 2024, 5, 100590. [Google Scholar] [CrossRef]
- Komanduri, A.; Wu, X.; Wu, Y.; Chen, F. From Identifiable Causal Representations to Controllable Counterfactual Generation: A Survey on Causal Generative Modeling. arXiv 2023, arXiv:2310.11011. [Google Scholar] [CrossRef]
- Guo, Z.; Wu, Z.; Xiao, T.; Aggarwal, C.; Liu, H.; Wang, S. Counterfactual learning on graphs: A survey. Mach. Intell. Res. 2025, 22, 17–59. [Google Scholar] [CrossRef]
- Kiesel, R.; Rückschloß, K.; Weitkämper, F. “What if?” in Probabilistic Logic Programming. Theory Pract. Log. Program. 2023, 23, 884–899. [Google Scholar] [CrossRef]
- Fierens, D.; Van den Broeck, G.; Renkens, J.; Shterionov, D.; Gutmann, B.; Thon, I.; Janssens, G.; De Raedt, L. Inference and Learning in Probabilistic Logic Programs using Weighted Boolean Formulas. Theory Pract. Log. Program. 2015, 15, 358–401. [Google Scholar] [CrossRef]
- Riguzzi, F. Foundations of Probabilistic Logic Programming; River Publishers: Gistrup, Denmark, 2023. [Google Scholar] [CrossRef]
- Chavira, M.; Darwiche, A. On probabilistic inference by weighted model counting. Artif. Intell. 2008, 172, 772–799. [Google Scholar] [CrossRef]
- Eiter, T.; Hecher, M.; Kiesel, R. aspmc: New frontiers of algebraic answer set counting. Artif. Intell. 2024, 330, 104109. [Google Scholar] [CrossRef]
- Nishiyama, D.; Castro, M.Y.; Maruyama, S.; Shiroshita, S.; Hamzaoui, K.; Ouyang, Y.; Rosman, G.; DeCastro, J.; Lee, K.H.; Gaidon, A. Discovering Avoidable Planner Failures of Autonomous Vehicles using Counterfactual Analysis in Behaviorally Diverse Simulation. In 2020 IEEE 23rd International Conference on Intelligent Transportation Systems (ITSC); IEEE Press: New York, NY, USA, 2020; pp. 1–8. [Google Scholar] [CrossRef]
- Kirfel, L.; MacCoun, R.; Icard, T.; Gerstenberg, T. Anticipating the Risks and Benefits of Counterfactual World Simulation Models. In Proceedings of the 2024 AAAI/ACM Conference on AI, Ethics, and Society, San Jose, CA, USA, 21–23 October 2024; p. 751. [Google Scholar]
- Li, M.; Liu, C.; Li, Z.; Liu, X.; Yu, G.; Du, B.; Shen, J.; Wu, Q. CFLight: Enhancing Safety with Traffic Signal Control through Counterfactual Learning. arXiv 2025, arXiv:2512.09368. [Google Scholar] [CrossRef]
- Pu, Q.; Xie, K.; Guo, H. Modeling interactive car-following behaviors of automated and human-driven vehicles in safety-critical events: A multi-agent state-space attention-enhanced framework. Accid. Anal. Prev. 2026, 229, 108447. [Google Scholar] [CrossRef]
- Pearl, J. Causality: Models, Reasoning and Inference, 2nd ed.; Cambridge University Press: New York, NY, USA, 2009. [Google Scholar] [CrossRef]
- Ruiz-Tagle, A.; Lopez-Droguett, E.; Groth, K.M. A novel probabilistic approach to counterfactual reasoning in system safety. Reliab. Eng. Syst. Saf. 2022, 228, 108785. [Google Scholar] [CrossRef]
- Heinze-Deml, C.; Maathuis, M.H.; Meinshausen, N. Causal Structure Learning. Annu. Rev. Stat. Its Appl. 2018, 5, 371–391. [Google Scholar] [CrossRef]
- Constantinou, A.C.; Guo, Z.; Kitson, N.K. The impact of prior knowledge on causal structure learning. Knowl. Inf. Syst. 2023, 65, 3385–3434. [Google Scholar] [CrossRef]
- Rodríguez, V.; Avilés, H.; Machucho, R.; Reyes, A.; Negrete, M.; Ramírez, G.; Petrilli, A.; Gracia, I.; De-La-Garza, G.; Rivera, K. Preventing Collisions in Self-driving Cars using Probabilistic Logic Counterfactual Reasoning. In Proceedings of the Workshop on Causal Discovery (CaDis), Instituto Nacional de Astrofísica, Óptica y Electrónica (INAOE), Montevideo, Uruguay, 12 November 2024; Available online: https://cadisworkshop.com.mx/wp-content/uploads/2024/11/preventing-collisions-in-self-driving-cars-using-probabilistic-logic-counterfactual-reasoning.pdf (accessed on 9 May 2026).
- Scutari, M.; Vitolo, C.; Tucker, A. Learning Bayesian networks from big data with greedy search: Computational complexity and efficient implementation. Stat. Comput. 2019, 29, 1095–1108. [Google Scholar] [CrossRef]
- Heckerman, D.; Meek, C.; Cooper, G. A Bayesian approach to causal discovery. In Innovations in Machine Learning: Theory and Applications; Springer: Berlin/Heidelberg, Germany, 2006; pp. 1–28. [Google Scholar] [CrossRef]
- Akaike, H. Information Theory and an Extension of the Maximum Likelihood Principle. In Breakthroughs in Statistics: Foundations and Basic Theory; Kotz, S., Johnson, N.L., Eds.; Springer: New York, NY, USA, 1992; pp. 610–624. [Google Scholar] [CrossRef]
- Tsamardinos, I.; Aliferis, C.F.; Statnikov, A. Time and sample efficient discovery of Markov blankets and direct causal relations. In Proceedings of the Ninth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Washington, DC, USA, 24–27 August 2003; pp. 673–678. [Google Scholar] [CrossRef]
- Edwards, D. Introduction to Graphical Modelling; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar] [CrossRef]
- Colombo, D.; Maathuis, M.H. Order-independent constraint-based causal structure learning. J. Mach. Learn. Res. 2014, 15, 3741–3782. [Google Scholar]
- Spirtes, P.; Glymour, C. An Algorithm for Fast Recovery of Sparse Causal Graphs. Soc. Sci. Comput. Rev. 1991, 9, 62–72. [Google Scholar] [CrossRef]
- Andersson, S.A.; Madigan, D.; Perlman, M.D. A characterization of Markov equivalence classes for acyclic digraphs. Ann. Stat. 1997, 25, 505–541. [Google Scholar] [CrossRef]
- R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2021. [Google Scholar]
- Scutari, M. Learning Bayesian Networks with the bnlearn R Package. J. Stat. Softw. 2010, 35, 1–22. [Google Scholar] [CrossRef]
- Le Cam, L. Maximum Likelihood: An Introduction. Int. Stat. Rev./Rev. Int. De Stat. 1990, 58, 153–171. [Google Scholar] [CrossRef]
- Dor, D.; Tarsi, M. A Simple Algorithm to Construct a Consistent Extension of a Partially Oriented Graph; Technicial Report R-185; Cognitive Systems Laboratory, UCLA: Los Angeles, CA, USA, 1992; Volume 45, Available online: https://api.semanticscholar.org/CorpusID:122949140 (accessed on 1 May 2026).
- Clark, K.L. Negation as Failure. In Logic and Data Bases; Gallaire, H., Minker, J., Eds.; Springer: Boston, MA, USA, 1978; pp. 293–322. [Google Scholar] [CrossRef]
- Darwiche, A.; Marquis, P. A knowledge compilation map. J. Artif. Intell. Res. 2002, 17, 229–264. [Google Scholar] [CrossRef]
- Kiesel, R.; Eiter, T. Knowledge compilation and more with SharpSAT-TD. In Proceedings of the 20th International Conference on Principles of Knowledge Representation and Reasoning, Rhodes, Greece, 2–8 September 2023. KR ’23. [Google Scholar] [CrossRef]
- Vlasselaer, J.; Kimmig, A.; Dries, A.; Meert, W.; De Raedt, L. Knowledge Compilation and Weighted Model Counting for Inference in Probabilistic Logic Programs. In Proceedings of the AAAI Workshop: Beyond NP, Phoenix, AZ, USA, 12 February 2016; Volume 101. [Google Scholar]
- Eiter, T.; Hecher, M.; Kiesel, R. aspmc: An Algebraic Answer Set Counter. In Proceedings of the ICLP Workshops, Porto, Portugal (virtual), 20–21 September 2021. [Google Scholar]
- Vennekens, J.; Verbaeten, S.; Bruynooghe, M. Logic programs with annotated disjunctions. In International Conference on Logic Programming; Springer: Berlin/Heidelberg, Germany, 2004; pp. 431–445. [Google Scholar] [CrossRef]






| Action | # of Non-Potential Collisions | # of Potential Collisions | Total |
|---|---|---|---|
| change_to_left | 40,308 | 289,809 | 330,117 |
| change_to_right | 39,814 | 294,459 | 334,273 |
| cruise | 617,930 | 175,429 | 793,359 |
| keep | 496,558 | 0 | 496,558 |
| swerve_left | 2883 | 0 | 2883 |
| swerve_right | 1681 | 0 | 1681 |
| Total | 1,199,174 | 759,697 | 1,958,871 |
| Training Percentage | Training Samples (Mean ± SD) | Samples Removed (Mean ± SD) |
|---|---|---|
| 1% | ||
| 50% | ||
| 100% |
| Action Label | Constrained HC+BIC | HC+BIC | MMPC+HC+BIC | PC-Stable | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 50% | 100% | 1% | 50% | 100% | 1% | 50% | 100% | 1% | 50% | 100% | ||||
| Safe | 1661 | 1731 | 1784 | 844 | 953 | 1253 | 603 | 2400 | 2400 | 984 | 1802 | 1924 | |||
| Unsafe | 0 | 0 | 0 | 0 | 0 | 0 | 280 | 2208 | 2208 | 107 | 37 | 37 | |||
| Total | 1661 | 1731 | 1784 | 844 | 953 | 1253 | 883 | 4608 | 4608 | 1091 | 1839 | 1961 | |||
| Constrained HC+BIC | ||||||||
| # of Optimal Actions | 1% | 50% | 100% | |||||
| Tied/Groups | Unsafe | Tied/Groups | Unsafe | Tied/Groups | Unsafe | |||
| 1 | 249/249 | 0 | 204/204 | 0 | 185/185 | 0 | ||
| 2 | 468/234 | 0 | 518/259 | 0 | 502/251 | 0 | ||
| 3 | 609/203 | 0 | 654/218 | 0 | 714/238 | 0 | ||
| 4 | 300/75 | 0 | 320/80 | 0 | 348/87 | 0 | ||
| 5 | 35/7 | 0 | 35/7 | 0 | 35/7 | 0 | ||
| 6 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| Total | 1661/768 | 0 | 1731/768 | 0 | 1784/768 | 0 | ||
| HC+BIC | ||||||||
| # of Optimal Actions | 1% | 50% | 100% | |||||
| Tied/Groups | Unsafe | Tied/Groups | Unsafe | Tied/Groups | Unsafe | |||
| 1 | 692/692 | 0 | 583/583 | 0 | 283/283 | 0 | ||
| 2 | 152/76 | 0 | 370/185 | 0 | 970/485 | 0 | ||
| 3 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 4 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 5 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 6 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| Total | 844/768 | 0 | 953/768 | 0 | 1253/768 | 0 | ||
| MMPC+HC+BIC | ||||||||
| # of Optimal Actions | 1% | 50% | 100% | |||||
| Tied/Groups | Unsafe | Tied/Groups | Unsafe | Tied/Groups | Unsafe | |||
| 1 | 702/702 | 255 | 0/0 | 0 | 0/0 | 0 | ||
| 2 | 82/41 | 1 | 0/0 | 0 | 0/0 | 0 | ||
| 3 | 51/17 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 4 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 5 | 0/0 | 0 | 0/0 | 0 | 0/0 | 0 | ||
| 6 | 48/8 | 24 | 4608/768 | 2208 | 4608/768 | 2208 | ||
| Total | 883/768 | 280 | 4608/768 | 2208 | 4608/768 | 2208 | ||
| PC-Stable | ||||||||
| # of Optimal Actions | 1% | 50% | 100% | |||||
| Tied/Groups | Unsafe | Tied/Groups | Unsafe | Tied/Groups | Unsafe | |||
| 1 | 601/601 | 0 | 136/136 | 0 | 93/93 | 0 | ||
| 2 | 244/122 | 0 | 620/310 | 0 | 588/294 | 0 | ||
| 3 | 24/8 | 0 | 705/235 | 0 | 825/275 | 0 | ||
| 4 | 0/0 | 0 | 276/69 | 0 | 348/87 | 0 | ||
| 5 | 0/0 | 0 | 30/6 | 0 | 35/7 | 0 | ||
| 6 | 222/37 | 107 | 72/12 | 37 | 72/12 | 37 | ||
| Total | 1091/768 | 107 | 1839/768 | 37 | 1961/768 | 37 | ||
| Action | Constrained HC+BIC | HC+BIC | MMPC+HC+BIC | PC-Stable | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1% | 50% | 100% | 1% | 50% | 100% | 1% | 50% | 100% | 1% | 50% | 100% | ||||
| change_to_left | 80 | 80 | 80 | 0 | 0 | 0 | 283 | 768 | 768 | 37 | 38 | 32 | |||
| change_to_right | 0 | 80 | 80 | 0 | 0 | 0 | 67 | 768 | 768 | 37 | 90 | 92 | |||
| cruise | 320 | 320 | 320 | 0 | 0 | 0 | 9 | 768 | 768 | 39 | 327 | 327 | |||
| keep | 558 | 529 | 539 | 287 | 287 | 287 | 92 | 768 | 768 | 628 | 592 | 624 | |||
| swerve_left | 353 | 410 | 435 | 20 | 98 | 272 | 319 | 768 | 768 | 230 | 497 | 568 | |||
| swerve_right | 350 | 312 | 330 | 57 | 64 | 1 | 113 | 768 | 768 | 120 | 295 | 318 | |||
| Total | 1661 | 1731 | 1784 | 844 | 953 | 1253 | 883 | 4608 | 4608 | 1091 | 1839 | 1961 | |||
| Constrained HC+BIC | ||
| Training time (mean ± SD, s) | Testing time (mean ± SD, s) | |
| 1% | ||
| 50% | ||
| 100% | ||
| HC+BIC | ||
| Training time (mean ± SD, s) | Testing time (mean ± SD, s) | |
| 1% | ||
| 50% | ||
| 100% | ||
| MMPC+HC+BIC | ||
| Training time (mean ± SD, s) | Testing time (mean ± SD, s) | |
| 1% | ||
| 50% | ||
| 100% | ||
| PC-Stable | ||
| Training time (mean ± SD, s) | Testing time (mean ± SD, s) | |
| 1% | ||
| 50% | ||
| 100% | ||
| Constrained HC+BIC | ||
| Logic rules (mean ± SD) | latent_collision rules (mean ± SD) | |
| 1% | ||
| 50% | ||
| 100% | ||
| HC+BIC | ||
| Logic rules (mean ± SD) | latent_collision rules (mean ± SD) | |
| 1% | ||
| 50% | ||
| 100% | ||
| MMPC+HC+BIC | ||
| Logic rules (mean ± SD) | latent_collision rules (mean ± SD) | |
| 1% | ||
| 50% | ||
| 100% | ||
| PC-Stable | ||
| Logic rules (mean ± SD) | latent_collision rules (mean ± SD) | |
| 1% | ||
| 50% | ||
| 100% | ||
| Constrained HC+BIC | ||||||||
| Config. label | Parameters | |||||||
| restart | perturb | maxp | score | Safe actions | Unsafe actions | Total actions | N | |
| Baseline | 0 | 1 | ∞ | BIC | 2.26 ± 1.00 | 0.00 ± 0.00 | 2.26 ± 1.00 | 78 |
| C1 | 5 | 1 | ∞ | BIC | 2.27 ± 1.02 | 0.00 ± 0.00 | 2.27 ± 1.02 | 78 |
| C2 | 10 | 1 | ∞ | BIC | 2.28 ± 1.01 | 0.00 ± 0.00 | 2.28 ± 1.01 | 78 |
| C3 | 0 | 1 | 3 | BIC | 2.33 ± 0.75 | 0.00 ± 0.00 | 2.33 ± 0.75 | 78 |
| C4 | 0 | 1 | 5 | BIC | 2.36 ± 1.10 | 0.00 ± 0.00 | 2.36 ± 1.10 | 78 |
| C5 | 0 | 2 | ∞ | BIC | 2.26 ± 1.00 | 0.00 ± 0.00 | 2.26 ± 1.00 | 78 |
| C6 | 0 | 1 | ∞ | AIC | 2.26 ± 1.00 | 0.00 ± 0.00 | 2.26 ± 1.00 | 78 |
| HC+BIC | ||||||||
| Config. label | Parameters | |||||||
| restart | perturb | maxp | score | Safe actions | Unsafe actions | Total actions | N | |
| Baseline | 0 | 1 | ∞ | BIC | 1.14 ± 0.35 | 0.00 ± 0.00 | 1.14 ± 0.35 | 78 |
| C1 | 5 | 1 | ∞ | BIC | 1.13 ± 0.34 | 0.00 ± 0.00 | 1.13 ± 0.34 | 78 |
| C2 | 10 | 1 | ∞ | BIC | 1.14 ± 0.35 | 0.00 ± 0.00 | 1.14 ± 0.35 | 78 |
| C3 | 0 | 1 | 3 | BIC | 1.60 ± 0.49 | 0.00 ± 0.00 | 1.60 ± 0.49 | 78 |
| C4 | 0 | 1 | 5 | BIC | 1.14 ± 0.35 | 0.00 ± 0.00 | 1.14 ± 0.35 | 78 |
| C5 | 0 | 2 | ∞ | BIC | 1.14 ± 0.35 | 0.00 ± 0.00 | 1.14 ± 0.35 | 78 |
| C6 | 0 | 1 | ∞ | AIC | 1.14 ± 0.35 | 0.00 ± 0.00 | 1.14 ± 0.35 | 78 |
| MMPC+HC+BIC | ||||||||
| Config. label | Parameters | |||||||
| alpha | max.sx | test | Safe actions | Unsafe actions | Total actions | N | ||
| Baseline | 0.05 | 3 | MI | 3.04 ± 0.86 | 2.83 ± 0.76 | 5.87 ± 0.80 | 78 | |
| C1 | 0.01 | 3 | MI | 3.04 ± 0.86 | 2.83 ± 0.76 | 5.87 ± 0.80 | 78 | |
| C2 | 0.10 | 3 | MI | 3.04 ± 0.86 | 2.83 ± 0.76 | 5.87 ± 0.80 | 78 | |
| C3 | 0.05 | 2 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C4 | 0.05 | 4 | MI | 1.97 ± 1.47 | 1.65 ± 1.36 | 3.63 ± 2.51 | 78 | |
| C5 | 0.01 | 2 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C6 | 0.05 | 3 | 3.04 ± 0.86 | 2.83 ± 0.76 | 5.87 ± 0.80 | 78 | ||
| PC-Stable | ||||||||
| Config. label | Parameters | |||||||
| alpha | max.sx | test | Safe actions | Unsafe actions | Total actions | N | ||
| Baseline | 0.01 | NULL | MI | 2.26 ± 0.86 | 0.10 ± 0.52 | 2.36 ± 1.10 | 78 | |
| C1 | 0.05 | 3 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C2 | 0.01 | 3 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C3 | 0.05 | 2 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C4 | 0.05 | 4 | MI | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | |
| C5 | 0.05 | NULL | MI | 2.26 ± 0.83 | 0.10 ± 0.52 | 2.36 ± 1.08 | 78 | |
| C6 | 0.05 | 3 | 3.13 ± 0.71 | 2.87 ± 0.71 | 6.00 ± 0.00 | 78 | ||
| Constrained HC+BIC | ||||
| Config. label | Cat1 (outcome) | Cat2 (intermediate) | Cat3 (reversed) | Cat4 (disconnected) |
| Baseline | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C1 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C2 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C3 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C4 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C5 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| C6 | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) |
| HC+BIC | ||||
| Config. label | Cat1 (outcome) | Cat2 (intermediate) | Cat3 (reversed) | Cat4 (disconnected) |
| Baseline | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C1 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C2 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C3 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C4 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C5 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| C6 | 0 (0.0%) | 78 (100.0%) | 0 (0.0%) | 0 (0.0%) |
| MMPC+HC+BIC | ||||
| Config. label | Cat1 (outcome) | Cat2 (intermediate) | Cat3 (reversed) | Cat4 (disconnected) |
| Baseline | 2 (2.6%) | 0 (0.0%) | 1 (1.3%) | 75 (96.2%) |
| C1 | 2 (2.6%) | 0 (0.0%) | 1 (1.3%) | 75 (96.2%) |
| C2 | 2 (2.6%) | 0 (0.0%) | 1 (1.3%) | 75 (96.2%) |
| C3 | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 78 (100.0%) |
| C4 | 35 (44.9%) | 2 (2.6%) | 3 (3.8%) | 38 (48.7%) |
| C5 | 0 (0.0%) | 0 (0.0%) | 0 (0.0%) | 78 (100.0%) |
| C6 | 2 (2.6%) | 0 (0.0%) | 1 (1.3%) | 75 (96.2%) |
| PC-Stable | ||||
| Config. label | Cat1 (outcome) | Cat2 (intermediate) | Cat3 (reversed) | Cat4 (disconnected) |
| Baseline | 27 (34.6%) | 48 (61.5%) | 3 (3.8%) | 0 (0.0%) |
| C1 | 0 (0.0%) | 33 (42.3%) | 45 (57.7%) | 0 (0.0%) |
| C2 | 0 (0.0%) | 31 (39.7%) | 47 (60.3%) | 0 (0.0%) |
| C3 | 0 (0.0%) | 33 (42.3%) | 45 (57.7%) | 0 (0.0%) |
| C4 | 0 (0.0%) | 33 (42.3%) | 45 (57.7%) | 0 (0.0%) |
| C5 | 18 (23.1%) | 57 (73.1%) | 3 (3.8%) | 0 (0.0%) |
| C6 | 0 (0.0%) | 33 (42.3%) | 45 (57.7%) | 0 (0.0%) |
| Parameter | Data | # of Neighbors | % of Instances with action-latent_collision Edge | Total # of Edges in Skeleton | ||
|---|---|---|---|---|---|---|
| alpha | max.sx | test | ||||
| 0.05 | 1 | MI | with | 0.33 ± 0.47 | 0.0 ± 0.0 | 7.0 ± 1.5 |
| without | 0.17 ± 0.37 | 0.0 ± 0.0 | 6.5 ± 1.2 | |||
| 0.05 | 2 | MI | with | 0.67 ± 0.95 | 0.0 ± 0.0 | 12.7 ± 0.9 |
| without | 0.00 ± 0.00 | 0.0 ± 0.0 | 12.6 ± 0.9 | |||
| 0.05 | 3 | MI | with | 1.00 ± 1.42 | 0.0 ± 0.0 | 22.4 ± 1.1 |
| without | 0.33 ± 0.47 | 33.3 ± 47.4 | 21.7 ± 0.7 | |||
| 0.05 | 3 | MI-SH | with | 1.00 ± 1.42 | 0.0 ± 0.0 | 22.5 ± 1.1 |
| without | 0.33 ± 0.47 | 33.3 ± 47.4 | 21.7 ± 0.7 | |||
| 0.05 | 4 | MI | with | 1.67 ± 2.37 | 33.3 ± 47.4 | 34.6 ± 1.0 |
| without | 1.02 ± 0.50 | 33.3 ± 47.4 | 33.5 ± 0.9 | |||
| 0.01 | 3 | MI | with | 1.00 ± 1.42 | 0.0 ± 0.0 | 22.4 ± 1.1 |
| without | 0.33 ± 0.47 | 33.3 ± 47.4 | 21.7 ± 0.7 | |||
| 0.10 | 3 | MI | with | 1.00 ± 1.42 | 0.0 ± 0.0 | 22.4 ± 1.1 |
| without | 0.33 ± 0.47 | 33.3 ± 47.4 | 21.7 ± 0.7 | |||
| 0.20 | 3 | MI | with | 1.00 ± 1.42 | 0.0 ± 0.0 | 22.4 ± 1.1 |
| without | 0.33 ± 0.47 | 33.3 ± 47.4 | 21.7 ± 0.7 | |||
| Comparison | Constrained HC+BIC | HC+BIC | MMPC+HC+BIC | PC-Stable |
|---|---|---|---|---|
| Unsafe suggestions | No | No | Yes | Yes |
| Presence of ties | Up to 5 | Up to 2 | Up to 6 | Up to 6 |
| Intervention blocked | Never | Never | Frequently (Cat3+Cat4) | Configuration- dependent (Cat3) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Avilés, H.; Gracia, I.; Kiesel, R.; Rodríguez, V.; Machucho, R.; Reyes, A.; Negrete, M.; Ramírez, G.; Luévano, N.; Pequeño, M.; et al. Causal Structure Learning Assumptions Shape Counterfactual Safety: Expert-Guided Constraints vs. Data-Driven DAGs with Probabilistic Logic Twin Networks. Entropy 2026, 28, 577. https://doi.org/10.3390/e28050577
Avilés H, Gracia I, Kiesel R, Rodríguez V, Machucho R, Reyes A, Negrete M, Ramírez G, Luévano N, Pequeño M, et al. Causal Structure Learning Assumptions Shape Counterfactual Safety: Expert-Guided Constraints vs. Data-Driven DAGs with Probabilistic Logic Twin Networks. Entropy. 2026; 28(5):577. https://doi.org/10.3390/e28050577
Chicago/Turabian StyleAvilés, Héctor, Ingridh Gracia, Rafael Kiesel, Verónica Rodríguez, Rubén Machucho, Alberto Reyes, Marco Negrete, Gabriel Ramírez, Nicolás Luévano, Myriam Pequeño, and et al. 2026. "Causal Structure Learning Assumptions Shape Counterfactual Safety: Expert-Guided Constraints vs. Data-Driven DAGs with Probabilistic Logic Twin Networks" Entropy 28, no. 5: 577. https://doi.org/10.3390/e28050577
APA StyleAvilés, H., Gracia, I., Kiesel, R., Rodríguez, V., Machucho, R., Reyes, A., Negrete, M., Ramírez, G., Luévano, N., Pequeño, M., Medrano, J., & Weitkämper, F. (2026). Causal Structure Learning Assumptions Shape Counterfactual Safety: Expert-Guided Constraints vs. Data-Driven DAGs with Probabilistic Logic Twin Networks. Entropy, 28(5), 577. https://doi.org/10.3390/e28050577

