arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07178cs.AIcs.HCcs.LG
收藏

ContextualSHAP:通过上下文语言生成增强SHAP解释

ContextualSHAP : Enhancing SHAP Explanations Through Contextual Language Generation

Kanazawa University(金泽大学)

Latifa Dwiyanti, Sergio Ryan Wibisono, Hidetaka Nambo

AI总结:

本文提出结合大语言模型生成上下文解释的ContextualSHAP,提升SHAP解释的可理解性与实用性,通过医疗案例验证其有效性。

摘要:

可解释人工智能(XAI)已成为研究重点,尤其在高风险领域应用机器学习模型时。SHAP(SHapley Additive exPlanations)因其能提供全局和局部解释而广受关注。尽管SHAP能可视化特征重要性,但缺乏对非技术用户有意义的上下文解释。为此,本文提出一个Python包,通过集成大语言模型(如OpenAI的GPT)生成上下文化的文本解释,利用用户定义的参数(如特征别名、描述和背景)定制解释。在医疗案例研究中,通过用户评估发现生成的解释比仅视觉化的输出更易懂且更符合上下文。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑