{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T03:28:55Z","timestamp":1790738935504,"version":"4.1.0"},"reference-count":34,"publisher":"International Association for Cryptologic Research","issue":"4","license":[{"start":{"date-parts":[[2024,10,8]],"date-time":"2024-10-08T00:00:00Z","timestamp":1728345600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IACR CiC"],"accepted":{"date-parts":[[2024,12,3]]},"abstract":"<jats:p>Explainable AI (XAI) refers to the development of AI systems and machine learning models in a way that humans can understand, interpret and trust the predictions, decisions and outputs of these models.   A common approach to explainability is feature importance, that is, determining which input features of the model have the most significant impact on the model prediction. Two major techniques for computing feature importance are LIME (Local Interpretable Model-agnostic Explanations) and SHAP (SHapley Additive exPlanations). While very generic, these methods are computationally expensive even when the data is not encrypted. Applying them in the privacy-preserving setting when part or all of the input data is private is therefore a major computational challenge.   In this paper, we present XorSHAP - the first practical data-oblivious algorithm for computing SHAP values for decision tree ensemble models. The algorithm is applicable in various privacy-preserving settings such as SMPC, FHE and differential privacy. Our algorithm has complexity <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>O<\/mml:mi>\n                <mml:mo stretchy=\"false\">(<\/mml:mo>\n                <mml:mi>T<\/mml:mi>\n                <mml:mover>\n                  <mml:mrow>\n                    <mml:mi>M<\/mml:mi>\n                  <\/mml:mrow>\n                  <mml:mo>~<\/mml:mo>\n                <\/mml:mover>\n                <mml:mi>D<\/mml:mi>\n                <mml:msup>\n                  <mml:mn>2<\/mml:mn>\n                  <mml:mi>D<\/mml:mi>\n                <\/mml:msup>\n                <mml:mo stretchy=\"false\">)<\/mml:mo>\n              <\/mml:mrow>\n            <\/mml:math>, where <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>T<\/mml:mi>\n              <\/mml:mrow>\n            <\/mml:math> is the number of decision trees in the ensemble, <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>D<\/mml:mi>\n              <\/mml:mrow>\n            <\/mml:math> is the depth of the decision trees and <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mover>\n                  <mml:mrow>\n                    <mml:mi>M<\/mml:mi>\n                  <\/mml:mrow>\n                  <mml:mo>~<\/mml:mo>\n                <\/mml:mover>\n              <\/mml:mrow>\n            <\/mml:math> is the maximum of the number of features\u00a0<mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>M<\/mml:mi>\n              <\/mml:mrow>\n            <\/mml:math> and  <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:msup>\n                  <mml:mn>2<\/mml:mn>\n                  <mml:mi>D<\/mml:mi>\n                <\/mml:msup>\n              <\/mml:mrow>\n            <\/mml:math> (the number of leaf nodes of a tree), and scales to real-world datasets.   We implement the algorithm in the semi-honest Secure Multiparty Computation (SMPC) setting with full threshold using Inpher's Manticore framework. Our implementation simultaneously computes the SHAP values for 100 samples for an ensemble of <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>T<\/mml:mi>\n                <mml:mo>=<\/mml:mo>\n                <mml:mn>60<\/mml:mn>\n              <\/mml:mrow>\n            <\/mml:math> trees of depth <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>D<\/mml:mi>\n                <mml:mo>=<\/mml:mo>\n                <mml:mn>4<\/mml:mn>\n              <\/mml:mrow>\n            <\/mml:math> and <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n              <mml:mrow>\n                <mml:mi>M<\/mml:mi>\n                <mml:mo>=<\/mml:mo>\n                <mml:mn>100<\/mml:mn>\n              <\/mml:mrow>\n            <\/mml:math> features in just 7.5 minutes, meaning that the SHAP values for a single prediction are computed in just 4.5 seconds for the same decision tree ensemble model.   Additionally, it is parallelization-friendly, thus, enabling future work on massive hardware acceleration with GPUs. <\/jats:p>","DOI":"10.62056\/a3qjmp-3y","type":"journal-article","created":{"date-parts":[[2025,1,13]],"date-time":"2025-01-13T17:00:52Z","timestamp":1736787652000},"update-policy":"https:\/\/doi.org\/10.62056\/adfjwm02dj","source":"Crossref","is-referenced-by-count":5,"title":["XorSHAP: Privacy-Preserving Explainable AI for Decision Tree Models"],"prefix":"10.62056","volume":"1","author":[{"given":"Dimitar","family":"Jetchev","sequence":"first","affiliation":[{"name":"Input Output Global (IOG)","place":["Lausanne, CH-1015, Switzerland"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Marius","family":"Vuille","sequence":"additional","affiliation":[{"name":"Arcium","place":["Zug, CH-1015, Switzerland"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"48349","published-online":{"date-parts":[[2025,1,13]]},"reference":[{"key":"ref1:molnar2022","volume-title":"Interpretable Machine Learning","author":"C. Molnar","year":"2022"},{"key":"ref2:LIME","doi-asserted-by":"publisher","first-page":"97","DOI":"10.18653\/v1\/N16-3020","article-title":"\"Why Should I Trust You?\": Explaining the Predictions of\n  Any Classifier","author":"M. T\u00falio Ribeiro","year":"2016"},{"key":"ref3:lundberg2017unified","first-page":"4765","article-title":"A unified approach to interpreting model predictions","author":"S. Lundberg","year":"2017"},{"key":"ref4:euaiact","article-title":"European Union Artificial Intelligence Act","author":"EU AI Act","year":"2023"},{"key":"ref5:edps","article-title":"EDPS TechDispatch on Explainable AI","author":"European Data Protection Supervisor","year":"2023"},{"key":"ref6:treeshap","article-title":"Consistent Individualized Feature Attribution for Tree\n  Ensembles","volume":"abs\/1802.03888","author":"S.. Lundberg","year":"2018","journal-title":"CoRR"},{"key":"ref7:shap:monte-carlo","doi-asserted-by":"publisher","first-page":"647","DOI":"10.1007\/s10115-013-0679-x","article-title":"Explaining prediction models and individual predictions with\n  feature contributions","volume":"41","author":"E. Strumbelj","year":"2014","journal-title":"Knowl. Inf. Syst."},{"key":"ref8:manticore2021","doi-asserted-by":"publisher","first-page":"31","DOI":"10.1007\/s00145-023-09464-4","article-title":"Manticore: A Framework for Efficient Multiparty\n  Computation Supporting Real Number and Boolean Arithmetic","volume":"36","author":"M. Georgieva Belorgey","year":"2023","journal-title":"J. Cryptol."},{"key":"ref9:diffpriv-shapley","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2206.00511","volume-title":"Differentially Private Shapley Values for Data Evaluation","author":"Lauren Watson","year":"2022"},{"key":"ref10:interpret-FL","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.1905.04519","volume-title":"Interpret Federated Learning with Shapley Values","author":"Guan Wang","year":"2019"},{"key":"ref11:pp-shap-distributed","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2212.03373","article-title":"Achieving Transparency in Distributed Machine Learning with\n  Explainable Data Collaboration","volume":"abs\/2212.03373","author":"A. Bogdanova","year":"2022","journal-title":"CoRR"},{"key":"ref12:mpc-Shapley","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2210.08723","article-title":"Private Data Valuation and Fair Payment in Data\n  Marketplaces","volume":"abs\/2210.08723","author":"Z. Tian","year":"2022","journal-title":"CoRR"},{"key":"ref13:shapley1953value","doi-asserted-by":"publisher","first-page":"307","DOI":"10.1515\/9781400881970-018","article-title":"A value for n-person games","volume":"2","author":"L. Shapley","year":"1953","journal-title":"Contributions to the Theory of Games"},{"key":"ref14:xorboost:popets","doi-asserted-by":"publisher","first-page":"66","DOI":"10.56553\/popets-2022-0099","article-title":"XORBoost: Tree Boosting in the Multiparty\n  Computation Setting","volume":"2022","author":"K. Deforth","year":"2022","journal-title":"Proc. Priv. Enhancing Technol."},{"key":"ref15:treeshap-nature","doi-asserted-by":"publisher","first-page":"56","DOI":"10.1038\/s42256-019-0138-9","article-title":"From local explanations to global understanding with\n  explainable AI for trees","volume":"2","author":"S. Lundberg","year":"2020","journal-title":"Nat. Mach. Intell."},{"key":"ref16:fasttreeshap","doi-asserted-by":"publisher","DOI":"10.48550\/arXiv.2109.09847","volume-title":"Fast TreeSHAP: Accelerating SHAP Value Computation for\n  Trees","author":"Jilei Yang","year":"2022"},{"key":"ref17:gputreeshap","doi-asserted-by":"publisher","DOI":"10.7717\/peerj-cs.880","article-title":"GPUTreeShap: massively parallel exact calculation of SHAP\n  scores for tree ensembles","volume":"8","author":"Rory Mitchell","year":"2022","journal-title":"PeerJ Computer Science"},{"key":"ref18:sharemind","doi-asserted-by":"publisher","first-page":"192","DOI":"10.1007\/978-3-540-88313-5_13","article-title":"Sharemind: A framework for fast privacy-preserving\n  computations","author":"D. Bogdanov","year":"2008"},{"key":"ref19:inpherpaper","isbn-type":"print","doi-asserted-by":"publisher","first-page":"183","DOI":"10.1007\/978-3-662-58387-6_10","article-title":"High-Precision Privacy-Preserving Real-Valued Function\n  Evaluation","author":"Christina Boura","year":"2018","ISBN":"https:\/\/id.crossref.org\/isbn\/9783662583876"},{"key":"ref20:spdz:crypto","doi-asserted-by":"publisher","first-page":"643","DOI":"10.1007\/978-3-642-32009-5_38","article-title":"Multiparty computation from somewhat homomorphic\n  encryption","author":"I. Damg\u00e5rd","year":"2012"},{"key":"ref21:improvedMPC-spdz","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"823","DOI":"10.1007\/978-3-030-56880-1_29","article-title":"Improved Primitives for MPC over Mixed Arithmetic-Binary\n  Circuits","volume":"12171","author":"D. Escudero","year":"2020"},{"key":"ref22:mp-spdz","doi-asserted-by":"publisher","first-page":"1575","DOI":"10.1145\/3372297.3417872","article-title":"MP-SPDZ: A Versatile Framework for Multi-Party\n  Computation","author":"M. Keller","year":"2020"},{"key":"ref23:mascot","doi-asserted-by":"publisher","first-page":"830","DOI":"10.1145\/2976749.2978357","article-title":"MASCOT: faster malicious arithmetic secure computation with\n  oblivious transfer","author":"M. Keller","year":"2016"},{"key":"ref24:overdrive:spdz","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"158","DOI":"10.1007\/978-3-319-78372-7_6","article-title":"Overdrive: Making SPDZ Great Again","volume":"10822","author":"M. Keller","year":"2018"},{"key":"ref25:visa18","isbn-type":"print","doi-asserted-by":"publisher","first-page":"35","DOI":"10.1145\/3243734.3243760","article-title":"ABY\\({}^{\\mbox{3}}\\): A Mixed Protocol Framework for\n  Machine Learning","author":"P. Mohassel","year":"2018","ISBN":"https:\/\/id.crossref.org\/isbn\/9781450356930"},{"key":"ref26:visapaper","isbn-type":"print","doi-asserted-by":"publisher","first-page":"19","DOI":"10.1109\/SP.2017.12","article-title":"SecureML: A System for Scalable Privacy-Preserving\n  Machine Learning","author":"P. Mohassel","year":"2017","ISBN":"https:\/\/id.crossref.org\/isbn\/9781509055333"},{"key":"ref27:secureNN","doi-asserted-by":"publisher","first-page":"26","DOI":"10.2478\/popets-2019-0035","article-title":"SecureNN: 3-party secure computation for neural network\n  training","volume":"2019","author":"S. Wagh","year":"2019","journal-title":"Proceedings on Privacy Enhancing Technologies"},{"key":"ref28:scale-mamba","volume-title":"Scale and Mamba","author":"Scale-and-Mamba","year":"2023"},{"key":"ref29:ABY2","article-title":"ABY2. 0: Improved mixed-protocol secure two-party\n  computation","author":"A. Patra","year":"2021"},{"key":"ref30:spdz2k","doi-asserted-by":"publisher","first-page":"769","DOI":"10.1007\/978-3-319-96881-0_26","article-title":"SPD$\\mathbb{Z}_{2^k}$: Efficient MPC mod $2^k$ for\n  Dishonest Majority","author":"R. Cramer","year":"2018"},{"key":"ref31:digital-design-book","isbn-type":"print","volume-title":"Digital Design: A Systems Approach","author":"W.J. Dally","year":"2012","ISBN":"https:\/\/id.crossref.org\/isbn\/9780521199506"},{"key":"ref32:inpher:blog-shap","article-title":"Balancing Privacy and Explainable AI in Semiconductor\n  Manufacturing","author":"D. Jetchev","year":"2023"},{"key":"ref33:DBLP:conf\/sp\/2017","isbn-type":"print","volume-title":"2017 IEEE Symposium on Security and Privacy, SP 2017,\n  San Jose, CA, USA, May 22-26, 2017","year":"2017","ISBN":"https:\/\/id.crossref.org\/isbn\/9781509055333"},{"key":"ref34:DBLP:conf\/ccs\/2018","isbn-type":"print","volume-title":"Proceedings of the 2018 ACM SIGSAC Conference on\n  Computer and Communications Security, CCS 2018, Toronto, ON, Canada,\n  October 15-19, 2018","year":"2018","ISBN":"https:\/\/id.crossref.org\/isbn\/9781450356930"}],"container-title":["IACR Communications in Cryptology"],"original-title":[],"language":"en","deposited":{"date-parts":[[2025,1,13]],"date-time":"2025-01-13T17:12:11Z","timestamp":1736788331000},"score":1,"resource":{"primary":{"URL":"https:\/\/cic.iacr.org\/p\/1\/4\/27"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,1,13]]},"references-count":34,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2025,1,13]]}},"URL":"https:\/\/doi.org\/10.62056\/a3qjmp-3y","archive":["Internet Archive","Internet Archive"],"relation":{},"ISSN":["3006-5496"],"issn-type":[{"value":"3006-5496","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,1,13]]},"assertion":[{"value":"2024-10-08","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-12-03","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"cc1-4-52"}}