Architecture Design and Training Practices of Mixture-of-Experts Large Language Models

    This article examines the architecture and training practices of a large-scale Mixture-of-Experts (MoE) language model. It covers the model's core components, training scale and resource usage, the performance benefits of sparse activation, key engineering challenges such as load balancing and distributed communication, version evolution and deployment options, and practical recommendations for real-world adoption.

    1. Model Positioning and Core Technical Overview

    This model is a large-scale language model built on a Mixture-of-Experts (MoE) architecture. Unlike traditional dense models, MoE does not activate all parameters for every token. Instead, a routing network selects a small subset of expert networks to participate in each computation.

    According to publicly available information, the model has roughly 671 billion total parameters, while only about 37 billion parameters are activated per token. This gap illustrates the core value of MoE: the model can hold a much larger knowledge capacity while keeping the computation cost of a single inference under control. It is important to note that “more total parameters” does not mean “higher cost per inference.” Actual cost also depends on the number of activated experts, the routing strategy, sequence length, parallelism scheme, and hardware utilization.

    From an engineering perspective, an MoE model typically consists of:

    1. A shared attention module that models relationships within the context;
    2. Multiple expert feed-forward networks, each of which can learn different types of language, knowledge, or reasoning patterns;
    3. A router that selects appropriate experts based on the features of each input token;
    4. A load-balancing mechanism that prevents too many tokens from being concentrated on a small number of experts;
    5. Distributed communication components that exchange tokens and intermediate results across computing devices.

    Therefore, MoE is not simply “adding multiple sub-models.” It is a complete systems engineering effort involving model structure, communication scheduling, training stability, and inference optimization.

    2. Training Scale and Resource Usage

    The model was pre-trained on approximately 14.8 trillion tokens. Training used 2,048 high-performance computing devices, with total training resources of about 2.788 million GPU hours, of which the pre-training phase accounted for roughly 2.664 million GPU hours. On average, each device carried about 1,361 hours of training time, or roughly 56.7 days.

    These figures can be understood from three perspectives.

    First, data scale determines the model’s knowledge coverage and language generalization ability. Large-scale pre-training corpora help the model learn vocabulary, grammar, factual knowledge, code structure, and common reasoning patterns. However, data volume is not the only deciding factor. Data quality, deduplication strategy, contamination detection, domain proportions, and the training recipe are equally important.

    Second, the efficiency of compute utilization matters more than the raw device count. In large-scale training, theoretical compute power cannot be fully converted into effective training speed. Communication waits, memory access, data loading, gradient synchronization, and fault recovery all introduce overhead. Improving overall efficiency requires systematic optimization in parallelism strategies, operator fusion, communication compression, checkpointing, and job scheduling.

    Third, the publicly reported development cost is approximately US$5.576 million. Figures of this kind typically describe training and R&D investment under a specific accounting scope and should not be equated with total commercial cost. Actual overall cost may also include data processing, algorithm research, evaluation, safety governance, inference serving, operations, and talent. When comparing different models, it is essential to clarify the cost accounting scope, hardware depreciation method, and resource pricing assumptions.

    3. Performance Gains from the MoE Architecture

    Compared with its previous generation, the model reportedly achieves about a 3x improvement in generation speed and demonstrates capabilities close to high-level general-purpose models across multiple public benchmarks, with particularly strong performance in mathematical reasoning and Chinese-language tasks.

    The performance advantages of MoE mainly come from three sources.

    First, parameter capacity and computation can be partially decoupled. The model can increase capacity by adding more experts, while each token only accesses a fraction of them, avoiding the full-parameter computation required by dense models on every step.

    Second, different experts can develop a degree of functional specialization. For example, some experts may become better at natural language expression, while others may be more suited to mathematical patterns, code structures, or multilingual processing. Although this specialization is not necessarily fixed, the routing mechanism gradually forms effective parameter usage patterns during training.

    Third, inference throughput can be improved while maintaining a large model capacity. For online services, throughput is determined not only by parameter count but also by batch size, context length, memory capacity, and communication overhead. As a result, MoE models typically require dedicated inference scheduling systems to translate architectural advantages into real serving benefits.

    It is important to emphasize that MoE also presents clear challenges. Load imbalance can occur among experts, causing a few experts to become overloaded. Cross-device routing introduces communication costs. When concurrency is low, distributed expert deployment may not be more economical than a smaller dense model. In addition, the large total parameter size means that storage, loading, and version management still demand significant infrastructure capability.

    4. Key Engineering Challenges in Training and Inference

    4.1 Routing Load Balancing

    The router must balance “selecting the most suitable expert” against “keeping expert loads balanced.” Over-optimizing for matching quality may cause some experts to receive too many tokens, while over-optimizing for balance may weaken expert specialization.

    In practice, auxiliary balancing losses, capacity limits, and token-dropping strategies are commonly introduced. During design, token distribution across experts, overflow ratios, and gradient changes should be continuously monitored to prevent expert collapse during training.

    4.2 Distributed Communication

    When different experts reside on different devices, tokens must be transferred between devices. Communication volume is affected by batch size, sequence length, the number of experts, and the parallelism topology. If network bandwidth is insufficient, computing devices may frequently wait for communication to complete, reducing overall utilization.

    Training systems therefore typically combine data parallelism, tensor parallelism, pipeline parallelism, and expert parallelism, with mappings carefully designed around the device interconnect topology.

    4.3 Long-Context Processing

    A later version extended the context length to approximately 1 million tokens. Long context enables analysis of longer documents, cross-chapter retrieval, and complex multi-step tasks, but it also significantly increases memory usage, attention computation, and cache management complexity.

    In practice, blindly concatenating all documents into a single context is not advisable. A more reasonable approach combines chunking, summarization, retrieval, hierarchical memory, and dynamic context selection, prioritizing the most relevant information for the model.

    4.4 Training Data Governance

    Large-scale corpus training must address duplicate content, low-quality text, privacy information, copyright risks, and evaluation-set contamination. Data cleaning affects not only the quality of the model’s knowledge but also the stability and safety of its outputs.

    When adopting similar models, enterprises should establish input data classification, sensitive information masking, log access controls, output review, and issue-tracking mechanisms, rather than relying on the model alone to solve all safety problems.

    5. Version Evolution and Deployment Options

    Since its release, the model has gone through multiple iterations, including minor version upgrades focused on stability and capability optimization, as well as broader subsequent updates. Version evolution typically involves training data adjustments, inference performance optimization, improved instruction following, expanded context capabilities, and refined safety policies.

    For enterprise users, selecting a model version should not be based solely on release date or parameter scale. Key evaluation criteria include:

    • Accuracy and stability on target tasks;
    • Long-text handling, structured output, and tool-calling capabilities;
    • Latency and resource consumption per request;
    • Hardware requirements for private deployment;
    • Version compatibility and upgrade migration costs;
    • Data compliance, auditing, and access control capabilities.

    At the deployment level, organizations can use on-premises compute clusters, private enterprise environments, or model services offered by general cloud platforms such as Baidu AI Cloud. Regardless of the approach, it is recommended to decouple the model service from business systems and implement authentication, rate limiting, monitoring, auditing, and failover through a unified gateway.

    6. Applicable Scenarios and Adoption Recommendations

    This type of model is well suited for intelligent question answering, document summarization, knowledge base retrieval, code assistance, content generation, data analysis, and multi-turn task collaboration. When Chinese-language understanding and mathematical capabilities are strong, it can also support internal enterprise knowledge queries, business data interpretation, and rule-based decision support.

    However, model outputs should not be treated directly as factual conclusions. In high-risk business scenarios, retrieval augmentation, rule-based validation, human review, and result traceability should be introduced. For tasks requiring stable formats, structured prompts, output templates, and post-processing validation can be applied. For scenarios where knowledge changes frequently, external knowledge bases should be prioritized over reliance on parametric memory.

    Overall, the technical value of this model lies not merely in its parameter scale, but in how it demonstrates a balanced approach among training efficiency, inference speed, and capability expansion for large-scale MoE models. For developers and enterprises, the most valuable takeaway is its systematic methodology: reducing computational pressure through sparse activation, supporting large-scale training with distributed engineering, and—combined with data governance, evaluation systems, and deployment optimization—turning model capability into controllable, maintainable, and sustainable productivity.