What are active parameters?
Active parameters are the parameters a model actually uses in the forward pass for one token; the term, also used for their count, separates them from the total, especially in sparse models such as mixture of experts.
Unlike parameter count, which counts all parameters and sets memory needs, active parameter count counts those taking part in per-token computation, setting compute cost. In dense models the two are equal; in sparse models the active count is far smaller.
- Topic
- Machine learning, models and training
- Also known as
- Active parameter count
How active parameters work
- In a mixture of experts model, some layers consist of several expert sub-networks.
- A router picks only a few experts per token; the others do not run for it.
- Active parameters are the chosen experts' parameters plus attention and embedding layers shared by all tokens.
- Calculation: if 2 of 8 experts are chosen per token, 2 / 8 = 1/4 of expert-layer parameters are active for it.
In more detail
Shared experts and fine-grained MoE
In modern fine-grained MoE architectures (such as DeepSeek-V3 and Qwen-MoE), models combine dozens or hundreds of smaller routed experts with one or more always-active shared experts. Consequently, active parameters consist of shared attention and embedding layers, always-active shared experts, router weights and the selected routed experts.
Batch size, prefill and memory bandwidth
During single-user autoregressive decoding, MoE inference is typically memory-bandwidth bound rather than compute bound, so token latency depends on how fast active expert weights are read from HBM. Conversely, during prompt prefill or large-batch serving, different tokens across the batch route to different experts, activating nearly the entire model simultaneously and shifting the bottleneck toward compute and All-to-All communication.
Quantisation and expert offloading
Because all experts must reside in memory even when only a fraction are active per token, quantisation (such as FP8 or INT4) directly reduces the total-parameter memory barrier while keeping active compute low. In memory-constrained environments, inactive experts can also be offloaded to system RAM at the cost of PCIe transfer latency.
Commonly confused terms
| Term | How it differs |
|---|---|
| FLOPs per token | Active parameters measure how many weights participate in compute per token, while FLOPs per token measure the total arithmetic operations (roughly 2 × active parameters for dense linear projections plus attention operations that grow with context length). |
Why active parameters matter for on-premises AI
In-house hardware planning reads the two numbers separately: total parameter count decides whether the model fits in memory, while active parameter count sets per-token compute and so speed. A sparse model can respond quickly but still needs memory for all experts. Judging a model small by its active count alone misleads the hardware plan. Multi-GPU setups also plan expert placement.
Comparing two candidates for an in-house model summarising quality reports, a manufacturer finds the mixture of experts model faster thanks to its low active parameter count, but its total parameters exceed GPU memory, so the memory calculation and extra GPU need go into the plan.
Common questions
Does active parameter count show a model's memory needs?
No. Memory needs are set by total parameter count. Active parameter count shows per-token compute load.
What do active parameters mean in dense models?
In dense models every token passes through all parameters, so active parameter count equals total parameter count.
Related terms
Sources
- Fedus, Zoph and Shazeer, Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity, 2021
- Jiang et al., Mixtral of Experts, 2024
In the glossary: Glossary, A to D