TL;DR
Mixture-of-Experts (MoE) models are the "speed demons" of the AI world, but they are notorious memory hogs. DPMA (Differentiable Prune Merge Absorb) is a clever new way to shrink these giants by letting them learn their own diet—automatically deciding which "experts" to delete, which to merge, and which to simply reroute, all while keeping the core weights frozen.
What Problem Does This Paper Address?
In the quest for smarter AI, we’ve moved toward Mixture-of-Experts (MoE) architectures. These models are essentially a massive collection of specialized "experts." For every word (token) the model processes, it only wakes up a few experts, making it incredibly fast.
The catch? Even though only a few experts work at a time, all of them must sit in your GPU's memory. This "memory wall" makes it nearly impossible to run top-tier models on consumer hardware. Existing ways to shrink them are often "dumb"—they treat every layer the same and force a binary choice: either delete an expert (pruning) or average its weights with another (merging). The authors of DPMA argue that this one-size-fits-all approach leaves a lot of performance on the table.
Methods
The authors introduce DPMA, which stands for Differentiable Prune Merge Absorb. Instead of using a fixed rule, they use gradient descent—the same math used to train the models in the first place—to find the best compression strategy on a small "calibration" set of data.
The "secret sauce" is that DPMA doesn't just choose which experts to keep; it chooses how to handle the ones it removes:
- Prune: Discard the expert entirely.
- Merge: Blend the expert's knowledge (parameters) into a surviving expert.
- Absorb: Keep the "address" of the removed expert in the router, but redirect its signal to a survivor.
Crucially, DPMA learns a global budget. It might decide that Layer 1 is vital and should keep almost all its experts, while Layer 10 is redundant and can be slashed aggressively. This flexibility is summarized in their comparison with prior methods:
Datasets
The researchers didn't just test this on one toy model. They evaluated DPMA across four diverse MoE architectures:
- OLMoE-1B-7B
- Qwen1.5-MoE-A2.7B
- Qwen3-30B-A3B
- DeepSeek-MoE-16B
They used the C4 dataset for calibration (just 32 to 128 sequences) and evaluated the results on eight multiple-choice benchmarks, including MMLU, ARC, and HellaSwag, to ensure the "shrunken" models still actually knew their stuff.
Key Insights and Ideas
- The "Where" Matters as Much as the "How": DPMA discovered that models aren't uniform. It consistently kept more experts in the early layers and squeezed the middle layers harder. This non-uniform allocation is a major reason it beats simpler methods.
- Absorption is a Game Changer: By "absorbing" routing weights, the model preserves the original logic of which tokens go where, even if the physical expert is gone. This acts as a safety net for the model's internal communication.
- Model-Specific "Personalities": Interestingly, DPMA chose different strategies for different models. For Qwen3, it mostly pruned. For OLMoE, it leaned heavily on absorption and merging. This suggests that there is no "perfect" compression algorithm—only the one that fits the specific model's architecture.
Key Results
DPMA isn't just a marginal improvement; it’s a significant leap, especially when you're trying to cut deep.
- Dominance Across the Board: DPMA achieved the highest average accuracy across all four models and five different compression ratios.
- The 75% Threshold: When reducing the number of experts by 75%, DPMA outperformed the strongest baselines by up to 6.7 percentage points.
- Efficiency: Even when forced to use the same amount of "active" compute as baselines, DPMA-compressed models were smarter, proving that its way of organizing the remaining experts is fundamentally superior.
Limitations and Future Work
While DPMA is powerful, it isn't "free." * Search Time: It takes about 4 to 8 GPU hours to find the optimal compression plan. While this is a one-time cost before deployment, it's slower than simple heuristic-based pruning. * Calibration Data: Although it only needs a tiny amount of data, it still requires some representative text to learn the compression coefficients. * Future Directions: The authors suggest that this differentiable approach could be extended to even larger models or combined with actual weight fine-tuning (which they avoided here to keep the process "retraining-free") for even more extreme compression.
Summary updated