Tracing Belief-Driven Thoughts with Theory-of-Mind Agents: An Opinion Analysis Framework
Jintao Wen, Yunfeng Ning, Hankun Kang, Xin Miao, Tieyun Qian
Abstract
Opinion Analysis (OA) is a critical task in Natural Language Processing (NLP), aimed at identifying stance, sentiment, or hate speech toward specific targets in social media text. With the advancement of Large Language Models (LLMs), researchers have begun exploring LLM-based agent frameworks for OA. However, existing LLM-based agent frameworks rely on heuristic simulations and lack the capacity for emotional resonance, which is achieved by understanding others' internal thoughts, intentions, and beliefs during interactions-a cognitive ability rooted in Theory of Mind (ToM). To bridge this gap, we introduce OpinionToM, a multi-agent framework that shifts from heuristic simulation to ToM-driven cognitive reasoning. This shift requires a formal process capable of capturing key aspects of ToM, particularly the uncertainty each agent has about the hidden mental states of others. To this end, we model multi-agent reasoning in OA as a Social Partially Observable Markov Decision Process (Social POMDP). The Social POMDP is designed to track agents' continuous belief states by dynamically generating beliefs and adjusting corresponding weights based on observations. The weight adjustment mechanism draws inspiration from Bayesian inverse planning, leveraging LLMs as a computational backend to perform approximate probabilistic inference over competing beliefs, conditioned on the agents' received perceptions. We evaluate OpinionToM on six benchmarks across three distinct opinion analysis tasks, demonstrating significant performance improvements compared to baselines. We release the code and dataset at https://github.com/wenjt/OpinionToM.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 4f61767f-ba1b-4ebd-a027-d101882938b7Builds on20
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Generative Agents: Interactive Simulacra of Human BehaviorJoon Sung Park, Joseph C. O'Brien, Carrie Jun Cai, Meredith Ringel Morris et al.UIST 2023 · 1,882 citations
- Relational Graph Attention Network for Aspect-based Sentiment AnalysisKai Wang, Weizhou Shen, Yunyi Yang, Xiaojun Quan et al.ACL 2020 · 614 citations
- Language Agent Tree Search Unifies Reasoning, Acting, and Planning in Language ModelsAndy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang et al.ICML 2024 · 443 citations
- Encouraging Divergent Thinking in Large Language Models through Multi-Agent DebateTian Liang, Zhiwei He, Wenxiang Jiao, Xing Wang et al.EMNLP 2024 · 177 citations
Related papers
- AutoToM: Scaling Model-based Mental Inference via Automated Agent ModelingZhining Zhang, Chuanyang Jin, Mung Yao Jia, Shunchi Zhang et al.NeurIPS 2025 · 30 citations
- MetaMind: Modeling Human Social Thoughts with Metacognitive Multi-Agent SystemsXuanming Zhang, Yuxuan Chen, Samuel (Min-Hsuan) Yeh, Sharon LiNeurIPS 2025 · 14 citations
- Theory of Mind for Multi-Agent Collaboration via Large Language ModelsHuao Li, Yu Quan Chong, Simon Stepputtis, Joseph Campbell et al.EMNLP 2023 · 57 citations
- Language Models Represent Beliefs of Self and OthersWentao Zhu, Zhining Zhang, Yizhou WangICML 2024 · 24 citations
- MuMA-ToM: Multi-modal Multi-Agent Theory of MindHaojun Shi, Suyu Ye, Xinyu Fang, Chuanyang Jin et al.AAAI 2025 · 48 citations
