Context-Aware Sentiment Forecasting via LLM-based Multi-Perspective Role-Playing Agents

Fanhang Man, Huandong Wang, Jianjie Fang, Zhaoyi Deng, Baining Zhao, Xinlei Chen, Yong Li

Abstract

Traditional sentiment analysis tools primarily focus on retrospective evaluation, identifying how users felt about past events. This paper presents a shift toward sentiment forecasting, predicting future emotional reactions to unfolding real-world events. We introduce the Multi-Perspective Role-Playing (MRP) framework, which utilizes Large Language Models (LLMs) in a multi-agent system. By simulating individual user personas and incorporating an "objective psychologist" agent for behavioral consistency, the MRP framework achieves state-of-the-art performance. Evaluations on datasets from Hurricane Sandy and the 2020 U.S. Election demonstrate significant improvements in predicting both individual and collective sentiment shifts.

Introduction

Predicting public sentiment is critical for disaster relief, marketing, and public policy. However, human sentiment is highly context-dependent and filtered through individual "tones of voice" and dynamic attitudes. Traditional neural networks often struggle to capture these nuances or the complex semantic flavor of ongoing news. This paper addresses the challenge of forecasting how a crowd or an individual will feel as a situation develops.

The Multi-Perspective Role-Playing Framework

The proposed MRP framework treats sentiment forecasting as a reasoning problem, structured into three primary stages:

  1. Feature Extraction: An LLM analyzes a user’s history to extract a stable Textual Tone of Voice (persona) and a dynamic Attitude (stance) toward the specific event.
  2. Subjective Role-Playing Agent: This agent simulates the user by integrating extracted features, current event context (e.g., news updates), and social influences (followee comments) to generate a predicted future comment.
  3. Objective Role-Playing Agent: To ensure behavioral consistency and mitigate LLM hallucinations, a second agent—fine-tuned on 25,000 expert-labeled psychological reviews—acts as a behavioral psychologist. It critiques the predicted comment, triggering Iterative Rectification if the response deviates from the user's established character.
Overview of the MRP framework, illustrating the interaction between subjective and objective role-playing agents.

Experimental Evaluation

The framework was evaluated using two high-stakes Twitter datasets:

  • 2012 Hurricane Sandy: Capturing sentiment shifts in New Jersey and New York during landfall and relief efforts.
  • 2020 U.S. Presidential Election: Focusing on the period surrounding the second debate and the final victory announcement.

Results and Discussion

The MRP framework consistently outperformed state-of-the-art baselines, including sociologically-informed neural networks (SINN).

Macroscopic and Microscopic Performance

At the macroscopic level, the model's ability to predict sentiment distribution across entire cities was significantly more accurate than previous models, often by an order of magnitude in terms of Jensen-Shannon Divergence (JSD). At the microscopic level, individual user prediction accuracy reached 45-60% on a 5-category scale—a substantial jump over the 20-35% achieved by baselines.

Comparison of sentiment distribution predictions between SINN, the proposed MRP model, and Ground Truth for Hurricane Sandy.

Key Insights

  • Persona vs. Stance: Separating habitual tone from situational attitude is vital for realistic simulation.
  • Psychological Oversight: The "psychologist" agent effectively reduces unrealistic sentiment jumps caused by LLM stochasticity.
  • Context Integration: The ability of LLMs to "read the news" and integrate it into a user's perspective is the primary driver of performance gains over models that rely solely on social network topology.

Conclusion

While the MRP framework represents a significant advance, it faces limitations such as "politeness bias" in aligned LLMs, which can hinder the prediction of realistic toxic or aggressive reactions. Future work will explore multimodal inputs (images, memes) and more granular emotional categories beyond simple positive/negative sentiment.

Summary updated

BibTeX
@inproceedings{man2025context,
  author = {Fanhang Man and Huandong Wang and Jianjie Fang and Zhaoyi Deng and Baining Zhao and Xinlei Chen and Yong Li},
  title = {{Context-Aware Sentiment Forecasting via LLM-based Multi-Perspective Role-Playing Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure