Skip to content

GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models

optionalextendedfrontierpaperrubric 7/122025 · ~30 min

GLM-4.5 Team (Aohan Zeng, Xin Lv, Qinkai Zheng, et al.)

Status

TL;DR. GLM-4.5 (355B total, 32B active) and GLM-4.5-Air (106B, 12B active) are open MoE models with hybrid reasoning: thinking and direct-answer modes. Trained on 23T tokens, GLM-4.5 scores 70.1% on TAU-Bench, 91.0% on AIME 24 and 64.2% on SWE-bench Verified. It ranks 3rd overall and 2nd on agentic tasks (behind o3) among the models the authors evaluated.

Take the DeepSeek-V3 MoE recipe, but go deeper and narrower, and train with Muon. Width shrinks (hidden 5,120, 160 experts, 8 routed + 1 shared) and depth grows (92 layers). Attention uses GQA with 96 query heads, 8 KV heads, partial RoPE and QK-Norm. One MoE layer is kept as an MTP head for speculative decoding.

Results and discussion. GLM-4.5 beats GPT-4.1 and Gemini-2.5-Pro on SWE-bench Verified. GLM-4.5-Air matches or exceeds Qwen3-235B-A22B at the 100B scale. What transferred: it confirms that Muon works at 355B and 23T tokens in a second lab after Kimi K2, and that DeepSeek-V3’s routing and MTP carry over to a different shape. slime is released as an open RL framework. The report does not give training precision for pre-training or total GPU hours.

From Sections 3.2–3.5 of the report.

  • Expert iteration. Three expert models are trained first: Reasoning, Agent and General chat. They are then merged into one hybrid-reasoning model by unified SFT and self-distillation.
  • Reasoning RL. The algorithm is GRPO without the KL term. Four findings, each shown on a smaller experimental model:
    • Two-stage difficulty curriculum. Stage 2 switches to extremely hard problems (pass@8 = 0 but pass@512 > 0). Training keeps improving, whereas a baseline that stays on moderate problems plateaus.
    • Output length. Single-stage RL at 64K output length beat progressively increasing lengths, which suffered an irreversible early drop.
    • Dynamic sampling temperature. The temperature adapts as the policy’s entropy falls.
    • Code loss. A token-weighted mean loss converges faster than a sequence-mean loss.
  • Agentic RL (search and SWE).
    • Data. Search QA is synthesized by multi-hop reasoning over knowledge graphs, plus human-in-the-loop obfuscation of web content. SWE tasks come with verifiable test cases.
    • Reward. Final-answer accuracy is the reward for the whole trace. A process format penalty halts any trace with a malformed tool call and gives it zero reward.
    • Iterative self-distillation. Run RL, replace the cold-start SFT data with the RL model’s responses, retrain SFT, and resume RL on harder tasks.
    • Turn scaling. BrowseComp accuracy scales smoothly with interaction turns, which is test-time compute spent on actions rather than thinking tokens.
    • Transfer. RL on search and SWE also improved general tool use and Terminal-Bench.
  • General RL.
    • About 5,000 prompts spanning 7 / 33 / 139 categories.
    • Instruction-following RL over 7 major and 151 minor constraint types.
    • Function calling: step-wise rule-based RL on annotated ground-truth calls, plus end-to-end multi-turn RL through experts that are then distilled.
    • A final pathology RL stage targets rare failures (language mixing, repetition, formatting), which often appear in under 1% of outputs.
  • slime infrastructure. A colocated synchronous mode is used for reasoning RL. A disaggregated asynchronous mode is used for long agentic rollouts, such as SWE. Rollouts run in block-wise FP8 while training stays in BF16.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    From Table 1 (hidden 5,120; 3 dense + 89 MoE layers + 1 MTP layer; 160 routed experts of intermediate dim 1,536, 8 active, 1 shared; 96 query heads and 8 KV heads of dim 128; dense FFN dim 12,288), reconstruct the 355B total and 32B active parameters, excluding embeddings.

    What a strong answer covers
    • One SwiGLU expert is 3 × 5,120 × 1,536 ≈ 23.6M parameters; 161 experts per MoE layer ≈ 3.8B.
    • Attention per layer: Q and O are 2 × 5,120 × 12,288 ≈ 126M, K and V are 2 × 5,120 × 1,024 ≈ 10.5M, so about 136M.
    • Total ≈ 89 × (3.8B + 0.14B) + 3 dense layers (≈ 0.6B) + the MTP MoE layer (≈ 3.9B) ≈ 355B; routed experts alone are about 336B.
    • Active ≈ 90 layers × (9 experts × 23.6M + 136M) + 0.6B ≈ 32B, so attention (about 12.5B) is over a third of active compute.
    • Having 96 heads (12,288 query dims) on a 5,120-wide model makes attention unusually heavy, a deliberate trade the authors justify by reasoning gains.
  2. What if…

    The report makes several recipe choices backed by internal comparisons: cosine vs. WSD learning rate, single-stage vs. multi-stage RL output length, and more vs. fewer attention heads. State each finding and the evidence given.

    What a strong answer covers
    • Cosine decay beat warmup-stable-decay: WSD models did worse on SimpleQA and MMLU, which the authors read as underfitting in the stable stage.
    • Single-stage RL at 64K output length beat progressively increasing lengths, which suffered an irreversible early drop (Fig. 6).
    • 2.5× more heads (96 for a 5,120 hidden dim) did not lower training loss but consistently improved MMLU and BBH.
    • These are single-lab comparisons at fixed budgets, so they show what worked here, not general laws.
  3. Connect

    GLM-4.5 uses Muon, loss-free balance routing with sigmoid gates, and an MTP layer. Trace where each comes from and what GLM-4.5 changed relative to DeepSeek-V3 and Kimi K2.

    What a strong answer covers
    • Loss-free balancing, sigmoid gates and MTP come from DeepSeek-V3; GLM keeps a tiny sequence-level auxiliary loss (weight 0.0001) and freezes the bias update after 15T tokens.
    • Muon (Newton–Schulz 5 steps, momentum 0.95, update RMS 0.2) follows Moonlight and Kimi K2, applied to all matrices except embeddings, biases and RMSNorm weights.
    • Unlike V3 (61 layers, 256 experts) and K2 (61 layers, 384 experts), GLM-4.5 is deeper (92 layers) and narrower (5,120 hidden, 160 experts), since deeper models reasoned better.
    • It uses GQA with partial RoPE and QK-Norm instead of MLA.

Done with this page?

Status