Abstract
Learning causal structures from data is notoriously slow, often scaling exponentially with graph density. This paper introduces the Removal-Fill-Degree (RFD) algorithm, a polynomial-time method that finds causal orderings by tracking how conditional dependencies appear and disappear when variables are marginalized. RFD matches the accuracy of state-of-the-art causal discovery algorithms but runs significantly faster, even on dense graphs.
Introduction
Discovering the causal structure of a system—represented as a Directed Acyclic Graph (DAG)—from observational data is a notoriously NP-hard problem. While algorithms like PC or GES are provably consistent, their computation time grows exponentially with the maximum number of incoming edges (indegree) a node has. This makes them practically useless for large or dense networks.
Recent research has shown that if you can determine the correct topological ordering (permutation) of the variables, recovering the actual DAG becomes straightforward. To find this ordering, researchers have previously adapted heuristics from numerical linear algebra, such as the Minimum-Degree (MD) algorithm. However, these were designed for undirected graphs and fail to exploit the unique, asymmetrical patterns found in directed causal graphs. This work bridges that gap by designing a fast, ordering-based algorithm specifically tailored for DAGs.
Methods: The RFD Algorithm
To find the correct causal ordering, the authors build the permutation backwards, searching for "maximal nodes" (sinks, or nodes with no descendants) to place at the end of the list. To identify these sinks, they analyze the "moral graph"—an undirected graph representing the conditional dependencies between variables.
When a variable is marginalized (removed) from the dataset, the moral graph changes in two ways:
- Fill Edges: Edges added between the neighbors of the removed node.
- Removal Edges: Edges that disappear when the node is removed.
The use of removal edges is the paper's primary novel contribution. The authors prove that if removing a node causes an edge to disappear, that node must be a maximal node. The Removal-Fill-Degree (RFD) algorithm uses a breadth-first search of depth $w$ to greedily pick the best nodes for the end of the ordering. It prioritizes nodes with the highest "removal score" (most edges destroyed), followed by the lowest "fill score" (fewest edges created), using node degree as a tie-breaker.
Key Results
The authors evaluated RFD using synthetic datasets of random DAGs, varying node count and edge density.
Computational Efficiency
For multivariate Gaussian distributions, RFD with a search depth of $w$ runs in $O(p^{w+3})$ time. For $w=1$, it runs in $O(p^4)$ time—a massive improvement over the exponential scaling of traditional methods. In experiments, RFD's runtime remains nearly flat and practically instantaneous across varying densities, whereas the computation time for PC and GES skyrockets.
Accuracy
Despite being an approximate, polynomial-time algorithm, RFD achieves True Positive and False Positive rates highly comparable to the much slower GES algorithm. Crucially, it consistently outperforms the Minimum-Degree baseline by incorporating the DAG-specific "removal" signal.
Discussion and Future Work
The primary limitation of RFD is its current reliance on partial correlation thresholding, which assumes multivariate Gaussian data. Future work involves adapting the algorithm for non-Gaussian and high-dimensional data using non-parametric conditional independence tests (e.g., HSIC). The main challenge lies in efficiently updating these non-parametric estimates after marginalization without compounding errors.
Summary updated