Architecture Choices for Trillion-Parameter MoE Models
Public trillion-parameter MoE models with only tens of billions of active parameters share a similar base: Transformers, sparse expert routing, and compressed attention. This article compares how sparsity, width versus depth, attention heads, and optimizers are tuned under data, latency, and stability constraints, and what to measure in training and inference.
Once models reach the trillion-parameter scale, mixture-of-experts (MoE) has become the default way to keep training and inference cost under control. Public technical reports from several teams describe highly similar foundations: a Transformer, sparse expert routing, and low-rank or compressed attention, with differences in expert count, active size, depth, attention heads, and the optimizer. This article abstracts those shared choices and divergences from an engineering point of view, without tying them to a specific product, so readers can match them to their own data, compute, and latency budgets.
Similar bases, differences in the constraints
From publicly checkable architecture descriptions, a current group of trillion-scale MoE models—with dense activation on the order of tens of billions of parameters—are highly homologous in the backbone: multi-layer Transformers, routed gating in expert layers, and multi-head latent attention or a similar compression scheme on the attention side to cut KV cache and compute. What is often called a “core advantage” is usually not a new paradigm. It is a different tilt, on the same family of designs, toward data bottlenecks, inference latency, stability, or reasoning.
Comparisons should therefore sit on four measurable dimensions: sparsity (total experts versus experts activated per step), width versus depth, attention heads and hidden size, and optimizer and token efficiency. The rest of this article follows the training and inference path.
MoE backbone: gains and costs of higher sparsity
A typical setup can be summarized as about a trillion total parameters, with active parameters around 32B; hidden size on the order of 7k, and expert intermediate size on the order of 2k. Routing often uses auxiliary-loss-free load balancing and a sigmoid gate, to reduce expert collapse in training and load skew at inference.
Scaling observations support a further claim: when activation is held roughly fixed, adding experts and raising sparsity can still improve quality. Some teams have therefore moved from a little over two hundred experts to a little over three hundred. The gain is more capacity and finer buckets for knowledge and skills. The cost is higher communication and routing overhead, more complex expert storage and scheduling, and greater sensitivity to cluster interconnects and the expert-parallel implementation.
Another common way to cut inference compute is to reduce attention heads—for example, from a little over one hundred heads to several dozen. Fewer heads directly shrink attention compute and part of the cache, but they give up multi-subspace expressiveness and need to be offset by a deeper network or better positional encoding and normalization. Selection should put the training quality curve and online P99 latency and memory on the same table, not look only at total parameter count.
Why MLA-style attention became a default
The inference bottleneck of a trillion-parameter MoE is often not the expert GEMMs. It is KV cache and attention bandwidth under long context. Multi-head latent attention, or a similar low-rank or shared-KV design, projects keys and values into a lower-dimensional latent space before caching them, which cuts memory and memory traffic substantially. Hidden size stays large—for example 7168—to preserve expressiveness, while fewer heads and a tighter KV cache form a “wide representation, narrow cache” combination.
Three practical points matter. First, latent dimension and head count should be searched jointly; over-compression hurts long-range dependency. Second, expert-parallel and tensor-parallel splits should be aligned so communication is not fragmented. Third, inference needs matching quantization, speculative decoding, and prefix caching, or implementation will cancel the architectural gain.
Pretraining: token efficiency matters more than stacking more data
As growth in high-quality human text slows, the main question under a fixed compute budget becomes how much each token teaches. Public practice roughly follows three lines.
First, the optimizer. Beyond common adaptive methods, some teams use Muon-style momentum or orthogonalization ideas aimed at large-scale training, to make parameter updates more efficient. A side effect is that training is more prone to exploding attention logits or instability, so clipping or scaling on query-key products—sometimes called QK-Clip-style stabilization—is introduced to suppress peaks without giving up convergence speed.
Second, synthetic data. Rewriting, extending reasoning chains, and mixing tasks on already high-quality text densifies the supervision on the same tokens. Hallucination and distribution shift must be filtered strictly, or sparse experts will memorize synthetic noise.
Third, curriculum and mix ratios. The balance of code, math, long context, and general web text strongly changes later alignment cost. Token efficiency is not a single algorithm. It is a systems problem of optimizer, data synthesis, and curriculum.
Depth first or width first: an empirical split on reasoning
At similar total activation, one path chooses “narrower and deeper”: smaller hidden size and fewer routed experts, more layers. The working assumption is that a deeper residual path helps multi-step reasoning and tool-call chains, while width helps memory and parallel features. Another path keeps a larger width and more experts, trading sparse capacity for knowledge coverage.
There is no universal optimum. If the workload is mainly complex reasoning and agent planning, prioritize depth and stable routing. If it is mainly retrieval augmentation and multi-domain knowledge coverage, sparse expert count and width are more valuable. Evaluate against authoritative reasoning benchmarks and real-task latency, not a single public leaderboard.
An engineering checklist aligned with common cloud capabilities
Whether you build in-house or use a typical cloud training and inference platform, architecture choices should land on operable metrics:
- Training: share of time in expert-parallel communication, load-balance variance, gradient norms and attention-logit distributions, and token throughput.
- Inference: compute corresponding to active parameters, KV-cache bytes per thousand tokens, time to first token, and long-context scaling.
- Data: a cap on the synthetic-data share, decontamination and safety filtering, and controls against evaluation-set contamination.
- Operations: object storage for checkpoints and corpora, a container platform for elastic training jobs, and logging and monitoring alerts for routing skew and out-of-memory events.
General compute, storage, containers, and log monitoring—such as those on Baidu AI Cloud—are enough to close that experiment loop without binding to a particular model brand. The point is to write MoE routing, attention compression, and optimizer stability into reproducible configs and regression sets.
Reading “advantages” without a brand narrative
Translate the differences into an objective under constraints. Some teams bet on higher sparsity and Muon-style token efficiency, for a lower loss on the same data. Others bet on a deeper network and gating details, for gains on reasoning tasks. The base is still the same family of MoE Transformers. For an organization, three questions are enough: how many active parameters the latency budget allows, whether the data is knowledge-dense or reasoning-dense, and whether the cluster is better at expert parallelism or pipeline parallelism. The answers point toward wide-and-sparse or deep-and-narrow, rather than toward a product name.
In short, the evolution of these trillion-scale MoE models is local optimization of sparsity, attention heads, depth versus width, and the optimizer on top of the engineering consensus represented by public Deep-series designs. Understanding those knobs is more useful for later training, distillation, and production than memorizing product names.
