The Evolution of Large Language Models: Architecture Innovation and the Shift to Reasoning

    This article traces the evolution of large language models through three engineering threads: parameter efficiency, reasoning capability, and context/multimodal expansion. It covers the foundational period of general-purpose bases and training philosophy, fine-grained mixture-of-experts architectures that decouple total from activated parameters, code-specialized models, critic-free reinforcement learning with GRPO, and early vision-language alignment. It then examines the capability leap driven by test-time compute and million-token context windows. The article closes with practical engineering guidance on model selection by task, post-training data and reward design, guardrails for long context, and cost observability.

    1. Why a “Panoramic” Technical Thread Matters

    Over the past two years, the density of papers in the large model space has been extremely high. Individual findings are easy to come across, but stitching them into a single line of evolution is hard. For developers and enterprise technical decision-makers, the real value is not which single benchmark leads, but understanding where capability comes from, where the cost goes, and where the next bottleneck will appear.

    From an engineering perspective, this thread can be abstracted into three main lines: parameter efficiency (how to get stronger capability under the same compute budget), reasoning capability (how to turn knowledge into a verifiable problem-solving process), and context and multimodality (how to move from “answering questions” to “reading an entire document”). The sections below follow a chronological order and add the engineering implications at each stage.

    2. Foundation Period: General Bases and Training Philosophy (Early 2024)

    2.1 General Language Models: Spending the Budget on Data and Strategy

    The core work of this stage trained multiple size versions ranging from 7B to 67B, completed pre-training on roughly two trillion tokens, and proposed a “long-termism” training philosophy: prioritize the long-run payoff of data quality, data mixture, and training strategy rather than local optimization around short-term leaderboard metrics.

    The engineering takeaway is direct: the ceiling of a base model is mainly determined by data engineering. High-quality corpus cleaning, deduplication, mixture design, and curriculum-style ordering often pay off more than short-term hyperparameter tuning. The 67B version surpassed same-generation 70B-class dense models on code, math, and reasoning tasks, reaching a level close to the mainstream closed-source chat models of that time. This shows that open-source bases already had practical value under a reasonable budget.

    2.2 Fine-Grained Mixture of Experts: Decoupling “Total Parameters” from “Activated Parameters”

    Traditional feed-forward structures face a trade-off between compute and quality when scaling. Mixture of Experts (MoE) routes tokens to different experts, but early designs used few experts with coarse granularity, limited specialization, and were prone to load imbalance.

    Fine-grained expert splitting plus a shared-expert mechanism brings two changes:

    • Experts are split more finely: each expert has small capacity and the combination space is large, routing decisions become more flexible, and expert specialization improves;
    • Shared experts stay permanently activated: a portion of parameters is open to all tokens and carries general knowledge, avoiding dilution of general capability after fine-grained splitting.

    The result is roughly 145 billion total parameters with only about 28.5% of parameters activated per token, matching same-generation 67B dense models. This design later became the technical foundation for all of that team’s MoE bases.

    Illustrative routing logic (pseudocode):

    1. # Forward pass of fine-grained experts + shared experts
    2. def moe_forward(x, experts, shared_experts, top_k):
    3. gate = softmax(gate_linear(x)) # routing scores
    4. idx, weight = topk(gate, k=top_k) # activate only top_k fine-grained experts
    5. y = sum(weight[i] * experts[idx[i]](x) for i in range(top_k))
    6. y = y + sum(shared(x) for shared in shared_experts) # shared experts always on
    7. return y

    In engineering terms, this also requires a load-balancing auxiliary loss and capacity factor control; otherwise a few experts become overloaded while the rest sit idle, a situation known as “routing collapse.”

    2.3 Code Specialization: Training a Domain Base from Scratch

    The code-oriented model series covers sizes from 1.3B to 33B, was pre-trained on roughly two trillion tokens of code corpus spanning 87 programming languages, and surpassed contemporary general models and early code-specific closed-source systems on benchmarks such as HumanEval.

    The notable methodology is domain data mixture and long-context file-level modeling: code is not just text but also includes cross-file dependencies, call relationships, and engineering conventions. Training must preserve repository-level structural information so the model can write maintainable code rather than isolated fragments.

    2.4 Critic-Free Reinforcement Learning: A Turning Point for Reasoning

    This is one of the most academically influential works in the thread (over five thousand citations). Traditional Proximal Policy Optimization (PPO) requires maintaining both a policy model and a value model (critic), which brings high memory usage and engineering complexity. The Group Relative Policy Optimization (GRPO) approach proposed here works as follows:

    1. Sample a group of outputs for the same prompt;
    2. Normalize using the mean and standard deviation of rewards within the group to obtain relative advantages;
    3. Update the policy directly with the relative advantages, removing the critic network.
    1. Advantage estimation: A_i = (r_i - mean(r_1..r_G)) / std(r_1..r_G)
    2. Objective: maximize E[ min(ratio * A_i, clip(ratio) * A_i) ] - β * KL(π || π_ref)

    On math reasoning benchmarks, this method combined with high-quality data achieved the best open-source results at the time and later became the core training algorithm for reasoning models. Its engineering value is that it reduced the memory overhead of reinforcement learning by an order of magnitude, making post-training exploration feasible even for small and medium-sized teams.

    2.5 The Multimodal Starting Point: Vision-Language Alignment

    The vision-language models released in the same period focused on image-text alignment and fine-grained visual question answering. The technical route is typically “vision encoder + projection layer + language model,” with training split into alignment pre-training and instruction fine-tuning. The engineering difficulties concentrate on token budget control for high-resolution inputs and the interleaving strategy with text tokens.

    3. Capability Leap: Reasoning Models and Context Expansion (Mid-to-Late 2024 Onward)

    3.1 Test-Time Compute

    On top of the base, reinforcement learning elicits long chains of thought. The model generates an explicit reasoning process before answering and improves accuracy on hard problems by increasing sampling and verification. Practical points include verifiable rewards (whether the answer is correct, whether the code passes tests), difficulty-tiered curricula, and balancing reasoning length against latency cost.

    3.2 Million-Level Context

    Long-context capability is usually supported by three parts: positional encoding extrapolation (such as interpolation/scaling methods), long-text continued pre-training and long-sample instruction fine-tuning, and attention and memory optimization during inference. In business terms, long context makes “reviewing an entire contract,” “repository-level code understanding,” and “structuring long meeting notes” feasible scenarios, but it must be paired with retrieval and segmentation strategies to control cost and noise.

    4. Engineering Recommendations

    • Select models by task tier: use dense or MoE bases for general chat; prioritize high activation efficiency for high-concurrency scenarios; add test-time compute for complex reasoning.
    • Prioritize data and reward design in post-training: critic-free algorithms lower the barrier, but reward design quality determines the ceiling.
    • Add engineering guardrails for long context: segmentation, retrieval, citation traceability, logging services, and monitoring/alerting are all indispensable.
    • Make cost observable: bring compute, memory, and latency into unified monitoring, and use container platforms and elastic scheduling to absorb peaks.

    5. Conclusion

    The internal logic of this evolution is: first solidify the base with data and training philosophy, then use sparse architecture to decouple parameters from compute, then use reinforcement learning to push capability from “memorization” to “reasoning,” and finally expand the boundary of applicability with long context and multimodality. Understanding these four steps helps maintain judgment amid fast-iterating technical noise. To quickly validate this route in the cloud, you can build an experimental environment based on general compute, container platforms, object storage, and monitoring/alerting capabilities offered by Baidu AI Cloud, completing the full loop from pre-training to post-training at low cost.