GLM-5 Technical Report Breakdown: The Efficiency Path for Open-Source Large Language Models

    This article breaks down the GLM-5 technical report, following its structure: base model design, Multi-head Latent Attention (MLA) with Muon Split, multi-token prediction (MTP), DSA sparse attention, asynchronous agent reinforcement learning, and engineering infrastructure. It notes the strength of evidence behind each point so readers can tell what the report discloses from what is inference, and closes with practical takeaways for developers.

    As large language model competition moves past raw parameter counts, the focus has shifted to improving training efficiency and inference performance under limited compute. The full GLM-5 technical report is now public, and it offers a detailed case study of this shift. This article follows the report’s structure to cover its base model design, attention mechanism, multi-token prediction, agent training framework, and engineering infrastructure. It also notes the evidence strength of each conclusion so readers can separate facts disclosed in the report from inference.

    1. Base Model Design: Parameters and Data Scale Up Together

    GLM-5 uses a Mixture-of-Experts (MoE) architecture. The model contains many expert subnetworks, and a gating mechanism activates only a small subset of experts for each input. As a result, the total parameter count is much larger than the number of parameters used in any single inference pass. This design keeps inference costs manageable while preserving a large knowledge capacity.

    The report gives the following main comparison of parameters and data:

    Metric Previous generation GLM-5
    Total parameters 355B 744B
    Active parameters per inference 32B 40B
    Pretraining data 23T tokens 28.5T tokens

    The 28.5T tokens consist of 27T tokens of pretraining data and 1.5T tokens of mid-training data. Total parameters and active parameters measure different things, so they should not be mixed when comparing model size.

    The report also states that GLM-5 scored 50 on the Artificial Analysis Intelligence Index v4.0, which is a strong result among open-source models. In the text and code arenas on LMArena, the results cited in the report place GLM-5 near the top among open-source models. Rankings change with evaluation versions and newly added models, so readers should check the current data on the official LMArena page before citing them.

    2. MLA and Muon Split: Making the Optimizer and Attention Mechanism Work Together

    GLM-5 adopts MLA (Multi-head Latent Attention), the same approach used in DeepSeek-V3. MLA compresses the dimensionality of the KV cache, which reduces GPU memory use during long-context inference. Compared with standard multi-head attention or grouped-query attention, this design saves more memory on long sequences.

    During training, the team found a problem: when using the Muon optimizer, MLA performed worse than the simpler GQA-8 approach. Muon is an optimizer that accelerates convergence by orthogonalizing its update direction. The report proposes Muon Split, which changes the granularity of orthogonalization. The traditional approach orthogonalizes the entire projection matrix. Muon Split orthogonalizes each attention head separately. According to the report, this adjustment allows Muon and MLA to work together in large-scale training.

    The report’s ablation experiment details need to be checked item by item, so this article only describes the method’s approach and does not cite specific performance gains.

    3. Multi-Token Prediction: Denser Training Signals, with Inference Speedup Requiring Separate Design

    A traditional language model predicts only the next token at each position. Multi-token prediction (MTP) requires the model to predict several subsequent tokens from the same position. This has two effects. First, each position provides more supervision signals, which works like an implicit form of data augmentation. Second, the model must plan further into the future, so it can more readily learn paragraph-level semantic structure. This may help tasks that require global planning, such as code generation and long-document summarization.

    The main value of MTP lies in training. It does not directly speed up inference. Inference acceleration usually depends on additional mechanisms such as speculative decoding, where a prediction head proposes candidate tokens and the main model verifies them. Readers who want speedups in deployment need to evaluate the acceptance rate and actual latency of speculative decoding on their own. MTP used during training should not be equated with faster inference.

    4. DSA Sparse Attention: Using a Small Set of Key Tokens for Long-Context Efficiency

    Standard attention computes the relationship between each token and all preceding tokens, so the computation grows rapidly with sequence length. Sparse attention takes a different approach: each query attends to only a subset of the historical tokens. The DSA (Dynamic Sparse Attention) method in the report decides which tokens to attend to based on content, rather than using a fixed window or fixed pattern.

    The effect of sparsification depends on the selection mechanism itself. Selecting tokens requires extra computation, and that overhead counts toward the total cost. The net benefit therefore depends on whether the selection mechanism is lightweight enough and whether it can accurately find the key information for the target task.

    The report includes one comparison. A DSA model trained on 20B tokens performs close to a Dense model trained on 943.7B tokens on its long-context evaluations. This suggests DSA may have a clear advantage in data efficiency. However, this result applies to specific benchmarks and configurations. Task type, context length, evaluation metrics, and baseline settings all determine how far the conclusion applies. Before applying it to scenarios such as legal document analysis or scientific paper interpretation, teams should retest on their own data.

    5. Agent Training: An Asynchronous Reinforcement Learning Framework

    Agent tasks involve multi-step interaction: planning, calling tools, observing results, and adjusting strategy. In a synchronous reinforcement learning pipeline, the model updates only once after a batch of data is collected. Sampling and training wait for each other, which leaves hardware underutilized.

    The report adopts a fully asynchronous agent RL framework. Data collection and parameter updates are decoupled. Sampling processes run continuously, and the training side keeps consuming new data. This improves throughput but also introduces new engineering challenges. The following risks are common in asynchronous reinforcement learning. Whether the report addresses each one should be confirmed in the original text:

    • Policy lag: The model version used for sampling may be behind the current parameters, which creates a mismatch between the data distribution and the training objective. Common practice is to limit the maximum version gap and add importance sampling corrections to the loss.
    • Data consistency: Task failures, timeouts, or retries can produce duplicate or incomplete trajectories. Teams need to deduplicate by task ID and define whether failed trajectories are used in training.
    • Reward hacking: The model may learn to exploit flaws in the reward function, for example by producing text that appears to complete a task without actually executing it. Results should be verified against objective outcomes in the environment.
    • Environment instability: Occasional simulator errors can corrupt the reward signal, so environments need health checks and isolation.

    Teams that want to adopt this framework should first set monitoring metrics for each risk in a small-scale environment. They should scale up only after those metrics look normal.

    6. Engineering Infrastructure: Unified Scheduling of Rewards, Policies, and Environments

    The report states that the team built its own reinforcement learning infrastructure. It schedules the reward model, policy model, and environment simulator in a unified way and handles large volumes of environment interaction data. This scheduling capability is a prerequisite for the asynchronous framework to run. For most teams, the hard part of reproducing a system like this lies in scheduling and fault tolerance, not in the individual algorithm.

    7. Takeaways for Developers

    • Evaluate efficiency design by total cost. MoE, MLA, and sparse attention each save different parts of the compute. Teams should measure the total benefit on their own workloads.
    • Tune algorithms and engineering together. The Muon Split case shows that compatibility between an optimizer and an attention structure can depend on implementation details.
    • Weigh both benefits and risks in agent training. Asynchronous design improves throughput but also amplifies problems such as data consistency issues and reward exploits.

    The GLM-5 report shows practical architectural and training innovation in open-source models, and it is worth following. Some of its figures depend on specific evaluations and configurations. Before citing them, check the evaluation version, date, and baseline settings in the original report.