Do Large Language Models Possess Sensitive to Sentiment?

Yang Liu, Xichou Zhu, Zhou Shen, Yi Liu, Min Li, Yujun Chen, Benzi John, Zhenzhen Ma, Tao Hu, Zhi Li, Zhiyang Xu, Wei Luo, Junhui WangarXiv 2024 · DOI

Abstract

As Large Language Models (LLMs) become ubiquitous in human-centric applications, understanding their "emotional intelligence" is paramount. This paper, authored by researchers at ByteDance, investigates whether LLMs possess a genuine sensitivity to sentiment or merely act as "stochastic parrots" replicating training data patterns. By introducing a novel "Sentiment Knowledge Workflow," the study evaluates models like GPT-4, Llama, and Doubao across diverse datasets. Findings indicate that while LLMs exhibit emergent sentiment sensitivity, they struggle with linguistic nuances such as sarcasm and irony.

Introduction

The integration of LLMs into customer service, mental health support, and social media monitoring necessitates a robust ability to "read the room." Traditional sentiment analysis often relies on rigid classification, which fails to capture the complexity of human emotion. This research addresses the gap in our understanding of how LLMs process emotional cues, testing if these models truly comprehend sentiment or simply predict the next token based on statistical probability.

Methodology

The researchers propose the Sentiment Knowledge Workflow, a systematic approach designed to elicit and evaluate nuanced emotional responses. Unlike standard classification, this workflow employs:

  1. Persona-based Prompting: Assigning roles (e.g., psychologist, film critic) to models to encourage descriptive, "soft" outputs.
  2. Soft Output Generation: Models generate descriptive text rather than single-word labels.
  3. Word Vector Similarity: Pretrained embedding models calculate the mathematical similarity between LLM responses and target sentiment labels.
  4. Multi-label Classification: Allowing models to associate queries with multiple emotional labels simultaneously.
The Sentiment Knowledge Workflow illustrates the transition from raw prompts to similarity-based evaluation.

Datasets

The evaluation spans three distinct datasets to capture various linguistic styles:

  • Sentiment140: 1.6 million tweets containing noisy text, abbreviations, and emoticons.
  • MyPersonality: Facebook data linked to the "Big Five" personality traits (OCEAN model).
  • IMDB Reviews: 50,000 movie reviews featuring complex emotional arcs and arguments.

Analysis of Sentiment Sensitivity

Several key insights emerged from the study regarding how models handle emotional data:

  • Emergent Sensitivity: Sentiment detection appears to be an emergent property in LLMs, varying significantly between models of similar sizes.
  • Robustness to Prompting: Models maintained sensitivity even when presented with "neutral" prompts, suggesting that emotional representation is deeply embedded in their learned weights rather than being a result of prompt engineering.
  • The Sarcasm Barrier: A consistent failure mode was identified where models misclassified sarcastic text as "neutral," failing to reconcile literal word meanings with contradictory emotional subtext.
  • Architecture over Scale: Refined training procedures (as seen in "Pro" model versions) proved more critical for sentiment accuracy than raw parameter count.

Experimental Results

The comparative analysis of models including GPT-3.5/4, Llama 2/3, Mistral, and Doubao revealed significant performance disparities.

Comparative performance metrics of various LLMs on sentiment analysis tasks.

As shown in the table above, Doubao-pro led the field on the Sentiment140 dataset with an accuracy of 0.77. GPT-4o and Llama-8b-v3 followed with 0.72. Notably, precision generally exceeded recall across the board, indicating that while models are often correct when they identify a sentiment, they frequently overlook more subtle emotional cues.

Conclusion

While LLMs demonstrate a baseline sensitivity to sentiment, significant hurdles remain. Current architectures lack the "common sense" required to consistently interpret irony and sarcasm. Future work should focus on refining training processes to specifically capture subtle emotional cues and investigating the architectural factors that enhance emotional intelligence.

Summary updated

BibTeX
@misc{liu2024do,
  author = {Yang Liu and Xichou Zhu and Zhou Shen and Yi Liu and Min Li and Yujun Chen and Benzi John and Zhenzhen Ma and Tao Hu and Zhi Li and Zhiyang Xu and Wei Luo and Junhui Wang},
  title = {{Do Large Language Models Possess Sensitive to Sentiment?}},
  year = {2024},
  eprint = {2409.02370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.02370},
}
Figure