Emotion is Not Just a Label: Latent Emotional Factors in LLM Processing
Organizations: Georgia Institute of Technology
Abstract
Large language models are routinely deployed on text that varies widely in emotional tone, yet their reasoning behavior is typically evaluated without accounting for emotion as a source of representational variation. Prior work has largely treated emotion as a prediction target, for example in sentiment analysis or emotion classification. In contrast, we study emotion as a latent factor that shapes how models attend to and reason over text. We analyze how emotional tone systematically alters attention geometry in transformer models, showing that metrics such as locality, center-of-mass distance, and entropy vary across emotions and correlate with downstream question-answering performance. To facilitate controlled study of these effects, we introduce Affect-Uniform ReAding QA (AURA-QA), a question-answering dataset with emotionally balanced, human-authored context passages. Finally, an emotional regularization framework is proposed that constrains emotion-conditioned representational drift during training. Experiments across multiple QA benchmarks demonstrate that this approach improves reading comprehension in both emotionally-varying and non-emotionally varying datasets, yielding consistent gains under distribution shift and in-domain improvements on several benchmarks.
Figures & tables
| Feature | Definition | Interpretation |
| Spatial Structure Features | ||
| Center-of-Mass Distance (CMD) | Measures how far attention extends from each query token; higher values indicate more non-local attention. | |
| Tail Mass | Quantifies reliance on long-range context by measuring attention mass beyond a fixed distance. | |
| Locality | Captures the expected spatial spread of attention; smaller values indicate tightly localized focus. | |
| Distributional Sharpness Features | ||
| Key Entropy (KE) | Measures how uniformly attention mass is distributed across keys at the layer level. | |
| Emotion | Results | |
|---|---|---|
| Zero-shot | Trained | |
| Neutral | 48% | 58% |
| Happy | 36% | 45% |
| Sad | 34% | 49% |
| Anger | 31% | 42% |
| Fear | 34% | 47% |
| Bloom Level 2 (Understand) |
| Passage excerpt: “Raw meat … does not appeal … the idea of using it for food is disgusting.” |
| Question: What do civilized persons find disgusting? |
| Answer: Raw meat |
| Bloom Level 3 (Apply) |
| Passage excerpt: “… the stony nature of the plains would soon disable an unshod horse …” |
| Question: Why can’t unshod horses chase guanacos? |
| Filtered Out | Retained | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Emotion | Valid | Answerable | Grounded | Non-trivial | Answer Match | Valid | Answerable | Grounded | Non-trivial | Answer Match |
| Anger | 0.822 | 0.836 | 0.986 | 0.973 | 0.521 | 0.897 | 0.897 | 1.000 | 1.000 | 0.368 |
| Disgust | 0.880 | 0.893 | 1.000 | 0.987 | 0.627 | 0.958 | 0.972 | 1.000 | 0.986 | 0.408 |
| Excitement | 0.887 | 0.930 | 1.000 | 0.958 | 0.704 | 0.901 | 0.915 | 0.986 | 0.986 | 0.465 |
| Fear | 0.900 | 0.914 | 1.000 | 0.986 | 0.571 | 0.809 | 0.824 | 0.985 | 0.985 | 0.485 |
| Happy | 0.817 | 0.845 | 1.000 | 0.972 | 0.690 | 0.855 | 0.870 | 1.000 | 0.986 | 0.420 |
| Emotion | #Q | Passage Length | Question Length | Bloom L2 (%) | Bloom L3 (%) | ||||
|---|---|---|---|---|---|---|---|---|---|
| (mean words) | (mean words) | Gemma | LLaMA | Qwen | Gemma | LLaMA | Qwen | ||
| Anger | 1600 | 48.5 | 7.9 | 31.4 | 35.9 | 32.8 | 31.0 | 34.2 | 34.8 |
| Disgust | 1600 | 44.3 | 8.1 | 30.2 | 37.9 | 31.9 | 27.1 | 36.5 | 36.4 |
| Excitement | 1600 | 59.4 | 7.6 | 29.6 | 35.9 | 34.5 | 27.5 | 36.2 | 36.2 |
| Fear | 1600 | 57.4 | 7.3 | 30.5 | 38.6 | 30.9 | 25.2 | 37.5 | 37.2 |
| Happy | 1600 | 77.3 | 7.8 | 30.5 | 38.1 | 31.4 | 26.1 | 37.0 | 36.9 |
| LoRA Fine-Tuning | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Natural Questions | TweetQA | FriendsQA | AURA-QA | |||||||||
| Test Set | Llama | Ministral | Olmov2 | Llama | Ministral | Olmov2 | Llama | Ministral | Olmov2 | Llama | Ministral | Olmov2 |
| Natural Questions | 61.6% | 60.0% | 61.1% | 56.7% | 56.5% | 56.1% | 58.3% | 59.9% | 59.4% | 51.3% | 54.5% | 52.3% |
| TweetQA | 59.5% | 56.4% | 58.6% | 73.1% | 74.9% | 72.7% | 69.0% | 68.4% | 70.1% | 64.1% | 65.3% | 62.1% |
| FriendsQA | 46.4% | 46.1% | 51.1% | 46.4% | 48.6% | 46.8% | 54.4% | 38.3% | 67.3% | 37.1% | 40.6% | 37.1% |
| AURA-QA | 35.2% | 35.4% | 36.2% | 42.8% | 43.4% | 43.5% | 40.4% | 47.0% | 44.1% | 49.9% | 51.7% | 47.4% |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Anger | Happy | Sad | Fear | Disgust | Surprise | Neutral | Sarcastic | Excitement | Average |
| With Sarcasm | ||||||||||
| ModernBERT-base | 0.75/0.78 | 0.89/0.89 | 0.85/0.85 | 0.76/0.87 | 0.61/0.83 | 0.65/0.79 | 0.84/0.80 | 1.00/0.99 | 0.59/0.88 | 0.77/0.96 |
| ModernBERT-large | 0.71/0.77 | 0.89/0.91 | 0.82/0.85 | 0.77/0.89 | 0.60/0.81 | 0.60/0.67 | 0.80/0.70 | 1.00/1.00 | 0.54/ 1.00 | 0.75/0.96 |
| T5-base | 0.66/0.70 | 0.86/0.93 | 0.80/0.82 | 0.76/ 0.91 | 0.61/0.85 | 0.63/0.70 | 0.79/0.73 | 0.99/0.99 | 0.60/0.82 | 0.75/0.96 |
| T5-large | 0.68/0.77 | 0.88/0.92 | 0.80/0.82 | 0.78/0.86 | 0.62/0.74 | 0.64/0.65 | 0.80/0.72 | 1.00/0.99 | 0.59/0.86 | 0.75/0.96 |
| Without Sarcasm | ||||||||||
| Emotion | LLM–Human | Human–Human | LLM–LLM |
|---|---|---|---|
| Joy | 0.693 | 0.687 | 0.900 |
| Sadness | 0.533 | 0.807 | 0.787 |
| Anger | 0.587 | 0.713 | 0.860 |
| Fear | 0.553 | 0.727 | 0.700 |
| Disgust | 0.540 | 0.767 | 0.853 |
| Surprise | 0.573 | 0.660 | 0.867 |
| Criterion | Human–Human Unanimity |
|---|---|
| Answerable | 0.71 |
| Grounded | 0.93 |
| Non-trivial | 0.79 |