The Evolution of Large Language Models: Architecture Efficiency and Reasoning Capabilities

    This article maps the current LLM landscape along two main threads: architecture efficiency and reasoning capability. It walks through the shift from dense pretraining to Mixture-of-Experts designs with fine-grained expert segmentation and shared experts, code models trained from scratch, and a critic-free reinforcement learning approach that makes verifiable tasks like math and code ideal training grounds. It also covers multimodal and document understanding, and closes with practical guidance on cost tiering, GPU memory planning, elastic compute, evaluation, and long-context tradeoffs.

    1. Why a Technical Landscape Map Matters

    Over the past two years, the density of technical reports in the large model space has been extremely high, spanning general language modeling, code generation, mathematical reasoning, multimodal understanding, formal proof, and document understanding. For developers and enterprise technical decision-makers, the real pain point is not “finding papers” but being unable to judge which innovation will affect their own cost structure and performance ceiling.

    Abstracted from this body of work, two main threads emerge:

    • The architecture efficiency thread: under limited compute and GPU memory budgets, how to make every parameter and every activated token more valuable;
    • The reasoning capability thread: how to let models acquire stable long-chain reasoning on verifiable tasks such as math and code through reinforcement learning.

    The sections below proceed chronologically, but each one adds “what problem it solves, what it costs, and how to borrow from it in engineering”.

    2. The Starting Point: Dense Model Pretraining and “Long-Termism”

    The series began with general-purpose language models at 7B to 67B scale, pretrained on roughly 2 trillion tokens, and introduced a “long-termism” training philosophy: betting returns more on continuous improvement of data cleaning, data mixtures, and training strategy than on chasing short-term benchmark rankings.

    The result was that the 67B version surpassed same-generation 70B-class open-source dense models on code, math, and reasoning tasks, reaching a level close to early closed-source conversational models. Three engineering takeaways:

    1. Data quality determines convergence speed: deduplication, quality filtering, and domain mixtures are often more effective than blindly stacking parameters;
    2. Leave headroom in the training compute budget: once pretraining enters an unstable regime, rollback costs are extremely high;
    3. An open, reproducible baseline is itself an asset: it gives subsequent architecture experiments a common point of comparison.

    3. Mixture of Experts: Fine-Grained Segmentation and Shared Experts

    The first batch of Mixture-of-Experts (MoE) work introduced two innovations that have been widely adopted:

    • Fine-grained expert segmentation: splitting experts into smaller units and increasing their number, which enlarges the routing combination space and raises the degree of expert specialization;
    • A shared expert mechanism: keeping a subset of experts that are always activated for every token, carrying general knowledge and avoiding the situation where “common knowledge gets fragmented across routed experts”.

    A typical configuration has about 145B total parameters while activating only about 28.5% of parameters per token, with quality on par with same-generation 67B dense models. The cost must be emphasized here: MoE saves computation, not GPU memory. All expert parameters must stay resident, so GPU memory and communication pressure in distributed deployment are actually higher.

    Illustrative pseudocode (expressing only the routing idea):

    1. # Routing per token: shared experts always participate + a few routed experts
    2. shared_out = shared_experts(x) # every token goes through
    3. scores = router(x) # compute expert scores
    4. topk_idx, topk_w = top_k_softmax(scores, k=2) # sparse selection
    5. routed_out = sum(routed_experts[i](x) * w for i, w in zip(topk_idx, topk_w))
    6. y = shared_out + routed_out

    In engineering, this also needs a load balancing auxiliary loss and a capacity factor; otherwise a few experts become overloaded while the rest sit idle, producing “routing collapse”.

    4. Code Intelligence: Code Models Trained from Scratch

    The representative work in the code direction trained a model series from scratch at 1.3B to 33B, pretrained on code corpora of roughly 2 trillion tokens covering 87 programming languages, and surpassed same-period closed-source code models and early instruction models on benchmarks such as HumanEval.

    Reusable practices:

    • Corpus construction: repository-level context, dependency relationships, and paired natural language and code comments all significantly affect completion quality;
    • Layered evaluation: function-level pass rates, repository-level cross-file completion, and unit test repair are three different capabilities and cannot be summarized by a single metric;
    • Small models still have a place: 1.3B-class models offer low latency and low cost in IDE inline completion scenarios, making them suitable for cascading with larger models.

    5. The Turning Point in Reasoning: Critic-Free Reinforcement Learning

    The work in the math direction has the most methodological value: it proposes a policy optimization algorithm that removes the critic model. Traditional proximal policy optimization requires maintaining both a policy model and a value model, doubling GPU memory and engineering complexity; the new algorithm samples a group of outputs for the same prompt and constructs advantage estimates from within-group relative scores, keeping only the policy model and the reward signal.

    The core idea can be abstracted as:

    1. Sample G responses o_1 ... o_G for the same prompt
    2. Each response receives a reward r_i (math problems can be scored automatically by answer checking)
    3. Advantage A_i = (r_i - mean(r)) / std(r) # normalized within the group, no value network needed
    4. Use A_i as weights for the policy gradient update, and add a KL constraint to prevent drift

    The reason this idea has been so influential is that it turns “automatically verifiable tasks” (math, code, formal proof) into ideal training grounds for reinforcement learning: rewards can come from rules or test cases, so the training loop needs no human annotation. Later reasoning-oriented models generally follow this route, layering on long chains of thought, rejection sampling, and distillation.

    6. Multimodal and Document Understanding: Horizontal Expansion of Capabilities

    The emergence of multimodal vision-language models extends the capabilities above to mixed image-and-text input; the document understanding and formal theorem proving directions respectively target “real documents with complex layout structure” and “logically derivable steps that machines can check”. Their commonality: both are looking for automatically decidable supervision signals—documents have layout and field constraints, proofs have checkers, which is exactly the same logic as reward design on the reasoning thread.

    7. Deployment Guidance: How Enterprises Should Choose and Deploy

    • Cost tiering: route high-frequency simple requests to small models or sparsely activated models and complex reasoning to large models, forming a cascading router;
    • GPU memory planning: with sparse expert architectures, estimate GPU memory by total parameters rather than activated parameters, and reserve space for the KV cache;
    • Compute elasticity: training and fine-tuning can rely on general-purpose container platforms and elastic compute pools, with object storage for corpora and checkpoints, and logging services plus monitoring and alerting to track loss, throughput, and routing distribution;
    • Evaluation first: build an internal evaluation set with the same distribution as the business before deciding whether to adopt a new architecture or training method;
    • Context length: million-token context is not free—attention overhead and GPU memory usage grow rapidly with length, so retrieval and hierarchical summarization should be combined to control the actual input size.

    8. Conclusion

    Compress this wave of technology into one sentence: efficiency comes from sparsification and data engineering, capability comes from reinforcement learning on verifiable tasks. Understanding these two threads has more long-term value than memorizing any single model name.