XInsight: eXplainable Data Analysis Through The Lens of Causality

Pingchuan Ma, Rui Ding, Shuai Wang, Shi Han, Dongmei Zhang · DOI · OpenReview

TL;DR

This paper introduces XINSIGHT, a novel framework for eXplainable Data Analysis (XDA) that goes beyond simple correlations to uncover the causal reasons behind data insights. By integrating causality into Exploratory Data Analysis (EDA), XINSIGHT aims to provide more trustworthy and actionable explanations, improving user confidence and decision-making.

What Problem Does This Paper Address?

Exploratory Data Analysis (EDA) is crucial for understanding data, but the insights gained can be superficial. Many existing "explanation" tools provide non-causal, correlational insights, which can be misleading. For instance, a tool might suggest that a low teenage pregnancy rate explains a high ACT Math score, which is questionable. Users need to understand the why behind data patterns, not just the what. This is especially important in the digital age where data is abundant, and decisions based on it have significant consequences. The paper addresses the challenge of providing explanations that are not only accurate but also causal, leading to better comprehension and trust in data-driven findings.

Methods

XINSIGHT is a three-module, end-to-end framework:

  • XLEARNER: This module learns a causal graph from the data. It tackles two major challenges in causal discovery:
  • Causal Insufficiency: The absence of all relevant variables in the dataset.
  • Faithfulness Violations: Functional Dependencies (FDs) in the data can violate the assumption that conditional independence in data implies m-separation in the graph. XLEARNER addresses this by incorporating FDs to learn a more accurate causal graph, even when faithfulness is violated.
  • XTRANSLATOR: This module translates the learned causal graph into eXplainable Data Analysis (XDA) semantics. It determines which variables can provide causal or non-causal explanations for a given "WHY QUERY" (e.g., "Why is the average delay in May higher than in November?").
  • XPLAINER: This module quantifies the contribution of each explanation. It adapts a framework called "DB causality" to provide predicate-level explanations (e.g., "Rain=Yes" is a causal explanation) and assigns a "responsibility" score to each explanation. XPLAINER also incorporates conciseness into its search for optimal explanations.

The framework is designed with an offline/online phase separation, allowing heavy computations to be done beforehand for faster query responses.

Datasets

The paper uses a combination of datasets for evaluation:

  • Public Datasets:
    • Flight Delay (FLIGHT): Used to explore causes of flight delays in US airports.
  • Hotel Booking (HOTEL): A standard dataset for demonstrating data analysis methods.
  • Real-world Dataset:
    • Web Service Behavior Dataset (WEB): Collected from a web service's production environment, known for exhibiting strong causal relations, used for user study and expert evaluation.
  • Synthetic Datasets:
    • Synthetic Data A (SYN-A): Generated using a random graph model to create datasets with ground-truth causal graphs and functional dependencies, varying in complexity and FD presence.
  • Synthetic Data B (SYN-B): Designed to assess XPLAINER's accuracy and efficiency, with varying difficulties in generating explanations.

Key Insights and Ideas

  • Causality is Key for Trustworthy Explanations: The paper strongly argues that moving beyond mere correlations to causal relationships is essential for building user trust and enabling effective decision-making from data.
  • Functional Dependencies are Crucial for Causal Discovery: XLEARNER's novel approach of incorporating Functional Dependencies (FDs) into causal discovery is a significant contribution. It helps overcome limitations of traditional methods that struggle with FD-induced faithfulness violations.
  • Predicate-Level Explanations are More Intuitive: XPLAINER's focus on predicate-level explanations (e.g., "Smoking=Yes") rather than individual data points makes explanations more understandable and actionable for users.
  • Balancing Accuracy and Efficiency: XINSIGHT's design, particularly XPLAINER's optimization strategies for SUM and AVG aggregates, demonstrates a practical approach to achieving both accurate and efficient explanations.

Key Results

  • XINSIGHT's End-to-End Performance: User studies and experiments showed that XINSIGHT generates plausible and intuitive explanations across diverse datasets. Experts rated explanations highly, with average scores of 4.0 or higher out of 5 for most explanations.
  • XLEARNER's Accuracy: XLEARNER outperformed the standard FCI algorithm in learning causal graphs, especially in the presence of FDs, achieving significantly higher recall (82% vs. 59%).
  • XPLAINER's Efficiency and Accuracy: XPLAINER demonstrated high scalability and accuracy, outperforming baseline methods like Scorpion, RSExplain, and BOExplain across various dataset sizes and difficulty levels. For instance, XPLAINER took an average of 0.06 seconds to explain a WHY QUERY, while the next best (BOExplain) took 13.17 seconds. It also showed robustness to subtle data differences.
  • User Study Validation: In a user study, 83.3% of causal claims identified by XLEARNER were marked as "Reasonable" by experts, indicating good alignment with expert knowledge.

Limitations and Future Work

  • Deterministic FDs: XINSIGHT currently only considers deterministic FDs. The paper acknowledges that real-world data often has noisy or probabilistic FDs, and exploring their impact on faithfulness and XINSIGHT's performance is a direction for future work.
  • Acquiring Causal Knowledge: While XINSIGHT simplifies causal discovery from observational data, the authors suggest that users could combine XINSIGHT with other sources of causal knowledge (e.g., domain expertise, randomized experiments) for more robust results.
  • Other Forms of Explanations: XINSIGHT currently focuses on predicate-based explanations. Future work could explore integrating other explanation formats, such as explanations based on record counts or counterbalances, and extending XINSIGHT to handle time-series data.

Summary updated

BibTeX
@article{ma2023xinsight,
  author = {Pingchuan Ma and Rui Ding and Shuai Wang and Shi Han and Dongmei Zhang},
  title = {{XInsight: eXplainable Data Analysis Through The Lens of Causality}},
  journal = {Proc. ACM Manag. Data},
  year = {2023},
  doi = {10.1145/3589301},
}
Figure