Research on Five-Category Classification of Comment Emotions Based on the Multi-agent RAG Framework
Abstract
Because text comment sentiment analysis plays an essential role in applications such as online public opinion monitoring, user experience analysis, and intelligent customer service, it is rightly considered a core task of natural language processing with both great practical value and considerable research significance. However, it is also well known that current mainstream single-text sentiment classification models have inherent limitations.Because existing approaches suffer from superficial semantic understanding, insufficient logical reasoning capabilities, vulnerability to model hallucinations, and low precision in fine-grained sentiment classification, they are not suitable for complex comment sentiment recognition tasks. Hence, this paper naturally and elegantly proposes a dual-agent RAG framework combined with Coherence Theory (CoT), where a Q-Agent is charged with senthe paper presents a framework combining sentiment analysis and reasoning guidance with an RAG-Agent for knowledge retrieval and information enhancement, thus naturally and elegantly achieving precise five-category sentiment classification. More importantly, comparative experiments on a balanced sentiment dataset show that the proposed framework attains optimal improvements on all evaluation metrics relative to baseline models, and therefore achieves substantially better sentiment classification performance. As such, the work provides new technical insights for fine-grained text sentiment classification and clear practical guidance for agent technology applications in natural language understanding.
References
- Hu, X., & Zhou, Y. (2025). Review of research on economics and management based on generative artificial intelligence.Chinese Journal of Management Science, 33(1), 76-97.
- Devlin, J., Chang, M. W., Lee, K., et al. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding.Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 4171-4186.
- Zhang, L. (2023).Applications of deep learning in natural language processing: From word representation to ChatGPT. People's Posts and Telecommunications Press.
- Wooldridge, M. (2009).An introduction to multiagent systems. John Wiley & Sons.
- Cai, Y., & Hu, Z. (2025). Analysis of progress in data mining of scientific literature using large language models.Journal of Library and Information Sciences in Agriculture, 37(2), 4.
- Lewis, P., Perez, E., Piktus, A., Lewis, P., Perez, E., Piktus, A., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks.Advances in Neural Information Processing Systems, 33, 9459-9474.
- Wei, J., Wang, X., Schuurmans, D., Wei, J., Wang, X., Schuurmans, D., et al. (2022). Chain-of-thought prompting elicits reasoning in large language models.Advances in Neural Information Processing Systems, 35, 24824–24837.
- Pang, B., Lee, L., & Vaithyanathan, S. (2002). Thumbs up? Sentiment classification using machine learning techniques. InProceedings of the 2002 Conference on Empirical Methods in Natural Language Processing (EMNLP 2002)(pp. 79–86).
- Liu, B. (2012). Sentiment analysis and opinion mining.
- Kim, Y. (2014). Convolutional neural networks for sentence classification. InProceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)(pp. 1746–1751).
- Zhang, L., Wang, S., & Liu, B. (2018). Deep learning for sentiment analysis: A survey.Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 8(4), e1253.
- Minaee, S., Kalchbrenner, N., Cambria, E., Minaee, S., Kalchbrenner, N., Cambria, E., et al. (2021). Deep learning-based text classification: A comprehensive review.ACM Computing Surveys (CSUR), 54(3), 1–40.
- Qian, C., Liu, W., Liu, H., et al. (2024). Chatdev: Communicative agents for software development.Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15174–15186.
- Jia, J., Liang, W., & Liang, Y. (2023). A review of hybrid and set-based techniques in natural language processing for deep learning. arXiv preprint, arXiv:2312.05589.
- Kojima, T., Gu, S. S., Reid, M., et al. (2022). Large language models are zero-shot reasoners.Advances in Neural Information Processing Systems, 35, 22199–22213.
- Kang, Z., Gong, J., Yan, J., et al. (2025). Hssbench: Benchmarking humanities and social sciences ability for multimodal large language models. arXiv preprint arXiv:2506.03922.
- Feng, Z., Kang, Z., Wang, Q., et al. (2025). Seeing across views: Benchmarking spatial reasoning of vision-language models in robotic scenes. arXiv preprint arXiv:2510.19400.
- Kang, Z., Gong, J., Chen, Q., et al. (2026). Multimodal multi-agent empowered legal judgment prediction. arXiv preprint arXiv:2601.12815.
- Kang, Z., Gong, J., Hu, W., et al. (2026). QuantEval: A benchmark for financial quantitative tasks in large language models.arXiv preprint arXiv:2601.08689.
- He, Y., Kang, Z., Jiang, K., et al. (2026). How order-sensitive are LLMs? OrderProbe for deterministic structural reconstruction.arXiv preprint arXiv:2601.08626.
- Gao, J., Xuan, R., Kang, Z., et al. (2025). LaoBench: A large-scale multidimensional Lao benchmark for large language models.arXiv preprint arXiv:2511.11334.
- Liu, J., & Kang, Z. (2026). ReasonAct: Progressive training for fine-grained video reasoning in small models.Proceedings of the AAAI Conference on Artificial Intelligence, 40(9), 7188–7196.
- Kang, Z., Cai, H., Ji, X., et al. (2025). JurisCTC: Enhancing legal judgment prediction via cross-domain transfer and contrastive learning.2025 International Joint Conference on Neural Networks (IJCNN), 1–8.