TokenSHAP: Interpreting Large Language Models with Monte Carlo Shapley Value Estimation
Not on the map. Why?
Abstract (arXiv)
As large language models (LLMs) become increasingly prevalent in critical applications, the need for interpretable AI has grown. We introduce TokenSHAP, a novel method for interpreting LLMs by attributing importance to individual tokens or substrings within input prompts. This approach adapts Shapley values from cooperative game theory to natural language processing, offering a rigorous framework for understanding how different parts of an input contribute to a model's response. TokenSHAP leverages Monte Carlo sampling for computational efficiency, providing interpretable, quantitative measures of token importance. We demonstrate its efficacy across diverse prompts and LLM architectures, showing consistent improvements over existing baselines in alignment with human judgments, faithfulness to model behavior, and consistency. Our method's ability to capture nuanced interactions between tokens provides valuable insights into LLM behavior, enhancing model transparency, improving prompt engineering, and aiding in the development of more reliable AI systems. TokenSHAP represents a significant step towards the necessary interpretability for responsible AI deployment, contributing to the broader goal of creating more transparent, accountable, and trustworthy AI systems.
Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Builds on 12 of its 20 references that are in the map. First posted on arXiv 14 Jul 2024.
Builds on
12 of 20 references.
References · 12
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2018A Survey Of Methods For Explaining Black Box Modelscited by 970
- 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
- 2018L-Shapley and C-Shapley: Efficient Model Interpretation for Structured Datacited by 100
- 2020NILE : Natural Language Inference with Faithful Natural Language Explanationscited by 96
Built on by
Citing papers per year: 2024: 1; 2025: 25; 2026: 15.
41 papers.
Sort:
By area:
- 2025Demystifying Reasoning Dynamics with Mutual Information: Thinking Tokens are Information Peaks in LLM Reasoningcited by 50
- 2025Game Theory Meets Large Language Models: A Systematic Survey with Taxonomy and New Frontierscited by 14
- 2025SCAR: Shapley Credit Assignment for More Efficient RLHFcited by 13
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2025Attention, Please! PixelSHAP Reveals What Vision-Language Models Actually Focus Oncited by 9
- 2025Causality Matters: How Temporal Information Emerges in Video Language Modelscited by 9
- 2025MultiSHAP: A Shapley-Based Framework for Explaining Cross-Modal Interactions in Multimodal AI Modelscited by 7
- 2025BottleHumor: Self-Informed Humor Explanation using the Information Bottleneck Principlecited by 6
- 2025Concept-Level Explainability for Auditing & Steering LLM Responsescited by 6
- 2025Can Global XAI Methods Reveal Injected Behaviours in LLMs? SHAP vs Rule Extraction vs RuleSHAPcited by 3
- 2025TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentationcited by 3
- 2025Anchors in the Machine: Behavioral and Attributional Evidence of Anchoring Bias in LLMscited by 3
29 more
- 2025Measuring What LLMs Think They Do: SHAP Faithfulness and Deployability on Financial Tabular Classificationcited by 3
- 2025Towards Reliable and Interpretable Traffic Crash Pattern Prediction and Safety Interventions Using Customized Large Language Modelscited by 1
- 2025llmSHAP: A Principled Approach to LLM Explainabilitycited by 1
- 2025A Decentralized Retrieval Augmented Generation System with Source Reliabilities Secured on Blockchaincited by 1
- 2025Quantifying Modality Contributions via Disentangling Multimodal Representationscited by 1
- 2025Shapley-based Data Valuation for LLM Alignment via Sequential Preference Optimizationcited by 1
- 2026Owen-Shapley Policy Optimization: A Principled RL Algorithm for Generative Search LLMscited by 1
- 2026Interpretable Probability Estimation with LLMs via Shapley Reconstructioncited by 1
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Trainingcited by 1
- 2024Concept Based Continuous Prompts for Interpretable Text Classificationcited by 0
- 2025ExpertLens: Activation steering features are highly interpretablecited by 0
- 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classificationcited by 0
- 2025Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Frameworkcited by 0
- 2025A Video Is Not Worth a Thousand Wordscited by 0
- 2025Can LLMs Faithfully Explain Themselves in Low-Resource Languages? A Case Study on Emotion Detection in Persiancited by 0
- 2025AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimationcited by 0
- 2025Toward Explaining Large Language Models in Software Engineering Taskscited by 0
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoningcited by 0
- 2026ShapE-GRPO: Shapley-Enhanced Reward Allocation for Multi-Candidate LLM Trainingcited by 0
- 2026The Query Channel: Information-Theoretic Limits of Masking-Based Explanationscited by 0
- 2026TabSHAPcited by 0
- 2026mllm-shap: A Shapley Value Explainability Platform for Text-Audio Multimodal Large Language Modelscited by 0
- 2026Detection and Interpretability Analysis of Quotation Errors by Large Language Modelscited by 0
- 2026Investigating Linguistic Steering: An Analysis of Adjectival Effects Across Large Language Model Architecturescited by 0
- 2026Shapley Context Pruning: A Cooperative Game Perspective for Context Reranking and Pruningcited by 0
- 2026Model-Agnostic FDR Control via Group Gaussian Mirror and Permutation SHAPcited by 0
- 2026SkillShapley: Boundary-Adaptive Shapley Valuation for Skill Step Attribution in LLM Agentscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levelscited by 0
- 2026Guiding Worker Self-Selection in Crowdsourcing Contests: An LLM-Augmented Algorithmic Approachcited by 0
- 2026Guiding Worker Self-Selection in Crowdsourcing Contests: An LLM-Augmented Algorithmic Approach7 Sep 2026
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels24 Aug 2026
- 2026SkillShapley: Boundary-Adaptive Shapley Valuation for Skill Step Attribution in LLM Agents13 Aug 2026
- 2026Model-Agnostic FDR Control via Group Gaussian Mirror and Permutation SHAP2 Aug 2026
- 2026Detection and Interpretability Analysis of Quotation Errors by Large Language Models7 Jun 2026
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Training1 Jun 2026
- 2026Shapley Context Pruning: A Cooperative Game Perspective for Context Reranking and Pruning10 May 2026
- 2026Investigating Linguistic Steering: An Analysis of Adjectival Effects Across Large Language Model Architectures28 Apr 2026
- 2026TabSHAP22 Apr 2026
- 2026mllm-shap: A Shapley Value Explainability Platform for Text-Audio Multimodal Large Language Models21 Apr 2026
- 2026The Query Channel: Information-Theoretic Limits of Masking-Based Explanations17 Apr 2026
- 2026ShapE-GRPO: Shapley-Enhanced Reward Allocation for Multi-Candidate LLM Training31 Mar 2026
29 more
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoning21 Feb 2026
- 2026Interpretable Probability Estimation with LLMs via Shapley Reconstruction14 Jan 2026
- 2026Owen-Shapley Policy Optimization: A Principled RL Algorithm for Generative Search LLMs13 Jan 2026
- 2025Toward Explaining Large Language Models in Software Engineering Tasks23 Dec 2025
- 2025AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation14 Dec 2025
- 2025Shapley-based Data Valuation for LLM Alignment via Sequential Preference Optimization12 Dec 2025
- 2025Measuring What LLMs Think They Do: SHAP Faithfulness and Deployability on Financial Tabular Classification28 Nov 2025
- 2025Can LLMs Faithfully Explain Themselves in Low-Resource Languages? A Case Study on Emotion Detection in Persian24 Nov 2025
- 2025Quantifying Modality Contributions via Disentangling Multimodal Representations22 Nov 2025
- 2025A Decentralized Retrieval Augmented Generation System with Source Reliabilities Secured on Blockchain10 Nov 2025
- 2025Anchors in the Machine: Behavioral and Attributional Evidence of Anchoring Bias in LLMs7 Nov 2025
- 2025llmSHAP: A Principled Approach to LLM Explainability3 Nov 2025
- 2025A Video Is Not Worth a Thousand Words27 Oct 2025
- 2025Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Framework25 Sep 2025
- 2025Causality Matters: How Temporal Information Emerges in Video Language Models15 Aug 2025
- 2025MultiSHAP: A Shapley-Based Framework for Explaining Cross-Modal Interactions in Multimodal AI Models1 Aug 2025
- 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classification12 Jul 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Demystifying Reasoning Dynamics with Mutual Information: Thinking Tokens are Information Peaks in LLM Reasoning3 Jun 2025
- 2025SCAR: Shapley Credit Assignment for More Efficient RLHF26 May 2025
- 2025TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentation24 May 2025
- 2025Towards Reliable and Interpretable Traffic Crash Pattern Prediction and Safety Interventions Using Customized Large Language Models18 May 2025
- 2025Can Global XAI Methods Reveal Injected Behaviours in LLMs? SHAP vs Rule Extraction vs RuleSHAP16 May 2025
- 2025Concept-Level Explainability for Auditing & Steering LLM Responses12 May 2025
- 2025Attention, Please! PixelSHAP Reveals What Vision-Language Models Actually Focus On9 Mar 2025
- 2025BottleHumor: Self-Informed Humor Explanation using the Information Bottleneck Principle22 Feb 2025
- 2025ExpertLens: Activation steering features are highly interpretable20 Feb 2025
- 2025Game Theory Meets Large Language Models: A Systematic Survey with Taxonomy and New Frontiers13 Feb 2025
- 2024Concept Based Continuous Prompts for Interpretable Text Classification2 Dec 2024
- 2025Demystifying Reasoning Dynamics with Mutual Information: Thinking Tokens are Information Peaks in LLM Reasoningcited by 50
- 2025Measuring What LLMs Think They Do: SHAP Faithfulness and Deployability on Financial Tabular Classificationcited by 3
- 2026Owen-Shapley Policy Optimization: A Principled RL Algorithm for Generative Search LLMscited by 1
- 2026Interpretable Probability Estimation with LLMs via Shapley Reconstructioncited by 1
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoningcited by 0
- 2026ShapE-GRPO: Shapley-Enhanced Reward Allocation for Multi-Candidate LLM Trainingcited by 0
- 2026ShapE-GRPO: Shapley-Enhanced Reward Allocation for Multi-Candidate LLM Training31 Mar 2026
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoning21 Feb 2026
- 2026Interpretable Probability Estimation with LLMs via Shapley Reconstruction14 Jan 2026
- 2026Owen-Shapley Policy Optimization: A Principled RL Algorithm for Generative Search LLMs13 Jan 2026
- 2025Measuring What LLMs Think They Do: SHAP Faithfulness and Deployability on Financial Tabular Classification28 Nov 2025
- 2025Demystifying Reasoning Dynamics with Mutual Information: Thinking Tokens are Information Peaks in LLM Reasoning3 Jun 2025
- 2025AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimationcited by 0
- 2026SkillShapley: Boundary-Adaptive Shapley Valuation for Skill Step Attribution in LLM Agentscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levelscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels24 Aug 2026
- 2026SkillShapley: Boundary-Adaptive Shapley Valuation for Skill Step Attribution in LLM Agents13 Aug 2026
- 2025AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation14 Dec 2025
- 2025Game Theory Meets Large Language Models: A Systematic Survey with Taxonomy and New Frontierscited by 14
- 2025Causality Matters: How Temporal Information Emerges in Video Language Modelscited by 9
- 2025MultiSHAP: A Shapley-Based Framework for Explaining Cross-Modal Interactions in Multimodal AI Modelscited by 7
- 2025BottleHumor: Self-Informed Humor Explanation using the Information Bottleneck Principlecited by 6
- 2025Can Global XAI Methods Reveal Injected Behaviours in LLMs? SHAP vs Rule Extraction vs RuleSHAPcited by 3
- 2025TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentationcited by 3
- 2025Anchors in the Machine: Behavioral and Attributional Evidence of Anchoring Bias in LLMscited by 3
- 2025Towards Reliable and Interpretable Traffic Crash Pattern Prediction and Safety Interventions Using Customized Large Language Modelscited by 1
- 2025llmSHAP: A Principled Approach to LLM Explainabilitycited by 1
- 2025Quantifying Modality Contributions via Disentangling Multimodal Representationscited by 1
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Trainingcited by 1
- 2024Concept Based Continuous Prompts for Interpretable Text Classificationcited by 0
12 most cited of 23 All 23 (JSON)
- 2026Guiding Worker Self-Selection in Crowdsourcing Contests: An LLM-Augmented Algorithmic Approach7 Sep 2026
- 2026Model-Agnostic FDR Control via Group Gaussian Mirror and Permutation SHAP2 Aug 2026
- 2026Detection and Interpretability Analysis of Quotation Errors by Large Language Models7 Jun 2026
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Training1 Jun 2026
- 2026Investigating Linguistic Steering: An Analysis of Adjectival Effects Across Large Language Model Architectures28 Apr 2026
- 2026TabSHAP22 Apr 2026
- 2026The Query Channel: Information-Theoretic Limits of Masking-Based Explanations17 Apr 2026
- 2025Toward Explaining Large Language Models in Software Engineering Tasks23 Dec 2025
- 2025Can LLMs Faithfully Explain Themselves in Low-Resource Languages? A Case Study on Emotion Detection in Persian24 Nov 2025
- 2025Quantifying Modality Contributions via Disentangling Multimodal Representations22 Nov 2025
- 2025Anchors in the Machine: Behavioral and Attributional Evidence of Anchoring Bias in LLMs7 Nov 2025
- 2025llmSHAP: A Principled Approach to LLM Explainability3 Nov 2025
12 newest of 23 All 23 (JSON)