Understanding Asymmetric Activation in MoE Architectures
This article breaks down an asymmetric-activation Mixture-of-Experts (MoE) design: a roughly 552B-parameter causal-encoder-decoder model that activates about 8B parameters on the input side and 16B on the output side. It explains why dense scaling becomes costly, how the encoder and decoder split responsibilities, where the cost advantages come from, and what to watch for in capacity planning, batching, routing stability, and evaluation, along with the scenarios this structure fits best.
1. Why Dense Scaling Is Hard to Sustain
Over the past few years, gains in model capability have come mainly from expanding parameter counts and training data in tandem. But dense architectures face an unavoidable problem: every increase in parameters drives a matching increase in per-forward compute, while memory footprint and memory-access pressure grow linearly. Once total parameters reach the hundreds of billions, the marginal cost of training and inference becomes hard to accept, especially in online scenarios that demand long context and high concurrency, where the compute bill directly determines whether a business case is viable.
Mixture of Experts (MoE) answers this by decoupling capacity from compute: the feed-forward layer is split into multiple expert subnetworks, and each token is routed to only a few experts. Total parameters can therefore be very large while per-token compute stays controlled. The approach discussed here is one concrete form of that idea: an MoE model with roughly 552B total parameters, built on a causal-encoder-decoder structure, activating about 8B parameters on the input side and about 16B on the output side. The two sides are deliberately asymmetric, and the model shows lower cost at the same size.
2. Structure: An Asymmetric Split Between Encoder and Decoder
In a conventional encoder-decoder structure, the encoder performs bidirectional understanding of the input while the decoder generates tokens one by one in a causal manner. Here, the “causal encoder” means the encoding side also follows a causal mask, so the same attention kernel and KV cache mechanism can be reused. This makes the engineering implementation more uniform and easier to align with an existing inference stack.
What really stands out is the asymmetry in activation size. The input side activates about 8B parameters per token, while the output side activates about 16B. The reason can be derived from the nature of the tasks: when understanding input, many tokens are low-information context filler that a narrower activation path can cover; during generation, every step must decide the distribution of the next token, which demands more model capacity, so the decoding side keeps a wider activation. This “read cheaply, write generously” allocation puts limited compute where the payoff is highest.
The routing logic can be understood schematically like this:
# Pseudocode: conveys only the idea of asymmetric activation routingdef forward(input_tokens, state):if state.phase == "encode": # Input side: narrow activationreturn moe_block(input_tokens, top_k=2, active_params=8e9)else: # Output side: wide activationreturn moe_block(input_tokens, top_k=2, active_params=16e9, cache=state.kv)
3. Four Sources of the Cost Advantage
The first is sparse activation itself. The 552B total parameters determine only memory and storage overhead; the parameters actually involved in computing a single token are on the order of 8B or 16B, so the floating-point operations for training and inference are significantly lower than those of a dense model with the same total parameters.
The second is the separation of input and output workloads. Online inference is usually divided into a prefill stage and a decode stage: the former is compute-intensive, the latter memory-access-intensive. The asymmetric design lets each stage match a suitable activation width, avoiding overpaying for understanding in order to gain generation capability.
The third is cache reuse. The causal structure allows the KV cache to be reused across stages and across turns, substantially cutting redundant computation in long-context scenarios.
The fourth is the parallelism-friendliness that routing brings. The expert dimension can naturally be sharded across different devices, and combined with capacity-factor and load-balancing strategies, this can improve overall cluster utilization and reduce the redundant resources reserved for peak load.
4. Engineering Implementation
For capacity planning, estimate “memory occupied by total parameters” and “compute for per-token activation” separately; the two must not be mixed. A common mistake is to extrapolate throughput from total parameters, which leads to severely overestimated resources.
For batching strategy, the input stage and the output stage should be batched separately: the former favors large batches to improve matrix utilization, while the latter favors small batches to reduce per-step latency, with separate deployment when necessary.
For routing stability, monitor the expert load distribution and the drop rate; load skew harms both quality and throughput. An auxiliary balancing loss and a reasonable capacity factor are recommended.
For quality evaluation, assess “understanding tasks” and “generation tasks” separately to verify that the asymmetric configuration meets expectations on both sides, rather than looking only at an overall average score.
5. Use Cases and Selection Guidance
This structure suits backend models for long-document understanding, code and structured-data generation, and intelligent coding tools, as well as high-concurrency online services that need tight control over per-token cost. If a workload is mainly short input and short output, the benefits of the asymmetric design are diluted; if the goal is extreme single-request latency with very low concurrency, a small dense model may be simpler. In practice, inference services can be hosted on a container platform, model weights stored in object storage, and routing and latency metrics observed through logging and monitoring with alerting. In related practice at Baidu AI Cloud, the recommendation is to start with a small-traffic canary, calibrate capacity and batching parameters against real traffic distribution, and then ramp up gradually.
