Do Emotions in Prompts Matter? Effects of Emotional Framing on Large Language Models
Organizations: Harvard University. · Bryn Mawr College.
Abstract
Emotional tone is pervasive in human communication, yet its influence on large language model (LLM) behaviour remains unclear. Here, we examine how first-person emotional framing in user-side queries affect LLM performance across six benchmark domains, including mathematical reasoning, medical question answering, reading comprehension, commonsense reasoning and social inference. Across models and tasks, static emotional prefixes usually produce only small changes in accuracy, suggesting that affective phrasing is typically a mild perturbation rather than a reliable general-purpose intervention. This stability is not uniform: effects are more variable in socially grounded tasks, where emotional context more plausibly interacts with interpersonal reasoning. Additional analyses show that stronger emotional wording induces only modest extra change, and that human-written prefixes reproduce the same qualitative pattern as LLM-generated ones. We then introduce EmotionRL, an adaptive emotional prompting framework that selects emotional framing adaptively for each query. Although no single emotion is consistently beneficial, adaptive selection yields more reliable gains than fixed emotional prompting. Together, these findings show that emotional tone is neither a dominant driver of LLM performance nor irrelevant noise, but a weak and input-dependent signal that can be exploited through adaptive control.
Figures & tables
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Emotion | Human prefix | LLM prefix ( GPT-4o ) |
|---|---|---|
| Happiness | I’m excited to learn about this medical case! | I’m absolutely thrilled to tackle this ethical dilemma with you! |
| Anger | I’m frustrated by this ethical dilemma in medical practice. | I am absolutely furious about this situation! |
| Fear | I’m really worried about this medical situation. | I’m absolutely terrified of making the wrong decision here. |
| Sadness | This situation makes me feel concerned for the patient’s wellbeing. | I feel utterly heartbroken over this situation. |
| Surprise | I’m surprised by the complexity of this medical case. | Wait, are you seriously telling me this just happened?! |
| Disgust | I find this medical situation deeply troubling. | This situation makes me absolutely sick to my stomach. |
| Model | Condition | Baseline | Prepended | Mid-Pos | Appended | Paraphrased |
|---|---|---|---|---|---|---|
| DeepSeek | Baseline (Original) | 94.97 | – | – | – | – |
| Fear | 95.07 | 94.47 | 94.47 | 92.80 | ||
| Anger | 94.77 | 94.31 | 94.54 | 93.40 | ||
| Happy | 95.12 | 94.67 | 94.52 | 93.47 | ||
| Sad | 95.42 | 95.20 | 94.07 | 92.12 | ||
| Disgust | 95.15 | 94.62 | 94.32 | 92.27 |