The Structural Evolution of Modern LLMs: A Guide to Architecture and Parameter Scale
This article examines the current architectural landscape of mainstream large language models (LLMs), moving beyond the well-documented history of the Transformer. It introduces a five-layer framework—scale and layer configuration, attention structure, Mixture-of-Experts (MoE), numerical formats, and hardware mapping—to explain how seemingly scattered design choices converge on three hardware constraints: compute, memory bandwidth, and inter-chip communication. Key trends covered include growing total parameters with stable activated parameters, expanding context windows paired with compressed KV Cache, and finer-grained expert routing. The article concludes with quantitative hardware intuitions and practical engineering recommendations for capacity planning and deployment.
1. Why Architecture Deserves a Separate Discussion
The Transformer has been around for more than a decade, and surveys of its structural evolution are far from scarce. This article does not repeat that history. What deserves a closer look is the current architectural state of mainstream large language models (LLMs): changes across different model families may look scattered, but on hardware they converge on the same set of constraints—compute, memory bandwidth, and inter-chip communication.
Once you break down these three constraints, several clear “scissors” emerge:
- Total parameters have climbed from hundreds of B to several T, yet the parameters actually activated per token remain at the scale of tens of B.
- Context windows have expanded from 128K to 1M, while the KV Cache is repeatedly compressed.
- The number of experts has grown from 256 to nearly a thousand, while routing granularity keeps getting finer.
These opposing trends are not accidental; they are different solutions to the same constraint. The sections below first present a unified analytical framework, then break down mainstream model families one by one, and finally land on concrete hardware implications. Convention: B denotes billion parameters, T denotes trillion parameters, and the unit of measurement is uniformly token, without a plural suffix.
2. A Unified Framework: Five Perspectives
To avoid turning a model-by-model walkthrough into a parameter list, we fix five observation dimensions up front, and every section below follows this order.
- Scale and layer configuration: total parameters, activated parameters, number of layers, hidden dimension, vocabulary size. Total parameters determine memory and storage cost; activated parameters determine compute per token.
- Attention structure: whether it is standard multi-head attention, whether it introduces grouped-query, low-rank compression, or sparse/linear attention, and how sliding windows and full attention are interleaved.
- Mixture of Experts (MoE): total number of experts, experts activated per token, share of shared experts, routing granularity (fine-grained experts plus combined activation is the mainstream approach in recent years).
- Numerical format: the training side commonly uses low-precision floating point to reduce communication volume; on the inference side, quantization strategies for weights and KV Cache directly determine memory access pressure.
- Hardware mapping: which resource each of the above choices stresses—matrix-multiply throughput, HBM bandwidth, or interconnect bandwidth.
A memory-friendly illustration (pseudocode, expressing only structural relationships, not any real implementation):
# Structural skeleton: intra-layer composition of attention + MoEfor layer in range(num_layers):h = h + attn(rmsnorm(h)) # attention sub-layerif is_moe_layer(layer):gate = router(rmsnorm(h)) # fine-grained routingh = h + sum(expert_i(h) for i in top_k(gate))else:h = h + ffn(rmsnorm(h)) # dense feed-forward
3. Structural Commonalities Across Mainstream Model Families
Twelve mainstream families and twenty-five configurations make different trade-offs in the details, but once abstracted they are highly consistent and can be summarized into four main threads.
3.1 Sparsification: Total Parameters Rise, Activated Parameters Stay Stable
The mainstream approach replaces feed-forward layers with a large number of fine-grained experts, activating only a few of them per token while keeping a small number of shared experts to carry general capabilities. The benefit is that model capacity (total parameters) can scale to the T level, while compute per token stays in a range comparable to tens-of-B dense models. The cost is irregular memory access from routing and cross-chip all-to-all communication.
3.2 Attention Compression: Longer Windows, Shorter Cache
As context moves toward 1M, the KV Cache cannot grow linearly, or memory access breaks first. Common combinations include: grouped-query attention to reduce the number of KV heads, low-rank projection to compress KV dimension, interleaving local windows with a few global layers, and cross-layer sharing or reuse of KV. The goal is to push the marginal memory-access cost of long context down to near-constant.
3.3 Numerical Format: Low Precision Across Training and Inference
On the training side, low-precision floating point reduces the communication volume of gradients and activations, combined with finer-grained scaling strategies to maintain numerical stability; on the inference side, low-bit quantization of weights and KV Cache shifts the bottleneck from compute to bandwidth. Format choice is essentially an exchange ratio between “precision loss” and “bandwidth savings.”
3.4 Fine-Grained Routing: Breaking the Communication Problem into Smaller Pieces
More experts, smaller individual experts, and top-k combined activation make routing finer. The benefits of fine granularity are flexible composition and better load balance; the difficulty lies in the number of all-to-all communications and tail latency, which require routing load-balancing loss, capacity factor, and grouping strategies to constrain together.
4. Down to Hardware: Quantitative Intuition for Three Constraints
- Compute: determined by activated parameters and sequence length; sparsification decouples compute growth from total parameters.
- Memory access: determined by KV Cache and weight bit count; it is the primary bottleneck for long-context inference.
- Communication: determined by expert-parallel and pipeline-parallel partitioning; fine-grained routing amplifies all-to-all pressure.
When planning accelerator capacity, it is advisable to leave headroom along three separate lines—“activated parameters set compute, KV Cache sets memory bandwidth, expert partitioning sets interconnect”—rather than using total parameters as a one-size-fits-all measure.
5. Engineering Recommendations
- Estimate the compute budget per token using activated parameters rather than total parameters.
- Estimate KV Cache memory using “context length × number of KV heads × KV dimension × bit count.”
- For MoE deployment, evaluate interconnect bandwidth and routing balance first, then talk about stacking compute.
- Validate quantization strategies layer by layer, weights first and then KV Cache, opening up gradually.
- Use container platforms, monitoring and alerting, and logging services to build end-to-end observability and locate memory-access and communication bottlenecks.
6. Conclusion
The direction of architectural evolution is already fairly clear: use sparsification to trade for capacity, compression to trade for context, low precision to trade for bandwidth, and fine-grained routing to trade for balance. Understanding these four exchange relationships is more valuable than memorizing the parameter table of any single version, and it also leaves genuinely useful headroom for planning the next generation of accelerators.
