Introduction
Mixture-of-Experts (MoE) architectures, such as Mixtral and DeepSeek-MoE, have become the backbone of modern Large Language Models (LLMs). By activating only a small subset of specialized experts for each token, these models achieve high capacity with manageable computational costs. However, as model sizes grow, experts must be distributed across multiple GPUs using expert parallelism. This distribution introduces a significant bottleneck: the "all-to-all" communication required to shuffle tokens between GPUs to reach their assigned experts. In communication-heavy workloads, such as large-batch training or long-context processing, this overhead can account for over 40% of total runtime.
The Occult Framework
Occult addresses this bottleneck through an algorithm-system co-design focused on Collaborative Communication. The core insight is that if multiple experts required by a token reside on the same GPU (intra-collaboration), communication is minimized. If they are on different GPUs (inter-collaboration), tokens must be replicated and sent across the network. The authors introduce a metric, $C_T$, representing the average number of token replicas, which shows a near-perfect linear correlation with actual wall-clock runtime.
System-Level Optimization: BRIM
Standard MoE implementations often waste memory by creating redundant token replicas for the "all-to-all" step. Occult introduces a custom Sparse Matrix Multiplication (SMM) kernel guided by a Bidirectional Re-Index Matrix (BRIM). This data structure allows for efficient token routing and output aggregation without the memory bloat typical of existing libraries, enabling larger batch sizes and faster execution.
Algorithmic Innovation: Collaborative Pruning
To further reduce the communication volume, Occult employs two strategies:
- Expert Placement Rescheduling: By profiling expert activation patterns on a dataset, Occult builds a "collaboration graph." It then uses clustering algorithms to place frequently co-activated experts onto the same device.
- Collaboration Pruning: Even with optimal placement, tokens often request experts across many GPUs. Occult modifies the routing algorithm during fine-tuning to restrict a token's expert choices to a limited number of GPUs (e.g., 1 or 2). When a preferred expert is on a "forbidden" GPU, Occult swaps it for a local expert. The authors found that swapping based on "expert similarity" (routing logit profiles) significantly outperforms simple score-based swapping.
Experimental Results
The authors evaluated Occult on frontier models including OLMoE-1B-7B, Qwen1.5-MoE-A2.7B, and DeepSeek-MoE across 23 standard NLP benchmarks, including MMLU, HellaSwag, and Winogrande.
Inference and Training Speedups
Occult demonstrates dramatic performance improvements across the board. In prefilling tasks with long contexts (16,384 tokens), Occult with 2-GPU pruning achieved up to an 8.66x speedup over Tutel and nearly 2x over vLLM. In decoding tasks, it consistently outperformed Hugging Face and MegaBlocks. During training, the memory efficiency of the BRIM kernel allowed for larger batch sizes, resulting in speedups of up to 20x over traditional expert parallelism implementations like Tutel and 1.54x over MegaBlocks.
Model Quality and the "Sweet Spot"
Crucially, these speedups do not come at the cost of accuracy. The authors discovered that restricting a token's experts to a single GPU (1-GPU pruning) often degrades performance by breaking expert correlations. However, allowing tokens to span exactly two GPUs (2-GPU pruning) serves as a "sweet spot"—it preserves enough network structure to maintain or even slightly improve benchmark performance while drastically slashing communication costs.
Conclusion
Occult represents a significant step forward in making massive MoE models practical for both high-throughput inference and efficient training. By co-optimizing the underlying system kernels with the routing algorithm, it effectively bypasses the communication wall of modern GPU clusters. Future work will focus on addressing workload balancing to ensure even computational distribution across GPUs during these optimized passes.
Summary updated