Mainstream LLM Architectures: Architectural Evolution and Parameter Scale Analysis
This article provides a systematic comparison of modern large language model architectures, covering the shift from dense to Mixture-of-Experts designs, the three main attention variants driven by KV Cache pressure, the evolution of numerical precision formats, and the distribution patterns of parameter scales across flagship and lightweight models. It also analyzes how these architectural choices translate into concrete hardware constraints on compute, memory, and interconnect, offering a structured framework for reading technical reports and planning inference infrastructure.
1. Why a Systematic Review of Model Architectures Matters
It has been a decade since the Transformer was proposed, and there is no shortage of surveys covering the architectural evolution around it. Most of them, however, remain timeline-style enumerations. The truly valuable question is not “what did each model use,” but “how do these trade-offs relate to each other”—attention mechanisms, mixture-of-experts, and numerical formats are not isolated decisions. They are tightly coupled and jointly determine a model’s training efficiency, inference cost, and capability ceiling.
Putting dozens of recent models side by side for a horizontal comparison makes the direction of architectural convergence clearly visible, and also allows reasoned inferences about where next-generation models are heading. This kind of forward-looking judgment is especially critical for teams working on compute planning and accelerator design: the cycle from chip tape-out to mass production is long, so hardware must leave headroom for future model forms.
2. The Common Architectural Skeleton: Decoder-only and Sparsification
2.1 From Dense to Sparse
Almost all mainstream large models today adopt a Decoder-only autoregressive structure—this has long been a consensus. The real differentiation lies in “how to scale effective capacity”:
- Dense architectures: Every token activates all parameters. Training is simple and behavior is predictable, but parameter scale is strictly linearly bound to compute cost. Mid-sized models (from hundreds of millions to tens of billions of parameters) still widely use this approach.
- Mixture-of-Experts (MoE) architectures: Feed-forward layers are replaced with multiple expert subnetworks, and a router dynamically selects a small number of experts for each token. This design decouples “total parameter count” from “per-token compute,” making it the mainstream choice for models at the hundreds-of-billions scale and beyond.
Typical MoE configurations follow clear patterns: total parameters are often 8–30× the activated parameters; each token activates 1–2 out of roughly 8 experts; and shared experts are layered on top to carry general knowledge. This combination of “fine-grained experts + shared experts” has become the de facto standard.
2.2 Three Major Attention Variants
The evolution of the attention mechanism has largely revolved around the memory pressure of the KV Cache:
- Grouped-Query Attention (GQA): Multiple query heads share a single set of key-value heads, compressing the KV Cache by several times. It is simple to implement and the safest option.
- Multi-head Latent Attention (MLA): Keys and values are projected into a low-dimensional latent space before caching, achieving a higher compression ratio, but it requires supporting engineering optimizations such as matrix absorption to realize its advantages.
- Hybrid sliding-window and linear attention: Full attention is retained in only a few global layers, while the remaining layers use local windows or linear mechanisms, reducing attention overhead for long contexts from quadratic to near-linear. This is an important direction for recent long-context models.
2.3 The Evolution of Numerical Formats
Numerical precision directly determines the upper bound of hardware throughput. On the training side, the common practice starts from BF16 mixed precision and gradually introduces lower-bitwidth formats to accelerate gradient and optimizer computation. On the inference side, FP8 or even lower bitwidths are widely adopted, combined with scaling strategies to maintain numerical stability. Halving the bitwidth theoretically doubles throughput, but the difficulty of managing precision loss rises accordingly.
3. Distribution Patterns of Parameter Scale
A horizontal comparison of mainstream model families reveals several patterns:
- Flagship models: Total parameters are concentrated in the hundreds-of-billions to trillions range, built on MoE, with activated parameters typically in the tens-of-billions range, and context lengths commonly supporting hundreds of thousands of tokens.
- Efficient/lightweight models: By reducing the number of experts, narrowing layer width, or adopting hybrid attention, activated parameters are pushed below the tens-of-billions range, targeting low-latency and low-cost deployment.
- Tiered product lines: Most teams maintain flagship, standard, and ultra-fast tiers simultaneously. These tiers share the same underlying architecture, with cost tiering achieved through differences in sparsity, quantization, and attention configuration.
4. Concrete Constraints on Hardware
These architectural choices ultimately translate into hardware requirements:
- Compute: Low-precision matrix multiplication is the absolute dominant workload; accelerators need native high-throughput support for FP8/BF16.
- Memory: MoE inflates total parameter counts. Whether all expert weights fit in memory, and the communication overhead of expert parallelism, become the core deployment bottlenecks.
- Interconnect: Tensor parallelism and expert parallelism are extremely sensitive to intra-node bandwidth, while attention linearization shifts the pressure to KV transfer over long sequences.
- Realized gains: When low precision and sparsification are combined, actual gains often fall short of theoretical values. Accelerators must leave sufficient headroom for “non-compute” stages such as routing, communication, and numerical scaling.
5. Conclusion
Current LLM architectures have highly converged: the four keywords are the Decoder-only skeleton, fine-grained MoE, low-precision numerics, and hybrid attention. Understanding the coupling among these trade-offs not only helps us read technical reports from various model teams, but also provides a structured analytical framework for evaluating self-built compute and planning inference costs. Going forward, the competitive focus will shift from “stacking parameters” toward “the optimal configuration of effective compute per token.”
(Note: All general technical concepts mentioned in this article follow widely accepted industry definitions and do not target any specific product.)
