The Evolution of Large Language Models: Architecture Efficiency and Reasoning Breakthroughs
This article maps the evolution of open-source large language models along two main threads: architecture efficiency, which determines how much value each parameter and token delivers under a fixed compute and memory budget, and reasoning capability, which turns parameter scale into real gains on verifiable tasks. It walks through three stages, the foundation period of dense base models and long-term data strategies, key modifications to Mixture-of-Experts routing, and specialization in code, math, and multimodal understanding, before covering the reasoning and long-context engineering loop. Readers will find practical engineering takeaways on data quality, load balancing, GRPO-style relative policy optimization, and distillation.
1. Introduction: Why a Technical Throughline Beats a Paper List
Over the past two years, the open-source LLM community has produced technical reports at an extremely high density, spanning general language models, code intelligence, mathematical reasoning, multimodal understanding, formal proofs, and document understanding. Listing them chronologically gives readers a checklist. The more useful approach is to abstract two throughlines:
- Architecture efficiency: under a given compute and memory budget, how to make every parameter and every token more valuable.
- Reasoning capability: how to make a model reliably produce correct solutions on verifiable tasks such as math and code.
These two threads are not independent. Architecture efficiency determines how large a model you can train and how long a context you can use; reasoning capability determines whether parameter scale translates into real task gains. The rest of this article follows three stages: the foundation period, capability specialization, and the reasoning and context leap.
2. Foundation Period: Dense Base Models and a Long-Termist Data Strategy
The core question of the first stage was whether open-source dense models could approach the level of contemporary closed-source models under a reasonable budget. Representative practices included:
- Scale gradient coverage: multiple sizes from 7B to 67B produced from the same training recipe, making it easy to choose by business cost.
- Prioritizing long-term returns from data and recipes: rather than chasing short-term leaderboards, sustained investment in data cleaning, data mixtures, and training stability. This philosophy is usually summarized as “long-termism.”
- Result validation: 67B-class models surpassed same-generation 70B-class dense baselines on code, math, and reasoning tasks, reaching the range of the previous generation’s mainstream closed-source models.
Engineering takeaway: at the base-model stage, the biggest lever is not architecture but data quality and training stability. When building training in-house, prioritize data deduplication, quality scoring, mixture experiments, and loss-curve anomaly monitoring before considering structural innovation.
3. Architecture Efficiency: Two Key Modifications to Mixture of Experts
Mixture of Experts (MoE) is not new in itself. The hard parts are whether experts are genuinely specialized and whether the activation ratio is controllable. Two modifications have been widely adopted:
- Fine-grained expert segmentation: split a few large experts into more small ones, increasing the number of combinations under the same activation budget so that different tokens can be routed to better-matched subspaces.
- Shared expert mechanism: keep a portion of experts that are always activated for every token, carrying common information such as general knowledge and grammar, so routed experts can focus on differentiated capabilities.
A typical configuration has 145B total parameters with only about 28.5% activated per token, with performance on par with same-generation 67B dense models. The cost is higher memory usage and greater pressure from full-parameter synchronization, which requires expert parallelism, communication overlap, and capacity factor tuning.
Illustrative pseudocode (conveying the routing idea only):
# Fine-grained routing + shared experts: conceptual illustrationshared_out = shared_experts(x) # every token passes throughlogits = router(x) # [tokens, num_experts]topk_idx, topk_w = topk_softmax(logits, k=2)routed_out = sum(experts[i](x) * w for i, w in zip(topk_idx, topk_w))y = shared_out + routed_out
Engineering advice: the gains from MoE depend heavily on load balancing loss, routing jitter suppression, and inference-side caching strategies. If idle spinning caused by hot experts is not resolved, the advantage of a low activation ratio will be consumed by communication overhead.
4. Capability Specialization: Code, Math, and Multimodal
- Code models: trained from scratch across sizes from 1.3B to 33B, with 2 trillion pretraining tokens covering 87 programming languages, surpassing contemporary closed-source baselines on benchmarks such as HumanEval. The key lesson is that repository-level context organization (cross-file dependencies, call chains) is more effective than simply piling on more data.
- Math and reinforcement learning: the most influential contribution is Group Relative Policy Optimization (GRPO), which needs no critic. It samples a group of outputs for the same prompt and estimates advantages from relative scores within the group, eliminating the value model and substantially reducing memory requirements and engineering complexity. Its objective can be abstracted as:
A_i = (r_i - mean(r)) / std(r) # within-group relative advantageL = E[ min(ρ_i * A_i, clip(ρ_i, 1-ε, 1+ε) * A_i) ] - β * KL(π || π_ref)
- Multimodal and document understanding: vision-language alignment usually follows the paradigm of “strong vision encoder + lightweight projection layer + language model,” with emphasis on adaptive resolution and the quality of image-text alignment data. Document scenarios additionally stress layout structure, tables, and restoration of reading order.
5. Reasoning and Long Context: From Capability to Usability
On the reasoning side, the engineering loop is “verifiable rewards + sampling budget + distillation”: first use rules or verifiers to provide reliable rewards, then reinforce with GRPO-style algorithms, and finally distill long chain-of-thought capability into smaller models to reduce production costs. On the long-context side, attention compression, position encoding extrapolation, and retrieval hybrids keep million-token scenarios manageable in terms of cost and latency.
6. Deployment Recommendations
To reproduce these capabilities in your own environment, you can compose general cloud components: a container platform to host distributed training and inference, object storage for corpora and checkpoints, a message queue to decouple data pipelines, and logging plus monitoring and alerting to track loss and throughput anomalies. Baidu AI Cloud can provide corresponding infrastructure support in these general categories; refer to the official documentation for specific specifications.
Summary: first solidify data and training stability, then choose a dense or MoE architecture based on cost, then improve reasoning on verifiable tasks with relative policy optimization methods, and finally turn capability into production usability with distillation and long-context techniques.
