Introduction
Financial sentiment analysis presents a unique challenge for natural language processing. Unlike general sentiment analysis, the financial domain is heavily dependent on context and technical jargon. A term like "bullish" or "hawkish" carries specific weight that general-purpose models may overlook. Furthermore, financial news often contains conflicting signals within a single sentence, requiring high-precision entity-level reasoning.
To address these complexities, we present MoMoE (Mixture of Mixture of Experts), a dual-layered framework that integrates a sparse Mixture-of-Experts (MoE) neural architecture within a collaborative Multi-Agent (MoA) system. By specializing at both the architectural and agentic levels, MoMoE achieves state-of-the-art performance on financial benchmarks, surpassing models like GPT-4o and DeepSeek V3.
Methodology: A Two-Tier Specialization Strategy
The MoMoE framework employs a hierarchical approach to specialization, operating at both the neural level and the agent level.
1. The Neural Level: LLaMoE
The foundation of our system is LLaMoE, a modified version of the LLaMA 3.1 8B model. Recognizing that the final layers of a transformer are responsible for high-level semantic extraction, we replaced the Feed-Forward Network (FFN) in the final attention block with a custom sparse MoE layer. This layer consists of four MLP experts, where a router dynamically selects the top two experts for each token. To ensure robust training and prevent expert collapse, we utilized an improved load-balancing loss function.
2. The Agent Level: Mixture of Agents (MoA)
The second tier of our framework places LLaMoE into a collaborative ecosystem. As shown in the architecture diagram below, an input prompt is processed simultaneously by three distinct agents: LLaMoE, GPT-4o, and DeepSeek V3.
The intermediate outputs from these models are concatenated and passed to a final "judge" agent (GPT-4o). This final agent synthesizes the diverse perspectives, resolving conflicts and correcting individual errors to produce a refined sentiment classification.
Experimental Setup and Datasets
To evaluate MoMoE's robustness, we tested it against a variety of financial datasets:
- FinancialPhraseBank v1.0: Expert-annotated financial news sentences.
- SEntFiN 1.0: Headlines requiring entity-specific sentiment analysis.
- Kaggle Financial News & Twitter: Sentiment from retail investors and social media.
- FiQA: Complex financial expressions and aspect-level predictions.
Key Results
MoMoE demonstrates superior performance across all evaluated metrics. By combining the specialized neural architecture of LLaMoE with the collective intelligence of the MoA framework, the model sets a new benchmark for financial sentiment analysis.
As shown in the table above, MoMoE achieved an F1-score of 76.6% and a Precision of 78.7%, significantly outperforming standalone models like GPT-4o (74.3% F1) and specialized models like FinBERT (73.0% Accuracy). These results highlight the effectiveness of combining sparse neural routing with multi-agent synthesis.
Discussion and Future Work
The success of MoMoE underscores the value of dual-level specialization. While the neural MoE layer provides efficient task decomposition, the agent-level MoA provides a "committee" effect that enhances reasoning.
However, challenges remain. The final agent can occasionally be swayed by a "majority bias" if multiple intermediate agents share the same error. Future research will focus on implementing adaptive weighting—where the final agent assigns different levels of trust to intermediate models based on their historical performance or confidence scores—and scaling the MoMoE approach to larger base architectures.
Summary updated