Abstract: Understanding causal relationships among the variables of a system is paramount to explain and control its behavior. For many real-world systems, however, the true causal graph is not readily available and one must resort to predictions made by algorithms or domain experts. Therefore, metrics that quantitatively assess the goodness of a causal graph provide helpful checks before using it in downstream tasks. Existing metrics provide an absolute number of inconsistencies between the graph and the observed data, and without a baseline, practitioners are left to answer the hard question of how many such inconsistencies are acceptable or expected. Here, we propose a novel consistency metric by constructing a baseline through node permutations. By comparing the number of inconsistencies with those on the baseline, we derive an interpretable metric that captures whether the graph is significantly better than random. Evaluating on both simulated and real data sets from various domains, including biology and cloud monitoring, we demonstrate that the true graph is not falsified by our metric, whereas the wrong graphs given by a hypothetical user are likely to be falsified.
Introduction
In causal inference, Directed Acyclic Graphs (DAGs) serve as the foundational language for expressing relationships between variables. These graphs are typically sourced from domain experts or inferred via causal discovery algorithms. However, validating these proposed structures against real-world data remains a significant challenge. The standard approach involves checking for Conditional Independence (CI) violations—instances where the graph predicts independence that the data does not support.
The Problem: Why Raw Violation Counts Fail
A major hurdle in causal validation is that even a perfectly accurate "true" graph will often exhibit numerous CI violations when tested against real-world data. These violations arise from several factors: hidden confounding variables, measurement noise, and the inherent limitations of statistical CI tests.
Without a comparative baseline, a practitioner cannot determine if a specific number of violations (e.g., 50 violations in a 100-node system) indicates a fundamentally flawed model or simply expected noise. Existing tools provide raw error counts but offer no context for what constitutes an "acceptable" threshold.
The Permutation-Based Consistency Metric
To address this, the authors introduce a novel statistical test based on node permutations. The core idea is to establish a "null hypothesis" baseline by shuffling the labels of the nodes in the candidate graph while preserving its skeleton and edge directions. This process maintains the graph's complexity and sparsity but destroys the specific causal assignments.
The resulting metric, $p_{LMC}$, represents the fraction of these randomly permuted graphs that exhibit fewer or equal Local Markov Condition (LMC) violations than the candidate graph. If $p_{LMC}$ is low (typically < 0.05), the candidate graph is deemed significantly better than a random assignment, and the test "fails to falsify" it. This approach effectively "subtracts out" the expected error rate of the underlying CI tests, which are often unreliable in high-dimensional settings.
Experimental Validation and Real-World Applications
The researchers evaluated the $p_{LMC}$ metric across synthetic datasets and classic benchmarks like the Sachs protein signaling dataset and the Auto MPG dataset. A key contribution of this work is the introduction of a new Application Performance Monitoring (APM) dataset, which uses latency traces from microservices on AWS.
In these tests, the metric demonstrated high sensitivity to domain knowledge: as the number of correct edges in a graph increased, the $p_{LMC}$ value dropped monotonically. On the Sachs dataset, the metric successfully corroborated the consensus biological graph while falsifying graphs produced by several popular discovery algorithms (such as NOTEARS and CAM), which were found to be no better than random permutations.
Conclusion
By shifting the focus from verification to falsification, this permutation-based approach provides a robust framework for benchmarking causal models. It acknowledges that while we may never "prove" a graph is correct, we can quantitatively determine if it is a meaningful representation of the data rather than a lucky guess. Future work may refine this "low bar" by comparing candidate graphs against more stringent baselines, such as local edge perturbations, to further increase the power of the test.
Summary updated