TL;DR
GLM-4.5 is a large open language model built to do three things well in one system: use tools and act as an agent, reason through hard problems, and write and repair code. It is a mixture-of-experts model with 355 billion parameters in total, of which 32 billion are used for each token, and a smaller 106-billion-parameter sibling, GLM-4.5-Air. The authors train it in stages on 23 trillion tokens, then post-train it with expert models and reinforcement learning, and report 70.1% on TAU-Bench, 91.0% on AIME 24 and 64.2% on SWE-bench Verified. The model can answer in a slow "thinking" mode or a fast direct mode.
Builds on: Mixture of Experts, Grouped-Query Attention, Rotary Position Embedding, Fine-Tuning, Group Relative Policy Optimization (GRPO), LLM Agent · Leads to: open agentic models that are judged on tool use, repository-level coding and long interactions rather than on single-turn answers
Why it mattered
The paper notes that proprietary models such as o1/o3 and Claude Sonnet 4 had shown strong results in specific areas, while a single open model excelling across all three "has remained elusive." The authors set out to build one open model that is competitive across all three, under the label ARC (agentic, reasoning, coding). Their Figure 1 ranks GLM-4.5 3rd overall and 2nd on agentic benchmarks among the models they evaluated, with GLM-4.5-Air 6th overall, as of July 28, 2025.
The report also matters for how it is built. It documents the full recipe: architecture choices, a data pipeline, a mid-training stage with long context, an RL infrastructure that separates agent rollouts from training, and an agent-specific tool-call template. Model weights for both sizes are released, along with an evaluation toolkit, so other groups can check the numbers.
The problem
A chat model that answers questions is not enough for software work. An agent has to call tools with exact arguments, read long outputs, keep going over many turns, and finish a task that is checked by something outside the conversation, such as a test suite. Each of these needs different training. Reasoning on math problems rewards short, correct answers, while a repository fix may need a model to read tens of thousands of tokens of code and keep its plan across dozens of tool calls.
The engineering problem is also sharp. The paper notes that synchronous RL leads to severe GPU underutilization when agent rollouts take very different amounts of time, because workers wait for the slowest rollout to finish. The paper therefore builds a separate, asynchronous infrastructure for agent RL.
How it works
The pipeline runs in five stages. Each stage hands its model to the next.
- Pre-train a mixture-of-experts base model. The model is trained on web pages, multilingual documents, books, papers and code. A quality classifier up-samples the best web documents, and code is trained with a fill-in-the-middle objective. Pre-training runs at a 4,096-token context.
- Mid-train for reasoning and agents. Four stages follow on medium-sized domain data: repository-level code (4K to 32K tokens), synthetic reasoning traces, and long-context and agent training (32K to 128K tokens), with synthetic agent trajectories added at the last stage.
- Train experts. Three experts are trained, one each for reasoning, agentic tasks and general chat. Each starts from a cold-start supervised stage, then gets its own reinforcement learning.
- Distil the experts into one model. The experts' outputs are distilled into a single hybrid model through supervised training, so that the one model can use thinking or direct answers.
- Run general RL and release. A final general RL stage covers instruction following, function calling, and a pathology step that penalises language mixing, repetition and format errors.
Here is one tiny instance of the core RL signal. Suppose a prompt is sampled four times, with rewards 1, 0, 1, 0. Their mean is 0.5, so the centred rewards are +0.5, -0.5, +0.5, -0.5. Responses above the mean are pushed up and those below it are pushed down, and the centred values sum to zero, so the update does not simply raise all responses.
flowchart LR A["pre-training, 4K context"] --> B["mid-training, up to 128K"] B --> C["expert training: reasoning, agent, chat"] C --> D["distil into one hybrid model"] D --> E["general RL and pathology RL"] E --> F["GLM-4.5 and GLM-4.5-Air"]
The agent setting shows the design most clearly. Each agent task runs in an isolated Docker environment. Rollout engines generate trajectories continuously, training engines update weights and periodically sync them back, and every trajectory from any agent framework is stored in a shared data pool in message-list form. The authors say this lets the same training code handle different agent frameworks.
The math
The paper writes its RL objective in the group form used by GRPO. For a prompt , sample agent traces from the previous policy and form each trace's reward relative to the group mean :
Here is the reward of trace , and the policy update uses only model-generated tokens, with environment feedback masked out of the loss. The paper states that its algorithm builds on GRPO without the KL term. The printed formula is only the centred-reward term. The paper does not write out GRPO's clipped probability ratio, so treat the formula above as the paper's advantage form, not the full update rule.
For the reward on a function call, the paper uses a strict binary rule: if the call is well formed and matches the ground-truth call exactly, and 0 otherwise. For multi-turn tasks the reward is 1 only if the whole trajectory is well formed and the task is completed, judged by the environment or by an LLM judge.
The active-parameter fraction shows what "mixture of experts" buys here. GLM-4.5 uses 32 out of 355 billion parameters per token, about 9%. GLM-4.5-Air uses 12 out of 106 billion, about 11%.
Results
All numbers below are from the paper's text and tables, and most are the authors' own runs.
- Headline. TAU-Bench 70.1 (close to the average of retail 79.7 and airline 60.4 in Table 3), AIME 24 91.0, SWE-bench Verified 64.2, and 37.5 on Terminal-Bench.
- Agentic (Table 3). BFCL V3 77.8 against 72.4 for o3 and 75.2 for Claude Sonnet 4. On BrowseComp, GLM-4.5 scores 26.4 against 49.7 for o3, and the paper says o3 is much better on that benchmark.
- Reasoning (Table 4). GLM-4.5 scores 91.0 on AIME 24 against 90.3 for o3 and 75.7 for Claude Opus 4. It scores 79.1 on GPQA, against 82.7 for o3, and 14.4 on HLE, against 20.0 for o3.
- Coding (Table 5). On SWE-bench Verified, GLM-4.5 scores 64.2, against 69.1 for o3 and 70.4 for Claude Sonnet 4. The paper says it is the best competitor to Claude Sonnet 4 on coding on average.
- Agent coding in practice. On the authors' 52-task CC-Bench, run by human experts with Claude Code, GLM-4.5 wins 40.4%, ties 9.6% and loses 50.0% against Claude Sonnet 4. Its tool-calling success rate is 90.6%, against 89.5% for Claude Sonnet 4.
- Total size (Table 1). GLM-4.5 has 355 billion total parameters, against 671 billion for DeepSeek-V3 and 1,043 billion for Kimi K2. Its 32 billion active parameters are the figure that sets compute per token.
- Translation. On 100 hard cases, blind human scores out of 3 are 1.71 for GLM-4.5 and 0.65 for Seed-X, the best specialized model in the comparison.
- Base model. On the base model, GLM-4.5 is competitive but not first. It scores 86.1 on MMLU and 61.0 on MATH, against 70.2 for Kimi-K2 base on MATH.
Limits, from the paper and its method:
- Most numbers come from the authors' own harness. TAU-Bench uses an optimised user simulator, and SWE-bench uses OpenHands with a fixed iteration budget and temperature 0.6.
- The human-scored comparisons use one evaluator and small samples, such as 52 CC-Bench tasks and 100 translation cases.
- The "3rd overall" ranking depends on the set of models and benchmarks chosen and is a snapshot from July 28, 2025.
- The paper shows several ablations on smaller models, not on GLM-4.5 itself, and says so. The curriculum and loss-choice results are from those experiments.
- The paper reports the safety score on SafetyBench at 89.9 overall and notes weaker results on unfairness and bias (77.4), which it calls an area of ongoing focus.
Reading guide
- Section 1, Introduction. Needs Mixture of Experts and LLM Agent. Read it for the ARC framing and the bullet list of headline numbers.
- Section 2.1, Architecture. Needs Mixture of Experts, Grouped-Query Attention, Rotary Position Embedding and RMS Normalization. Table 1 compares the architecture with DeepSeek-V3 and Kimi K2. Speculative Decoding explains why the MTP layer helps.
- Section 2.2 and 2.3, Pre-training and mid-training. Needs Transformer, Language Model and Instruction Tuning for the post-training that follows.
- Section 2.4, Hyper-parameters. Needs Muon Optimizer, which the paper uses for all parameters except embeddings, biases and RMSNorm weights.
- Section 3.1, Supervised fine-tuning. Needs Fine-Tuning, Chain-of-Thought Prompting and Knowledge Distillation.
- Section 3.2, Reasoning RL. Needs Reinforcement Learning, Policy Gradient, Group Relative Policy Optimization (GRPO) and Curriculum Learning.
- Section 3.3, Agentic RL. Needs Tool Use, Reward Model and LLM Agent.
- Section 3.4 and 3.5, General RL and infrastructure. Needs Reinforcement Learning from Human Feedback (RLHF) and AI Alignment for the human-feedback part.
- Section 3.3.2, Scaling test-time compute via interaction turns. Figure 8 shows BrowseComp accuracy rising with browsing effort. The idea is related to Scaling LLM Test-Time Compute Optimally.
- Section 4, Evaluation. Needs LLM-as-a-Judge for the model-based scoring.
For the comparison models, read DeepSeek-V3 Technical Report, DeepSeek-R1: Incentivizing Reasoning in LLMs through Reinforcement Learning, Kimi K2: Open Agentic Intelligence and Qwen3 Technical Report next.
Check yourself
QuestionGLM-4.5 has 355 billion total parameters and 32 billion active per token. What fraction is active, and why does that matter for serving the model?Show answer
The active fraction is 32 divided by 355, about 9%. Only the active experts run for each token, so compute per token is closer to a 32-billion-parameter dense model than to a 355-billion-parameter one. The full set of weights still has to be stored, so memory cost is set by the total.
QuestionFour responses to one prompt get rewards 1, 1, 0, 0. What are the centred rewards that enter the paper's advantage form, and what do they sum to?Show answer
The mean is 0.5, so the centred rewards are +0.5, +0.5, -0.5, -0.5. They sum to zero, so the update pushes up the two correct responses and pushes down the two incorrect ones, with no net shift for the whole group.
QuestionThe paper reports that a single-stage RL run at the full 64K output length beat a multi-stage run with increasing lengths. Why does the paper give for this?Show answer
The supervised fine-tuning already conditions the model to produce 64K-length responses. Running RL with shorter maximum lengths first can make the model unlearn its long-context ability, which causes a significant and irreversible drop in performance that the final 64K stage cannot recover. The paper's evidence for this is the single-stage versus multi-stage comparison in Figure 6.
QuestionOn SWE-bench Verified, GLM-4.5 scores 64.2 and Claude Sonnet 4 scores 70.4 in the paper's Table 5. Why might a reader still say GLM-4.5 is competitive on coding, and what should they check before relying on the comparison?Show answer
The paper's own ranking puts GLM-4.5 close to Claude Sonnet 4 on coding, and it wins on Terminal-Bench against Sonnet 4 in the same table (37.5 against 35.5). A reader should check that the comparison uses the same agent framework and budget: the paper runs OpenHands v0.34.0 with up to 100 iterations and a 128K context for its own model, and the text does not say whether the Claude numbers were rerun under the same settings.
Sources
- Zeng et al. (GLM-4.5 Team), "GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models," arXiv:2508.06471, 2025. arxiv.org/abs/2508.06471
- Code and model release: github.com/zai-org/GLM-4.5
- Evaluation toolkit: github.com/zai-org/glm-simple-evals