Abstract
Mixture-of-Experts (MoE) models offer a path to scaling Large Language Models (LLMs) efficiently, yet they suffer from significant communication overhead in distributed settings. This paper presents Collaboration-Constrained Routing (C2R), a model-system co-design that optimizes expert selection by enforcing specialized "squads" of experts. By co-locating collaborating experts on the same GPU, C2R reduces communication overhead by up to 30% while simultaneously improving model accuracy across multiple benchmarks.
Introduction
Mixture-of-Experts (MoE) has emerged as a dominant architecture for scaling LLMs without a proportional increase in computational cost. By utilizing a gating network to route tokens to a subset of specialized experts, MoE maintains a constant per-token compute budget while increasing total parameter count. However, the distributed execution of MoE introduces a substantial bottleneck: communication overhead.
In typical MoE implementations, any expert can potentially collaborate with any other expert for a given token. This "overly collaborative" nature leads to a combinatorial explosion of data transfers (All-to-All communication), which can account for over 30% of total training and inference time. Previous optimization efforts have largely focused on load balancing to ensure expert utilization but have neglected the high cost of random expert pairings.
Methodology
The C2R strategy addresses these inefficiencies through a two-pronged approach:
- Expert Profiling: The system analyzes pre-trained MoE models to identify natural co-activation patterns. An Expert Collaboration Matrix is constructed to determine which experts frequently "fire" together for the same tokens.
- Constrained Routing Strategy: Unlike standard gating that allows unrestricted selection of $K$ experts, C2R first selects the optimal primary expert (Top-1). It then restricts the selection of the remaining $K-1$ experts to a predefined "Top-T" list of that expert’s most frequent collaborators.
- Zero-Redundancy All-to-All: By grouping experts into predictable "squads" based on collaboration profiling, these squads can be co-located on the same GPU. This enables a "send-once, use-many" mechanism where a token is transferred to a GPU once and shared locally among the squad, significantly reducing inter-GPU traffic.
Experimental Setup
The researchers evaluated C2R using two representative open-source MoE models: LLaMA-MoE and Qwen-MoE. Performance was assessed across ten downstream NLP benchmarks covering reasoning (WSC, GPQA, LogiQA, PIQA, PROST) and natural language understanding (RACE, SciQ, RTE, BoolQ, COPA). WikiText was utilized for profiling expert collaboration patterns, while LongBench provided data for in-depth token distribution analysis.
Results and Discussion
C2R achieved a 20% to 30% reduction in total running time compared to the state-of-the-art MegaBlocks framework, with wall-clock inference time reductions of up to 24.9%. Surprisingly, the routing constraints did not degrade performance; instead, they enhanced expert specialization. C2R improved average accuracy by 0.51% on LLaMA-MoE and 0.33% on Qwen-MoE across the tested benchmarks.
The results indicate that higher-order co-activation patterns are a critical lever for system efficiency. By treating constraint as a feature rather than a limitation, C2R finds a "Pareto optimal" balance between model flexibility and communication costs. The co-location strategy effectively eliminates the redundancy found in standard expert parallelism, where the same token is often sent multiple times to the same GPU.
Conclusion and Future Work
While C2R demonstrates significant gains, several avenues for future research remain. The collaboration constraint ($T$) is currently a fixed hyperparameter; implementing task-adaptive routing could further optimize performance for varying workloads. Additionally, while the current study focuses on fine-tuning and inference, applying C2R during the initial pre-training phase of massive models represents a promising frontier for large-scale AI efficiency.
Summary updated