PromptExp: Multi-granularity Prompt Explanation of Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models excel in tasks like natural language understanding and text generation. Prompt engineering plays a critical role in leveraging LLM effectively. However, LLMs black-box nature hinders its interpretability and effective prompting engineering. A wide range of model explanation approaches have been developed for deep learning models, However, these local explanations are designed for single-output tasks like classification and regression,and cannot be directly applied to LLMs, which generate sequences of tokens. Recent efforts in LLM explanation focus on natural language explanations, but they are prone to hallucinations and inaccuracies. To address this, we introduce PromptExp , a framework for multi-granularity prompt explanations by aggregating token-level insights. PromptExp introduces two token-level explanation approaches: 1. an aggregation-based approach combining local explanation techniques, and 2. a perturbation-based approach with novel techniques to evaluate token masking impact. PromptExp supports both white-box and black-box explanations and extends explanations to higher granularity levels, enabling flexible analysis. We evaluate PromptExp in case studies such as sentiment analysis, showing the perturbation-based approach performs best using semantic similarity to assess perturbation impact. Furthermore, we conducted a user study to confirm PromptExp's accuracy and practical value, and demonstrate its potential to enhance LLM interpretability.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 36 of its 51 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
36 of 51 references.
References · 36
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 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
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020Captum: A unified and generic model interpretability library for PyTorchcited by 542
- 2018e-SNLI: Natural Language Inference with Natural Language Explanationscited by 468
24 more
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2015Visualizing and Understanding Neural Models in NLPcited by 199
- 2022The Unreliability of Explanations in Few-shot Prompting for Textual Reasoningcited by 169
- 2024Rethinking Interpretability in the Era of Large Language Modelscited by 110
- 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
- 2024500xCompressor: Generalized Prompt Compression for Large Language Modelscited by 45
- 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
- 2023Towards Understanding In-Context Learning with Contrastive Demonstrations and Saliency Mapscited by 35
- 2021Improving the Faithfulness of Attention-based Explanations with Task-specific Information for Text Classificationcited by 29
- 2016Interpretation of Prediction Models Using the Input Gradientcited by 24
- 2021Counterfactual Explanations for Models of Codecited by 24
- 2024Unique Security and Privacy Threats of Large Language Models: A Comprehensive Surveycited by 20
- 2021VisQA: X-raying Vision and Language Reasoning in Transformerscited by 19
- 2021Few-Shot Out-of-Domain Transfer Learning of Natural Language Explanations in a Label-Abundant Setupcited by 16
- 2019On Attribution of Recurrent Neural Network Predictions via Additive Decompositioncited by 15
- 2024Word Importance Explains How Prompts Affect Language Model Outputscited by 6
- 2020Sequential Interpretability: Methods, Applications, and Future Direction for Understanding Deep Learning Models in the Context of Sequential Datacited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 1.
6 papers.
- 2025Agentic Software Engineering: Foundational Pillars and a Research Roadmapcited by 40
- 2024Watson: A Cognitive Observability Framework for the Reasoning of LLM-Powered Agentscited by 8
- 2025Understanding the Dilemma of Unlearning for Large Language Modelscited by 3
- 2025Fuzzy Reasoning Chain (FRC): An Innovative Reasoning Framework from Fuzziness to Claritycited by 2
- 2025Understanding Formal Reasoning Failures in LLMs as Abstract Interpreterscited by 1
- 2026Prompt-Driven Code Summarization: A Systematic Literature Reviewcited by 0
- 2026Prompt-Driven Code Summarization: A Systematic Literature Review16 Apr 2026
- 2025Understanding the Dilemma of Unlearning for Large Language Models29 Sep 2025
- 2025Fuzzy Reasoning Chain (FRC): An Innovative Reasoning Framework from Fuzziness to Clarity26 Sep 2025
- 2025Agentic Software Engineering: Foundational Pillars and a Research Roadmap7 Sep 2025
- 2025Understanding Formal Reasoning Failures in LLMs as Abstract Interpreters16 Mar 2025
- 2024Watson: A Cognitive Observability Framework for the Reasoning of LLM-Powered Agents5 Nov 2024