Prompt Stability in Code LLMs: Measuring Sensitivity across Emotion- and Personality-Driven Variations

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ma, Wei, Yang, Yixiao, Ge, Jingquan, Xie, Xiaofei, Jiang, Lingxiao
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908543668453376
author Ma, Wei
Yang, Yixiao
Ge, Jingquan
Xie, Xiaofei
Jiang, Lingxiao
author_facet Ma, Wei
Yang, Yixiao
Ge, Jingquan
Xie, Xiaofei
Jiang, Lingxiao
contents Code generation models are widely used in software development, yet their sensitivity to prompt phrasing remains under-examined. Identical requirements expressed with different emotions or communication styles can yield divergent outputs, while most benchmarks emphasize only peak performance. We present PromptSE (Prompt Sensitivity Evaluation), a framework that creates semantically equivalent prompt variants with emotion and personality templates, and that evaluates stability using probability aware continuous scoring or using binary pass rates when logits are unavailable. The results are aggregated into a proposed area under curve metric (AUC-E) for cross model comparison. Across 14 models from three families (Llama, Qwen, and DeepSeek), our study shows that performance and stability behave as largely decoupled optimization objectives, and it reveals architectural and scale related patterns that challenge common assumptions about model robustness. The framework supports rapid screening for closed-source models as well as detailed stability analysis in research settings. PromptSE enables practitioners to quantify performance stability trade offs for deployment and model selection, positioning prompt stability as a complementary evaluation dimension alongside performance and fairness, and contributing to more trustworthy AI-assisted software development tools.
format Preprint
id arxiv_https___arxiv_org_abs_2509_13680
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Prompt Stability in Code LLMs: Measuring Sensitivity across Emotion- and Personality-Driven Variations
Ma, Wei
Yang, Yixiao
Ge, Jingquan
Xie, Xiaofei
Jiang, Lingxiao
Software Engineering
Artificial Intelligence
Code generation models are widely used in software development, yet their sensitivity to prompt phrasing remains under-examined. Identical requirements expressed with different emotions or communication styles can yield divergent outputs, while most benchmarks emphasize only peak performance. We present PromptSE (Prompt Sensitivity Evaluation), a framework that creates semantically equivalent prompt variants with emotion and personality templates, and that evaluates stability using probability aware continuous scoring or using binary pass rates when logits are unavailable. The results are aggregated into a proposed area under curve metric (AUC-E) for cross model comparison. Across 14 models from three families (Llama, Qwen, and DeepSeek), our study shows that performance and stability behave as largely decoupled optimization objectives, and it reveals architectural and scale related patterns that challenge common assumptions about model robustness. The framework supports rapid screening for closed-source models as well as detailed stability analysis in research settings. PromptSE enables practitioners to quantify performance stability trade offs for deployment and model selection, positioning prompt stability as a complementary evaluation dimension alongside performance and fairness, and contributing to more trustworthy AI-assisted software development tools.
title Prompt Stability in Code LLMs: Measuring Sensitivity across Emotion- and Personality-Driven Variations
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2509.13680