mlsanityData to 7 Oct 2026

Word Importance Explains How Prompts Affect Language Model Outputs

arXiv 2403.03028 ↗First posted 5 Mar 2024cs.AI cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

The emergence of large language models (LLMs) has revolutionized numerous applications across industries. However, their "black box" nature often hinders the understanding of how they make specific decisions, raising concerns about their transparency, reliability, and ethical use. This study presents a method to improve the explainability of LLMs by varying individual words in prompts to uncover their statistical impact on the model outputs. This approach, inspired by permutation importance for tabular data, masks each word in the system prompt and evaluates its effect on the outputs based on the available text scores aggregated over multiple user inputs. Unlike classical attention, word importance measures the impact of prompt words on arbitrarily-defined text scores, which enables decomposing the importance of words into the specific measures of interest--including bias, reading level, verbosity, etc. This procedure also enables measuring impact when attention weights are not available. To test the fidelity of this approach, we explore the effect of adding different suffixes to multiple different system prompts and comparing subsequent generations with different large language models. Results show that word importance scores are closely related to the expected suffix importances for multiple scoring functions.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 24 of its 35 references that are in the map. First posted on arXiv 5 Mar 2024.

Builds on

24 of 35 references.

References · 24

  1. 2017Attention Is All You Needcited by 59,932
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  3. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  4. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  5. 2019Attention is not Explanationcited by 916
  6. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  7. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  8. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  9. 2019Attention is not not Explanationcited by 629
  10. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
  11. 2019Is Attention Interpretable?cited by 387
  12. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
12 more
  1. 2019The many Shapley values for model explanationcited by 341
  2. 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
  3. 2019Revealing the Dark Secrets of BERTcited by 300
  4. 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
  5. 2015Visualizing and Understanding Recurrent Networkscited by 158
  6. 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
  7. 2023A Survey on Fairness in Large Language Modelscited by 91
  8. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  9. 2019Probing What Different NLP Tasks Teach Machines about Function Word Comprehensioncited by 44
  10. 2021Explainable AI: current status and future directionscited by 32
  11. 2021Interpreting Deep Learning Models in Natural Language Processing: A Reviewcited by 19
  12. 2021Linguistic Dependencies and Statistical Dependencecited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 1.

6 papers.