Causality-Aware Local Interpretable Model-Agnostic Explanations

Martina Cinquini, Riccardo Guidotti

TL;DR

This paper introduces CALIME, a novel approach to explainable AI (XAI) that integrates causal relationships into local model explanations. By moving beyond simple correlations, CALIME generates more faithful and reliable explanations for black-box models, enhancing user trust and understanding of AI decisions.

What Problem Does This Paper Address?

Machine learning models, particularly deep learning models, have achieved remarkable success but often operate as "black boxes." This lack of transparency makes it difficult to understand why a model makes a particular prediction, leading to concerns about bias, errors, and accountability. Existing explainability methods, like LIME, often rely on generating synthetic data by perturbing input features. However, these methods typically assume feature independence and don't account for the underlying causal relationships between features. This can lead to unrealistic synthetic data and, consequently, misleading or unreliable explanations, especially when correlations are mistaken for causation. The paper aims to address this by incorporating causal knowledge into the explanation generation process.

Methods

The core of CALIME is an extension of the LIME (Local Interpretable Model-Agnostic Explanations) framework. The key innovation lies in how CALIME generates the "synthetic neighborhood" of an instance to be explained. Instead of random perturbations, CALIME uses a synthetic data generator called GENCDA (Generative Causal Data Augmentation).

Here's a breakdown of the CALIME approach:

  • Causal Discovery (CD): CALIME first employs a causal discovery algorithm (specifically, NCDA) to infer a causal graph (DAG) representing the relationships between features in the training data. This step is performed once per dataset.
  • Synthetic Data Generation with Causality: GENCDA then uses this discovered causal graph to generate synthetic data points. This ensures that the generated data respects the identified causal dependencies, making the synthetic neighborhood more realistic and plausible. For instance, if age causally influences education level, GENCDA will generate synthetic instances where changes in age are accompanied by corresponding, causally consistent changes in education level.
  • Local Explanation: Similar to LIME, CALIME trains a simple, interpretable model (e.g., a linear regressor) on this causally-aware synthetic neighborhood to approximate the black-box model's behavior locally around the instance of interest. The coefficients of this interpretable model serve as the feature importance explanation.

The novelty lies in the causal generation of the synthetic data, which is a departure from LIME's random perturbation approach.

Datasets

The authors evaluated CALIME on several real-world tabular datasets from the UCI Repository:

  • Banknote: A binary classification dataset for predicting whether a banknote is authentic or fake.
  • Statlog: An image segmentation dataset.
  • Wine-red: A dataset related to physicochemical tests of red wines.
  • WDBC (Wisconsin Diagnostic Breast Cancer): Features computed from digitized images of breast masses.
  • Magic: Data simulating high-energy gamma particles.

All these datasets consist of continuous features, which is a requirement for the GENCDA generator used in CALIME.

Key Insights and Ideas

  • Correlation vs. Causation in Explanations: The paper strongly argues that mistaking correlation for causation in explanation generation can lead to fundamentally flawed insights. By incorporating causal relationships, CALIME aims to provide explanations that reflect the true underlying mechanisms.
  • Plausible Synthetic Data is Crucial: The quality of local explanations is heavily dependent on the quality of the synthetic data used to approximate the black-box model. CALIME's causal approach generates more plausible synthetic data, leading to more trustworthy explanations.
  • Enhanced Trustworthiness: By grounding explanations in causal relationships, CALIME can increase user trust in AI systems, which is particularly important in high-stakes domains like finance and healthcare.
  • CALIME as a General Framework: The authors suggest that their causality-aware approach can be adapted to other model-agnostic explainers beyond LIME.

Key Results

  • Improved Fidelity: CALIME generally shows improved fidelity (measured by R²) compared to LIME, meaning its local models better mimic the black-box predictions.
  • Enhanced Plausibility: CALIME significantly outperforms LIME in terms of plausibility metrics (AMD, AOD, ASM, ADM), indicating that its generated synthetic neighborhoods are more realistic and representative of the underlying data distribution.
  • Comparable Stability: While LIME can be more stable for a very small number of perturbed features (k ≤ 4), CALIME demonstrates greater resistance to noise and more consistent explanations when a larger number of features are considered (k > 4).
  • Qualitative Example: For the banknote dataset, CALIME provided higher feature importance scores for variance and curtosis, which are causally linked in the inferred graph, demonstrating a more contextually relevant explanation than LIME.

Limitations and Future Work

  • Continuous Features Only: A current limitation is that GENCDA, and thus CALIME, is designed for datasets with continuous features. The authors plan to extend CALIME to handle categorical and/or discrete variables.
  • Computational Cost: CALIME is computationally more expensive than LIME, primarily due to the overhead of causal discovery and the more complex synthetic data generation process. While LIME can generate explanations in under a second, CALIME takes an order of magnitude longer.
  • Extending to Other Explainers: The authors propose exploring the integration of causal knowledge into other model-agnostic explainers like SHAP and LORE.
  • Beyond Tabular Data: Investigating the applicability of causality awareness for data types beyond tabular data, such as images and time series, is another future direction.

Summary updated

BibTeX
@inproceedings{cinquini2024causality,
  author = {Martina Cinquini and Riccardo Guidotti},
  title = {{Causality-Aware Local Interpretable Model-Agnostic Explanations}},
  booktitle = {xAI},
  year = {2024},
  doi = {10.1007/978-3-031-63800-8\_6},
}
Figure