Abstract
Traditional Mixture-of-Experts (MoE) architectures rely on isolated experts, limiting their ability to perform complex, iterative reasoning. This paper introduces GRAPHMOE, a novel framework that conceptualizes the MoE layer as a Pseudo Reasoning Graph (PRG). By incorporating a recurrent "virtual node" to aggregate expert insights across multiple "self-rethinking" rounds, GRAPHMOE significantly enhances the cognitive depth of Large Language Models (LLMs). Evaluated on LLaMA-3-8B across eight commonsense reasoning benchmarks, GRAPHMOE achieves state-of-the-art performance among parameter-efficient fine-tuning (PEFT) methods, demonstrating that collaborative, iterative expert interaction is more effective than simply increasing model width.
Introduction: The "Siloed" Expert Problem
Modern LLMs often utilize MoE layers to scale capacity efficiently. However, these architectures typically operate in a "siloed" manner: a router selects a subset of Feed-Forward Network (FFN) experts for a token, and these experts process the input in isolation. This one-pass approach lacks "cognitive depth"—the human-like ability to iterate, rethink, and allow different specialized knowledge areas to collaborate. GRAPHMOE addresses this by fostering communication among independent experts through a graph-based iterative reasoning process.
Methodology: The Pseudo Reasoning Graph
GRAPHMOE transforms the standard MoE layer into a collaborative environment. It treats individual experts as nodes within a graph and introduces a central Virtual Node to manage their interactions.
The Virtual Node and Self-Rethinking
The core innovation is the Virtual Node, implemented as a Low-Rank Gated Recurrent Unit (GRU). Instead of a single forward pass, GRAPHMOE executes $T$ reasoning rounds (typically $T=3$). In each round:
- Routing: The router selects experts based on the current state.
- Processing: Selected experts process the data.
- Aggregation: The Virtual Node collects these outputs, updates its internal state, and guides the next iteration.
- Residual Integration: A residual connection merges the "rethought" features back into the sequence, bridging the semantic gap between rounds.
To maintain efficiency, both the experts and the GRU components utilize Low-Rank Adaptation (LoRA), allowing the model to be fine-tuned with minimal parameter overhead.
Experimental Evaluation
The researchers evaluated GRAPHMOE using a LLaMA-3-8B base model across several challenging benchmarks, including ARC (Easy & Challenge), BoolQ, OpenBookQA (OBQA), PIQA, SIQA, HellaSwag, and WinoGrande.
Key Results
- Performance Gains: GRAPHMOE consistently outperformed standard LoRA and existing MoE-LoRA hybrids. On average, it achieved 84.9% accuracy across all benchmarks, a significant jump from the 82.6% baseline of MixLoRA.
- Cognitive Depth vs. Width: The results suggest that adding temporal depth (reasoning rounds) is more potent than simply adding more experts (width).
- Improved Load Balancing: The graph structure naturally encourages more diverse expert utilization, reducing the standard deviation of expert usage by over 20% compared to traditional MoE.
Discussion and Limitations
While GRAPHMOE sets a new standard for PEFT reasoning, it introduces a linear increase in inference latency proportional to the number of reasoning rounds ($T$). Furthermore, there is an "overthinking" threshold; increasing $T$ beyond 3 or 4 can lead to performance degradation on certain tasks, suggesting a limit to beneficial iteration. Future work will explore scaling this mechanism to larger models (e.g., 70B+) and optimizing the recurrent overhead.
Conclusion
GRAPHMOE demonstrates that the "secret sauce" for better reasoning isn't just more parameters, but better collaboration. By treating experts as a graph and allowing them to "rethink" their outputs, we can unlock significant cognitive capabilities in existing LLMs with minimal additional training costs.
Summary updated