GLM-5.4 vs 5.3: 7 tests, one real difference

GLM-5.4 vs GLM-5.3 measured across seven task types
この記事は約16分で読めます。

GLM-5.4 is already available if you pay for GLM Coding Plan.

  • It launched on 2026-11-23 and is open to every Coding Plan subscriber
  • It adds a 1M-token context window and image input
  • It burns 1.5x the quota of GLM-5.3

There is one problem. Z.ai has not published a benchmark table for GLM-5.4. So there is no published number to tell you whether it beats 5.3.

This post measures both models on seven task types and shows where the gap actually is.

Key Takeaways

  • Easy work shows zero difference. Code generation scored 167/168 for both; bug fixing scored 84/84 for both
  • The gap is on hard problem tasks. GLM-5.3 timed out on all 3 runs of one, even with a 900-second limit; GLM-5.4 finished all 3 in 216-341 seconds
  • Long context alone showed no gap. Both models scored 18/18 at 50k, 200k, 500k, and 800k tokens
  • Adding a filter changed that. On a filtered aggregation task, 5.3 counted decoys twice out of 21 runs; 5.4 never did
  • Cost goes down on normal work. On easy and medium tasks 5.4 uses 0.55x the output tokens, which is 0.83x after the 1.5x quota multiplier. It only gets expensive on hard problem tasks

The short version: no difference on easy work

We machine-scored 333 cells with no LLM judge. Here is the summary.

Task type5.35.4Gap
Write code from a spec167/168167/168none
Fix a bug84/8484/84none
Fix a bug in a real repo12/1212/12none
Find facts in long text72/7272/72none
Judge code as buggy or correct46/4848/48small
Solve a hard problem task in time6/99/9yes
Aggregate long text under a filter2 false positives0yes

The advantage of 5.4 is not general intelligence. It shows up in two places only: staying with a hard problem task, and keeping a condition in mind.

What is new in GLM-5.4

Summary of the official blog post.

ItemValue
ArchitectureLoop Transformer
MechanismMiddle 28 layers run twice
Parameters~750B
Context window1M tokens
Max output128K tokens
Speedup to 200 tok/s off-peak

Running layers twice deepens reasoning without adding parameters. Z.ai claims this reaches "intelligence comparable to 2T-3T models."

There is no official benchmark table

That is where this post started.

ItemStatus
Benchmark table for 5.4none
Published numbersa 30B ablation only
Win rate vs 5.351.1% win / 25.7% tie / 23.1% loss
How that was measurednot disclosed
Pay-as-you-go APInot open yet (pending safety review)
Model weightsnot released

On the 30B model, AIME25 improved from 19.17 to 30.42. That is not a number for the 750B GLM-5.4. A 51% win rate is also close to a coin flip.

First, confirm it works on Coding Plan

We called the API instead of guessing.

curl -s -X POST https://api.z.ai/api/coding/paas/v4/chat/completions \
  -H "Authorization: Bearer $ZAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.4","messages":[{"role":"user","content":"Reply OK"}],"max_tokens":32}'
HTTP/2 200
{"choices":[{"message":{"content":"CODINGPLAN_OK"}}],"model":"glm-5.4"}
CheckResult
Listed in the model catalogyes (created 2026-11-23)
Returns inferenceyes, 200
Thinking mode worksyes, reasoning is returned
Standard pay-as-you-go API429, insufficient balance
Coding Plan endpoint200, success

The same API key works only on the Coding Plan endpoint. That matches the official note that the Model API is not open yet.

Method: seven task types, no LLM judge

LLM judges introduce position and self-preference bias. We scored every task programmatically instead.

AxisWhat it asksScoring
AWrite code from a spec7-8 hidden tests
BFix a bug given a failing test4-5 hidden tests
CJudge a claim as buggy or correctexact line match
ESolve a hard problem task in timecompletion and wall time
FFix a bug in a real repothe repo’s own test suite
GFind facts in long textneedle string match
G2Aggregate long text under a filtercount, sum, max

Conditions were identical across all axes.

SettingValue
Thinking levelhigh, fixed
Toolsdisabled (enabled on F only)
Repetitions3 per cell (2 on F)
Timeout420 seconds

Where there was no difference

Code generation is a tie

We gave seven specs and scored against hidden tests. The tests cover edge cases, self-loops, and lexicographic ordering.

Metric5.35.4
Score167/168167/168
Mean reasoning tokens2,7831,533

Both are near perfect. Code quality does not separate them.

Bug fixing is a tie

We injected a single-line bug and asked each model to fix it. Both fixed all six cases perfectly.

Metric5.35.4
Score84/8484/84
Mean reasoning tokens1,412390

Real-repo repair is a tie

We injected six test-breaking bugs into tomli, a real TOML parser with 801 lines. Both models ran as agents with read, bash, edit, grep, and find available.

Metric5.35.4
Bugs fixed12/1212/12
Tests modified00
Mean turns11.29.3
Mean tool calls12.210.3
Lines changed2.02.0

Both were perfect with no test tampering. The only gap is that 5.4 needs fewer steps.

Where the gap showed up

5.3 does not return on hard problem tasks

We gave one hard math problem with a 420-second limit.

ModelResultWall time
5.3no response, 3 of 3 runskilled at 420s
5.4correct, 3 of 3 runs216-341s

5.3 also failed to return when we raised the limit to 900 seconds. It is not stopping to think; it never finishes.

5.4 follows output format better

We gave each model code plus a claim and asked for a one-line verdict.

ModelScoreDetail
5.346/48correct content, wrong format twice
5.448/48all as specified

5.3 wrote 判定: where VERDICT: was required. The content was right, so this is really an instruction-retention gap.

Long context alone showed no gap

We scattered five facts through 50k to 800k tokens of text. Token counts come from the API response, not from an estimate.

Context5.35.4
50k18/1818/18
200k18/1818/18
500k18/1818/18
800k18/1818/18

Both models found all five facts at every position, including 800k.

Plain retrieval does not separate them.

A filtered aggregation did separate them

Retrieval was saturated, so we required filtering. The document holds 12 genuine invoices and 12 decoys.

Decoy typeWhy it must be excluded
REJECTEDnot approved
DRAFTnot approved
USD-denominatedwrong currency
INVOICE-ARCHIVEdoes not start with the required prefix

We asked for the count, sum, and max of the qualifying rows only.

Context5.35.4
100k6/66/6
500k8/98/8
800k5/66/6

5.3 counted decoys as genuine in 2 of 21 runs. 5.4 never did in 20 runs.

ContextWhat 5.3 answeredReasoning tokens spent
500kcount 13, sum 13549 (correct: 12, 12345)9,576
800kcount 13, sum 12904 (correct: 12, 12345)23,842

In both cases 5.3 dropped the "line must start with INVOICE" condition.

5.4 never dropped it.

The 800k failure spent 23,842 reasoning tokens before answering wrong. Thinking longer did not move it toward the right answer.

Which one to pick

Use caseRecommendation
Everyday coding and fixes5.4 (same quality, 17% cheaper)
Hard problem tasks5.4 (5.3 does not finish)
Filtering large document sets5.4
Plain long-text retrieval and summaryeither (no difference)

On current data, 5.4 wins more often than not. It matches 5.3 on quality, costs less on normal work, and finishes the hard cases.

Cost goes down on normal work

Your instinct here matters, so we re-cut the numbers by task type. output_tok already includes reasoning tokens, and we confirmed the cost formula matches exactly.

Task type5.35.4Ratio (after 1.5x quota)
A: write code from a spec3,0621,7990.59 (0.88)
B: fix a bug1,5235010.33 (0.49)
C: judge a claim2,1421,3350.62 (0.93)
E: hard problem task3,53310,5993.00 (4.50)

Across A, B, and C combined, 5.3 used 143,131 output tokens and 5.4 used 78,834. That is 0.55x before the quota multiplier and 0.83x after it.

On easy and medium work, GLM-5.4 is about 17% cheaper. It writes shorter reasoning, so it saves more than the 1.5x quota costs.

Cost ratio by task type with 5.3 at 1.00: A=0.88, B=0.49, C=0.93, E=4.50

The exception is hard problem tasks, where 5.4 spends about 3x the tokens. But 5.3 did not return at all on those, so the comparison is not really price against price. You are choosing between "expensive and finished" and "cheap and unfinished."

Item5.35.4
Total output tokens, all 72 cells164,329174,225
API billing$0.583not published ($0 returned)
Coding Plan quota1x1.5x

The all-cell totals look similar only because 5.3’s timeouts recorded no tokens. Read the per-task-type table above instead.

Summary

  • 5.4 works on Coding Plan today; it is not available on pay-as-you-go
  • Easy code generation, bug fixing, and long-text retrieval cannot tell the two apart
  • The gap is limited to hard problem tasks and condition-keeping during aggregation
  • The "marathon thinking" the vendor warns about showed up on 5.3 in our run, not on 5.4
  • Cost is about 0.83x on normal work once you include the 1.5x quota; 5.4 is cheaper there

Each cell ran 3 times, which is not enough to claim statistical significance. Part of the 800k run also hit Z.ai’s usage limit, so those cells are incomplete.

We also hit two rate limits worth recording.

Error codeMeaningImpact
1302request rate limitappears at 8 parallel workers; stable at 4
13085-hour usage limithalf of the 800k cells could not run

コメント

タイトルとURLをコピーしました