{"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-2604-08438","title":"Adalina: Adaptive Linear Approximation for the Shapley Value and Beyond","arxiv_id":"2604.08438","date":"2026-04-09","proceeding":"ICML","authors":["Weida Li","Yaoliang Yu","Bryan Kian Hsiang Low"],"abstract":"The Shapley value, and its broader family of semi-values, has received much attention in various attribution problems. A fundamental and long-standing challenge is their efficient approximation, since exact computation generally requires an exponential number of utility queries in the number of players $n$. To meet the challenges of large-scale applications, we explore the limits of efficiently approximating semi-values under a $Θ(n)$ space constraint. Building upon a vector concentration inequality, we establish a theoretical framework that enables sharper query complexities for existing unbiased randomized algorithms. Within this framework, we systematically develop a linear-space algorithm that requires $O(\\frac{n}{ε^{2}}\\log\\frac{1}δ)$ utility queries to ensure $P(\\|\\hat{\\boldsymbolφ}-\\boldsymbolφ\\|_{2}\\geqε)\\leq δ$ for all commonly used semi-values. In particular, our framework naturally bridges OFA, unbiased kernelSHAP, SHAP-IQ and the regression-adjusted approach, and definitively characterizes when paired sampling is beneficial. Moreover, our algorithm allows explicit minimization of the mean squared error $\\mathbb{E}[\\|\\hat{\\boldsymbolφ}-\\boldsymbolφ\\|_{2}^{2}]$ for each specific utility function. Accordingly, we introduce the first adaptive, linear-time, linear-space randomized algorithm, Adalina, that theoretically achieves improved mean squared error. All of our theoretical findings are experimentally validated. Our code is available at https://github.com/watml/adalina.","url_abs":"https://arxiv.org/abs/2604.08438","url_pdf":"https://arxiv.org/pdf/2604.08438","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":{"atlas_url":"https://app.syntology.ai/?focus=2604.08438","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.08438"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/watml/adalina","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/watml/TreeGrad","reach":null}],"summary":{"ran_fixture":2,"ran":4,"ran_honours":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":10,"ran":7,"repositories":2}},"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":11,"samples":[{"code_sha256_prefix":"79c9a61608039a03","entry":"cache","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79c9a61608039a03"}},{"code_sha256_prefix":"6fa012154350cf59","entry":"copy_tree","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.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":"6fa012154350cf59"}},{"code_sha256_prefix":"39931e10d758736b","entry":"estimatorTemplate","repo":"watml/adalina","repo_kind":"found_in_text","path":"estimators/Adalina.py","file_url":"https://github.com/watml/adalina/blob/HEAD/estimators/Adalina.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":"39931e10d758736b"}},{"code_sha256_prefix":"c9e9f993d66c7723","entry":"get_N","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c9e9f993d66c7723"}},{"code_sha256_prefix":"3e3f29e0ca3f0e39","entry":"get_norm_weight","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"3e3f29e0ca3f0e39"}},{"code_sha256_prefix":"810ef654e4718605","entry":"kernelSHAP_MV","repo":"watml/adalina","repo_kind":"found_in_text","path":"estimators/Adalina.py","file_url":"https://github.com/watml/adalina/blob/HEAD/estimators/Adalina.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":"810ef654e4718605"}},{"code_sha256_prefix":"8d9efe4a4a35d515","entry":"linear_treeshap","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8d9efe4a4a35d515"}},{"code_sha256_prefix":"46acbf9bb07cb485","entry":"psi","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.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":"46acbf9bb07cb485"}},{"code_sha256_prefix":"37daef4d1d68929a","entry":"Adalina","repo":"watml/adalina","repo_kind":"found_in_text","path":"estimators/Adalina.py","file_url":"https://github.com/watml/adalina/blob/HEAD/estimators/Adalina.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":"37daef4d1d68929a"}},{"code_sha256_prefix":"260a5bcd5b8c512e","entry":"_inference","repo":"watml/TreeGrad","repo_kind":"found_in_text","path":"linearTreeShap/linearTreeShap.py","file_url":"https://github.com/watml/TreeGrad/blob/HEAD/linearTreeShap/linearTreeShap.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":"260a5bcd5b8c512e"}},{"code_sha256_prefix":"92bcaf275aad7d05","entry":"linearAppr","repo":"watml/adalina","repo_kind":"found_in_text","path":"estimators/Adalina.py","file_url":"https://github.com/watml/adalina/blob/HEAD/estimators/Adalina.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":"92bcaf275aad7d05"}}]},"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":null}