English

llmSHAP: A Principled Approach to LLM Explainability

Artificial Intelligence 2025-11-04 v1

Abstract

Feature attribution methods help make machine learning-based inference explainable by determining how much one or several features have contributed to a model's output. A particularly popular attribution method is based on the Shapley value from cooperative game theory, a measure that guarantees the satisfaction of several desirable principles, assuming deterministic inference. We apply the Shapley value to feature attribution in large language model (LLM)-based decision support systems, where inference is, by design, stochastic (non-deterministic). We then demonstrate when we can and cannot guarantee Shapley value principle satisfaction across different implementation variants applied to LLM-based decision support, and analyze how the stochastic nature of LLMs affects these guarantees. We also highlight trade-offs between explainable inference speed, agreement with exact Shapley value attributions, and principle attainment.

Keywords

Cite

@article{arxiv.2511.01311,
  title  = {llmSHAP: A Principled Approach to LLM Explainability},
  author = {Filip Naudot and Tobias Sundqvist and Timotheus Kampik},
  journal= {arXiv preprint arXiv:2511.01311},
  year   = {2025}
}
R2 v1 2026-07-01T07:18:48.148Z