Sparse Activation Architectures Explained: MoE and N-gram External Modules
This article examines sparse activation in large models, using an open-source model with about 125B total parameters and about 6B activated per token as a reference. It covers MoE routing, attention-layer optimizations for long context, an approximately 51B N-gram external module for factual knowledge, a hybrid Muon/AdamW optimizer, a qualitative comparison of dense models, standard MoE models, and sparse models with N-gram modules, as well as practical caveats for preview releases and benchmark claims.
1. Start with the Conclusion: Activated Parameters Determine Inference Speed
Large models continue to grow in parameter count, but fewer parameters actually participate in computation during each inference pass. Sparse activation architectures have developed along this path. Such models often use a mixture-of-experts (MoE) structure: the model contains many expert subnetworks, and after each token passes through a router, only a small subset of experts is invoked.
In the open-source model referenced in this article, total parameters are about 125B, while activated parameters per token are about 6B. These two numbers mean very different things. Total parameters determine the model’s stored knowledge capacity, while activated parameters determine the computation per token. As a result, inference speed for such a model is close to that of a 6B dense model, while its knowledge capacity far exceeds that of a 6B dense model.
One correction is needed: the original material’s claim that knowledge capacity reaches a “10^18-level” scale is not accurate. 125B is in the hundred-billion-parameter range, and there is no direct conversion between parameter count and amount of knowledge. Models should be evaluated based on measured results.
2. Three Key Technologies
2.1 Attention Layer: Throughput and Latency Under Long Context
Long context is one of the main sources of inference cost. With standard multi-head attention, as sequences grow longer, KV cache memory usage grows linearly, and the memory-access overhead of attention computation also rises. Newer architectures make targeted changes to the attention layer, mainly in three areas:
- Adjusting how the KV cache is organized to slow cache expansion under long sequences;
- Optimizing memory-access patterns in attention computation so GPUs maintain high compute utilization in very long contexts;
- Making engineering trade-offs between batch throughput and first-token latency, while supporting both offline batch processing and interactive chat.
For developers, this can reduce the trade-off between “truncating context” and “slower inference” when handling long documents and long conversation histories. However, the actual benefit depends on framework implementation and hardware. The original article does not provide quantitative data, so it is advisable to measure it independently.
2.2 N-gram External Module: Moving Factual Knowledge Outside the Main Model
The original article mentions that the model introduces about 51B N-gram external parameters to carry factual knowledge, while the main model parameters focus on reasoning and generation. This design is worth attention, but the original article does not clarify three things: whether the 51B is included in the 125B total parameters, whether these parameters participate in activated computation for each token, and how they are trained and retrieved. Before citing this number, confirm the statistical basis.
From a design perspective, the N-gram structure stores entities, common collocations, and terminology as statistical patterns. Compared with having dense parameters memorize such information layer by layer, looking up these statistical patterns has lower computational cost. Knowledge updates can also be performed relatively independently of the main model, providing an engineering path for later knowledge injection.
This approach is consistent with the idea of sparse activation: large total capacity, small computation per pass. The difference is that it moves capacity expansion from neural network layers to a knowledge storage layer.
2.3 Hybrid Optimizer: Muon and AdamW Divide the Work
On the training side, a hybrid schedule of Muon and AdamW is used. A common approach is to use a Muon-like optimizer for matrix-type parameters to obtain smoother update directions, while continuing to use AdamW for parameters such as embedding layers and normalization layers to ensure stable convergence. Under the same compute budget, this division of labor has the potential to improve training quality.
The hybrid optimizer also lowers the barrier for community reproduction and continued pretraining, because the configuration can follow existing training code. However, optimizer hyperparameters have a major impact on results, so reproduction requires retuning rather than directly copying the original configuration.
3. Comparison of Three Architecture Types
The following table is intended to explain model-selection logic. It provides qualitative descriptions only; specific metrics should be measured in practice.
| Dimension | Dense model | Standard MoE model | Sparse model with N-gram external module |
|---|---|---|---|
| Total parameters | Same as activated parameters | Much larger than activated parameters | Much larger than activated parameters; external storage counted separately |
| Compute per token | Grows with parameter count | Determined by activated parameters | Determined by activated parameters |
| Memory footprint | Determined by total parameters | Determined by total parameters | Determined jointly by total parameters and external storage |
| Inference speed | Usually the slowest | Relatively fast | Theoretically similar to MoE with the same activation size |
| Suitable scenarios | Simple deployment process; stability-focused | Large capacity needed with limited compute | Higher knowledge density needed, with a storage budget |
4. Why Release a Preview Architecture First
The original article notes that this version is nominally part of the current generation, but its architecture is actually a preview of the next generation. Releasing lightweight or small-scale models first to scout the ecosystem is not uncommon. There are three main reasons:
- Inference frameworks need adaptation time. Inference engines such as vLLM and SGLang, as well as quantization and distributed deployment tools, must implement operators, optimize kernels, and complete compatibility tests for the new architecture. Open-sourcing a small-scale version early allows the ecosystem to prepare before the official release.
- Trial-and-error costs are lower. Validating the architecture design with a small model is more controllable in risk than directly releasing a large model.
- Community feedback can be collected. Problems exposed in real deployments, such as operator precision and memory edge cases, can feed back into polishing the official version.
Preview releases also carry risks. Operators for the new architecture may have precision deviations, and performance may regress on some frameworks or hardware. Therefore, preview versions are not recommended for direct production use. If planning to follow the technology, first monitor the official architecture documentation and the adaptation progress of various inference frameworks.
5. How to Read Performance Data
The original article states that such small-activation models can compete on code generation and agent-related benchmarks with models whose activated parameter count is nearly twice as large. There is some merit to this assessment.
