LLM Architecture Evolution and Parameter Scaling: A Technical Deep Dive
This article provides a systematic analysis of modern large language model architectures and parameter scaling trends. It covers core structural components including Transformer variants, attention mechanisms (GQA, sliding window attention), and FFN design with SwiGLU; compares Dense and Mixture of Experts (MoE) paradigms; maps parameter scale tiers from sub-1B edge models to 100B+ flagship models; and discusses context length strategies, training pipelines, inference optimization, evaluation dimensions, and practical model selection guidance for developers and technical decision-makers.
1. Introduction: The Landscape of Large Language Models
In recent years, large language models (LLMs) have grown at an explosive pace. From early pretrained models with only a few hundred million parameters to today’s massive neural networks with hundreds of billions of parameters, the evolution of model architecture and parameter scale reflects not only advances in compute infrastructure but also the expanding capability boundaries of AI applications. For developers and technical decision-makers, understanding the structural characteristics and scale distribution of modern LLMs is a prerequisite for technology selection, cost estimation, and application architecture design.
The industry has developed several parallel technical paths, each with different emphases on model architecture, parameter allocation strategies, training objectives, and deployment approaches—forming a rich and diverse ecosystem. This article systematically examines the core structural components of modern LLMs, mainstream architecture types, and the distribution patterns of parameter scales, aiming to provide a clear and complete technical map.
2. Core Structural Components of Large Models
2.1 The Foundation: Transformer and Its Variants
The Transformer architecture remains the cornerstone of modern LLMs. Since its introduction in 2017, it has undergone multiple rounds of iteration and optimization, yet its core framework—self-attention plus feed-forward networks (FFN)—remains the backbone of the vast majority of models.
Mainstream implementations typically adopt a “Pre-Norm” design, applying layer normalization before each sub-layer. This choice effectively mitigates gradient vanishing in deep networks. Recently, QK-Norm (Query-Key normalization) has been adopted in several models to constrain the numerical range of attention score computation and improve training stability. RMSNorm (Root Mean Square Normalization) is also widely used for its computational efficiency.
2.2 Innovations in Attention Mechanisms
Attention is the core mechanism by which LLMs process sequential data. Classic Multi-Head Attention projects inputs into multiple subspaces, allowing the model to attend to information from different positions and representation subspaces simultaneously. On top of this, the industry has developed several improvements:
Grouped Query Attention (GQA) is now standard in mainstream models. GQA strikes a balance between Multi-Query Attention (MQA) and Multi-Head Attention: key and value heads are grouped and shared, while query heads remain independent. This design preserves model expressiveness while significantly reducing KV cache memory usage and improving inference throughput.
Sliding Window Attention combined with global attention is also increasingly common. Local windows capture fine-grained relationships between neighboring tokens, while sparse global anchors ensure long-range information flow. This hybrid design effectively balances computational complexity and information coverage in long-context scenarios.
2.3 Feed-Forward Networks and Activation Functions
The feed-forward network (FFN) accounts for the majority of model parameters. Modern models commonly replace traditional ReLU with SwiGLU (Swish-Gated Linear Unit) or similar gated activation functions, enhancing nonlinear expressiveness through learnable gating. The FFN hidden dimension is typically set to 2.5–4× the model’s hidden dimension, a ratio that holds consistently across model scales.
3. Mainstream Architecture Paradigms: Dense vs. Sparse
3.1 Dense Models
Dense models are architectures in which all parameters participate in every computation step. Their advantages include stable training, simple inference logic, and ease of optimization. Dense models in the 7B–13B range are currently the workhorses of the open-source community and small-to-medium applications. Their training compute requirements are relatively manageable, and fine-tuning and deployment can be done on a single multi-GPU machine.
The core limitation of dense models is the superlinear growth of compute cost as parameters scale. Scaling from 13B to 70B parameters increases training compute requirements by roughly 5–8×, presenting a clear engineering bottleneck for further scaling.
3.2 Mixture of Experts (MoE)
MoE models break through the scaling bottleneck of dense models via sparse activation. An MoE model replicates the FFN layer into multiple “expert” sub-networks, and a router network dynamically selects a subset of experts to activate for each input token. This allows total parameter count to grow substantially while per-forward-pass compute grows only with the number of activated parameters.
A typical MoE layer configuration is “64 total experts, 8 activated per token”—meaning the model may have hundreds of billions of total parameters, but only about one-seventh are activated in each forward pass. This “large total parameters, small active parameters” property gives MoE models greater knowledge capacity at the same inference cost.
Key challenges for MoE architectures include: load balancing—the router may favor a few “hot” experts, overloading some while leaving others idle; and training instability—differences in expert initialization and gradient updates can cause training oscillation. The industry commonly mitigates these issues with auxiliary load balancing losses and expert capacity limits.
3.3 Hybrid Architectures and Multimodal Extensions
Model architectures are showing a trend toward convergence. Some models incorporate sparse attention layers, State Space Model (SSM) modules, or convolutional structures on top of the Transformer backbone, forming hybrid architectures. These designs aim to reduce the quadratic computational cost of growing sequence lengths while preserving global modeling capability.
Multimodal LLMs extend language models with encoders and alignment modules for vision, audio, and other modalities. A typical approach retains the strong reasoning ability of the text model, uses an additional vision encoder (e.g., ViT) to convert images into token sequences, and maps them into the text semantic space via a projection layer. This “modality alignment + unified generation” paradigm has become the mainstream design for multimodal models.
4. Parameter Scale Distribution and Magnitude Evolution
4.1 Parameter Scale Tiers
Current LLMs can be roughly divided into the following tiers:
Lightweight (under 1B): Designed for edge deployment and specific scenarios such as mobile devices and embedded systems. Sub-1B models can run on smartphones after quantization, serving latency-sensitive applications.
Entry-level (1B–10B): The mainstay of academic research and small-to-medium applications. Dense models are typically around 7B; MoE total parameters can reach into the tens of billions. A 7B dense model, for example, typically requires about 2 trillion tokens of training data—equivalent to months of training on roughly 500–1,000 high-end GPUs.
Enhanced (10B–100B): This tier includes large dense models and mid-size MoE models. 70B dense models were once the mainstream scale for open-weight models, showing significant capability jumps in code generation and complex reasoning. Meanwhile, an MoE model with 30B total parameters and about 3B active parameters can match 70B dense models in inference efficiency.
Flagship (100B+): MoE models with hundreds of billions of parameters form the most capable tier. Training costs are extremely high—often requiring thousands of accelerators running continuously for months. Flagship models excel at math reasoning, code generation, and long-document understanding, but deployment costs rise accordingly.
4.2 The Relationship Between Scale and Capability
Parameter scale and model capability do not follow a simple linear relationship. The widely accepted “Scaling Law” shows that performance improves smoothly with parameters, data, and compute, but actual gains depend significantly on data quality, architecture efficiency, and training strategy.
A notable trend: at equal parameter counts, MoE models significantly outperform dense models. This is because total parameters determine the knowledge capacity ceiling, while active parameters determine per-inference compute cost. A common industry view holds that an MoE model with 70B total parameters and ~10B active parameters can match a 13B dense model in overall capability while approaching a 30B dense model in knowledge breadth. This “doing more with less” property makes MoE the mainstream choice for flagship models.
4.3 Directions for Parameter Efficiency
As models grow, researchers are actively exploring ways to improve parameter efficiency. Parameter-efficient fine-tuning techniques such as LoRA make it possible to fine-tune large models on consumer-grade hardware. Model quantization (e.g., INT4/INT8) reduces memory footprint by lowering parameter precision, enabling models with tens of billions of parameters to be deployed on one or two GPUs.
5. Cross-Cutting Technical Details
5.1 Long-Context Strategies
Long-context capability has become a key metric of practical utility. Current models generally support at least a 32K-token context window, and flagship models have extended context to 128K tokens or beyond.
Main technical approaches for long-context support include:
- Position encoding extrapolation: Adjusting the base frequency of Rotary Position Embedding (RoPE) so the model generalizes to longer sequences than seen during training.
- Training data construction: Incorporating long-document samples in pretraining and progressively increasing sequence length through curriculum learning to help the model adapt to long-range dependencies.
- Inference-time context compression: Compressing historical information via summarization and key information extraction to retain high-value content within a limited window.
5.2 Training Strategy and Data Engineering
LLM training typically follows a two-stage paradigm: pretraining followed by post-training alignment. The pretraining stage uses self-supervised learning on massive text corpora with next-token prediction as the loss. The post-training stage aligns model behavior with human preferences through supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF), or direct preference optimization (DPO).
Data quality is critical to model capability. Modern pretraining datasets typically undergo multiple rounds of cleaning and deduplication, covering web pages, books, code, academic papers, and more. It is widely believed that high-quality data matters more than sheer volume in determining the final capability ceiling. Some leading models introduce a “high-quality data mixture” strategy late in pretraining, resampling data from different sources to optimize learning outcomes.
5.3 Inference Optimization and Deployment Practices
Real-world deployment requires balancing latency, throughput, and cost. Mainstream inference optimization techniques include:
- KV cache reuse: Caching key-value pairs of historical tokens during incremental decoding to avoid redundant computation.
- Speculative decoding: Using a small model to draft candidate tokens, then verifying them in a single pass with the large model—accelerating decoding without changing the output distribution.
- Tensor parallelism and pipeline parallelism: Sharding the model across multiple GPUs for collaborative inference to overcome single-GPU memory limits.
- Continuous batching: Dynamically scheduling requests to improve GPU utilization.
6. Model Evaluation and Selection Recommendations
6.1 Structured Evaluation Dimensions
Choosing the right model for a scenario requires multi-dimensional evaluation:
- General knowledge breadth: Coverage of world knowledge, assessable via multidisciplinary QA benchmarks.
- Reasoning depth: Math reasoning, logical reasoning, code execution, and debugging.
- Instruction following and conversational ability: Precision in understanding complex instructions, formatted output, and multi-turn consistency.
- Long-document processing: Comprehension, information extraction, and summarization over long documents.
- Tool use and agent capability: Correctly invoking external tools, understanding API parameters, and completing multi-step tasks.
6.2 Balancing Deployment Cost and Scale
Parameter scale directly determines inference cost. A 7B dense model, for example, can be deployed at FP16 precision on a single A100 (80GB); a 70B model requires multi-GPU parallelism or quantization for single-machine deployment; and 100B+ MoE models typically need multi-node clusters to meet online inference throughput requirements.
For most scenarios, start with the smallest scale that meets requirements: try a lightweight MoE model first (around 30B total parameters, ~3B active), and scale up only when capability falls short. Also reserve 20%–30% of GPU memory headroom for KV cache and runtime overhead.
7. Future Trends and Frontiers
7.1 Possible Architectural Evolution
State Space Models (SSMs), linear attention, and other new sequence modeling approaches are challenging the Transformer’s dominance. These methods reduce sequence modeling complexity from quadratic to near-linear, opening new possibilities for ultra-long context. Hybrid architectures—using different sequence modeling approaches in different layers—may become an important direction.
7.2 Parameter Efficiency and Green AI
As models continue to grow, training and inference energy consumption is drawing increasing attention. The industry is optimizing across three layers: algorithmically, developing more efficient knowledge distillation and model compression; at the system level, improving training and inference scheduling to raise compute utilization; and at the hardware level, with specialized accelerator chips targeting Transformer workloads.
7.3 From Single Models to Multi-Agent Collaboration
The application paradigm is shifting from “a single model handling a single task” to “multiple agents collaborating on complex problems.” Multiple model instances working through task planning, division of labor, and result aggregation can complete workflows beyond any single model’s capability. This trend raises higher requirements for context management, tool use, and self-reflection capabilities.
Conclusion
Modern LLMs are in a period of rapid iteration. Architecturally, MoE sparse activation coexists with dense models while hybrid architectures continue to emerge. In terms of scale, the decoupling of total parameters from active parameters gives model design more degrees of freedom. In application, model selection requires balancing capability, cost, and latency.
Understanding the underlying logic of architecture and the design philosophy of scale matters more than chasing specific parameter numbers. As a classic observation in deep learning puts it—“Scale itself is a capability, but architecture determines the ceiling of scale.” For developers, a deep understanding of these technical details is essential for making sound, robust decisions amid the fast-moving wave of large models.
