{"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/explaining-preferences-with-shapley-values","title":"Explaining Preferences with Shapley Values","arxiv_id":"2205.13662","date":"2022-05-26","proceeding":null,"authors":["Robert Hu","Siu Lun Chau","Jaime Ferrando Huertas","Dino Sejdinovic"],"abstract":"While preference modelling is becoming one of the pillars of machine learning, the problem of preference explanation remains challenging and underexplored. In this paper, we propose \\textsc{Pref-SHAP}, a Shapley value-based model explanation framework for pairwise comparison data. We derive the appropriate value functions for preference models and further extend the framework to model and explain \\emph{context specific} information, such as the surface type in a tennis game. To demonstrate the utility of \\textsc{Pref-SHAP}, we apply our method to a variety of synthetic and real-world datasets and show that richer and more insightful explanations can be obtained over the baseline.","url_abs":"https://arxiv.org/abs/2205.13662v2","url_pdf":"https://arxiv.org/pdf/2205.13662v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"explaining-preferences-with-shapley-values","repo_url":"https://github.com/mrhuff/pref-shap","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.13662","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.13662"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mrhuff/pref-shap","reach":null}],"summary":{"ran_draft_wrong":4,"ran_fixture":1,"ran_honours":1},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":0,"samples":[{"code_sha256_prefix":"154eb737e6fd1cb9","entry":"cumsum_thingy","repo":"mrhuff/pref-shap","repo_kind":"official","path":"shap_pipeline.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/shap_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"154eb737e6fd1cb9"}},{"code_sha256_prefix":"6a581f56dade80d0","entry":"cumsum_thingy_2","repo":"mrhuff/pref-shap","repo_kind":"official","path":"shap_pipeline.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/shap_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a581f56dade80d0"}},{"code_sha256_prefix":"62e0c3993245ef19","entry":"filter_out_names","repo":"mrhuff/pref-shap","repo_kind":"official","path":"post_process_plots.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/post_process_plots.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62e0c3993245ef19"}},{"code_sha256_prefix":"130c6611d98abe3b","entry":"pivot","repo":"mrhuff/pref-shap","repo_kind":"official","path":"post_process_plots.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/post_process_plots.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"130c6611d98abe3b"}},{"code_sha256_prefix":"6d9e86ab24e9bc8c","entry":"return_feature_names","repo":"mrhuff/pref-shap","repo_kind":"official","path":"shap_pipeline.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/shap_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6d9e86ab24e9bc8c"}},{"code_sha256_prefix":"1b63134ff3049577","entry":"slice_df","repo":"mrhuff/pref-shap","repo_kind":"official","path":"post_process_plots.py","file_url":"https://github.com/mrhuff/pref-shap/blob/HEAD/post_process_plots.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1b63134ff3049577"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}