mlsanityData to 7 Oct 2026

PromptExp: Multi-granularity Prompt Explanation of Large Language Models

arXiv 2410.13073 ↗First posted 16 Oct 2024cs.CLcited by 6

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

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  5. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  6. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  7. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  8. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  9. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
  10. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  11. 2020Captum: A unified and generic model interpretability library for PyTorchcited by 542
  12. 2018e-SNLI: Natural Language Inference with Natural Language Explanationscited by 468
24 more
  1. 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
  2. 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
  3. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  4. 2023Explainability for Large Language Models: A Surveycited by 331
  5. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  6. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  7. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
  8. 2015Visualizing and Understanding Neural Models in NLPcited by 199
  9. 2022The Unreliability of Explanations in Few-shot Prompting for Textual Reasoningcited by 169
  10. 2024Rethinking Interpretability in the Era of Large Language Modelscited by 110
  11. 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
  12. 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanationscited by 85
  13. 2024500xCompressor: Generalized Prompt Compression for Large Language Modelscited by 45
  14. 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
  15. 2023Towards Understanding In-Context Learning with Contrastive Demonstrations and Saliency Mapscited by 35
  16. 2021Improving the Faithfulness of Attention-based Explanations with Task-specific Information for Text Classificationcited by 29
  17. 2016Interpretation of Prediction Models Using the Input Gradientcited by 24
  18. 2021Counterfactual Explanations for Models of Codecited by 24
  19. 2024Unique Security and Privacy Threats of Large Language Models: A Comprehensive Surveycited by 20
  20. 2021VisQA: X-raying Vision and Language Reasoning in Transformerscited by 19
  21. 2021Few-Shot Out-of-Domain Transfer Learning of Natural Language Explanations in a Label-Abundant Setupcited by 16
  22. 2019On Attribution of Recurrent Neural Network Predictions via Additive Decompositioncited by 15
  23. 2024Word Importance Explains How Prompts Affect Language Model Outputscited by 6
  24. 2020Sequential Interpretability: Methods, Applications, and Future Direction for Understanding Deep Learning Models in the Context of Sequential Datacited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 4; 2026: 1.

6 papers.