AIHCLGDec 8, 2025

ContextualSHAP : Enhancing SHAP Explanations Through Contextual Language Generation

arXiv:2512.07178v12 citationsh-index: 11
Originality Incremental advance
AI Analysis

This work addresses the need for more user-friendly explanations in high-stakes domains like healthcare, though it is incremental as it builds on existing SHAP methods.

The authors tackled the problem of SHAP explanations lacking contextual meaning for non-technical users by integrating a large language model to generate textual explanations, and in a healthcare case study, users perceived these explanations as more understandable and contextually appropriate than visual-only outputs.

Explainable Artificial Intelligence (XAI) has become an increasingly important area of research, particularly as machine learning models are deployed in high-stakes domains. Among various XAI approaches, SHAP (SHapley Additive exPlanations) has gained prominence due to its ability to provide both global and local explanations across different machine learning models. While SHAP effectively visualizes feature importance, it often lacks contextual explanations that are meaningful for end-users, especially those without technical backgrounds. To address this gap, we propose a Python package that extends SHAP by integrating it with a large language model (LLM), specifically OpenAI's GPT, to generate contextualized textual explanations. This integration is guided by user-defined parameters (such as feature aliases, descriptions, and additional background) to tailor the explanation to both the model context and the user perspective. We hypothesize that this enhancement can improve the perceived understandability of SHAP explanations. To evaluate the effectiveness of the proposed package, we applied it in a healthcare-related case study and conducted user evaluations involving real end-users. The results, based on Likert-scale surveys and follow-up interviews, indicate that the generated explanations were perceived as more understandable and contextually appropriate compared to visual-only outputs. While the findings are preliminary, they suggest that combining visualization with contextualized text may support more user-friendly and trustworthy model explanations.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes