Abstract
Causal treewidth is a recent notion which allows one to speed up Bayesian network inference and to bound its complexity in the presence of functional dependencies (causal mechanisms) whose identities are unknown. Causal treewidth is no greater than treewidth and can be bounded even when treewidth is unbounded. The utility of causal treewidth has been illustrated recently in the context of causal inference and model-based supervised learning. However, the current definition of causal treewidth is descriptive rather than perspective, therefore limiting its full exploitation in a practical setting. We provide an extensive study of causal treewidth in this paper which moves us closer to realizing the full computational potential of this notion both theoretically and practically.
Introduction: The Challenge of Functional Dependencies
In probabilistic graphical models, treewidth is the standard metric for assessing inference complexity. High treewidth typically implies that standard algorithms like Variable Elimination or Jointree propagation will become exponentially slow. However, many real-world models—particularly in causal inference—contain functional dependencies. This occurs when a variable's state is entirely determined by its parents, such as in a logic gate or a specific physical law.
Standard treewidth is a purely structural measure and fails to exploit these "hidden" deterministic patterns when the specific functional identity is unknown. This paper formalizes causal treewidth, a parameter that accounts for these dependencies to potentially turn intractable problems into manageable ones by leveraging the existence of functional mechanisms even when their exact form is unspecified.
Methods: Mechanism Replication and Jointree Thinning
The authors bridge the gap between theory and practice using three main components:
- Mechanism Replication: Counter-intuitively, the first step to speeding up the process is to duplicate certain factors (Conditional Probability Tables) in the model. By creating multiple copies of a functional node's mechanism, the algorithm gains more leverage to simplify different parts of the network independently.
- Jointree Thinning: A jointree is a standard data structure used for inference where nodes pass messages via sets of variables called separators. The authors introduce a set of "thinning rules" that allow them to remove variables from these separators if they are functionally determined elsewhere.
- Complete Replication Algorithm: They provide a bottom-up algorithm to determine exactly how many replicas of a mechanism are needed. While "complete replication" is optimal for reducing the width of the graph, it can sometimes lead to an exponential explosion in the number of factors, necessitating a balance between width and size.
Key Insights and Results
A core finding is that knowing a function exists is sufficient for simplification, even if the specific function (e.g., whether it is an AND gate or an OR gate) is unknown. Causal treewidth is strictly more powerful than standard treewidth. In some cases, as the paper demonstrates, you can have a family of graphs where standard treewidth grows linearly with the number of nodes ($O(n)$), but the causal treewidth remains a constant 2.
Experimental results on synthetic networks ranging from 10 to 150 nodes demonstrate that the new thinning rules significantly outperform previous heuristics. As the percentage of functional nodes increases, the "gap" between standard treewidth and causal treewidth widens dramatically. Furthermore, applying these rules is computationally cheap; even for the hardest 150-node configurations, the average computation time was only about 6.86 seconds.
Limitations and Future Work
While the "Complete Replication" strategy is optimal for reducing width, it can produce an exponential number of factors in networks with long "functional chains" (where one functional node is the parent of another). Additionally, while the thinning rules are complete, the order in which they are applied matters for finding the absolute minimum width. Future work will explore heuristic search strategies and polynomial-sized replications that still offer significant width reduction for complex, deep functional models.
Summary updated