MoE Architecture Evolution in Large Models: From Hundreds of Billions of Activated Parameters to Trillions of Total Parameters

    This article explores the latest architectural trends in large language models, focusing on the shift toward trillion-scale total parameters with hundreds-of-billions activated parameters enabled by Mixture-of-Experts (MoE). It covers sparse activation mechanisms, post-training with multi-domain joint reinforcement learning, million-token context windows, and the infrastructure challenges for training and inference at scale. Practical implications for developers and enterprises are discussed without referencing any specific product launch.

    The latest generation of large language models has revealed a clear architectural direction: moving toward massive total parameter counts, selectively activated compute, ultra-long context support, and domain-specific reinforcement learning. Although specific product details remain confidential, the underlying technical logic—driven by MoE (Mixture-of-Experts)—deserves a focused technical breakdown.

    1. MoE Architecture Evolution: Balancing Total and Activated Parameters

    Mixture-of-Experts has become the mainstream choice for training and deploying ultra-large models. Recent disclosures indicate total parameter counts approaching 5 trillion, while the number of parameters actually activated per generated token is around 104 billion. This “huge total + moderate activated” design is a deliberate trade-off between model capacity and computational efficiency.

    1.1 Core Mechanism of MoE

    MoE introduces a sparse activation mechanism, splitting a large neural network into multiple “expert” subnetworks. During the forward pass, a routing network dynamically selects the top-K most relevant experts for each input token.

    1. # Pseudocode for MoE layer forward pass
    2. def moe_forward_pass(input_tokens, expert_networks, router_network, top_k=2):
    3. # 1. Compute routing logits for each token
    4. routing_logits = router_network(input_tokens)
    5. routing_probs = softmax(routing_logits)
    6. # 2. Select top_k experts with highest probabilities
    7. top_k_probs, top_k_indices = top_k(routing_probs, k=top_k)
    8. # 3. Sparse computation: activate only selected experts
    9. output = 0
    10. for prob, expert_idx in zip(top_k_probs, top_k_indices):
    11. expert_output = expert_networks[expert_idx](input_tokens)
    12. output += prob * expert_output
    13. return output

    1.2 Significance of Parameter Scale

    A total of 5 trillion parameters implies a vast knowledge capacity and expressive power. Meanwhile, keeping activated parameters around 100 billion ensures that the computational graph for a single inference step remains manageable, avoiding excessive compute overhead. The main challenge lies in load balancing and routing collapse—all experts must be trained effectively, often requiring auxiliary loss functions to encourage uniform usage.

    2. Post-Training and Multi-Domain Joint Reinforcement Learning

    Expanding parameter counts alone is no longer sufficient for complex real-world applications. The compute invested in post-training and the reinforcement learning strategies have become the decisive factors in model capability differentiation.

    2.1 Exponential Growth in Post-Training Compute

    The latest models substantially increase post-training compute compared to the base model. Post-training stages—such as supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF)—are crucial for transitioning a model from “text continuation” to “instruction following.” Additional compute enables broader exploration and optimization across the instruction space.

    2.2 Joint Reinforcement Learning Across Hundreds of Domains

    To improve performance in specific areas like code generation, 3D creation, financial research, and long-horizon agents, the development team adopted a joint reinforcement learning strategy. Traditional RLHF often optimizes a single dimension (e.g., helpfulness, harmlessness). Joint RLHF requires building multi-task reward models:

    • Code generation: Using compiler feedback and unit test pass rates as reward signals.
    • 3D creation: Optimizing with geometric constraints and rendering feedback.
    • Financial research: Evaluating data accuracy and logical reasoning chains.
    • Long-horizon agents: Using final task completion as a delayed reward in multi-step tool-calling environments.

    3. Million-Token Context and Long-Horizon Agents

    Supporting a context window of 1 million tokens is a foundational capability for long-horizon agent tasks. Such agents require the model to maintain state consistency and logical coherence across multiple interaction rounds, tool calls, and external environment feedback.

    3.1 Technical Challenges of Long Contexts

    A million-token context imposes severe memory pressure and attention computation complexity ($O(N^2)$). Common techniques include Ring Attention, Flash Attention, and extended rotary position embeddings (RoPE). Additionally, mitigating the “lost in the middle” problem—ensuring the model can accurately retrieve key information from extremely long texts—remains a major engineering hurdle.

    3.2 Enabling Long-Horizon Agents

    Agent workflows typically follow a “perception-planning-action-reflection” loop. With a million-token context, an agent can load an entire codebase, historical logs, or large documents into context, avoiding frequent external retrieval interruptions. Combined with the previously mentioned joint reinforcement learning, the model’s robustness against interference and self-correction ability during multi-step reasoning improves significantly.

    4. Next-Generation Models and Infrastructure Practices

    From the architectural evolution path, next-generation models will further deepen MoE adoption—moving toward even larger total parameters while exploring finer-grained expert partitioning and dynamic routing mechanisms. This places stringent demands on underlying infrastructure.

    4.1 Compute Scheduling and Network Communication

    Training clusters with tens of thousands of accelerators face significant node-to-node communication latency and bandwidth bottlenecks. In MoE architectures, all-to-all communication becomes a performance liability. Enterprise developers performing large-scale pre-training or fine-tuning often rely on high-performance compute infrastructures. For example, Baidu AI Cloud offers general-purpose high-performance computing clusters and container platforms with high-throughput, low-latency RDMA networking to ensure stability in distributed training.

    4.2 Inference Optimization and Deployment

    Deploying trillion-parameter models at inference time introduces notable cost challenges. Beyond traditional techniques like PagedAttention and KV cache quantization, expert parallelism and dynamic batch scheduling are critical for MoE inference. Developers can use logging services and monitoring dashboards to track expert activation frequencies and optimize routing strategies and memory allocation.

    5. Conclusion

    The leap from hundreds of billions of activated parameters to trillions of total parameters represents more than a scale increase—it reflects a deep integration of sparse computation, multi-dimensional reinforcement learning, and ultra-long context processing in large model architectures. For developers and enterprises, understanding these trends enables more forward-looking decisions in model selection, application development, and compute infrastructure planning. As MoE routing algorithms evolve and cloud-native compute platforms continue to improve, large models will unlock even greater value in complex code development, financial analysis, and autonomous agent applications.