Abstract
As machine learning (ML) is increasingly integrated into our everyday Webexperience, there is a call for transparent and explainable web-based ML.However, existing explainability techniques often require dedicated backendservers, which limit their usefulness as the Web community moves towardin-browser ML for lower latency and greater privacy. To address the pressingneed for a client-side explainability solution, we present WebSHAP, the firstin-browser tool that adapts the state-of-the-art model-agnostic explainabilitytechnique SHAP to the Web environment. Our open-source tool is developed withmodern Web technologies such as WebGL that leverage client-side hardwarecapabilities and make it easy to integrate into existing Web ML applications.We demonstrate WebSHAP in a usage scenario of explaining ML-based loan approvaldecisions to loan applicants. Reflecting on our work, we discuss theopportunities and challenges for future research on transparent Web ML. WebSHAPis available at https://github.com/poloclub/webshap.