Large Model Technology Evolution: From General-Purpose Models to Reasoning Innovation

    This article reviews a chronological line of technical work on large models, from building reliable general-purpose foundations to lowering compute costs through architecture changes and improving reasoning with reinforcement learning. It summarizes the core problems, technical approaches, and engineering takeaways across dense language models, fine-grained and shared-expert MoE, code-focused pretraining, and GRPO for mathematical reasoning.

    Introduction: Why Read These Works Along a Timeline

    Since 2024, a Chinese AI research team has released multiple technical reports in quick succession. They cover general language models, code generation, mathematical reasoning, multimodal understanding, formal proof, and document understanding. Reading these works in chronological order reveals a clear main thread: first build a strong foundation with reliable training methods, then reduce compute cost through architecture changes, and finally improve reasoning ability with reinforcement learning.

    This article follows that thread and analyzes the core problem each work addresses, the technical path it adopts, and its reference value for engineering practice.

    I. Foundation Stage (January–May 2024)

    1.1 General Language Models: Treating Training Strategy as Long-Term Engineering

    Early work trained dense language models with parameters ranging from 7B to 67B, using a pretraining data scale of about 2 trillion tokens. The report proposed a “long-termism” training philosophy: rather than chasing a particular short-term benchmark score, it is better to focus on data cleaning, deduplication, data mixing, and training stability. Such investments are not easy to see in short-term metrics, but their returns continue to amplify at larger scale and over longer training cycles.

    The original material mentions that the larger models surpassed open-source 70B-level models of the same period on code, math, and reasoning tasks, and approached the level of mainstream closed-source models at the time. For engineering teams, this suggests that under a limited budget, the return on investment from data quality and training methods is often higher than simply increasing parameter count.

    1.2 Mixture of Experts Architecture: Fine-Grained Experts and Shared Experts

    The basic idea of Mixture of Experts (MoE) is that the model contains multiple feed-forward subnetworks, namely experts. The router selects a small number of experts for each token to participate in computation. In this way, the total parameter count of the model can be large, while each forward pass activates only a subset of the parameters.

    Traditional MoE usually uses a small number of large experts, which brings two problems. First, multiple experts all need to learn general syntax and common sense, causing knowledge to be stored repeatedly and creating parameter redundancy. Second, the number of routing combinations is limited, making it difficult for experts to form sufficiently clear specialization.

    The work provides corresponding improvements for these two problems:

    • Fine-grained expert segmentation: Split experts into smaller ones and increase the number of experts activated per token. In this way, a token can combine more diverse expert subsets, and the degree of specialization increases accordingly.
    • Shared experts: Set up a group of experts that are always activated for all tokens, specifically carrying general knowledge so that routed experts can focus more on specific domains.

    The original material reports that the model has about 145B total parameters, activates only about 28.5% of parameters per token, and achieves performance comparable to dense models of the same scale. This activation ratio is a result under this configuration and should not be directly extrapolated to other models.

    Below is an illustrative code snippet showing how shared experts and routed experts are combined (training details such as load-balancing loss are omitted):

    1. import torch
    2. def moe_forward(x, shared_experts, routed_experts, router, top_k=4):
    3. # Shared experts: every token passes through them
    4. out = sum(expert(x) for expert in shared_experts)
    5. # Routed experts: each token selects only top_k experts
    6. scores = router(x).softmax(dim=-1) # [tokens, num_experts]
    7. weights, idx = scores.topk(top_k, dim=-1)
    8. for k in range(top_k):
    9. for e_id, expert in enumerate(routed_experts):
    10. mask = idx[:, k] == e_id
    11. if mask.any():
    12. out[mask] += weights[mask, k, None] * expert(x[mask])
    13. return out

    In actual training, a load-balancing constraint also needs to be introduced. Otherwise, the router may concentrate most tokens on a few experts, leaving the remaining experts undertrained. This phenomenon is usually called expert collapse.

    1.3 Code Models: Code Corpus Training from Scratch

    The code-oriented model series covers about 1.3B to 33B parameters and is pretrained on about 2 trillion tokens of code-related data, involving 87 programming languages. Compared with fine-tuning on a general model, pretraining from scratch allows the model to be exposed to a large amount of code structure early in training, such as syntax constraints, indentation rules, and library call patterns.

    During evaluation, code generation quality is usually measured by the pass rate of function-level unit tests. A common metric is pass@k, that is, the probability that at least one of k samples passes the tests. When comparing different models, one should confirm whether the evaluation protocol, sampling temperature, and test set version are consistent.

    1.4 Mathematical Reasoning and GRPO Reinforcement Learning

    The core difficulty of mathematical reasoning is that the model needs to generate a complete and verifiable reasoning process, not just a seemingly reasonable answer. Such tasks are naturally suitable for reinforcement learning training, because whether an answer is correct can usually be automatically determined by rules.

    Traditional Proximal Policy Optimization (PPO) requires maintaining two models at the same time: the policy model (actor) and the value model (critic). The value model is used to estimate the expected return of each state in order to compute the advantage function. For large language models, the value model is usually comparable in scale to the policy model, and both memory and compute overhead are large.

    The idea of GRPO (Group Relative Policy Optimization) is to remove the value model and instead use intra-group relative comparison to estimate the advantage. The specific approach is as follows:

    1. For the same prompt, sample G outputs o_1 to o_G from the current policy.
    2. Use the reward function to score each output, obtaining r_1 to r_G.
    3. Compute the group-normalized advantage: A_i = (r_i − mean(r)) / std(r).
    4. Update the policy with a PPO-like clipped objective.