Active Parameters in Large Language Models: The Core Mechanism for Cutting Cost and Boosting Efficiency
This article explains what active parameters are and why they matter for the cost structure of modern large language models. It covers how a low active ratio arises from Mixture-of-Experts (MoE) architectures and sparsity, how dynamic routing selects experts per token, and the engineering concerns behind it, including capacity factor, load balancing loss, and communication overhead. It also offers a four-dimension framework for judging whether a low-activation model is cost-effective, practical deployment and fine-tuning advice, and common misconceptions to avoid.
1. What Are Active Parameters
Active parameters refer to the subset of parameters that actually participate in the forward pass when a model processes a single input (typically one token). In contrast, total parameters are all the parameters actually stored in the weight files. The two can be expressed with a minimal relationship:
active parameters = total parameters N × activation ratio p
It is important to stress that active parameters are not a static property of a model, but a statistic that varies with the input. When the same model processes different tokens, the experts that get routed to may differ, so in engineering practice the reported figure is usually an average or a typical value. Total parameters determine the lower bound of memory and storage usage, while active parameters determine the lower bound of compute per token (FLOPS). These two metrics must be viewed separately, otherwise it is easy to draw the wrong conclusion.
2. Why “Large Total Parameters, Small Active Parameters” Happens
A low activation ratio mainly appears in two types of structures.
The first is the Mixture-of-Experts (MoE) architecture. The model splits the feed-forward layers into multiple parallel expert modules, and a dynamic gating network selects the top-k experts for each token. Only the selected experts participate in computation, while the rest stay “silent.” This way, parameter capacity can scale with the number of experts, while the compute per token stays roughly unchanged.
The second is sparse attention and neuron-level sparsity. The former reduces the effective computation range of the attention matrix, while the latter uses gating to make most neurons output zero for a given input. There has been industry research achieving nearly complete sparse activation at the neuron granularity, verifying its feasibility during training and fine-tuning, which shows that sparsification does not necessarily harm convergence quality.
From an industry-practice perspective, low-activation design has become the mainstream choice: a certain open-weight model has about 671B total parameters and about 37B active; an 80-billion-total-parameter model activates only about 3 billion, with an expert activation ratio of 1:50; a lightweight version with 320B total parameters compresses active parameters further from 32B to 18B; a sparse-architecture model of about 266B total parameters activates only about 10B; an open-weight model reaches 501 billion total parameters with about 23 billion active per task; and there is also a model with about 744 billion total parameters that activates about 40 billion. The data pattern is consistent: p usually falls in the 5% to 15% range.
3. Dynamic Routing: How Low Activation Is Implemented
The gating network scores the hidden state of each token, selects the few experts with the highest scores, and then sums the expert outputs weighted by the gating weights:
# Illustrative code: only to explain the routing logiclogits = gate(hidden) # [tokens, num_experts]topk_val, topk_idx = logits.topk(k, dim=-1)weights = softmax(topk_val, dim=-1) # normalized gating weightsout = zeros_like(hidden)for slot in range(k):idx = topk_idx[:, slot]for e in unique(idx):mask = idx == eout[mask] += weights[mask, slot] * expert[e](hidden[mask])
There are three engineering points here. First, the capacity factor, which determines how many tokens each expert can receive; the excess is either dropped or routed through a residual direct connection. Second, the load balancing loss, which prevents a few experts from being over-selected while the rest are “starved.” Third, communication overhead; with expert parallelism, all-to-all traffic often becomes a bottleneck earlier than compute does.
4. How to Evaluate Whether a Low-Activation Model Is Worth It
It is recommended to judge across four dimensions:
- Compute perspective: FLOPS per token is roughly proportional to active parameters. Dropping the activation ratio from 10% to 5% theoretically halves the compute.
- Memory perspective: weights, optimizer states, and KV Cache all grow with total parameters and concurrency scale. Lowering active parameters does not reduce memory proportionally.
- Throughput perspective: at small batch sizes, weight reading is limited by memory bandwidth, so fewer active parameters are actually more favorable; at large batch sizes, the workload is compute-intensive and the benefit approaches the theoretical value.
- Quality perspective: evaluation on the target corpus is needed, focusing on whether expert routing is stable and whether long-text and code tasks degrade.
5. Deployment and Fine-Tuning Recommendations
On the inference side, prioritize expert parallelism and operator fusion, cache and reuse routing results, and avoid repeated per-token dispatch; when capacity is insufficient, moderately increase the capacity factor and pair it with a dropping strategy. On the fine-tuning side, a common practice is to freeze the routing and most experts and train only a few experts or low-rank adaptation layers, which preserves the compute advantage of the sparse structure while controlling peak memory usage. If you use general cloud capabilities, you can combine a container platform to host elastic replicas, object storage to host weights, and logging and monitoring/alerting services to track routing distribution and tail latency, forming a closed loop. In such sparse large-model inference scenarios, Baidu AI Cloud typically provides general product-category support around three main lines: elastic compute scheduling, observability, and cost governance.
6. Common Misconceptions
First, treating total parameters as a compute metric, which distorts capacity planning; second, looking only at the activation ratio while ignoring memory and bandwidth constraints; third, assuming active parameters are constant and ignoring their fluctuation across different inputs; fourth, over-pursuing an extremely low activation ratio without quality regression validation. The conclusion is that active parameters are the first-principles metric for understanding the cost structure of modern large models, but they must be interpreted together with total parameters, memory usage, and measured throughput to strike a balance between quality and cost.
