Fine-Grained Mixture of Experts (MoE) Architecture: A Technical Breakdown
This article explains how fine-grained Mixture of Experts (MoE) architectures decouple total parameter count from per-token computation. It covers two core designs—fine-grained expert segmentation and shared expert isolation—and discusses what a 671B total parameter model with roughly 37B activated parameters means for memory, throughput, and cost. You will also find multi-scale deployment patterns, practical engineering guidance on load balancing, capacity factors, parallelism, and observability, plus common misconceptions about sparse models.
1. The Starting Point: Why Scaling Dense Models Hits a Wall
For a long time, the default path to improving model capability was to make the parameter count larger. Under a dense architecture, every input token passes through all parameters during computation, which means parameter count and the compute required for a single inference pass scale almost proportionally. As models grew from billions to hundreds of billions of parameters, training and inference costs rose linearly or even more steeply, while the returns began to show diminishing marginal gains.
The core idea of Mixture of Experts (MoE) is to decouple total parameter count from per-token compute: the model holds a massive pool of parameters, but each token is routed to only a small subset of experts for computation. In January 2024, an early open-source MoE large model architecture from China appeared, marked by two designs—fine-grained expert segmentation and shared expert isolation. It supported both Chinese and English and free commercial use, and was later applied to models at multiple parameter scales as well as vision-language models.
2. Two Key Designs: Fine-Grained Segmentation and Shared Expert Isolation
2.1 Fine-Grained Expert Segmentation
Traditional MoE models use a small number of experts, and each individual expert is “wide.” Fine-grained segmentation takes the opposite approach: each expert is made smaller, while the number of experts is multiplied. This brings three benefits:
- A larger combination space. Under the same activated parameter budget, the number of possible expert combinations rises sharply, giving the router stronger expressive power.
- Higher specialization. Smaller experts more easily form clear divisions of labor within the data distribution, reducing vague experts that “learn a bit of everything.”
- More precise activation. Each token only wakes up the small number of small experts it truly needs, avoiding the idle spinning of large amounts of irrelevant parameters inside a big expert.
2.2 Shared Expert Isolation
If all parameters are selected through routing, general knowledge gets repeatedly copied into every expert, creating redundancy. Shared expert isolation carves out a group of always-active shared experts dedicated to cross-domain general knowledge; the rest are routed experts responsible for differentiated, task-specific patterns. This way general capability is kept in a single copy, and routed experts do not have to repeatedly learn basic grammar and common sense, significantly improving parameter utilization.
The forward logic can be abstracted schematically as:
# Pseudocode: fusing shared experts with routed expertsdef moe_forward(x, shared_experts, routed_experts, router, top_k=2):# 1) Shared experts are always active for all tokens, carrying general knowledgey_shared = sum(expert(x) for expert in shared_experts)# 2) The router selects top_k routed experts for each tokenlogits = router(x) # [num_tokens, num_routed_experts]weights, indices = topk_softmax(logits, k=top_k)# 3) Compute only the selected experts to achieve sparse activationy_routed = 0for w, idx in zip(weights, indices):y_routed = y_routed + w * routed_experts[idx](x)return y_shared + y_routed
3. Decoupling Scale from Compute: What 671B Total Parameters and ~37B Activated Parameters Mean
This architecture was later used in a large model with 671B total parameters and roughly 37B parameters activated per token. The engineering implications of these numbers are worth unpacking:
- Memory requirements are determined by total parameters. All expert weights must stay resident, so the pressure of distributed deployment and parallel partitioning does not disappear.
- Compute throughput is determined by activated parameters. The floating-point operations for a single token correspond to roughly the 37B scale, giving a hundred-billion-scale model an interactive latency close to that of a much smaller model.
- A new balance dimension emerges between capacity and cost. Scaling up can be done by adding more experts, without making every token pay a linear price.
It is important to stress that “sparse” does not mean “free.” Load imbalance from routing, communication overhead in expert parallelism, and the storage cost of the full set of weights are all real costs that must be accounted for.
4. Multi-Scale Deployment: From 2B to 145B and Vision-Language Models
A notable advantage of this architecture is that the same design can be reused across scales. Public information shows it was applied to models at multiple parameter scales including 2B, 16B, and 145B, with a 16B conversational model open-sourced on February 27, 2025. Multi-scale reuse matters to engineering teams because:
- A unified R&D pipeline. Small models are used for rapid validation of data mixtures and routing behavior, while large models carry the final quality.
- Distillation and alignment connect naturally. Small-scale models can serve as distillation teachers or as testbeds for alignment experiments.
- Device-cloud collaboration becomes more natural. Small-scale sparse models fit resource-constrained environments, while large-scale models are deployed on the server side.
In vision-language scenarios, modality differences naturally form a division of labor: the image encoder, text experts, and cross-modal alignment module can map to different expert roles, while shared experts carry cross-modal general representations, expanding multimodal capacity without scaling the whole model up.
5. Practical Engineering Considerations
- Load balancing. Routing tends toward “winner takes all,” so auxiliary balancing losses or noise strategies are needed to keep expert utilization stable.
- Capacity factor. Setting a capacity cap for each expert, with overflow dropped or spilled over, is a key knob between throughput and quality.
- Parallelism strategy. When expert parallelism is combined with tensor and pipeline parallelism, the communication pattern shifts from regular collective communication to irregular on-demand dispatch, which needs focused optimization.
- Inference caching. Because shared experts are always active, their computation can be pipelined with routing decisions to reduce serial waiting.
- Observability. It is advisable to bring expert activation distribution, routing entropy, and overflow rate into logging services and monitoring/alerting systems, forming a tunable feedback loop.
- Deployment shape. Container platforms hosting elastic replicas, object storage holding weights and datasets, and message queues buffering offline batch inference tasks make a fairly general engineering combination.
6. Common Misconceptions
- Misconception 1: A larger parameter count is always stronger. The final quality of a sparse model depends heavily on routing quality and data mixture.
- Misconception 2: Fewer activated parameters means lower cost. Memory and bandwidth costs are counted by total parameters, so the hardware barrier is not lowered.
- Misconception 3: Fine-grained is always better than coarse-grained. Experts that are too fine increase routing noise and the number of communications, and must be matched to the data scale.
7. Conclusion
Fine-grained expert segmentation and shared expert isolation essentially build an adjustable valve between “model capacity” and “per-token compute.” They shift the means of scaling a model from “widening” to “adding combinations,” giving hundred-billion-scale models practical inference economics and allowing the same architecture to cover the full spectrum from 2B to 145B and extend toward the vision-language direction. For developers, the real challenge has shifted from “whether a sparse architecture can be built” to “how to train routing stably, partition parallelism well, and see expert utilization clearly.” With the general capabilities of cloud platforms such as Baidu AI Cloud, elastic compute, containerized deployment, and observability systems can let the deployment of such architectures focus more on the algorithm itself.
