A Guide to Modern LLM Architectures and Parameter Scales

    This article explains the mainstream architectural paradigms of modern large language models—including dense Transformers, Mixture-of-Experts (MoE), evolved attention mechanisms, and multimodal extensions—along with the typical parameter tiers that map to different use cases. It also covers context length evolution, inference and deployment considerations, and a practical model selection framework based on total parameters, active parameters, and effective context length.

    1. Why Architecture and Parameter Scale Matter

    The capability of a large language model is fundamentally determined by three factors: architecture design, parameter scale, and the size and quality of training data. For developers and enterprise users, understanding architecture has very practical implications—it determines inference cost, context capability, deployment requirements, and suitable use cases. Choosing a model with the wrong architectural form often leads to bottlenecks in long-document processing, high-concurrency serving, or resource-constrained deployment.

    Over the past two years, mainstream models have evolved from a “single large dense model” paradigm into several parallel technical routes: some push the limits of general capability, some prioritize long context and low latency, and others use sparse activation to achieve better cost-efficiency at the same training budget. This article explains, from a neutral perspective, the architectural spectrum of modern mainstream LLMs and the patterns behind their parameter scales.

    2. Mainstream Architectural Paradigms

    2.1 Dense Transformer: The Classic Baseline

    Almost all mainstream LLMs today are still built on a decoder-only Transformer backbone, with core components including:

    • Stacked attention modules: model dependencies within the sequence;
    • Feed-forward networks (FFN): hold the majority of parameter capacity, typically using gated linear unit (GLU) style structures;
    • Normalization scheme: Pre-Norm layout with RMSNorm is widely adopted for more stable training;
    • Positional encoding: Rotary Position Embedding (RoPE) has become the de facto standard, and can be combined with extrapolation techniques to extend context length.

    The defining feature of dense models is that “all parameters participate in every computation,” so inference cost scales linearly with total parameter count. When parameters reach the hundreds of billions, serving costs rise significantly—which is precisely what drove the rise of MoE architectures.

    2.2 Mixture-of-Experts (MoE): The Mainstream Sparsity Route

    Nearly all modern flagship models adopt MoE structures: the FFN layers of the Transformer are replaced with multiple “expert” sub-networks, and a router dynamically selects a small number of experts to process each token. This introduces two key concepts:

    • Total parameter count: determines the upper bound of the model’s knowledge capacity;
    • Active parameter count: determines the actual computation per inference step.

    Typical flagship configurations have evolved to the scale of “hundreds of billions of total parameters with only tens of billions activated”—for example, some models exceed 600 billion total parameters while activating roughly 20–40 billion per token. This design delivers order-of-magnitude advantages in training efficiency and inference throughput, while knowledge capacity far exceeds that of a dense model with the same active parameter count.

    The main engineering challenges of MoE include: load balancing (preventing routing collapse onto a few experts), communication overhead from expert parallelism, and memory footprint growing with the total number of experts. Mainstream solutions mitigate these issues through auxiliary balancing losses and shared expert designs (a common expert that is always activated to carry general knowledge).

    2.3 The Evolution of Attention Mechanisms

    Attention computation is one of the key inference bottlenecks, especially since the KV cache grows linearly with context length. Modern attention variants fall into three categories:

    (1) Compression schemes that reduce KV cache usage

    These include Multi-Query Attention (MQA) and Grouped-Query Attention (GQA), where multiple query heads share a small number of KV heads, compressing the KV cache to a fraction—or less—of its original size. These have become standard in long-context models.

    (2) Linear attention and hybrid architectures

    Recent years have seen hybrid architectures centered on linear attention: most layers use linear attention (whose computational complexity scales linearly with sequence length), while a small number of layers retain full attention to preserve precise retrieval capability. These architectures show significant speed and memory advantages in ultra-long-context and long-running agent tasks, and have been adopted by several models positioned as “lightweight and fast.”

    (3) Sparse attention

    Applies block-wise or pattern-based sparse selection over ultra-long sequences, striking a compromise between full attention and linear attention, balancing accuracy and efficiency.

    2.4 Multimodal and Unified Architectures

    Most new models add a vision encoder and cross-modal alignment modules on top of the text backbone to enable image-text understanding; some further unify the understanding and generation paths. These extensions typically do not change the parameter scale of the text backbone, but add several billion parameters on the vision side.

    3. How Parameter Scale Maps to Model Positioning

    Although naming conventions differ across model families, their parameter configurations follow highly consistent patterns that can be grouped into four typical tiers:

    Tier Total / Active Parameters Typical Positioning
    Flagship Hundreds of billions total / tens of billions active Complex reasoning, coding, agent tasks
    Mainline Hundreds of billions total / tens of billions active, more speed-oriented General services, production workhorse
    Lightweight / Flash Tens of billions total / several billion active High-concurrency, low-latency scenarios
    Edge / Micro Several billion parameters, dense Local deployment, on-device inference

    Notably, vendors commonly adopt a “multiple versions per family” strategy: launch the flagship version to establish the capability ceiling, then release “Flash/Mini”-style trimmed versions to cover cost-sensitive inference scenarios. This tiered product structure has become the industry standard.

    4. The Evolution of Context Length

    Early mainstream context windows were 4K–32K tokens. Today, flagship models generally support at least 128K, and some models reach million-token contexts through hybrid attention architectures. Three key technologies enable long context:

    1. RoPE extrapolation and scaling (e.g., various position interpolation methods);
    2. KV cache compression (GQA/MLA-style schemes);
    3. Sparse or linear attention, which brings long-sequence compute and memory costs down to acceptable levels.

    One practical caveat: the advertised context window is the “maximum processable length,” while the “effective context”—the length over which the model maintains high recall and consistent reasoning on long documents—is usually shorter. When selecting a model, evaluate long-document benchmarks rather than relying on the window number alone.

    5. Inference Efficiency and Deployment Considerations

    From a deployment perspective, architectural choice directly affects serving cost:

    • MoE models: high memory footprint (all experts must be loaded), but low per-token compute; well-suited for large-scale cluster deployment with expert parallelism;
    • Small dense models: balanced memory and compute requirements; suitable for single machines or edge devices;
    • Linear / hybrid attention models: clear throughput advantages with long inputs; suited to document processing and long-session agents.

    Common optimization techniques include quantization (e.g., low-bit weight quantization), KV cache quantization, speculative decoding, and batch scheduling. A simplified view of server-side throughput considerations can be expressed in pseudocode:

    1. # Simplified forward logic of a single MoE layer
    2. def moe_ffn(x, experts, top_k=8):
    3. scores = router(x) # routing scores
    4. topk_ids = topk(scores, k=top_k) # select k experts per token
    5. out = sum(experts[i](x) for i in topk_ids)
    6. return out
    7. # Large total parameters, but only top_k experts execute per token
    8. # -> active parameters are far smaller than total parameters

    6. How to Evaluate and Select a Model

    Based on the patterns above, here is a practical selection path:

    1. Define your workload characteristics: long documents, frequent short conversations, or complex agent tasks map to long-context-optimized models, lightweight models, and flagship models respectively;
    2. Look at three sets of numbers: total parameters (capacity), active parameters (cost), and both the context window and the effective context;
    3. Test rather than trust leaderboards: run small-scale evaluations on your own business data, focusing on latency, throughput, and failure rates;
    4. Pay attention to distilled and smaller versions: Flash-style versions of the same family often trade a minimal capability loss for several-fold improvements in inference cost-efficiency.

    7. Conclusion

    At the architectural level, modern LLMs have converged on a consensus framework of “Transformer backbone + MoE sparsification + compressed/linear attention,” while parameter scales have evolved along the tiered structure of “flagship—mainline—lightweight—edge.” Understanding the difference between total and active parameters, and the impact of attention mechanisms on long-context cost, is a foundational skill for developers evaluating models and planning deployment budgets. As inference optimization and architectural innovation continue to advance, the main theme of “stronger capability at lower unit cost” will keep raising the industry baseline.