Abstract
This paper addresses the challenge of learning causal relationships from relational data, where the standard assumption of independent and identically distributed (iid) data is violated. While theoretical frameworks like the Relational Causal Model (RCM) exist, their practical application is hindered by the limitations of statistical tests on finite, interconnected data. We introduce a robust approach to relational causal discovery that identifies conditions under which standard conditional independence tests remain valid and incorporates techniques such as order-independence, strategic aggregation, and specialized orientation tests. Our methods significantly improve the accuracy and reliability of recovering causal structures from complex relational databases.
Introduction
Most causal discovery algorithms, such as the PC algorithm, assume data is independent and identically distributed (iid). However, real-world data stored in relational databases or social networks is inherently interconnected. For instance, an employee’s salary might depend on their own competence as well as the budget of their department. Such dependencies create a non-iid environment that challenges traditional causal discovery methods.
Previous research established the Relational Causal Model (RCM) and algorithms like RpCD to handle these dependencies. However, these algorithms were designed for a "theoretical oracle" with perfect knowledge of independence. In practice, statistical tests on finite relational data often produce false positives or negatives due to the violation of the iid assumption. This paper aims to bridge this gap, making relational causal discovery reliable in practical settings.
Methodology
To address the imperfections of real-world statistical tests, we propose several enhancements to the RpCD algorithm:
- RCMC-Aware Testing: We demonstrate that if a query follows the Relational Causal Markov Condition (RCMC)—testing a variable against its non-descendants given its parents—standard conditional independence (CI) tests on "flattened" data remain valid despite the non-iid nature of the data.
- Order-Independence: We modify the discovery algorithm to ensure that the order in which variables are processed does not influence the final graph structure, preventing early errors from cascading.
- Strategic Aggregation: Aggregation functions (e.g., mean, mode) are used to increase statistical power. We show that only potential causes should be aggregated; aggregating conditioning variables can introduce bias and lead to false positives.
- Relational Bivariate Orientation (RBO): We introduce "Split-RBO" and "Pair-RBO" methods to orient edges in "many-to-one" relationships. These methods strategically split groups of related items to better capture causal signals that might otherwise be diluted.
Experimental Evaluation
Our approach was evaluated using 300 synthetic Relational Causal Models. Relational skeletons were generated with $n=200$ and $n=500$ items per entity class. We employed state-of-the-art kernel-based tests, including HSIC for marginal independence and SDCIT for conditional independence.
Key Results
The robust methods demonstrated significant performance gains over the baseline naive RpCD:
- Adjacency Detection: The robust version achieved up to 99.13% precision for $n=500$. Strategic aggregation significantly improved recall compared to non-aggregated tests.
- Edge Orientation: Specialized RBO tests outperformed standard orientation rules. The "Split-RBO" approach reached an orientation accuracy of 85.7%, compared to 74.1% for the naive approach.
- Overall Performance: The final oriented graphs achieved a precision of 93.5% and recall of 75.4%, a substantial improvement over the baseline's 75.3% precision.
Discussion and Conclusion
A central insight of this work is that the variability of a variable given its parents in a relational setting often stems from independent external noise, justifying the use of standard CI tests in specific RCMC-related queries. However, aggregation must be applied with caution to avoid introducing bias.
Future research will explore multi-set kernels optimized for relational structures and methods to improve the detection of weak causal links. While kernel-based tests are effective, their computational demands on large datasets suggest a need for more efficient implementations. This work represents a significant step toward practical, robust causal discovery in complex, interconnected domains.
Summary updated