Abstract
Causal discovery from observational data is often hindered by the fragility of constraint-based methods, where a single misidentified v-structure can trigger a cascade of errors. We present MosaCD, a confidence-aware algorithm that synergizes statistical conditional independence tests with Large Language Model (LLM) priors. MosaCD introduces a "shuffled query" mechanism to filter LLM hallucinations and a robust propagation rule that prioritizes statistically reliable non-colliders over error-prone colliders. Our evaluation across ten benchmark datasets demonstrates that MosaCD achieves state-of-the-art performance, significantly improving orientation accuracy and robustness.
Introduction
Determining causal relationships (e.g., $A \to B$) is fundamental to scientific inquiry. Constraint-based algorithms, such as the PC algorithm, are widely used but suffer from high sensitivity to noise in conditional independence (CI) tests. These methods typically rely on identifying "v-structures" ($X \to Z \leftarrow Y$) as initial seeds for edge orientation. In practice, noisy data often leads to incorrect seed identification, which then propagates throughout the graph. While LLMs offer a potential source of domain knowledge, their susceptibility to positional bias and hallucinations can introduce further inaccuracies.
The MosaCD Pipeline
MosaCD addresses these challenges through a five-step, confidence-aware process:
- Skeleton Search: Identifying connections between variables using stable CI tests.
- LLM-based Seeding: Querying LLMs for edge directions using a "shuffled query" strategy. By randomizing option order and requiring consistency, MosaCD filters out low-confidence responses.
- Robust Propagation: Unlike traditional methods that prioritize colliders, MosaCD prioritizes non-colliders. Theoretical analysis suggests that identifying the presence of a node in a separating set (non-collider) is more statistically robust than identifying its absence (collider) in noisy settings.
- Least-Conflict Orientation: Resolving remaining undirected edges by minimizing contradictions with statistical evidence.
- Final LLM Voting: Using aggregated LLM votes to resolve any final ambiguities.
Experimental Evaluation
MosaCD was evaluated on ten benchmark datasets from the BNLearn repository, ranging from small graphs like Cancer (5 nodes) to complex networks like Win95pts (76 nodes). The performance was compared against standard PC variants and existing LLM-augmented discovery methods.
Results
MosaCD outperformed all baselines in 9 out of 10 datasets. As shown in the performance table, MosaCD achieved an F1 score of 0.87 on the Insurance dataset, a substantial improvement over the 0.62 achieved by the standard PC algorithm.
The algorithm's success is largely attributed to its superior seeding. MosaCD identified approximately 1.7x more true directions than standard v-structure methods while maintaining a remarkably low false-positive rate (~4.8% vs. ~26.7% for PC). This high-fidelity initial orientation prevents the error cascades that typically degrade constraint-based discovery.
Conclusion
MosaCD demonstrates that the integration of LLMs and statistical tests can be made robust by accounting for the inherent weaknesses of both. By filtering LLM hallucinations through consistency checks and re-orienting the propagation logic toward statistically reliable non-colliders, MosaCD provides a more stable and accurate framework for causal discovery in real-world, noisy environments.
Summary updated