Emotion meets coordination: Designing multi-agent LLMs for fine-grained user sentiment detection on social media

H Hao Dong Z Zuowen Bao M Muze Li Z Zhengfeng Yang

Abstract

Social media platforms have become central channels for emotional communication, posing new challenges for fine-grained sentiment analysis due to their high contextual variability, multimodal content, and pervasive ambiguity. Traditional end-to-end sentiment models often struggle to capture compositional or conflicting emotional cues in user-generated texts. This study presents a modular multi-agent architecture for sentiment analysis, implemented with the LLaMA-3.3-70B-Instruct model and guided by system-level design principles. The framework decomposes emotion inference into three coordinated stages, perception, reasoning, and resolution, each managed by a specialized agent trained with parameter-efficient tuning strategies. A meta-agent mediates conflicting predictions through a coordination protocol based on confidence estimation and discourse consistency, enabling adaptive consensus formation. Evaluations on the GoEmotions v2, SemEval-2024, and Twitter benchmarks demonstrate that the proposed system achieves higher accuracy, robustness, and interpretability compared with existing baselines. These findings indicate that architectural decomposition combined with collaborative reasoning enhances reliability and transparency in sentiment analysis, offering a scalable pathway toward intelligent and emotionally aware computational systems.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 2
Published February 09, 2026
Pages e0342053
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (4)

H

Hao Dong

Z

Zuowen Bao

M

Muze Li

Z

Zhengfeng Yang