Compositional Probabilistic and Causal Inference using Tractable Circuit Models

Benjie Wang, Marta Kwiatkowska

Abstract

Probabilistic circuits (PCs) are a class of tractable probabilistic models, which admit efficient inference routines depending on their structural properties. In this paper, we introduce md-vtrees, a new structural framework that allows PCs to handle complex, multi-step inference queries—including causal inference—with guaranteed polynomial-time efficiency. By developing a "MD-calculus," the authors provide the first exact, efficient algorithms for causal tasks like backdoor adjustment on PCs, outperforming traditional methods in high-dimensional settings.

Introduction

Probabilistic Circuits (PCs) represent a powerful paradigm in machine learning, combining the expressive capacity of deep neural networks with the mathematical rigor of tractable probabilistic models. Tractability ensures that fundamental operations, such as computing marginal probabilities, can be performed in time linear to the size of the circuit. However, this efficiency typically relies on strict structural constraints like decomposability and determinism.

While standard PCs excel at simple queries, they often struggle with "compositional" queries—complex pipelines involving products, reciprocals, and marginalizations. Such operations are essential for causal inference, specifically for calculating the effects of interventions. Historically, performing exact causal inference on standard PCs was considered #P-hard. This paper introduces a novel framework to overcome these limitations.

Methods: md-vtrees and MD-calculus

The core contribution of this work is the introduction of md-vtrees (marginal determinism variable trees). A vtree is a hierarchical organization of variables that governs the structure of a PC. By adding a "labeling function" $\psi$ to the vtree, the authors can track and enforce marginal determinism.

Comparison of vtree labeling schemes: (a) standard scope, (b) PSDD labels, and (c) deterministic labels.

This labeling allows for a more flexible circuit design than previous models like Probabilistic Sentential Decision Diagrams (PSDDs) while maintaining efficiency for complex operations. Alongside md-vtrees, the authors propose the MD-calculus, a formal system that determines the necessary structural properties an input circuit must possess to ensure a specific query pipeline remains computationally tractable (polynomial time).

To put these theories into practice, the researchers developed MDNets. This architecture utilizes specialized "mixing" and "synthesizing" layers to ensure that the resulting circuit adheres to the required marginal determinism properties by design.

Key Insights: Expressivity and Causal Tractability

A significant finding of this research is that PSDDs are often over-constrained. By utilizing "regular" md-vtrees, it is possible to construct circuits that are more expressive without sacrificing tractability.

Comparison between deterministic labels (c) and optimal labels for PSDD (d), illustrating how PSDDs can be over-constrained.

Furthermore, the paper provides a theoretical breakthrough for causal inference. It proves that while backdoor adjustment is generally intractable for standard PCs, it becomes a polynomial-time operation if the circuit is designed to be deterministic with respect to the "backdoor" variables. This allows for the first efficient algorithms for causal estimands like the backdoor, frontdoor, and napkin formulas on probabilistic circuits.

Empirical Evaluation and Results

The framework was evaluated using five discrete Bayesian Network models from the bnrepository, ranging from low-dimensional (Asia, Sachs) to high-dimensional (Win95pts, Andes).

Causal Accuracy and Efficiency

MDNets demonstrated superior performance in high-dimensional settings. On the Win95pts and Andes datasets, MDNets achieved significantly lower error rates compared to traditional counting baselines.

Dataset MDNet Error Counting Baseline Error
Win95pts 0.0044 0.0511
Andes 0.0382 0.0982

Crucially, the computational cost of causal inference using MD-calculus scales linearly with the number of variables in the adjustment set. For the Andes dataset, which involves 202 variables in the adjustment set, the inference process took only 7.9 seconds, highlighting the model's scalability where traditional methods falter.

Conclusion and Future Directions

This work establishes a robust theoretical and practical foundation for compositional inference in PCs. While the current implementation focuses on discrete variables and manually or randomly chosen vtree structures, future work aims to automate the learning of optimal md-vtree structures directly from data. Additionally, extending the MD-calculus framework to continuous variables and a broader range of complex probabilistic queries represents a promising avenue for further research.

Summary updated

BibTeX
@inproceedings{wang2023compositional,
  author = {Benjie Wang and Marta Kwiatkowska},
  title = {{Compositional Probabilistic and Causal Inference using Tractable Circuit Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=ovBADEcTgk},
}
Figure