The Structural Evolution of Mainstream LLMs: Architecture Choices and Parameter Scale
This article breaks down how mainstream large language models are evolving structurally, and why those changes converge on the same three hardware constraints: compute, memory access, and communication. It examines four dimensions that separate model families—layer arrangement, attention sparsification, expert routing, and residual mixing with numerical formats—and explains the structural relationship between total parameters and activated parameters, including a schematic of fine-grained mixture-of-experts routing. Readers will find practical capacity-planning rules for estimating memory versus compute, plus notes on deploying these workloads on cloud infrastructure.
1. Why Architecture Deserves Its Own Discussion
The Transformer was introduced a decade ago, and its structural changes have been surveyed repeatedly since. What is worth dissecting again is not the modules themselves, but the single set of hardware constraints that every model family’s modifications point to: compute, memory access, and communication.
Placing today’s mainstream models side by side reveals three long-standing tensions:
- Total parameters have grown from hundreds of B to several T, while activated parameters per token have stayed in the tens of B range;
- Context windows have expanded from 128K to 1M, yet the KV Cache has been compressed repeatedly;
- The number of experts has risen from 256 to 896 or more, while routing granularity has become finer.
These three sets of numbers say one thing: architectural evolution is not a monotonic “bigger is always better” process, but a reallocation of resources under a fixed hardware budget. Understanding that allocation logic is what lets you anticipate the direction of the next generation of models and leave headroom in accelerator planning.
Convention: in this article, B means billion parameters and T means trillion parameters, with all measurements expressed per token. Where a model’s details are not public, the diagram is inferred from its published technical specifications and explicitly labeled as inference.
2. Four Dimensions That Actually Create Separation
The differences across model families converge on four areas.
2.1 Layer Arrangement
The traditional approach strictly alternates attention layers and feed-forward layers. The current mainstream approach keeps only lightweight attention in some layers and stacks expert feed-forward blocks in others, producing a non-uniform layer sequence. The benefit: with the total layer count unchanged, expensive global interaction is concentrated in a few layers while the rest focus on capacity expansion. The cost is higher implementation complexity, and layer partitioning for pipeline parallelism is no longer symmetric.
2.2 Attention Sparsification
There are three common paths. One is compressing history into a small number of learnable slots. Another is a hybrid of local windows plus a few global tokens. The third is a low-rank projection of K/V to shrink the cache. All three share the same effect: turning the KV Cache from linear growth with sequence length into sublinear growth, which is the key to making a 1M context practical.
2.3 Expert Routing
Finer routing granularity means each expert carries fewer parameters and combinations become more flexible. Combined with a mix of shared experts and fine-grained experts, a model can expand total capacity with almost no increase in activated parameters. But fine-grained routing amplifies the number of all-to-all communications, making it more sensitive to interconnect bandwidth.
2.4 Residual Mixing and Numerical Formats
Low-rank mixing on the residual path, together with lower numerical precision in training and inference (such as low-bit floating point and block-wise scaling), jointly determine memory footprint and the throughput ceiling. Numerical format is not a pure engineering detail; it directly constrains which parallelism strategies are available.
3. The Structural Relationship Between Parameter Scale and Activation
The following schematic code expresses the routing semantics of “large capacity, small activation”:
# Schematic: forward pass of fine-grained expert mixing (not a real API)logits = router(hidden) # [tokens, num_experts]weights, idx = topk(logits, k=8) # each token activates only k expertsweights = normalize(weights)out = zeros_like(hidden)for e in unique(idx):mask = (idx == e)out[mask] += weights[mask] * expert_e(hidden[mask])
The key point: num_experts determines total parameters and memory, while k determines activated parameters and compute. Total parameters in the T range with tens of B activated is precisely the result of enlarging num_experts and shrinking k.
This yields three rules of thumb for capacity planning:
- Estimate memory from total parameters and the KV Cache, and estimate compute from activated parameters; the two cannot be used interchangeably.
- When context length doubles, memory pressure grows far faster than compute pressure if the cache is not compressed.
- Increasing the expert count mainly raises communication and scheduling overhead, and must be planned in step with interconnect bandwidth.
4. Three Constraints on Hardware and Planning Headroom
- Compute: determined jointly by activated parameters and sequence length; sparse attention can substantially cut wasted computation on long sequences.
- Memory access: the KV Cache and expert weights are the main sources, with low-bit formats and low-rank projection as general remedies.
- Communication: fine-grained routing and expert parallelism amplify inter-device data exchange, so collective communication efficiency needs evaluation.
When deploying on the cloud, these constraints can be absorbed by general-purpose capabilities: container platforms for elastic training and inference clusters, object storage for weights and datasets, message queues to decouple data pipelines, and logging plus monitoring and alerting to observe throughput, memory, and communication bottlenecks.
5. Conclusion
The surface of architectural evolution looks scattered, but the core is consistent: reallocating capacity and activation under a triple budget of compute, memory access, and communication. Master the four main threads—layer arrangement, attention sparsification, expert routing, and numerical formats—and you can make verifiable structural inferences about any new model while leaving reasonable headroom for hardware and cluster planning.
