{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2608-11508","title":"RelShap: Relationally Consistent Shapley Explanations","arxiv_id":"2608.11508","date":"2026-08-11","proceeding":null,"authors":["Seungeun Lee","Joao Fonseca","Julia Stoyanovich"],"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 model on combinations that could never arise in the underlying data, producing misleading explanations. We propose RelShap, a framework that incorporates relational constraints and data provenance into Shapley value computation, restricting both background data and coalition evaluation to relationally valid configurations. The framework is estimator-agnostic and composes with Kernel SHAP, Monte Carlo, and Leverage SHAP without altering their sampling or weighting properties. Functional dependencies further induce equivalence classes over feature coalitions, which RelShap exploits to reduce runtime without changing Shapley values; we provide a combinatorial characterization of the expected speedup. Experiments across multiple datasets, models, and estimators show that RelShap produces explanations that are more faithful to the data-generating process, correctly identifying the dominant feature in controlled settings where existing methods, including Conditional SHAP and ManifoldShap, do not. Our code is available at: https://github.com/duneag2/relshap.","url_abs":"https://arxiv.org/abs/2608.11508","url_pdf":"https://arxiv.org/pdf/2608.11508","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2608.11508","atlas_url":"https://app.syntology.ai/?focus=2608.11508","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.11508"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/duneag2/relshap","reach":null}],"summary":{"ran":8,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":9,"ran":8,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"22835223dcc96a8b","entry":"compile_id_name_regex","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"constraint_data.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/constraint_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"22835223dcc96a8b"}},{"code_sha256_prefix":"530a83d8218cd49f","entry":"load_config","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"constraint_data.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/constraint_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"530a83d8218cd49f"}},{"code_sha256_prefix":"701574889947629e","entry":"load_config","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"fd_ic_refinement.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/fd_ic_refinement.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"701574889947629e"}},{"code_sha256_prefix":"9bce048b11fbd19b","entry":"load_excluded_fd_pairs","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"constraint_data.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/constraint_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9bce048b11fbd19b"}},{"code_sha256_prefix":"25dfc74cca9f804e","entry":"normalize_lhs","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"fd_ic_refinement.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/fd_ic_refinement.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"25dfc74cca9f804e"}},{"code_sha256_prefix":"67ffde3dd3bbf331","entry":"normalize_rhs","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"fd_ic_refinement.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/fd_ic_refinement.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"67ffde3dd3bbf331"}},{"code_sha256_prefix":"f9ad4e9c14c9510f","entry":"parallel_loop","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"parallel_utils.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/parallel_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9ad4e9c14c9510f"}},{"code_sha256_prefix":"af894a79b1227e76","entry":"parse_check_to_domain_rules","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"constraint_schema.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/constraint_schema.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"af894a79b1227e76"}},{"code_sha256_prefix":"f82e4128c4274d2c","entry":"build_model","repo":"duneag2/relshap","repo_kind":"found_in_text","path":"models.py","file_url":"https://github.com/duneag2/relshap/blob/HEAD/models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f82e4128c4274d2c"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}