From Dense Architectures to Sparse Experts: Technical Evolution of Open-Source LLMs
This article examines the technical evolution of an open-source LLM series from dense Transformer models to fine-grained MoE architectures and inference-optimized sparse models. It covers Scaling Law validation, expert specialization, shared expert isolation, KV cache compression, load balancing, and the practical implications for model selection, fine-tuning, and deployment.
From Dense Architectures to Sparse Experts: Technical Evolution of Open-Source LLMs
1. Background: Why LLM Technical Evolution Paths Are Worth Studying
In recent years, open-source large language models have iterated much faster than many expected. Looking at a complete technical evolution sequence is more valuable than evaluating a single model in isolation, because it shows how a team makes trade-offs among compute budget, data quality, and inference cost, and how each generation’s experience is carried into the next generation’s design.
This article uses an open-source model series from a Chinese team as a sample. To keep the discussion neutral, it refers to the models with generic labels such as “first-generation model,” “MoE architecture model,” and “second-generation model.” The goal is to analyze the general methodologies reflected in three generations of technical reports. These methodologies are not unique to one company; they are shared knowledge in current LLM research and development. Understanding them can help engineers make more reasonable judgments in model selection, fine-tuning, and deployment.
2. First-Generation Dense Model: Putting Scaling Law into Practice
2.1 Model Positioning and Basic Form
The first generation in this series is a typical dense Transformer language model, offered in 7B and 67B versions, commonly referred to in the industry as V1. When released, it was positioned against mainstream 70B-class open-source models of the same period. The core contribution of its technical report is not benchmark leadership, but systematic experimental validation of Scaling Law.
2.2 Revisiting Scaling Law: Data Quality Is a Precondition
Scaling Law describes the power-law relationship between model performance and growth in parameters, data volume, and compute. The classic industry conclusion, known as the Chinchilla law, states that under a given compute budget, parameter count and training token count should scale together in a certain ratio. However, this team proposed an important correction through experiments:
- Scaling Law remains valid, but only when data quality is sufficiently high. Low-quality data distorts the power-law relationship, and expanding data volume can instead dilute useful information.
- When data quality is controllable, an equivalent compute budget should prioritize increasing model parameter scale rather than indefinitely stacking data. This conclusion offers a complementary perspective to the classic “train more data on a smaller model” route.
2.3 Methodological Value: Understand the Laws Before Training Large Models
The R&D process of this series is worth learning from. The team first used small-scale models to run a large number of hyperparameter and scaling experiments, fitted scaling curves suitable for their own data distribution, and then determined the final model size, learning-rate schedule, and data mix. Only after that did they invest in large-scale training. This experiment-driven paradigm turns large-model training from a gamble into engineering, and it also points the way for subsequent iterations. For smaller teams, the same idea applies to fine-tuning: validate data mix and hyperparameters on a small model first, then scale to the target model. This can significantly reduce trial-and-error cost.
3. MoE Architecture Model: Toward Extreme Expert Specialization
3.1 Basic Principles of MoE
The core idea of Mixture-of-Experts is to replace the feed-forward network (FFN) layers in a Transformer with multiple “expert” subnetworks and introduce a router that dynamically selects several experts to activate for each token. The benefits are:
- The total parameter count can be very large, increasing knowledge capacity, while the actual computation per token involves only a small number of selected experts, significantly reducing inference FLOPs.
- Training and inference cost are decoupled from total model scale, enabling “large capacity, low compute consumption.”
It is important to note that although MoE reduces computation, all expert parameters still need to reside in memory. Therefore, memory usage does not decrease with the activation ratio. This is an engineering constraint that must be considered during deployment.
3.2 Limitations of Conventional MoE
Conventional designs usually adopt “a small number of large experts + Top-K routing,” for example, 8 experts with Top-2 selection per token. This coarse-grained split has two problems:
- Mixed knowledge within experts: A single expert has a large parameter count and often carries multiple unrelated knowledge patterns at the same time, making the expert insufficiently specialized.
- Redundancy across experts: Different experts tend to repeatedly learn similar general knowledge, such as common grammar patterns, resulting in wasted parameters.
3.3 Fine-Grained Expert Splitting + Shared Expert Isolation
The team’s MoE design makes two key changes to address these problems:
- Fine-grained expert splitting: Large experts are further split into more small experts, while the number of selected experts in Top-K is increased. The number of experts rises from single digits to tens or even hundreds, so each expert covers a narrower and more specialized knowledge scope, and the flexibility of routing combinations increases substantially. For example, 8 experts with 2 selected gives only 28 combinations; splitting into 64 experts with 6 selected produces an astronomical number of combinations, enhancing the model’s expressive capacity.
- Shared expert isolation: Public knowledge needed by all tokens, such as general grammar and basic facts, is extracted and handled by several “shared experts,” and all tokens pass through the shared experts unconditionally. The remaining “routed experts” only need to learn differentiated knowledge, avoiding the redundancy of every expert repeatedly learning public content.
Conceptually, the computation structure can be simplified as:
FFN output = SharedExpert(x) + Σ_{i∈TopK(x)} RouterExpert_i(x)
That is, the sum of the shared expert output and the outputs of the routed experts selected for the token. This “fine-grained + shared isolation” design was later widely borrowed by multiple MoE models in the industry and has become one of the common paradigms for sparse architectures.
4. Second-Generation Model: System-Level Optimization for Inference Economics
4.1 New Bottlenecks After Sparsification
MoE solves the computation volume problem in training and inference, but it brings two new bottlenecks:
- KV Cache memory growth: In long-context scenarios, the attention mechanism needs to cache the Key/Value of historical tokens. Memory usage grows linearly with sequence length, directly limiting concurrency and context window size.
- Memory access bottleneck: The decoding stage is a typical memory-bandwidth-bound scenario, and the read overhead of KV Cache becomes a throughput bottleneck.
4.2 Attention Redesign and Load Balancing
The second-generation model systematically reconstructs these bottlenecks. The words “economic” and “efficient” in its technical report title correspond directly to these engineering goals:
- Multi-head latent attention-like compression: By projecting KV into a low-dimensional latent space before caching, the KV Cache size is greatly compressed, reducing the memory overhead of long-context inference by an order of magnitude while supporting greater concurrency.
- Load balancing at the MoE level: Fine-grained routing can easily lead to uneven expert load and routing collapse, where all tokens crowd toward a few experts. Auxiliary losses and device-level balancing constraints are needed to ensure expert utilization and multi-GPU communication efficiency.
These changes point to one goal: make the model stronger while lowering the unit cost of inference. For teams that deliver primarily through API services, inference cost directly determines whether the business model is viable. This has also been a common theme in recent LLM architecture evolution.
5. General Lessons from the Evolution Logic
Looking back at the whole series, a clear architecture evolution path can be extracted:
- First-generation dense model: Validate the relationship between data quality and Scaling Law, establish training methodology, and determine “how large a model should be trained.”
- MoE model: Solve “how to carry greater capacity with less computation,” with fine-grained experts and shared experts as core innovations.
- Second-generation model: Solve “how to reduce deployment and inference cost,” with KV Cache compression and attention reconstruction as core innovations.
For enterprise developers, the practical implications of these evolutions are:
- Model selection: When evaluating an LLM, do not look only at benchmark results. Also examine the inference cost characteristics brought by its architecture. Models with MoE + KV compression are usually more economical in long-context, high-concurrency scenarios.
- Fine-tuning: When fine-tuning MoE models, pay attention to routing stability and avoid fine-tuning data disrupting load balance among experts.
- Deployment: Sparse models have large total parameter counts, so memory planning must combine quantization, expert parallelism, and other techniques. Cloud container platforms, GPU resource scheduling, and monitoring and alerting systems are the infrastructure for stable service.
6. Conclusion
Competition in large models is shifting from “more parameters, better benchmarks” to “architecture efficiency and output per unit of compute.” Techniques such as fine-grained MoE, shared experts, and KV Cache compression have become shared industry assets. Understanding their design motivations and engineering trade-offs is foundational for every algorithm engineer and architect who wants to keep up with this technical evolution. Future directions will further revolve around long context, multimodal fusion, and cloud-edge collaboration, while the methodology of “designing models from a system perspective” will remain a core competitive advantage in LLM R&D.
