The Evolution of Mainstream LLM Architectures: A Deep Dive into MoE Technology
An in-depth analysis of how leading large language models are converging on similar architectural choices, covering MoE sparse activation, MLA attention mechanisms, optimizer innovations, and token-efficient training strategies.
In recent years, large language model technology has advanced rapidly. From a technical perspective, the architectural differences among major AI vendors are narrowing, with many models following strikingly similar technical evolution paths. This convergence is especially evident in MoE (Mixture of Experts) architectures and attention mechanisms, where leading models have made highly consistent technology choices. Using a recently released trillion-parameter model and its open-source counterparts as examples, this article examines the underlying logic of these architectural designs and explores current trends in LLM architecture development.
1. MoE Architecture Design: Balancing Parameter Scale and Sparsity
As model parameters scale toward the trillion level, the computational cost of dense models grows exponentially, making Mixture of Experts architectures an industry consensus. By introducing sparse activation, MoE models maintain vast knowledge capacity while keeping per-inference computation within a reasonable range.
Consider a MoE Transformer model with 1.04T total parameters and 32B activated parameters. Its design closely resembles current mainstream open-source LLMs: the hidden dimension is set to 7168, and the expert hidden dimension is 2048. When it comes to the number of experts, different vendors show different interpretations of sparsity. Scaling-law analysis suggests that continuously increasing sparsity yields significant performance improvements. Consequently, some research teams have pushed the expert count to 384, exceeding the 256-expert design used by a well-known open-source model.
The core rationale is that more experts enable finer-grained knowledge allocation, allowing the model to route tokens with different semantic features to the most suitable expert networks. However, this also places higher demands on routing efficiency and communication overhead. In distributed training frameworks, expert parallelism strategies must be deeply optimized to prevent All-to-All communication from becoming a system bottleneck.
2. Attention Optimization: MLA and Controlling Inference Costs
In the Transformer architecture, attention is the core mechanism for capturing long-context dependencies. To handle the inference pressure of very long inputs, mainstream LLMs have widely adopted MLA (Multi-head Latent Attention).
MLA projects keys and values into a low-dimensional latent space, dramatically reducing KV cache usage during inference. This is critical for long-context scenarios: it lowers memory requirements and improves memory bandwidth utilization.
Beyond MLA, another key lever for reducing inference cost is adjusting the number of attention heads. For example, one model reduced its attention head count to 64, while its predecessor typically used 128. This reduction is an engineering trade-off between inference speed and representational capacity. In practice, judiciously reducing attention heads—combined with a high-capacity MoE expert network—can significantly improve first-token latency and throughput without noticeably degrading model intelligence, making the model better suited for high-concurrency online services.
3. Training Optimization: New Optimizers and the Value of High-Quality Data
Pretraining is the foundation through which LLMs acquire world knowledge. At the algorithm level, the traditional AdamW optimizer tends to suffer from training instability and high memory usage on extremely large models. As a result, some teams have adopted newer optimizers, such as momentum-based approaches like Muon. By improving second-moment estimation of weight updates or using orthogonalized gradient updates, these optimizers effectively improve convergence speed and stability during large-scale pretraining.
On the data side, one model completed pretraining on 15.5T high-quality tokens. As high-quality human-generated data on the internet becomes increasingly scarce, research teams widely agree that token efficiency is becoming a key factor in LLM scaling. Token efficiency covers not only how effectively the model absorbs information, but also careful tuning of data mixtures and curriculum learning design. By incorporating more high-quality code and math reasoning data, along with rigorous deduplication and quality filtering, a model can learn complex reasoning abilities from fewer tokens.
4. Cloud Infrastructure for LLM Training and Deployment
The evolution of LLM architectures and the growth in parameter scale depend heavily on underlying compute and cloud platforms. Training and serving trillion-parameter MoE models require robust infrastructure. Cloud providers such as Baidu AI Cloud offer high-bandwidth heterogeneous compute clusters, high-performance distributed file systems, and high-speed RDMA networking, laying the foundation for full-lifecycle LLM management.
During training, cloud-based container platforms and distributed training frameworks allow developers to schedule hundreds or thousands of accelerators, seamlessly combining expert parallelism, data parallelism, and tensor parallelism. During deployment, cloud model inference services with monitoring and alerting enable enterprises to quickly apply quantization compression and dynamic routing optimization to MoE models, ensuring low latency and high availability for online services. Baidu AI Cloud has accumulated substantial engineering practice in this area, and its end-to-end model development platform significantly lowers the barrier for enterprises to adopt cutting-edge LLM technology.
Conclusion
Comparing the technical reports and architectures of leading LLMs reveals an increasingly clear trend of “homogenization” in underlying design. MoE architectures, MLA attention mechanisms, and pretraining on trillions of high-quality tokens have become the industry’s common technical foundation. The core advantages of different models now lie more in fine-tuning the number of experts, engineering trade-offs in attention head count, introducing novel optimizers, and precisely controlling data mixtures. For developers and enterprise users, understanding these underlying technical details helps move beyond simple benchmark comparisons and make more rational model selection decisions based on inference cost, context-handling efficiency, and actual business fit.
