Abstract
We propose Chain-of-Experts (CoE), a new Mixture-of-Experts (MoE) architecture that introduces sequential expert communication within each layer. Unlike traditional MoE models, where experts operate independently in parallel, CoE processes tokens iteratively across a chain of experts inside a layer. To support dynamic expert selection across iterations, CoE employs a dedicated router at each iteration step within a layer. This design allows tokens to re-evaluate and select different experts during each iteration, rather than being statically assigned. As a result, CoE introduces a flexible routing mechanism that increases the diversity of expert combinations and enriches the model's representational capacity. CoE demonstrates improved performance under fixed compute: on math reasoning tasks, it reduces validation loss from 1.20 to 1.12 compared to a standard MoE. Beyond performance, CoE offers a new scaling axis: depth through expert iteration, which complements conventional width/depth scaling. For example, using 2x iterations matches the performance of 3x expert selections (in width), while reducing memory usage by 17.6-42% relative to other scaling strategies. Our analysis reveals that CoE's benefits stem from its iterative residual structure and enhanced expert specialization empowered by iterative routing, which together unlock more expressive representations.
Introduction
In standard Mixture-of-Experts (MoE) models, a router selects a few specialized sub-networks (experts) to process a token in parallel. While computationally efficient, this design assumes experts should operate independently. This independence limits the model's ability to perform complex, multi-step reasoning within a single layer, as experts cannot "talk" to each other or refine each other's work.
Scaling MoE models typically requires increasing "width" (more experts) or "depth" (more layers), both of which incur significant memory and computational costs. Chain-of-Experts (CoE) addresses this by introducing a third scaling axis: depth through iteration. By shifting from parallel expert processing to a sequential "relay race," CoE allows experts within a single layer to communicate iteratively, achieving superior reasoning performance and improved memory efficiency.
Methods: Sequential Expert Communication
The core innovation of CoE is the transition from parallel activation to sequential processing. Instead of activating $K$ experts simultaneously, CoE processes a token through $C$ successive communication steps within a single layer.
- Iterative Processing: In each step, the token is passed to a subset of experts. The output of one step becomes the input for the next, allowing the representation to be progressively refined through the layer.
- Iteration-Independent Routing: Unlike recurrent models with fixed paths, CoE employs a dedicated router for every iteration. This allows the model to dynamically re-evaluate which expert is best suited for the token based on its newly refined state.
- Inner Residual Connections: To stabilize this multi-step process and prevent information loss, residual connections are included at every iteration ($x_{next} = \text{Expert}(x) + x$).
- Compute Parity: To ensure a fair comparison, CoE maintains the same total number of expert "invocations" as standard MoE. For example, if a standard MoE uses 8 experts in parallel, a CoE model might use 4 experts over 2 iterations, keeping the total FLOPs identical.
Key Insights and Results
CoE demonstrates several advantages over traditional MoE architectures, particularly in reasoning tasks and memory efficiency:
- Combinatorial Flexibility: By breaking selection into sequential steps, the number of possible expert combinations grows exponentially. For a pool of 64 experts, CoE allows for 823× more unique expert pairings than a standard MoE, vastly increasing representational capacity.
- Expert Specialization: Visualization shows that experts naturally adopt roles as "entry points" (early iterations) or "accumulators" (later iterations), refining aggregated data as the token moves through the chain.
- Performance Gains: On mathematical reasoning tasks, CoE reduced validation loss from 1.20 to 1.12 compared to a standard MoE under the same compute budget. It consistently outperformed MoE across benchmarks like ARC-E, HellaSwag, and PIQA.
- Scaling Efficiency: CoE can match the performance of models with 3× the expert selection width while using 17.6–42% less memory. A 4-layer CoE model with 2 iterations matched the performance of much deeper 8-layer and 12-layer MoE models while maintaining a constant parameter count.
Limitations and Future Work
While CoE is FLOP-efficient, sequential processing is inherently more difficult to parallelize on current GPU hardware than the "all-at-once" approach of standard MoE, leading to a moderate increase in wall-clock training time. Additionally, CoE currently requires training from scratch rather than fine-tuning existing MoE checkpoints. Future research will explore scaling CoE to billions of parameters and investigating the use of global expert pools shared across layers to further enhance architectural efficiency.
Summary updated