Four Technical Mainlines Driving the Evolution of Open-Source LLMs

    This article breaks down the evolution of open-source large language models through four interwoven technical threads: Data Scaling, Architecture Scaling and efficiency optimization, post-training paradigm upgrades, and Environment Scaling with agentification. It examines how each dimension works, from multi-stage pre-training, synthetic data, and deduplication pipelines, to GQA, Dense and MoE architectures, DPO- and GRPO-style reinforcement learning, outcome-based rewards, and Thinking Budget, and how they jointly push general capability, reasoning, and real-task execution under compute and cost constraints. It closes with practical takeaways for developers and enterprises on data engineering, architecture selection, staged post-training, agent training, and cloud infrastructure choices.

    Introduction: From “Parameter Stacking” to Multi-Dimensional Scaling

    Over the past two years, open-source large language models have iterated faster than ever. On the surface it looks like nothing more than version numbers climbing, but if you focus only on “more parameters, higher benchmark scores,” you can easily miss the real technical threads. Beyond the fog of version numbers, a clear evolution line can be summarized as four interwoven dimensions: Data Scaling, Architecture Scaling and Efficiency Optimization, Post-Training Paradigm Upgrades, and Environment Scaling with Agentification.

    These four threads are not isolated. They all serve a single goal: maximizing a model’s general capability, reasoning ability, and real-task execution under limited compute and cost constraints. This article unpacks them layer by layer from a neutral technical perspective, to help you build a systematic understanding of how open-source LLMs are evolving.

    1. Data Scaling: Scale and Quality as Twin Engines

    1.1 Continued Expansion of Token Scale

    The scale of pre-training tokens is the first-principle source of model capability. The overall industry trend is that pre-training corpora have grown from the early trillion-token level to the tens-of-trillions level. But it is worth stressing that data scale expansion must obey the objective law of the “data wall”: the stock of high-quality public text is finite, and blindly piling on volume brings diminishing or even negative returns. Scale growth must therefore move in step with quality improvement, which is where the real difficulty of Data Scaling lies.

    1.2 Multi-Stage Pre-Training

    A single one-shot large-scale pre-training run struggles to balance general capability, domain expertise, and long-context ability. The multi-stage strategy widely adopted in the industry is:

    • General stage: build a solid foundation of language and world knowledge using large-scale, diverse corpora of web pages, encyclopedias, books, code, and more;
    • Annealing / high-quality stage (mid-training): gradually raise the sampling ratio of high-quality, domain-specific, and long-context data in the later phase to strengthen targeted capabilities;
    • Long-context extension stage: continue training on long-sequence samples to extend the effective context window from thousands of tokens to hundreds of thousands.

    This “broad first, precise later” curriculum lets the same corpus deliver different value at different stages, significantly improving token-level efficiency.

    1.3 High-Quality Synthetic Data

    When high-quality real corpora approach exhaustion, synthetic data becomes a key supplement. Common approaches include:

    • Using a stronger model to generate math, code, and logical-reasoning samples that come with standard or verifiable answers;
    • Automatically rewriting long documents into question-answer pairs, summaries, and instruction-following samples;
    • Removing low-quality synthetic samples via consistency filtering, answer verification, and rule-based validation.

    The core value of synthetic data lies in its controllability and verifiability, allowing you to construct data aimed at a model’s weak capabilities. However, you must guard against the risk of “model collapse,” where repeatedly training on the model’s own outputs erodes diversity. For this reason, it must be paired with strict filtering and an appropriate mix of real data.

    1.4 Data Cleaning and Deduplication Engineering

    The quality of the data pipeline directly determines the model’s ceiling. A mature cleaning workflow typically includes:

    1. 1. Language identification -> sample by target language/dialect distribution
    2. 2. Normalize, then exact-match deduplication
    3. 3. Fuzzy deduplication (MinHash + LSH approximate dedup)
    4. 4. Rule filtering (length, symbol ratio, garbled-text detection)
    5. 5. Classifier-based quality scoring filter
    6. 6. Targeted upsampling of high-quality sources

    Among these, MinHash + Locality-Sensitive Hashing (LSH) is the classic solution for large-scale near-duplicate detection. It can find highly similar samples across massive document sets in near-linear complexity, helping avoid both “evaluation data leakage” and training redundancy.

    2. Architecture Scaling and Efficiency Optimization: Balancing Compute and Expressiveness

    2.1 From Standard Dense to GQA

    Early models commonly used standard multi-head attention (MHA), which requires caching all Key/Value tensors at inference time. As a result, KV Cache memory grows linearly with concurrency and context length. Grouped-Query Attention (GQA) lets multiple query heads share one group of KV heads, sharply compressing the KV Cache with almost no loss in quality, and it has become a standard feature of modern models. The intuition can be captured as:

    1. KV heads = Query heads / group_size
    2. # A larger group_size means a smaller KV Cache but slightly lower expressiveness
    3. # Engineering requires a tradeoff among memory, throughput, and quality

    2.2 The Dual Routes of Dense and MoE

    Model architectures have gradually split into two mainstream routes:

    • Dense route: every token activates all parameters, with stable training and inference behavior and easy deployment, well suited to small-to-medium scale and edge scenarios;
    • MoE (Mixture-of-Experts) route: the feed-forward layer is split into multiple experts, and each token is routed to activate only a few of them (for example, “A3B” denotes a 30B total-parameter model that activates only about 3B parameters per token).

    The key advantage of MoE is trading total parameters for knowledge capacity while using sparse activation to control inference cost. A schematic routing logic looks like this:

    1. # Conceptual: token-level Top-K expert routing
    2. logits = gate_linear(hidden) # compute a score for each expert
    3. topk_idx, topk_val = logits.topk(k) # select the Top-K experts
    4. weights = softmax(topk_val) # normalize into routing weights
    5. output = sum(weights[i] * experts[topk_idx[i]](hidden))

    The engineering challenges of MoE lie in load balancing (avoiding over-routing to a few experts), communication overhead (expert parallelism in distributed settings), and training stability. These are the areas that must be handled carefully in production.

    2.3 Hybrid Attention and High-Sparsity MoE

    To further reduce the cost of long-sequence computation, the industry is beginning to explore Hybrid Attention architectures: alternating linear-complexity attention variants (such as Gated DeltaNet) with gated full attention (Gated Attention) across layers. Linear attention handles long-range information at low cost, while full attention provides precise modeling at key positions, balancing long-context efficiency and expressiveness. At the same time, MoE is moving toward higher sparsity, pursuing an extreme balance between parameter capacity and inference cost through “larger total parameters + lower activation ratio.”

    3. Post-Training Paradigm Upgrades: From Alignment to Reasoning Shaping

    3.1 From “Small-Scale SFT + RLHF” to “Large-Scale SFT”

    Post-training is what turns a base model into a usable assistant. The early paradigm centered on small-to-medium-scale supervised fine-tuning (SFT) plus reinforcement learning from human feedback (RLHF). As capability demands rose, the industry shifted to large-scale, diverse instruction tuning (with data volumes reaching the millions of samples), covering a broad range of tasks such as instruction following, code, math, multi-turn dialogue, and agents, followed by finer-grained preference alignment.

    3.2 Multi-Stage RL and Preference Optimization

    A mature post-training pipeline often combines multiple reinforcement-learning stages:

    • Offline preference optimization (e.g., DPO-style methods): directly optimize on paired preference data with no online sampling, giving stable, low-cost training that suits fast alignment;
    • Online policy optimization (e.g., GRPO-style methods): continuously explore through a sample-reward-update loop that can break past the coverage limits of offline data, at the cost of higher engineering complexity.

    The defining feature of GRPO (Group Relative Policy Optimization)-style methods is replacing the value network (critic) with group-relative advantages, which lowers memory usage and implementation complexity, as sketched below:

    1. Sample G responses for the same prompt
    2. -> Compute a reward r_i for each response
    3. -> Normalize within the group to get advantage A_i = (r_i - mean) / std
    4. -> Use A_i as the policy-gradient weight to update the model

    3.3 Outcome-Based Reinforcement Learning

    In domains where results are verifiable, such as math and code, outcome-based reinforcement learning is especially effective: rules, unit tests, or standard answers automatically judge whether a response is correct, and the verification result serves as the reward signal, sidestepping the difficulty of training a reward model. This automatable reward is one of the core drivers behind the rapid gains in math reasoning and coding ability.

    3.4 Unifying Thinking / Non-Thinking and the Thinking Budget

    Reasoning enhancement brings a practical problem: not every request needs long chains of thought, and forcing deep thinking on a simple Q&A wastes compute. To address this, the industry has gradually unified Thinking and Non-Thinking modes, so that a single model can answer directly and quickly, or expand into explicit reasoning when needed. Going further, a Thinking Budget parameter caps token consumption during the reasoning phase, enabling “dynamic allocation of inference compute by difficulty” and a flexible tradeoff among quality, latency, and cost.

    4. Environment Scaling and Agentification: From Generation to Execution

    4.1 From Code Generation to Agentic Coding

    Model capability evaluation is shifting from “generate a piece of correct code” to “complete a real development task.” Agentic Coding demands that the model possess multi-step planning, tool calling, file reading and writing, command execution, and self-correction based on feedback. This marks a shift in evaluation focus from single-output quality to long-horizon task completion.

    4.2 Large-Scale Parallel Sandboxes and Long-Horizon Agent RL

    Training execution-capable models requires massive, rollback-able, isolated runtime environments. A typical approach is to build large-scale parallel execution sandboxes, letting the model trial-and-error in a real but controlled environment, and to optimize multi-step decisions via long-horizon agent reinforcement learning (long-horizon agent RL). The loop can be abstracted as:

    1. Observe -> Plan -> Act (call tools / run commands)
    2. -> Observe the execution result -> Reflect -> correct the next step -> ... until the task is done

    The reward usually comes from whether the task is achieved (for example, whether all unit tests pass), which follows the same line of thought as outcome-based RL.

    4.3 Language World Models to Lower Sampling Cost

    The biggest bottleneck of online agent RL is that “environment feedback is expensive”; the sampling throughput and cost of real execution sandboxes are both high. A frontier idea is to introduce a Language World Model, using the model itself to simulate “what the environment will return after a given action,” so that large numbers of training trajectories can be generated cheaply in a virtual environment, reducing dependence on real sandboxes. This is also an important direction for multimodal collaboration (Cowork) scenarios, where the model needs to understand image, text, and interface feedback and interact with them.

    5. Practical Takeaways for Developers and Enterprises

    Synthesizing the four threads above, here are a few recommendations for real-world adoption:

    • Data is the root; prioritize quality: rather than blindly chasing token scale, build a reusable pipeline for cleaning, deduplication, quality scoring, and synthetic-data filtering, and guard strictly against evaluation data leakage;
    • Choose the architecture by scenario: for low latency and edge deployment, favor GQA plus a small-to-medium Dense model; only evaluate the MoE route when you need large knowledge capacity and can bear the engineering complexity;
    • Advance post-training in stages: start with DPO-style offline methods for fast alignment, then use GRPO-style online methods with verifiable rewards (outcome-based RL) to tackle hard capabilities like math and code, and use a Thinking Budget to control inference cost;
    • Agent capabilities are fed by the environment: if your goal is an agent application, plan the sandbox, tool-calling protocol, and long-horizon RL environment ahead of time; when sampling cost is sensitive, evaluate simulated approaches such as language world models;
    • Make good use of general cloud capabilities: object storage (for corpora and weights), container platforms (for distributed training and sandboxes), message queues (to decouple data flows), and logging, monitoring, and alerting (to track training stability) can all be combined on demand from general cloud infrastructure, for example by using the general IaaS and PaaS capabilities offered by cloud platforms such as Baidu AI Cloud to build elastic training and inference environments.

    Conclusion

    The rapid evolution of open-source LLMs is, at its core, a systematic engineering optimization across four dimensions: data, architecture, post-training, and environment. Understanding the internal logic and mutual tradeoffs of these four threads is more valuable than memorizing the benchmark scores of any specific version. For developers, the real opportunity lies not in chasing every version number, but in turning data engineering, architecture selection, alignment training, and agentification into reusable methodology, so as to continuously secure reliable returns in your own business scenarios.