Ultra-Large MoE Models: Parameters, Data, and Engineering Practices
This article explores the engineering practices and technical considerations for ultra-large Mixture of Experts (MoE) models. It covers the trade-offs between total and activated parameters, common training challenges like load balancing and routing collapse, and the critical role of data engineering. Additionally, it provides guidelines for interpreting benchmark scores, a cloud engineering checklist for training and inference, and architecture selection strategies to help developers make informed decisions when deploying MoE models.
As the parameter scale of large language models continues to grow, dense models incur increasingly high compute costs during both training and inference. The Mixture of Experts (MoE) architecture leverages sparse activation to expand model capacity while controlling single-pass computation, making it a primary choice for many teams.
- Trade-offs Between Total and Activated Parameters
In an MoE architecture, a router determines which expert networks process each token. Total parameters dictate how much knowledge the model can store, while activated parameters determine the computational overhead of a single forward pass. A smaller ratio between the two indicates a higher degree of sparsity.
Taking a base model from a public technical report as an example: it has approximately 744B total parameters and activates about 40B parameters per inference, divided into 256 expert networks across 80 layers. The report also mentions that the previous generation had about 355B total parameters and 32B activated parameters. This translates to a doubling of total parameters, while activated parameters only increased by about 25%.
The benefit of this design is that capacity grows faster than inference cost. However, the trade-offs are clear. More experts mean all expert weights consume more VRAM, making load balancing more difficult to maintain. Fewer activated parameters do not equate to lower resource requirements. Note that the numbers cited here are from public reports; before usage, one should verify the parameter scope against the original technical report, such as whether the vocabulary, shared experts, and multimodal modules are included.
- Training Issues Arising from Increased Expert Count
First, load balancing. The router might assign most tokens to a few experts, causing overloading in some and prolonged idleness in others. Common solutions include adding an auxiliary load-balancing loss or using an auxiliary-loss-free bias adjustment method.
Second, routing collapse. During early training, the router might prematurely fix its selection pattern, leaving some experts with almost no training samples. To troubleshoot, calculate the token proportion received by each expert and observe their gradient norms. If a few experts have a noticeably higher proportion, check whether the auxiliary loss coefficient is set too low.
Third, All-to-All communication. When experts are distributed across multiple GPUs, tokens must be exchanged across cards at each layer. Communication latency often becomes a training bottleneck. Expert parallelism combined with overlapping communication and computation can reduce wait times.
- How Data Engineering Affects Final Performance
According to a technical report, a certain model’s pretraining data consisted of about 28.5T tokens, with 27T for general pretraining and 1.5T for mid-training. Mid-training is typically used to supplement code, math, multilingual, or instruction data to strengthen specific capabilities.
Data cleaning, deduplication, and quality filtering often impact the final performance more than merely increasing data volume. When evaluating a data specification, check three points: whether the deduplication method is specified, whether the data ratio for each stage is public, and whether the test set is isolated from the training data.
- How to Read Public Benchmark Scores
The original text mentioned that on a comprehensive evaluation index v4.0, an open-source model scored over 50 points and ranked among the top open-source models in the text and code leaderboards of a blind-test arena. The value of such conclusions depends on whether specific details can be verified: leaderboard version, evaluation date, model version, and the statistical criteria for scores and rankings.
Three points to note when reading evaluation results: scores from different versions of a leaderboard cannot be directly compared; Elo scores or win rates in blind-test leaderboards are affected by the distribution of voting samples; and a single leaderboard cannot represent all capabilities, such as complex reasoning, tool calling, and long-context processing. If the original leaderboard is inaccessible, the conclusion should be phrased as “performs closely to top closed-source models in specific benchmarks” rather than using claims like “fully surpasses.”
- Cloud Engineering Practice Checklist
Training Phase:
- Confirm the interconnect bandwidth of the GPU cluster (e.g., whether RDMA networking is used) and benchmark the All-to-All communication latency.
- Check if the data read throughput can keep up with the computation speed; data can be stored in a parallel file system or object storage.
- Set checkpoint saving frequency and validate the recovery process in a test environment.
Inference Phase:
- Set scaling thresholds based on concurrency and latency targets, and record container cold start times.
- Distribute model weights via object storage, and verify file hashes after distribution to ensure consistency across nodes.
Monitor GPU VRAM utilization, time to first token (TTFT), and tokens generated per second, and set alerts for abnormal metrics.
Architecture Selection Recommendations
If the compute budget is limited and the business requires high throughput, prioritize MoE models with smaller activated parameters.
If single-card VRAM is sufficient and request volume is low, deploying and maintaining a dense model is usually simpler.
If frequent fine-tuning is required, first confirm the degree of support the training framework provides for expert layer fine-tuning before deciding on MoE.
- Frequently Asked Questions
Q: What is the most common mistake when deploying MoE models?
A: A common mistake is estimating resources solely based on activated parameters. Actual deployment requires calculating VRAM usage based on total parameters, while reserving space for communication and caching.
Q: How do you troubleshoot routing collapse?
A: First, calculate the token distribution for each expert, then check the auxiliary loss coefficient and learning rate. If the issue persists, try adjusting the expert capacity limit.
- Conclusion
The MoE architecture allows model capacity and single-pass compute costs to be adjusted separately. When selecting an architecture, consider total parameters, activated parameters, expert count, and communication overhead simultaneously. Benchmark scores must be evaluated in conjunction with leaderboard versions, statistical criteria, and applicability scopes before they can be used for practical decision-making.
