Document Type : Original Research Paper
Authors
1 Department of Electrical and Computer Engineering, University of Mohaghegh Ardabili, Ardabili, Iran.
2 Water Research Institute, Ministry of Energy Water Research Institute, Tehran, Iran
Abstract
Background and Objectives: Multi-agent systems that incorporate large language models (LLM-MAS) represent one of the most innovative areas in artificial intelligence. These systems effectively address significant problems across various fields by merging the capabilities of large language models with traditional multi-agent systems (MAS). As science progresses in various domains, the importance of natural language processing, particularly text classification has significantly increased.
Methods: This study introduces an innovative framework for text classification based on a multi-agent voting system. In this framework, four distinct LLMs independently label input text into five predefined categories, assigning a weight to each label. Additionally, five specialized term extraction functions act as independent agents, identifying key concepts related to each label within the text. These functions influence the final decision-making process by adjusting the weights assigned by the language models. The label with the highest aggregated weight is selected as the final classification output.
Results: Experimental results demonstrate that the proposed framework achieves an accuracy of approximately 86%, highlighting the effectiveness of an LLM-based multi-agent approach in text classification tasks.
Conclusion: Fine-tuning large language models typically requires a substantial dataset to effectively personalize the model. This process can be time-consuming and costly, and the resulting model is often limited to a specific application. However, the results of this study demonstrate that the proposed framework can achieve acceptable accuracy without the need for fine-tuning large language models. The study shows that combining term extraction functions with large language models can create smarter and more accurate systems. These term extraction functions modify the weights derived from the large language models, adjusting them toward specific topic labels based on relevant words found in the text.
Keywords
- Large Language Model (LLM)
- Text Classification
- Natural Language Processing (NLP)
- Prompt Engineering
- Deep Learning
Main Subjects
Open Access
This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit: http://creativecommons.org/licenses/by/4.0/
Publisher’s Note
JECEI Publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Publisher
Shahid Rajaee Teacher Training University
Send comment about this article