Enhancing Text Classification with a Novel Multi-Agent Collaboration Framework Leveraging BERT
Hediyeh Baban, Sai A Pidapar, Aashutosh Nema, Sichen Lu
TL;DR
This work introduces a threshold-driven, multi-agent collaboration framework that extends a BERT-based text classifier with five specialized agents (Lexical, Contextual, Logic, Consensus, Explainability) to handle low-confidence predictions. By dynamically escalating uncertain cases and aggregating agent insights through a Consensus mechanism, the approach achieves up to a 5.5% accuracy improvement and notable robustness gains across diverse NLP tasks, while detailing production-oriented considerations such as modularity, efficiency, and security. The methodology is grounded in ensemble and reinforcement-inspired reasoning, with explicit mathematical formulations for agent collaboration and decision aggregation. Empirical results on standard datasets (e.g., IMDb, AG News, SMS Spam, and a custom Intent dataset) demonstrate significant performance benefits over standard BERT, BERT ensembles, and CAMEL, suggesting practical impact for high-stakes text classification scenarios.
Abstract
We introduce a novel multi-agent collaboration framework designed to enhance the accuracy and robustness of text classification models. Leveraging BERT as the primary classifier, our framework dynamically escalates low-confidence predictions to a specialized multi-agent system comprising Lexical, Contextual, Logic, Consensus, and Explainability agents. This collaborative approach allows for comprehensive analysis and consensus-driven decision-making, significantly improving classification performance across diverse text classification tasks. Empirical evaluations on benchmark datasets demonstrate that our framework achieves a 5.5% increase in accuracy compared to standard BERT-based classifiers, underscoring its effectiveness and academic novelty in advancing multi-agent systems within natural language processing.
