Unveiling and Manipulating Prompt Influence in Large Language Models
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
28 more
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 401
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
- 2016Understanding Neural Networks through Representation Erasurecited by 224
- 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 183
- 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
- 2022Analyzing Transformers in Embedding Spacecited by 132
- 2021A Recipe For Arbitrary Text Style Transfer with Large Language Modelscited by 107
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
- 2019Perturbation Sensitivity Analysis to Detect Unintended Model Biasescited by 74
- 2018Unsupervised Text Style Transfer using Language Models as Discriminatorscited by 70
- 2022Measuring the Mixing of Contextual Information in the Transformercited by 65
- 2014Extraction of Salient Sentences from Labelled Documentscited by 50
- 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
- 2023AtMan: Understanding Transformer Predictions Through Memory Efficient Attention Manipulationcited by 31
- 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
- 2021Transductive Learning for Unsupervised Text Style Transfercited by 12
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 2.
6 papers.
- 2024UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulationcited by 31
- 2025B-cos LM: Efficiently Transforming Pre-trained Language Models for Improved Explainabilitycited by 4
- 2025Understanding the Dilemma of Unlearning for Large Language Modelscited by 4
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMscited by 2
- 2026"I May Not Have Articulated Myself Clearly": Diagnosing Dynamic Instability in LLM Reasoning at Inference Timecited by 1
- 2025Deception at Scale: Deceptive Designs in 1K LLM-Generated Ecommerce Componentscited by 0
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs14 Apr 2026
- 2026"I May Not Have Articulated Myself Clearly": Diagnosing Dynamic Instability in LLM Reasoning at Inference Time2 Feb 2026
- 2025Understanding the Dilemma of Unlearning for Large Language Models29 Sep 2025
- 2025Deception at Scale: Deceptive Designs in 1K LLM-Generated Ecommerce Components19 Feb 2025
- 2025B-cos LM: Efficiently Transforming Pre-trained Language Models for Improved Explainability18 Feb 2025
- 2024UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulation31 May 2024