Depth-Aware Sensitivity Analysis of Mixture-of-Experts Models via Magnitude-Based Expert Masking
Original reporting by arXiv (cs.AI)

Mixture-of-Experts (MoE) architectures refer to a class of large language models (LLMs) that enhance efficiency by activating only a subset of their parameters for any given input, allowing for impressive scaling. Despite their widespread adoption, the internal workings of these models, particularly the varying importance of individual MoE layers for compression, have remained largely uncharacterized. A new study systematically probes the Qwen3.6-35B-A3B model, a powerful MoE architecture, to uncover these sensitivities.
Layer-wise insights
Using magnitude-based expert masking on a cross-lingual code translation benchmark, researchers conducted a multi-phase analysis across 40 MoE layers. Their central finding reveals a strong depth-dependency in layer sensitivity: early and middle layers (0-29) are remarkably fragile, severely impacting performance even with minimal expert removal. In stark contrast, late layers (30-39), and especially the very-late layers (35-39), exhibit a surprising tolerance for aggressive masking of low-magnitude experts.
This depth-aware understanding yields significant practical benefits. While a uniform 30% masking across all layers drastically reduces model quality, targeted masking strategies focused on these robust late layers preserve high performance. For instance, masking up to 1,145 experts in late layers retained nearly all quality, whereas a flat approach degraded it significantly. A very-late policy specifically masking 640 experts achieved an optimal quality-to-masking tradeoff, demonstrating a clear path toward physically smaller MoE models. These findings lay the groundwork for sophisticated, depth-aware MoE compression techniques, establishing a practical path toward physical weight surgery and more efficient model deployment.
The systematic analysis of Mixture-of-Experts (MoE) layers in the Qwen3.6-35B-A3B model reveals a crucial insight: not all experts are created equal, and their importance varies significantly by their architectural depth. This finding — that early and middle layers are highly sensitive to expert removal, while late layers tolerate aggressive masking — represents a pivotal step toward optimizing these powerful yet resource-intensive models. By demonstrating that targeted expert masking, particularly in the very-late layers, can drastically reduce model complexity without commensurate performance degradation, this research offers a tangible path to greater computational efficiency. The observed wall-clock reductions from reduced routing width further underscore the immediate practical benefits of such depth-aware strategies.
Towards Efficient AI
This research transcends mere model compression; it fundamentally redefines our approach to designing, training, and deploying large language models. The empirical foundation for depth-aware expert masking opens doors for "physical weight surgery," allowing developers to build inherently leaner models that consume less energy and operate with lower latency. Beyond immediate pruning, these findings also establish a roadmap for activation-based expert scoring and training-based recovery techniques, suggesting entirely new paradigms for MoE optimization. Such efficiencies are critical not only for reducing the operational costs of powerful AI systems but also for expanding their accessibility to resource-constrained environments and potentially enabling novel applications on edge devices where current LLMs are prohibitive. By illuminating the internal dynamics of MoE architectures, this work paves the way for a new generation of LLMs that are not just larger and more capable, but also intelligently optimized for sustainable and widespread deployment, promising a future of more performant, economically viable, and environmentally conscious artificial intelligence.
Frequently asked questions
- What is a Mixture-of-Experts (MoE) architecture in large language models?
- Mixture-of-Experts (MoE) is a neural network architecture designed to scale large language models (LLMs) efficiently. Instead of activating all parameters for every input, MoE models route each input token to a select subset of specialized "expert" neural networks. This sparse activation allows MoE models to have a much larger total parameter count than traditional dense models without a proportional increase in computational cost during inference, thus improving capacity and performance.
- How does expert masking impact the performance of Mixture-of-Experts models?
- Expert masking, a technique used for model compression, involves selectively deactivating or pruning experts within an MoE model. Its impact on performance is strongly depth-dependent. Early and middle layers are highly sensitive to expert masking, meaning removing experts can significantly degrade model quality. In contrast, late layers, especially the very-late ones, can tolerate aggressive masking of low-magnitude experts with minimal loss in performance, offering a strategic approach to optimize model size and efficiency.
- Can reducing the number of active experts in an MoE model improve efficiency?
- Yes, reducing the number of active experts per token, known as top-k routing width, can significantly improve computational efficiency. For example, decreasing active experts from 8 to 6 can lead to a notable reduction in inference time without immediately impacting output quality. While beneficial for wall-clock speed, this efficiency gain might not always combine seamlessly with other aggressive model compression techniques like expert masking, requiring careful consideration of overall optimization strategies.