RelShap Provides Relationally Consistent Shapley Explanations

Seungeun Lee, Joao Fonseca, Julia Stoyanovich· August 13, 2026 View original

Key takeaways

  • Flattening relational data can lead to misleading Shapley explanations.
  • RelShap incorporates relational constraints for more faithful explanations.
  • It is compatible with various Shapley estimators and reduces runtime.
  • RelShap improves explanation accuracy, especially in complex data environments.

Who benefits

BFSIHealthcareE-commerceGovernmentData Science

Summary

Researchers introduce RelShap, a framework that integrates relational constraints and data provenance into Shapley value computation for machine learning models, addressing the issue of misleading explanations from flattened relational data. RelShap restricts evaluation to valid configurations, is estimator-agnostic, and exploits functional dependencies to reduce runtime while producing more faithful explanations than existing methods.

This paper addresses a critical limitation in using Shapley values for explaining machine learning models, particularly when dealing with relational data. Traditional methods often flatten relational data into a single table, which discards crucial structural constraints. This can lead to Shapley value-based explanations that rely on feature independence, evaluating combinations of features that are impossible in the real-world data, thus producing misleading insights. The proposed framework, RelShap, overcomes this by incorporating relational constraints and data provenance directly into the Shapley value calculation. It ensures that both the background data and the feature coalitions evaluated are always relationally valid. RelShap is designed to be estimator-agnostic, meaning it can be composed with popular methods like Kernel SHAP, Monte Carlo, and Leverage SHAP without altering their core sampling or weighting properties. Furthermore, RelShap leverages functional dependencies within the data to create equivalence classes over feature coalitions, which significantly reduces runtime without compromising the accuracy of the Shapley values. Experiments across various datasets, models, and estimators demonstrate that RelShap generates explanations that are more faithful to the underlying data-generating process, correctly identifying dominant features where other methods, including Conditional SHAP and ManifoldShap, fail.

Why it matters

For professionals building and deploying ML models on complex relational databases, RelShap offers a way to generate more accurate and trustworthy explanations, crucial for regulatory compliance, debugging, and gaining user trust.

How to implement this in your domain

  1. 1Assess current XAI practices for models trained on relational data to identify potential inconsistencies in explanations.
  2. 2Integrate RelShap into existing model interpretability pipelines for applications using relational databases.
  3. 3Train data scientists and ML engineers on the importance of relational consistency in feature attribution.
  4. 4Evaluate the impact of RelShap on the trustworthiness and actionability of model explanations in production.

Original post by Seungeun Lee, Joao Fonseca, Julia Stoyanovich

"arXiv:2608.11508v1 Announce Type: new Abstract: Machine learning pipelines commonly flatten relational data into single-table representations, discarding structural constraints. Widely used Shapley value-based feature attributions then rely on feature independence, evaluating the…"

View on X

Originally posted by Seungeun Lee, Joao Fonseca, Julia Stoyanovich on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses