paper-with-me

홈 › Papers

Understanding the Prompt Sensitivity

2026-04-20 · Yang Liu, Chenhui Chu arxiv

Prompt sensitivity, which refers to how strongly the output of a large language model (LLM) depends on the exact wording of its input prompt, raises concerns among users about the LLM's stability and reliability. In this work, we consider LLMs as multivariate functions and perform a first-order Taylor expansion, thereby analyzing the relationship between meaning-preserving prompts, their gradients, and the log probabilities of the model's next token. We derive an upper bound on the difference between log probabilities using the Cauchy-Schwarz inequality. We show that LLMs do not internally cluster similar inputs like smaller neural networks do, but instead disperse them. This dispersing behavior leads to an excessively high upper bound on the difference of log probabilities between two meaning-preserving prompts, making it difficult to effectively reduce to 0. In our analysis, we also show which types of meaning-preserving prompt variants are more likely to introduce prompt sensitivity risks in LLMs. In addition, we demonstrate that the upper bound is strongly correlated with an existing prompt sensitivity metric, PromptSensiScore. Moreover, by analyzing the logit variance, we find that prompt templates typically exert a greater influence on logits than the questions themselves. Overall, our results provide a general interpretation for why current LLMs can be highly sensitive to prompts with the same meaning, offering crucial evidence for understanding the prompt sensitivity of LLMs. Code for experiments is available at https://github.com/ku-nlp/Understanding_the_Prompt_Sensitivity.

📄 PDF Abstract BibTeX arXiv:2604.18389

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

How are Prompts Different in Terms of Sensitivity?

2023-11-13 · Sheng Lu, Hendrik Schuff, Iryna Gurevych

In-context learning (ICL) has become one of the most popular learning paradigms. While there is a growing body of literature focusing on prompt engineering, there is a lack of systematic analysis comparing the effects of…

In-Context LearningPrompt EngineeringSensitivity

ProSA: Assessing and Understanding the Prompt Sensitivity of LLMs

2024-10-16 · Jingming Zhuo, Songyang Zhang, Xinyu Fang, Haodong Duan 외

Large language models (LLMs) have demonstrated impressive capabilities across various tasks, but their performance is highly sensitive to the prompts utilized. This variability poses challenges for accurate assessment an…

Sensitivity

What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering

2024-06-18 · Federico Errica, Giuseppe Siracusano, Davide Sanvito, Roberto Bifulco

Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. De…

Prompt EngineeringSensitivitytext-classificationText Classification

Re-Evaluating Code LLM Benchmarks Under Semantic Mutation

2025-06-20 · Zhiyuan Pan, Xing Hu, Xin Xia, Xiaohu Yang

In the era of large language models (LLMs), code benchmarks have become an important research area in software engineering and are widely used by practitioners. These benchmarks evaluate the performance of LLMs on specif…

Sensitivity

Structured Prompt Optimization for Few-Shot Text Classification via Semantic Alignment in Latent Space

2026-02-27 · Jiasen Zheng, Zijun Zhou, Huajun Zhang, Junjiang Lin 외 arxiv

This study addresses the issues of semantic entanglement, unclear label structure, and insufficient feature representation in few-shot text classification, and proposes an optimization framework based on structured promp…

Few-Shot Text Classification