Abstract
Mixture-of-Experts (MoE) architectures are increasingly used to scale Large Language Models (LLMs) efficiently. However, Expert Parallelism (EP) introduces significant communication bottlenecks, especially in traditional GPU clusters. This paper presents MoEntwine, a specialized solution for wafer-scale chips (WSCs) that optimizes MoE inference. By co-designing layer mapping through Entwined Ring Mapping (ER-Mapping) and introducing a Non-invasive Balancer (NI-Balancer) to hide expert migration overhead, MoEntwine achieves a 39% performance boost over state-of-the-art NVIDIA NVL72 clusters.
Introduction
As Large Language Models (LLMs) like DeepSeek-V3 and Qwen3 scale, they adopt Mixture-of-Experts (MoE) architectures to improve parameter efficiency. These models rely on Expert Parallelism (EP), distributing experts across multiple devices. However, EP requires intensive "all-to-all" communication to dispatch tokens to their assigned experts and combine results, creating a massive bottleneck. In traditional GPU clusters (e.g., DGX systems), slow inter-node links make this communication prohibitively expensive.
Wafer-scale chips (WSCs), which integrate hundreds of dies on a single wafer, offer a promising alternative with unified high bandwidth. Yet, WSCs face their own hurdles: mesh topology constraints leading to traffic congestion and the lack of on-wafer storage, which makes traditional load balancing—moving massive expert weights—difficult without interrupting inference.
Methodology
MoEntwine introduces two primary innovations to "entwine" communication and computation, specifically tailored for the constraints of WSCs:
Entwined Ring Mapping (ER-Mapping)
ER-Mapping co-designs the mapping of attention and MoE layers. It introduces the concept of a Full Token Domain (FTD)—the minimal set of devices needed to hold tokens from all Tensor Parallel (TP) groups. By entwining these groups into compact FTDs, MoEntwine reduces the average number of hops for token dispatching and eliminates intersections between different FTDs, significantly reducing central mesh congestion.
Non-invasive Balancer (NI-Balancer)
To solve the load-balancing problem without slowing down inference, the NI-Balancer exploits the "complementary" nature of link utilization. Links busy during the attention layer's phase (e.g., all-reduce) are often idle during the MoE phase. The NI-Balancer schedules expert migration to exclusively use these "cold" links, effectively hiding the migration overhead and allowing for agile workload balancing.
Evaluation and Key Results
MoEntwine was evaluated using state-of-the-art MoE models, including DeepSeek-V3 (671B) and Qwen3 (235B), using the Evidently AI benchmark and realistic request traces from Azure.
The system delivers substantial improvements over existing architectures:
- Communication Efficiency: ER-Mapping reduces all-to-all communication latency by up to 62%.
- Load Balancing Gains: NI-Balancer provides a 54% improvement in MoE computation and a 22% improvement in communication with zero migration overhead.
- System Performance: Compared to the state-of-the-art NVIDIA NVL72 supernode, MoEntwine-enhanced WSCs deliver an average 39% higher per-device MoE performance.
- Scalability: WSCs allow for ideal Expert-to-Device (E/D) ratios (e.g., E/D=1), maximizing memory efficiency compared to GPU clusters often forced into suboptimal ratios due to networking costs.
Conclusion
MoEntwine demonstrates that co-designing mapping and scheduling can unleash the full potential of wafer-scale chips for LLM inference. By mitigating mesh congestion and hiding migration overhead, it significantly outperforms current state-of-the-art GPU cluster architectures. Future work will explore multi-wafer scaling and the application of these principles to MoE training.
Summary updated