Mixture-of-Experts (MoE) architectures have shown immense potential in scaling Large Language Models (LLMs) efficiently. By activating only a small subset of experts per input, models like Mixtral and DeepSeek achieve massive scale without proportional compute costs. However, their deployment is severely bottlenecked by memory requirements. PuzzleMoE introduces a novel compression framework that achieves a 50% memory reduction with negligible accuracy loss, delivering up to a 1.8x boost in inference throughput.
The Deployment Bottleneck of MoE Models
Even if an MoE model only activates two experts at a time during inference, the system must store all expert parameters—often dozens of them—in GPU memory. For instance, Mixtral-8x7B requires nearly 90GB of VRAM just to hold its weights in 16-bit precision.
Previous attempts to mitigate this memory overhead typically relied on coarse-grained strategies:
- Expert Dropping: Completely removing less frequently used experts.
- Coarse Merging: Averaging entire tensors or whole experts together.
These blunt approaches often destroy the specialized knowledge that makes MoEs so powerful, leading to sharp performance drops at high compression ratios.
The PuzzleMoE Approach: Fine-Grained Merging and Bit-Packing
PuzzleMoE abandons coarse operations in favor of a fine-grained, element-wise approach. It achieves high compression and speed through three key innovations:
1. Dual-Mask Fine-Grained Merging
Instead of merging whole experts, PuzzleMoE evaluates individual weight elements using two distinct masks:
- Similarity Mask: Identifies weights across experts that are numerically similar, allowing them to be averaged without significant information loss.
- Saliency Mask: For weights that differ significantly, this mask identifies the more "important" (salient) weight based on its magnitude and activation frequency. The system retains the salient weight and discards the other.
2. Bit-Packed Inference
In sparse merging, the "metadata overhead"—storing masks or indices to track which weights to use—often consumes so much space that it negates the memory savings. PuzzleMoE solves this by hijacking underutilized space within the weight format itself.
Observing that expert weights typically fall within a narrow range, the authors noted that the 8-bit exponent field in the BFloat16 format is largely wasted. PuzzleMoE shifts the exponent to 5 bits, freeing up 3 bits to store the sign and the merging masks directly inside the weight tensor. This results in zero metadata overhead.
3. Custom Decode-GEMM Kernel
To ensure these theoretical gains translate to real-world speed, the researchers developed a specialized GPU kernel using Triton. This kernel "unpacks" the hidden bits on-the-fly during matrix multiplication, ensuring that compression accelerates inference rather than bogging it down with decoding overhead.
Key Insights and Performance
The researchers evaluated PuzzleMoE across four major MoE models (Mixtral-8x7B, DeepSeek-MoE-16B, Qwen1.5-MoE-A2.7B, and Qwen3-MoE-30B) on a wide battery of benchmarks, including MMLU, ARC, HellaSwag, and GSM8K.
- Superior Accuracy at High Compression: At a 50% compression ratio, PuzzleMoE outperformed existing methods by up to 16.7% on MMLU. On Mixtral-8x7B, it maintained an average accuracy of 72.6% (down only 1.5% from the uncompressed 74.1%), while competing merging methods collapsed.
- Massive Speedups: Thanks to the halved model size and the highly optimized custom kernel, PuzzleMoE achieved up to a 1.80x end-to-end inference throughput gain.
- Reasoning Preservation: Unlike expert dropping, which often lobotomizes specific capabilities, PuzzleMoE retained 99% of the math reasoning performance on Qwen3-MoE at 25% sparsity.
- Quantization Compatibility: The method stacks effectively with 3-bit quantization (AWQ) to reach an effective 4.8x compression ratio with minimal loss.
Underpinning these results is the mathematical and empirical proof that expert weights follow a Gaussian distribution with high element-wise similarity. Experts share a significant amount of "redundant DNA" that can be safely merged, provided the saliency of individual weights is respected.
Limitations and Future Directions
While highly effective, PuzzleMoE has a few current limitations:
- 2-to-1 Focus: The elegant bit-packing scheme is perfectly tailored for 2-to-1 merging (50% sparsity). While the algorithm supports higher sparsity (e.g., 3-to-1), the "zero-overhead" trick becomes difficult to implement as more bits are required for masks.
- Hardware Specificity: The performance gains currently rely on custom Triton kernels optimized for NVIDIA GPUs. Porting this to mobile chips or other accelerators will require significant engineering.
- Random Grouping: Experts are currently paired randomly for merging. Future work could unlock even greater gains by identifying optimal expert pairings before merging.
Summary updated