LLM Architecture Evolution: From Scaling Laws to Mixture of Experts

    This article traces large-model architecture as a causal chain—dense baselines and scaling laws, MoE sparsity, fine-grained and shared experts, then systems-level training and inference—so teams can judge what each change actually solves, at what cost, and at which scale.

    Why treat architecture evolution as one line

    Many teams judge or reproduce large models from a single generation’s leaderboard. The next generation then overturns the conclusion. A more stable approach is to treat architecture as a continuous causal chain: bottlenecks exposed by one generation become the starting point of the next. Filling in that chain is how you tell what a change actually solved, what it cost, and at what scale it holds.

    The path below is four stages: dense baseline, sparsification, refined sparsification, and systems-level delivery.

    Stage 1: Dense models and a recalibration of scaling laws

    Early open-source dense models (two typical bands from billions to tens of billions of parameters) contributed less structural novelty than a solid training recipe. Three conclusions matter:

    1. Scaling laws hold, with conditions. Power-law drops in loss with parameters, data, and compute have been repeatedly confirmed, but they assume data quality does not collapse. If low-quality, duplicated, or templated text is too large a share, adding parameters mainly fits noise more efficiently.
    2. Under a fixed compute budget, rebalance parameters and data. When quality is controlled, the same budget tends to favor model scale over endlessly stacking corpus. That orientation of “scale first” carries through later generations.
    3. Calibrate hyperparameters at small scale, then scale up training. Learning rate, batch size, and data mix do not extrapolate by intuition. A common practice is a family of smaller models of the same architecture, grid search, fit trends versus scale, then extrapolate to the target size. That step cuts the risk of a one-shot large-run failure.

    The value of this stage is engineering discipline: find the direction before committing heavy compute.

    Stage 2: Mixture of Experts decouples compute from memory

    Dense models send every token through every parameter, so train and inference cost scale linearly with size. Mixture of Experts (MoE) replaces the Transformer FFN: several expert subnetworks in parallel, and a router that selects a few experts per token.

    1. # Illustrative routing (pseudocode)
    2. logits = router(hidden) # [tokens, num_experts]
    3. scores = softmax(logits)
    4. topk_idx, topk_val = topk(scores, k) # keep only k experts
    5. out = sum(expert_i(hidden) * w_i for i, w_i in zip(topk_idx, topk_val))

    The main gain is separating total parameters from activated parameters per token: memory must hold all experts, but compute is spent only on the selected ones. The cost is load imbalance—a few experts overused, many idle—so training usually adds a balancing loss plus capacity limits and drop policies.

    Stage 3: Fine-grained experts and shared experts to govern redundancy

    Classic MoE is too coarse: few experts, each large. Two problems follow: a single expert is forced to hold many kinds of knowledge, so “specialization” is weak; and experts relearn shared knowledge, so parameters are redundant.

    Two complementary directions:

    • Fine-grained split: Break each large expert into many small ones and raise K in Top-K. Activated compute stays similar, but the number of combinations grows, routing is more expressive, and experts can actually specialize.
    • Shared experts: A resident set always runs for every token and holds common knowledge; the rest are routed experts that learn differences. Shared knowledge is stored once; specialists need not relearn it.

    Engineering note: finer experts multiply expert count, so routing and All-to-All communication fragment. Expert parallelism and compute–communication overlap must be retuned, or communication eats the theoretical gain.

    Stage 4: Second-generation sparse models in production systems

    Second-generation MoE is not structure-only; economy and efficiency are first-class. Work typically falls in three buckets:

    1. Training-cost compression: more aggressive sparsity, more stable routing, low-precision training, and efficient parallelism combined.
    2. Inference-cost compression: KV-cache size is the bottleneck for long context. Low-rank attention variants shrink the cache well below standard multi-head attention; quantization and speculative decoding raise throughput.
    3. Engineering stack: mixed expert, pipeline, and data parallelism; overlapping communication and compute; intra- vs inter-node bandwidth reflected in the sharding plan.

    Deployment checklist

    • Data quality: cleaning, dedup, and mix audit—not volume alone
    • Scaling: hyperparameters calibrated at small scale and extrapolated
    • MoE load balance observable (expert-usage variance, drop rate)
    • Memory budgeted for all experts, not activated parameters only
    • Cache footprint for long context measured separately
    • Monitoring, alerts, and logs for training anomalies and inference latency jitter

    Common mistakes

    Equating “large parameter count” with “large compute” after sparsity decouples them; ignoring routing instability and scaling anyway; optimizing structure without communication so cluster utilization stays low; copying one generation’s hyperparameters as universal constants.

    Summary

    The inner logic is clear: scaling laws set where to invest; sparse activation attacks cost; fine-grained and shared experts fix weak specialization and redundancy; systems work on train and infer turns structural advantage into real economy. Understanding that chain has more lasting value than memorizing any single generation’s parameter count.