The Evolution of Large Model Architectures: A Technical Roadmap

    This article traces the evolution of large language model architectures through four key milestones: scaling law recalibration on dense base models, replacing the feed-forward layer with mixture-of-experts (MoE), combining fine-grained experts with shared experts, and compressing the KV cache with low-rank attention. It explains the bottleneck each generation inherited, the tradeoffs each new mechanism introduces, and the engineering concerns around routing load balance, expert parallelism communication, and inference memory. Developers will find practical guidance on evaluation baselines, data quality, sparse-structure tuning, and long-context capacity planning.

    1. Why Architecture Evolution Is the Right Lens for New Models

    In engineering practice, reading the structural description of a new model generation in isolation often leads to a familiar trap: every module looks recognizable, yet the assembled design makes no sense. The reason is that large model design is not a one-time invention. It is layered incrementally along a main line of scaling law calibration, sparsification, and attention and inference cost optimization. Each generation resolves a bottleneck left by the previous one. Without understanding the prior constraints, it is impossible to tell whether a newly introduced mechanism is paying down technical debt or opening a new tradeoff space.

    This article therefore uses a timeline and abstracts four key milestones: scaling law validation on dense base models, replacing the feed-forward layer with a mixture-of-experts structure, combining fine-grained experts with shared experts, and compressing the key-value cache with low-rank latent attention. Together these four nodes form a complete technical coordinate system.

    2. Milestone One: Dense Base Models and Scaling Law Recalibration

    The first generation of open-source base models was typically released at two scale tiers, 7B and 67B. The smaller tier served to quickly validate the data pipeline and training stability, while the larger one benchmarked the practical capability ceiling against mainstream open-source models of the same period.

    The most durable output of this stage was not any specific parameter count but a redefinition of the boundary conditions of the scaling law. Early industry understanding held that the scaling law simply meant scaling parameters, data, and compute together in a power-law fashion. The more rigorous conclusion is that the power-law relationship holds only when data quality is not the bottleneck. When the corpus contains large amounts of duplicated, low-information-density, or format-noisy samples, adding more data epochs yields diminishing marginal returns and can even cause memorization and degraded generalization.

    The engineering conclusion that follows is directly actionable: with a fixed compute budget and controllable data quality, prioritize spending the budget on model scale rather than indiscriminately piling on corpus volume. Expressed as schematic decision logic:

    1. # Pseudocode: the core budget allocation decision, not a concrete implementation
    2. def allocate_budget(compute_budget, data_quality_score):
    3. if data_quality_score >= QUALITY_THRESHOLD:
    4. # Data is trustworthy: scale parameters first, with data volume at the lower bound that satisfies power-law matching
    5. return scale_params_first(compute_budget)
    6. else:
    7. # Data is questionable: invest in cleaning, deduplication, and mixture optimization first, or scaling up only amplifies noise
    8. return improve_data_pipeline(compute_budget)

    This stage also produced practical experience in hyperparameter transfer: searches completed on small models for batch size, learning rate, warmup and decay ratios can be transferred to large models using width scaling rules, avoiding large-scale grid searches at expensive scales. This is the typical pattern of “establish the direction first, then commit heavy compute.”

    3. Milestone Two: Mixture of Experts Replaces the Feed-Forward Layer

    The core motivation of mixture of experts (MoE) is to decouple parameter capacity from per-token compute. Replacing the feed-forward network in a Transformer with several expert networks plus a routing gate allows total parameter count to grow substantially, while each token activates only a few experts. Floating-point operations and memory bandwidth pressure therefore stay within an acceptable range.

    One common misconception needs clearing up: MoE was not originated by any single team. The idea had accumulated in conditional computation research long before. The conventional approach favored a small number of “large experts,” with each token selecting the top few by rank. This design has two structural problems:

    • Expert capacity is too large, so a single expert is forced to carry several kinds of knowledge simultaneously, limiting specialization;
    • Experts overlap heavily in function, creating parameter redundancy, so effective capacity falls below nominal capacity.

    Schematic code for the basic form of routing:

    1. # Illustration: token-level sparse routing, not a specific implementation
    2. logits = router(hidden_states) # [tokens, num_experts]
    3. weights, indices = topk(softmax(logits), k=K)
    4. expert_out = sum(gate * expert_i(x) for gate, expert_i in selected)

    Two side effects must be handled in engineering. The first is routing load imbalance, which requires an auxiliary balancing loss or a capacity limit so that a few experts are not overloaded while the rest sit idle. The second is expert parallelism communication overhead in distributed deployment. All-to-All communication easily becomes a throughput bottleneck and usually needs to be tuned together with pipeline parallelism and compute-communication overlap strategies.

    4. Milestone Three: Fine-Grained Splitting and Shared Experts Working Together

    A more refined step in the sparsification direction is replacing a few large experts with many small ones, while raising the number of experts in Top-K at the same time. The logic is that with total activated parameters held constant, finer expert granularity sharply increases the number of combinations, letting routing express a finer-grained division of knowledge and raising specialization.

    Fine-grained splitting introduces a new problem, however: common knowledge gets copied repeatedly into every expert, so redundancy rises instead. The shared expert design targets exactly this point. General grammar, common sense, and high-frequency patterns are extracted into a small number of always-active shared paths that every token passes through unconditionally, leaving the specialized experts to learn only differentiating knowledge.

    The relationship between the two can be summarized as “division of labor plus reuse”:

    • Fine-grained specialized experts raise the expressive resolution of conditional computation;
    • Shared experts absorb common knowledge and reduce the repeated learning burden on specialized experts;
    • Combined, they achieve higher effective parameter utilization at the same activation budget.

    5. Milestone Four: Compressing Attention and Inference Cost

    As models move toward long context and large-scale serving, the bottleneck shifts from training compute to the key-value cache (KV Cache) during inference. The cache grows linearly with sequence length and layer count, and directly determines memory footprint and the number of concurrent requests. Multi-head latent attention (MLA) jointly compresses keys and values in a low-rank latent space, caching a low-dimensional latent vector rather than the full key-value pair, then projecting it back up during inference, substantially reducing cache size while keeping generation quality largely under control.

    Supporting engineering measures include sparsifying the feed-forward layer to amortize per-token compute, adopting multi-token prediction objectives to increase training signal density, and optimizing actual throughput through quantization, batch scheduling, and operator fusion. Together these form a combined approach of low-cost training plus high-throughput serving.

    6. Practical Recommendations for Developers

    1. Establish an evaluation baseline before discussing architecture. Without a stable evaluation set and inference load-testing scripts, no architectural gain can be verified.
    2. Prioritize data quality over data scale. A process for deduplication, quality scoring, and mixture auditing is a prerequisite for the scaling law to take effect.
    3. Tune sparse structures along three lines simultaneously: routing, communication, and memory. Optimizing only one of them usually yields limited returns.
    4. For long-context scenarios, evaluate caching strategy first, and treat the KV Cache as a first-class resource in capacity planning.
    5. For cloud training and inference, generic capability categories can be combined, for example object storage for corpora and checkpoints, container platforms for elastic training and inference clusters, and logging services with monitoring and alerting for observability, avoiding tight coupling to a single proprietary interface.

    7. Conclusion

    From scaling law recalibration on dense base models, to sparsification of the feed-forward layer, to the coordination of fine-grained and shared experts, and finally to low-rank compression of the attention cache, this evolution path is essentially a continuous optimization of effective output per unit of compute and per unit of memory. Understanding the technical debt each generation pays down is what allows you to quickly judge, when facing the structural description of a new generation, whether its innovation lands on capacity, efficiency, or serving cost, and to make a more rational technology selection.