Understanding Large-Scale Sparse Models: From Parameter Expansion to Efficient Inference
This article decodes a recently released technical report on large-scale sparse large language models (LLMs), exploring the strategic shift from sheer parameter expansion to efficient inference. It covers the Mixture of Experts (MoE) architecture, attention optimization, multi-token prediction, and sparse attention mechanisms. By analyzing the trade-offs between total and activated parameters, the article provides practical insights for enterprise deployment, emphasizing how to balance model capability, inference cost, and engineering complexity.
1. Why “Total Parameters” and “Activated Parameters” Matter
In recent years, the scale of large language models (LLMs) has continued to expand, but the total number of model parameters does not directly equate to the cost of a single inference. For models adopting a Mixture of Experts (MoE) architecture, it is crucial to evaluate two metrics simultaneously:
- Total Parameters: The sum of parameters across all expert networks, attention layers, embedding layers, and other components in the model.
- Activated Parameters: The scale of parameters actually involved in computation during a single inference process.
Using the data disclosed in the technical report as an example, the model has a total of approximately 74.4 billion parameters, while only about 40 billion parameters are activated during a single computation. This indicates that while the model possesses a massive “knowledge capacity,” it does not invoke all parameters for every input. The core value of this design lies in maximizing model capacity while controlling the computational resources required for a single inference.
This distinction is particularly important for enterprise deployment. If a model uses a dense architecture, 74.4 billion parameters typically imply extremely high requirements for memory, communication, and computation. Under a sparse expert architecture, the parameters actually involved in computation are significantly reduced, which can lower inference latency and the cost per request to a certain extent. However, sparsity does not mean the system is simple. Expert routing, cross-device communication, load balancing, and cache management all become new engineering challenges.
2. Model Fundamentals: Capability Changes Driven by Scale Expansion
From the previous generation to the new generation model, several distinct changes have emerged in this technical approach:
- Total parameter scale increased from approximately 35.5 billion to 74.4 billion.
- Activated parameters per computation increased from about 3.2 billion to 4 billion.
- Training data increased from about 2.3 trillion tokens to approximately 2.85 trillion tokens.
- The training process was further divided into a large-scale pre-training phase and a mid-training phase.
- The model entered the top ranks of open-source models in multiple public text, code, and comprehensive capability evaluations.
An increase in parameters does not necessarily bring linear capability growth. Model performance is typically influenced collectively by data quality, training stability, optimizers, context length, inference strategies, and post-training methods. Especially when a model scales to hundreds of billions of parameters, how to effectively utilize the new parameters is often more important than simply expanding the scale.
From an engineering perspective, scaling up the model primarily brings three types of benefits:
1. Stronger Knowledge Coverage
Larger parameter capacity and more training data help the model learn richer language patterns, specialized knowledge, and implicit relationships in complex tasks. For tasks such as code generation, long document summarization, and multi-step reasoning, the model usually requires a large representation space to accommodate knowledge from different domains.
2. Better Generalization on Complex Tasks
Once a model possesses strong foundational capabilities, it no longer relies solely on rule-matching for a single task but can transfer across tasks with fewer examples. For instance, the same model can switch between text understanding, code analysis, structured information extraction, and tool invocation.
3. Higher Deployment Complexity
The growth in parameter scale also brings issues related to memory capacity, weight loading, node communication, fault tolerance, and version management. When selecting a model, enterprises cannot just look at leaderboard rankings; they must also evaluate whether the model fits their own hardware conditions, request volumes, and latency targets.
3. Mixture of Experts Architecture: Trading Sparse Computation for Model Capacity
Mixture of Experts models generally consist of shared modules, multiple expert modules, and a routing module. After an input passes through the router, the system selects a few experts from the pool to participate in the computation based on the features of the current token. During training, different experts can gradually develop specific capability inclinations, such as being better at code, math, natural language understanding, or long-text processing.
The discussed model employs 256 experts and an 80-layer network structure. Instead of having all experts work simultaneously at each layer, a subset is selected based on routing results. The benefits of this approach include:
- Reducing the computation per step while maintaining a large total parameter count.
- Allowing different experts to form more fine-grained divisions of labor.
- Providing a relatively flexible path for model scaling.
- Enhancing potential model capacity under the same hardware budget.
However, the sparse expert structure also presents significant risks. The first is expert load imbalance: if a large number of tokens are routed to a few experts, some devices will be overloaded while others remain idle. The second is communication overhead: when experts are distributed across different computing nodes, tokens need to be redistributed among devices. The third is training instability: if the router favors a few experts too early, other experts may be undertrained.
Therefore, MoE models typically require load balancing loss, capacity limits, routing constraints, and communication optimization strategies. During actual deployment, it is also necessary to monitor expert hit rates, the request distribution per expert, and the volume of cross-node data exchange.
4. Attention Structure Optimization: Reducing Long-Text Processing Costs
1. The Basic Idea of Latent Attention
Traditional attention mechanisms require saving key-value caches for each historical token. As the context length increases, the cache size rapidly expands, becoming a major bottleneck in long-text inference.
The idea behind the latent attention mechanism is to compress part of the key-value information into a lower-dimensional latent representation, which is then restored or mapped when computation is needed. This reduces cache usage, lowers memory pressure, and improves throughput in long-context scenarios.
For online inference services, cache size directly impacts concurrency. With reduced cache usage, a single accelerator card can serve more concurrent sessions or handle longer contexts under the same concurrency. However, compression can also lead to information loss, so a balance must be struck between cache efficiency and representation precision.
2. Per-Head Optimization to Solve Training Adaptation Issues
The technical report also mentioned that when the latent attention mechanism was combined with a certain optimizer, the initial training results were not ideal. Researchers subsequently adjusted the orthogonalization operation, which was originally applied to the entire projection matrix, to be executed separately according to attention heads.
Orthogonalization can be understood as using mathematical constraints to make weight representations more balanced, reducing redundancy or interference between different directions. By splitting it by attention head, each head gains a more independent optimization space, thereby mitigating the impact of large-scale matrix updates on local structures.
This experience shows that an optimizer is not a component that can be selected independently of the network structure. The same optimization algorithm may perform completely differently in dense attention, grouped attention, and latent attention structures. Model design must simultaneously consider:
- The shape of the parameter matrices.
- The degree of coupling between attention heads.
- The stability of gradient updates.
- Weight normalization and orthogonal constraint methods.
- Synchronization costs in distributed training.
5. Multi-Token Prediction: Another Path to Improve Generation Efficiency
Traditional autoregressive models typically only predict the next token at a time, requiring multiple rounds of repeated computation during the generation process. Multi-token prediction attempts to let the model predict multiple future positions simultaneously in a single training step, thereby learning richer local sequence relationships.
This approach can bring two potential benefits:
- Increased training signal density: A single input can correspond to multiple prediction targets, providing the model with more sufficient supervision.
- Assisted inference acceleration: Under certain decoding strategies, the model can attempt to propose multiple candidate tokens at once, which are then verified by the main model.
It is important to note that multi-token prediction does not guarantee an increase in generation speed. The final effect depends on prediction accuracy, verification mechanisms, candidate length, and hardware execution efficiency. If future token predictions are not reliable enough, the system will still need to frequently fall back to word-by-word generation.
In practical applications, this technology is better suited for use in conjunction with batch inference, cache reuse, request scheduling, and low-precision computation. Adopting a single optimization in isolation is often insufficient to significantly change overall service performance.
6. Sparse Attention: Making Ultra-Long Contexts More Feasible
When the context length reaches hundreds of thousands of tokens or more, having each token attend to all historical content generates massive computation. Sparse attention reduces complexity by limiting the scope of attention connections, retaining only the most important local or global relationships.
Common approaches include:
- Local window attention: focusing primarily on adjacent tokens.
- Chunked attention: dividing long text into multiple regions.
- Global token mechanisms: retaining global connections for titles, summaries, or key positions.
- Content-aware sparsity: dynamically selecting attention targets based on semantic relevance.
The key to sparse attention is not “looking at less content” but preserving the information most critical to the task. For scenarios such as code repositories, legal documents, and technical materials, the model needs to understand both local details and cross-chapter relationships, which usually requires a combination of local patterns and a few global channels.
7. How to Correctly Interpret Evaluation Results
Public evaluations can help users understand the general capabilities of a model, but they should not be treated as the sole conclusion. Comprehensive indices, text arenas, and code evaluations often focus on different aspects:
- Comprehensive indices focus on multiple dimensions such as knowledge, reasoning, math, and instruction following.
- Text evaluations place more emphasis on conversation quality, clarity of expression, and complex instruction execution.
- Code evaluations primarily assess code generation, repair, explanation, and engineering task completion capabilities.
If a model ranks among the top open-source models across multiple evaluations, it indicates that its foundational capabilities are relatively balanced. However, for enterprise implementation, private data testing should still be conducted, focusing on:
- Whether business terminology is accurately understood.
- Whether long-document retrieval and summarization are stable.
- Whether code generation complies with security standards.
- Whether the output format meets system interface requirements.
- Whether latency and cost are acceptable under high concurrency.
- Whether it is prone to factual errors or inappropriate content.
8. Implications for Enterprise Deployment
For teams planning to deploy large models, it is recommended to comprehensively evaluate them across four main aspects: model capability, inference cost, engineering complexity, and data security.
Regarding model capability, real business samples should be used rather than relying solely on public leaderboards. For inference cost, weight loading, expert communication, cache usage, concurrent scheduling, and output length must all be considered. For engineering complexity, it is necessary to assess whether the model can be integrated into existing container platforms, monitoring and alerting systems, logging services, and object storage architectures. For data security, attention should be paid to access control, sensitive information desensitization, audit logging, and model output governance.
Overall, the technical approach for large-scale sparse models is shifting from “simply stacking parameters” to an equal emphasis on “parameter capacity, activation efficiency, and system synergy.” A larger total parameter count provides an upper limit on capability, fewer activated parameters control computational costs, and attention compression, multi-token prediction, and sparse connections further improve long-context and online service efficiency.
A truly valuable technical report does more than just showcase a larger number; it explains how the model translates scale advantages into reproducible, deployable, and maintainable practical capabilities through architecture, training, and systems engineering.
