Abstract
In causal discovery, observational data typically identifies a Markov Equivalence Class (MEC) rather than a unique Directed Acyclic Graph (DAG). Incorporating background knowledge can narrow this class, but counting the remaining consistent DAGs is a #P-complete problem. This paper demonstrates that the problem is Fixed-Parameter Tractable (FPT) relative to a new parameter: max-clique-knowledge ($k$). We present an algorithm with $O(k! \cdot k^2 \cdot n^4)$ complexity, showing that counting remains efficient as long as background constraints are not overly concentrated within individual cliques.
Introduction
A central goal of causal inference is identifying the underlying DAG structure of a system. However, statistical independence tests usually only reveal the MEC—a set of DAGs sharing the same skeleton and v-structures. To further refine the model, researchers integrate background knowledge, such as known edge directions from prior experiments or expert knowledge.
While counting the number of DAGs in an MEC is solvable in polynomial time, the addition of background knowledge constraints makes the counting problem #P-complete. This computational barrier hinders uncertainty quantification in large-scale causal models, as researchers cannot easily determine how much ambiguity remains after adding constraints. This research addresses this by identifying structural conditions that restore tractability.
The Max-Clique-Knowledge Parameter
The core innovation of this work is the shift from considering the total number of background constraints to their local density. The author introduces max-clique-knowledge ($k$), defined as the maximum number of nodes in any single clique of the graph involved in background knowledge constraints.
As illustrated in the examples above, even if the total number of background edges is high, the problem remains tractable if those edges are distributed across different parts of the graph. For instance, in Example 4, despite having six background constraints, the max-clique knowledge $k$ is only 3, keeping the complexity manageable. This insight suggests that the "hardness" of the problem is a local phenomenon rather than a global one.
Methods and Complexity
The proposed algorithm builds upon a recursive counting framework recently developed by Wienöbst et al. (2021). It breaks down the undirected chordal components of the MEC into sub-problems using a modified Lexicographical Breadth-First Search (LBFS) that is "background-aware."
Key technical components include:
- Background-Aware LBFS: This modified search algorithm traverses the graph while checking for consistency with background knowledge. It ensures that the recursive partitioning only explores valid orientations, significantly pruning the search space.
- Recursive Partitioning: The problem is divided based on "Acyclic Moral Orientations" (AMOs), which are partitioned by the maximal cliques that represent them. The algorithm then counts valid permutations within those cliques.
- Memoization: To avoid redundant calculations, the algorithm stores results for sub-problems (undirected connected chordal components).
The resulting complexity is $O(k! \cdot k^2 \cdot n^4)$. While the $k!$ term indicates a "factorial bottleneck" for very dense local constraints (typically when $k > 15$), the $n^4$ term ensures polynomial scaling with respect to the overall graph size.
Empirical Results
The algorithm was validated using a synthetic dataset of random chordal graphs with node counts ($n$) ranging from 500 to 1,000. The max-clique-knowledge parameter $k$ was varied from 5 to 13. For each $(n, k)$ pair, 50 random instances were generated to measure average running time.
Experimental results confirmed the theoretical $O(n^4)$ scaling. Log-log plots of the data showed a clear linear relationship between $\log(T)$ and $\log(n)$, confirming the predicted performance. Crucially, the runtime was found to be nearly independent of the total number of background edges, provided $k$ remained constant. This confirms that the algorithm's performance is truly tied to the local density of constraints, not the total volume of prior information.
Conclusion
This work provides a theoretical bridge between the simple case of unconstrained MECs and the general #P-hard problem. By proving that counting is Fixed-Parameter Tractable with respect to max-clique-knowledge, it enables robust uncertainty quantification in causal discovery for large networks, provided the background knowledge is sufficiently sparse at the clique level. Future work may explore whether the $k!$ dependence can be further optimized or if these techniques can be extended to more general, non-chordal graph classes.
Summary updated