The Evolution of Large Language Models: From Architecture Efficiency to Reasoning Capabilities

    This article traces the main thread of large language model progress over the past two years: how to keep improving the effective capability of each parameter under a fixed compute and memory budget. It covers dense foundation models and long-horizon training, sparse MoE designs with fine-grained and shared experts, domain-specific development for code and mathematics, multimodal and document understanding, formal theorem proving with verifiable rewards, and practical guidance for mapping these research findings into engineering decisions.

    1. Why a Single Evolution Thread Beats Scattered Knowledge Points

    Over the past two years, the density of papers in the large language model space has been extremely high, yet relatively few original contributions have actually changed engineering practice. For developers and enterprise technical decision makers, reading papers one by one is expensive and the returns are hard to accumulate. A more valuable approach is to extract a single thread: how to keep raising the effective capability per parameter under a given compute and memory budget.

    That thread breaks down into three coupled questions:

    1. Architecture efficiency: must parameter growth and inference cost growth move in lockstep?
    2. Training strategy: how should data quality, training duration, and post-training methods be traded off for long-term payoff?
    3. Capability alignment: how can a model reliably produce usable output in vertical scenarios such as mathematics, code, and document understanding?

    The sections below follow a chronological order, but each one returns to this thread for abstraction and argument.

    2. The Starting Point: Dense Foundation Models and a Long-Term Training Philosophy

    A batch of open foundation model releases in early 2024 established one basic fact: dense models in the ten-billion to hundred-billion parameter range, paired with trillion-token pretraining corpora, can approach the level of contemporary closed general-purpose assistants on code, mathematics, and logical reasoning tasks.

    The most methodologically significant idea was the so-called long-term training philosophy. Its core claim: do not let short-term evaluation fluctuations drive data mixtures and training hyperparameters backward. In practice it usually has three layers:

    • Data: invest heavily in deduplication, quality scoring, domain mixtures, and contamination detection rather than quickly piling on volume;
    • Training: once step counts and the learning rate schedule are fixed, stay consistent and avoid frequent restarts or mid-run reconfiguration;
    • Evaluation: treat evaluation as monitoring rather than a target, to avoid overfitting benchmark sets.

    The tradeoff logic can be understood in engineering terms like this:

    1. # Illustration: decoupling long-term payoff from short-term metrics in a training plan
    2. def should_adjust_plan(metric_delta, planned_steps, current_step):
    3. # Only consider changes once deviation far exceeds the noise band and the validation window has passed
    4. if current_step < 0.2 * planned_steps:
    5. return False
    6. return abs(metric_delta) > NOISE_THRESHOLD

    The practical significance is that the compounding effect of data and scheduling only shows up over a long enough training run, and frequent intervention destroys that compounding.

    3. Sparsification: Combining Fine-Grained Experts with Shared Experts

    The pain point of dense models is direct: inference cost rises linearly with parameter count. Mixture of Experts (MoE) offers a sparsification path, but early designs had two structural problems: experts were too coarse-grained to specialize well, and utilization of some parameters after routing was low.

    The industry converged on a design paradigm that is now widely reused:

    • Fine-grained expert splitting: cut experts of the same parameter budget into more, smaller units, so the number of routing combinations grows combinatorially and expressive power increases without increasing activated parameters;
    • Shared expert mechanism: keep a small number of experts that are always activated for every token to carry common information such as general knowledge and syntax, leaving the routed experts to focus on differentiated patterns.

    The logic behind the effect is that total parameters determine knowledge capacity while activated parameters determine compute cost, and the two are decoupled. A typical configuration has hundred-billion-scale total parameters with roughly thirty percent of parameters activated per token, which matches same-generation dense models on most benchmarks.

    Three areas need attention in production:

    1. Load balancing: routing skew overloads some experts and leaves others idle, so auxiliary losses or capacity factor constraints are needed;
    2. Communication overhead: expert parallelism introduces All-to-All communication that must overlap with computation;
    3. Memory versus throughput tradeoffs: rising total parameters create memory pressure, but per-token compute stays controllable, which suits throughput-first online serving.

    4. Domain Specialization: How Code and Mathematics Are Built

    Beyond a general foundation, vertical capability building follows a similar process but weights data engineering more heavily.

    Key practices for code include continued pretraining on trillion-token-scale code corpora covering dozens of mainstream programming languages; training objectives that cover both next-token prediction and repository-level long-context modeling; and post-training that strengthens instruction following and preference optimization oriented toward test pass rates. Evaluation typically references both function-level generation pass rates and repository-level completion performance.

    The core contribution on the mathematics side is in the reinforcement learning algorithm. Traditional Proximal Policy Optimization (PPO) requires maintaining both a policy model and a value model (critic), doubling memory and engineering complexity. A class of critic-free methods instead samples a group of outputs for the same prompt and estimates advantage from within-group relative scores, turning value estimation into an in-group normalization problem:

    1. Sample G responses o_1 ... o_G for prompt q
    2. Reward r_i = correctness_check(o_i) # a rule-based verifier can provide this
    3. Advantage A_i = (r_i - mean(r)) / std(r)
    4. Objective = maximize E[ A_i * logπ(o_i|q) ] - β * KL(π || π_ref)

    The payoff is threefold: lower memory usage, a simpler training pipeline, and rewards that can be judged automatically by rules, which prevents a reward model from being gamed. It later became a general component of reasoning-enhanced training pipelines.

    5. Multimodal and Document Understanding: Alignment, Not Concatenation

    A common mistake in the vision-language direction is simply concatenating an encoder with a language model. A reliable approach emphasizes three points: pretrain the vision encoder and the language model separately and decoupled, train each fully before joint alignment; use high-resolution dynamic splitting to preserve charts and small text; and rely mainly on image-text instruction data during alignment while controlling training steps to avoid degrading language ability.

    Document understanding can be seen as a vertical extension of multimodal work, with difficulties concentrated in layout structure, table reconstruction, and cross-page references in long documents. In practice, layout coordinates are introduced as positional hints, and parsing results are structured before being handed to the language model for reasoning, which reduces hallucination.

    6. Formal Proofs and Verifiable Rewards: An Underrated Path

    The value of formal theorem proving lies in verifiable rewards: a proof checker gives binary feedback and naturally fits the critic-free reinforcement learning paradigm described above. The engineering pipeline generally runs from a formal language and proof-checking environment, to automated formalization data construction, to a closed loop of policy search and verification feedback. This path carries transferable value for high-reliability scenarios such as protocol verification and constraint solving.

    7. Enterprise Recommendations: Mapping Paper Findings to Engineering Decisions

    • When compute is limited, change the architecture before adding hardware: sparsification can significantly improve the throughput-to-cost ratio, but memory and communication must be evaluated;
    • Data engineering is a compounding asset: deduplication, quality tiering, and contamination detection should run as a standing pipeline connected to object storage and batch scheduling;
    • Prefer verifiable rewards in post-training: for rule-checkable tasks, start with critic-free methods and bring in preference data for subjective tasks;
    • Tier inference serving: split long-context and short requests, and pair this with elastic scaling on a container platform;
    • Observability is mandatory: bring training metrics, routing load, latency, and failure rates into a unified logging service with monitoring and alerting to close the iteration loop.

    In summary, the change with real long-term value over the past two years is not a parameter race but the combination of sparse architectures, verifiable reinforcement learning, and high-quality data engineering. With general capabilities from cloud platforms such as Baidu AI Cloud (container platform, object storage, logging service, monitoring and alerting), these methods have a fairly clear path to engineering implementation.