Evolving Large-Scale MoE Models: Architecture, Training, and Data Engineering

    This article examines the key design trends behind trillion-parameter Mixture-of-Experts models, including sparse expert routing and Multi-head Latent Attention. It also explores training optimizations such as Muon and QK-Clip, along with synthetic data generation and cloud infrastructure practices for improving stability, efficiency, and scalability.

    As large language models continue to approach the trillion-parameter scale, the industry’s technical approaches are becoming increasingly similar. A close analysis of recent technical reports from several leading trillion-parameter models shows that, despite differences in product positioning and application scenarios, many share similar underlying architectural foundations. This article focuses on the common technologies behind these systems, covering the evolution of large-scale Mixture-of-Experts (MoE) architectures, training optimization strategies, and data engineering practices.

    1. Core Architecture: The Evolution of MoE and MLA

    Sparse MoE architectures and Multi-head Latent Attention (MLA) have become standard components in many trillion-parameter language models.

    1.1 Increasing MoE Sparsity

    One recently released trillion-parameter model, for example, has a total of 1.04 trillion parameters, while activating only 32 billion parameters during a forward pass. This “large total parameter count, small active parameter count” design gives the model substantial knowledge capacity while keeping inference costs relatively manageable.

    The model uses a hidden dimension of 7,168, while each expert has a hidden dimension of 2,048. According to scaling-law analyses, continued improvements in sparsity can produce significant performance gains. As a result, recent architectures have increased the number of experts from the traditional 256 to 384.

    More experts enable finer-grained routing. The model can distribute different computational sub-tasks to the expert networks best suited to handle them, improving overall representation capacity and potentially raising the model’s generalization ceiling.

    1.2 Optimizing Attention with MLA

    For attention computation, many large models now adopt MLA, or Multi-head Latent Attention. To further reduce KV cache memory consumption and inference overhead, some recent architectures have reduced the number of attention heads from the commonly used 128 to 64.

    When the model’s feature extraction capability remains broadly balanced, this reduction can significantly lower memory-bandwidth pressure during inference. It can therefore improve throughput in long-context processing and high-concurrency serving scenarios.

    2. Training Optimization: Improving Stability and Efficiency

    Pretraining a trillion-parameter MoE model is a highly complex systems engineering task. It requires not only a massive compute cluster, but also extensive algorithmic optimization.

    2.1 Muon and Token Efficiency

    During pretraining, traditional optimizers such as AdamW can face substantial memory consumption and convergence bottlenecks when applied to extremely large parameter sets. To improve token efficiency, the industry has begun exploring optimizers such as Muon.

    These optimizers use more efficient matrix decomposition and gradient-update strategies to extract more useful information from each training token within a fixed compute budget. Higher token efficiency means that, given the same high-quality dataset, a model can converge more quickly and complete training in less time.

    2.2 QK-Clip for Training Stability

    Large models can experience sudden loss spikes or divergence during pretraining. This is particularly likely when new optimizers and extremely large-scale MoE routing are introduced, because the dot products between queries and keys in the attention mechanism can become numerically unstable.

    QK-Clip addresses this problem by dynamically or statically limiting the maximum value of QK dot products during training. This helps prevent the softmax function from entering a saturated region or producing extreme gradients. As a result, it can substantially improve the stability of pretraining runs involving tens of trillions of tokens and reduce the risk of costly interruptions.

    3. Data Engineering: Working Around Limited High-Quality Data

    The limited availability of high-quality human-generated text is becoming a major constraint on further scaling large language models. Leading models often need to process more than 15.5 trillion high-quality tokens during pretraining, making data engineering a critical part of the overall system.

    3.1 Synthetic Data Generation

    As high-quality real-world data becomes more difficult to obtain, synthetic data generation is increasingly being integrated into pretraining pipelines.

    A capable pretrained model can generate synthetic data with specific logical structures, code annotations, or mathematical reasoning processes. After strict deduplication and quality filtering, this data can expand the high-quality training corpus. It can also be used for targeted augmentation in areas where the model performs poorly.

    3.2 Coordinating Infrastructure and Training Frameworks

    Pretraining on 15.5 trillion tokens requires robust cloud-native infrastructure. In practice, organizations may use general-purpose cloud platforms such as Baidu AI Cloud to build training clusters with high-performance compute instances, parallel file systems, and container platforms.

    Large-scale MoE models require coordinated expert parallelism, data parallelism, and tensor parallelism. High-bandwidth networking technologies such as RDMA, together with distributed storage, are essential for sustaining data throughput. Cloud platforms also provide elastic scheduling, helping organizations balance cost and efficiency when running extremely large training workloads.

    4. Conclusion and Outlook

    A technical breakdown of current trillion-parameter models shows that competition is moving beyond simply increasing parameter counts. It now involves several dimensions:

    • Fine-grained architectural balancing, such as the number of experts and attention heads
    • Training algorithm improvements, including the combination of Muon and QK-Clip
    • High-quality data engineering, particularly the effective use of synthetic data

    For developers and enterprise users, understanding these underlying principles makes it easier to evaluate and select models for specific business scenarios. It also provides a theoretical foundation for fine-tuning open-source base models and adapting them to cloud-native compute platforms.

    As sparse model designs continue to evolve and computing infrastructure improves, deploying large language models in practical applications is likely to become more efficient and accessible.