mlsanityData to 14 Oct 2026

Unveiling and Manipulating Prompt Influence in Large Language Models

arXiv 2405.11891 ↗First posted 20 May 2024cs.CL cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

Prompts play a crucial role in guiding the responses of Large Language Models (LLMs). However, the intricate role of individual tokens in prompts, known as input saliency, in shaping the responses remains largely underexplored. Existing saliency methods either misalign with LLM generation objectives or rely heavily on linearity assumptions, leading to potential inaccuracies. To address this, we propose Token Distribution Dynamics (TDD), a textcolorblacksimple yet effective approach to unveil and manipulate the role of prompts in generating LLM outputs. TDD leverages the robust interpreting capabilities of the language model head (LM head) to assess input saliency. It projects input tokens into the embedding space and then estimates their significance based on distribution dynamics over the vocabulary. We introduce three TDD variants: forward, backward, and bidirectional, each offering unique insights into token relevance. Extensive experiments reveal that the TDD surpasses state-of-the-art baselines with a big margin in elucidating the causal relationships between prompts and LLM outputs. Beyond mere interpretation, we apply TDD to two prompt manipulation tasks for controlled text generation: zero-shot toxic language suppression and sentiment steering. Empirical results underscore TDD's proficiency in identifying both toxic and sentimental cues in prompts, subsequently mitigating toxicity or modulating sentiment in the generated content.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 40 of its 51 references that are in the map. First posted on arXiv 20 May 2024.

Builds on

40 of 51 references.

References · 40

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  7. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  8. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  9. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  10. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  11. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  12. 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
28 more
  1. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  2. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  3. 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
  4. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  5. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  6. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  7. 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 401
  8. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
  9. 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
  10. 2016Understanding Neural Networks through Representation Erasurecited by 224
  11. 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 183
  12. 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
  13. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
  14. 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
  15. 2022Analyzing Transformers in Embedding Spacecited by 132
  16. 2021A Recipe For Arbitrary Text Style Transfer with Large Language Modelscited by 107
  17. 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
  18. 2022Interpreting Language Models with Contrastive Explanationscited by 92
  19. 2021Contrastive Explanations for Model Interpretabilitycited by 75
  20. 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
  21. 2019Perturbation Sensitivity Analysis to Detect Unintended Model Biasescited by 74
  22. 2018Unsupervised Text Style Transfer using Language Models as Discriminatorscited by 70
  23. 2022Measuring the Mixing of Contextual Information in the Transformercited by 65
  24. 2014Extraction of Salient Sentences from Labelled Documentscited by 50
  25. 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
  26. 2023AtMan: Understanding Transformer Predictions Through Memory Efficient Attention Manipulationcited by 31
  27. 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
  28. 2021Transductive Learning for Unsupervised Text Style Transfercited by 12

Built on by

Cited by year (2026 to 14 Oct)

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

6 papers.