LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Gemma 4 31B vs GLM 5.3

Updated October 21, 2026. 50 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Gemma 4 31BGoogle
Coding
38.3
Overall
14.7
Output $/M
$0.40
1
GLM 5.3Z.ai
Coding
73.1
Overall
44.8
Output $/M
$1.40
49
vs boards won of 50 shared

Decision reading

Pick GLM 5.3 for coding: it scores 73.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B.

Pick Gemma 4 31B when output tokens cost 3.5x less, or when the benchmark that matters is LiveBench browser, where it leads.

Shared results
50
Gemma 4 31B only
18
GLM 5.3 only
50
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Gemma 4 31B 38.3 from 2 benchmarks, GLM 5.3 73.1 from 2 benchmarks.
Widest category
Agentic work, 26.1 points apart on average over 4 shared benchmarks.
Widest single gap
AA Agentic Index: Gemma 4 31B 4.2 against GLM 5.3 53.1, 48.9 points apart on a 0 to 100 scale.
Output price
Gemma 4 31B $0.40 against GLM 5.3 $1.40 per million output tokens, 3.5x apart.
Context window
Gemma 4 31B takes 262K tokens, GLM 5.3 1.05M.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGemma 4 31BBarsGLM 5.3Ties
Coding010
Intelligence02
Agentic work13
Reasoning07
Math03
Knowledge05
Web design01
General018
All shared boards149
CodingLike-for-likeFour of these boards feed the Vibe Coding Index010
Coding benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
LiveBench coding49.0%82.8%GLM 5.3
LMArena WebDev13671621GLM 5.3
AA Coding Index43.474.8GLM 5.3
LiveCodeBench (Vals AI)Not measured80.5%Only GLM 5.3 measured
SWE-bench Verified (Vals AI)Not measured95.4%Only GLM 5.3 measured
Terminal-Bench 4 (Vals AI)Not measured38.9%Only GLM 5.3 measured
Vibe Code Bench (Vals AI)Not measured78.1%Only GLM 5.3 measured
Code migration (Vals AI)Not measured44.2%Only GLM 5.3 measured
ProgramBench (Vals AI)Not measured1.5%Only GLM 5.3 measured
IOI (Vals AI)Not measured68.4%Only GLM 5.3 measured
Terminal-Bench 2.1 (Vals AI)Not measured71.5%Only GLM 5.3 measured
Vibe Code Bench 1-100 (Vals AI)Not measured20.0%Only GLM 5.3 measured
SkillsBench (Vals AI)Not measured47.5%Only GLM 5.3 measured
CyberBench (Vals AI)Not measured72.1%Only GLM 5.3 measured
SciCode45.5%59.0%GLM 5.3
Terminal-Bench Hard (Artificial Analysis run)36.4%Not measuredOnly Gemma 4 31B measured
FrontierCodeNot measured40.1%Only GLM 5.3 measured
FrontierSWENot measured30.2%Only GLM 5.3 measured
WeirdML52.3%75.4%GLM 5.3
ALE-Bench925.51317.4GLM 5.3
LMArena Text: coding14591497GLM 5.3
LMArena Text: software and IT14631493GLM 5.3
LMArena WebDev: React13591641GLM 5.3
LMArena WebDev: HTML13801595GLM 5.3
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
AA Intelligence Index14.744.8GLM 5.3
Epoch Capabilities Index143.0156.0GLM 5.3
Agentic workLike-for-likePublic boards, shown as published, kept out of the index13
Agentic work benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
AA Agentic Index4.253.1GLM 5.3
Design Arena: agents building mobile appsNot measured1194Only GLM 5.3 measured
Design Arena: HTML slidesNot measured1189Only GLM 5.3 measured
Design Arena: PowerPoint slidesNot measured1255Only GLM 5.3 measured
LiveBench research44.4%73.2%GLM 5.3
LiveBench browser4.0%0.0%Gemma 4 31B
LiveBench long agentic13.3%35.9%GLM 5.3
SREBench (Vals AI)Not measured9.2%Only GLM 5.3 measured
Finance Agent (Vals AI)Not measured55.8%Only GLM 5.3 measured
Tax Agent Bench (Vals AI)Not measured39.7%Only GLM 5.3 measured
Legal Research Bench (Vals AI)Not measured49.0%Only GLM 5.3 measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured14.6%Only GLM 5.3 measured
Excel Modeling Benchmark (Vals AI)Not measured56.3%Only GLM 5.3 measured
Terminal-Bench-Science (Vals AI)Not measured5.7%Only GLM 5.3 measured
τ²-Bench Telecom65.5%Not measuredOnly Gemma 4 31B measured
APEX-AgentsNot measured56.6%Only GLM 5.3 measured
Vending-Bench 2Not measured$8,164Only GLM 5.3 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index07
Reasoning benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
GPQA DiamondNot measured88.1%Only GLM 5.3 measured
LiveBench reasoning68.3%85.8%GLM 5.3
MysteryMechanism (Vals AI)Not measured23.0%Only GLM 5.3 measured
GPQA Diamond (Artificial Analysis run)85.7%91.7%GLM 5.3
Humanity's Last Exam (Artificial Analysis run)23.6%42.3%GLM 5.3
GPQA Diamond (Epoch AI run)75.8%90.9%GLM 5.3
Chess puzzlesNot measured37.0%Only GLM 5.3 measured
Mystery game puzzlesNot measured33.0%Only GLM 5.3 measured
LMArena Text: hard prompts14481490GLM 5.3
LMArena Text: expert14641514GLM 5.3
LMArena Text: hard prompts in English14561496GLM 5.3
LMArena Vision: diagrams1283Not measuredOnly Gemma 4 31B measured
LMArena Vision: homework1310Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
OTIS Mock AIME73.3%91.1%GLM 5.3
FrontierMath, tiers 1 to 3Not measured68.8%Only GLM 5.3 measured
FrontierMath, tier 4Not measured29.3%Only GLM 5.3 measured
ProofBenchNot measured49.0%Only GLM 5.3 measured
LMArena Text: math14631495GLM 5.3
LMArena Text: mathematical work14651497GLM 5.3
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
MMLU ProNot measured86.8%Only GLM 5.3 measured
LegalBench (Vals AI)Not measured84.8%Only GLM 5.3 measured
CaseLaw (Vals AI)52.6%Not measuredOnly Gemma 4 31B measured
TaxEval (Vals AI)Not measured72.4%Only GLM 5.3 measured
MortgageTax (Vals AI)61.4%Not measuredOnly Gemma 4 31B measured
MedCode (Vals AI)Not measured42.9%Only GLM 5.3 measured
SimpleQA Verified10.4%41.0%GLM 5.3
LMArena Text: science14571498GLM 5.3
LMArena Text: medicine and healthcare14511481GLM 5.3
LMArena Text: legal and government14381473GLM 5.3
LMArena Text: business and finance14301459GLM 5.3
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index01
Web design benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
Design Arena: websitesNot measured1295Only GLM 5.3 measured
Design Arena: UI componentsNot measured1314Only GLM 5.3 measured
Design Arena: game devNot measured1311Only GLM 5.3 measured
Design Arena: data vizNot measured1260Only GLM 5.3 measured
Design Arena: 3DNot measured1332Only GLM 5.3 measured
Design Arena: all code categoriesNot measured1304Only GLM 5.3 measured
Design Arena: SVGNot measured1292Only GLM 5.3 measured
Design Arena: ASCII artNot measured1213Only GLM 5.3 measured
LiveBench design58.4%77.3%GLM 5.3
GeneralLike-for-likePublic boards, shown as published, kept out of the index018
General benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
Vals IndexNot measured59.7%Only GLM 5.3 measured
LiveBench data analysis53.3%70.2%GLM 5.3
Public Benefits Bench (Vals AI)Not measured68.5%Only GLM 5.3 measured
SAGE (Vals AI)55.0%Not measuredOnly Gemma 4 31B measured
MedScribe (Vals AI)Not measured88.8%Only GLM 5.3 measured
IFBench75.6%Not measuredOnly Gemma 4 31B measured
Long context reasoning (AA-LCR)69.7%79.7%GLM 5.3
DTBench82.7%87.7%GLM 5.3
LMCA39.3%55.5%GLM 5.3
Surface Evolver Bench30.6%Not measuredOnly Gemma 4 31B measured
LMArena Text14431474GLM 5.3
LMArena Text: instruction following14331479GLM 5.3
LMArena Text: creative writing14171458GLM 5.3
LMArena Vision1276Not measuredOnly Gemma 4 31B measured
LMArena Text: English14511482GLM 5.3
LMArena Text: non-English14301459GLM 5.3
LMArena Text: Chinese14751532GLM 5.3
LMArena Text: GermanNot measured1488Only GLM 5.3 measured
LMArena Text: JapaneseNot measured1460Only GLM 5.3 measured
LMArena Text: KoreanNot measured1460Only GLM 5.3 measured
LMArena Text: French14361503GLM 5.3
LMArena Text: Spanish14421462GLM 5.3
LMArena Text: Russian14601469GLM 5.3
LMArena Text: Polish14331466GLM 5.3
LMArena Text: multi-turn14521472GLM 5.3
LMArena Text: longer queries14461483GLM 5.3
LMArena Text: writing and language14321469GLM 5.3
LMArena Text: entertainment and media14051447GLM 5.3
LMArena Vision: English1271Not measuredOnly Gemma 4 31B measured
LMArena Vision: Chinese1326Not measuredOnly Gemma 4 31B measured
LMArena Vision: reading text1282Not measuredOnly Gemma 4 31B measured
LMArena Vision: humor1280Not measuredOnly Gemma 4 31B measured
LMArena Vision: captioning1218Not measuredOnly Gemma 4 31B measured
LMArena Vision: recognizing things1226Not measuredOnly Gemma 4 31B measured
LMArena Vision: creative writing1285Not measuredOnly Gemma 4 31B measured
LMArena Document1425Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 10 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 4 31B and GLM 5.3
BenchmarkGemma 4 31BGLM 5.3Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Gemma 4 31B$0.0004Fits in one request
GLM 5.3$0.0008Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Gemma 4 31B$0.011Fits in one request
GLM 5.3$0.0081Fits in one request

GLM 5.3 costs less

Agent loop

200K input + 10K output tokens

Gemma 4 31B$0.044Fits in one request
GLM 5.3$0.030Fits in one request

GLM 5.3 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Gemma 4 31B and GLM 5.3
SpecificationGoogle Gemma 4 31BZ.ai GLM 5.3
MakerGoogleZ.ai
WeightsOpen weightsOpen weights
ReleasedApril 2, 2026August 18, 2026
Context window262K1.05M
Input $/Mtok$0.20$0.079
Output $/Mtok$0.40$1.40
Coding index38.373.1
Independent measurements behind it22
Cost per solved taskNot computable$0.36
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 4 31B better than GLM 5.3 for coding?

Pick GLM 5.3 for coding: it scores 73.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 3.5x less, or when the benchmark that matters is LiveBench browser, where it leads.

Which is cheaper, Gemma 4 31B or GLM 5.3?

Gemma 4 31B costs $0.20 per million input tokens and $0.40 per million output tokens; GLM 5.3 costs $0.079 and $1.40. Cost per solved task is known for GLM 5.3 only.

Which has the bigger context window, Gemma 4 31B or GLM 5.3?

GLM 5.3, with 1.05M tokens against 262K.

How many benchmarks is the Gemma 4 31B vs GLM 5.3 comparison based on?

50 benchmarks have a result for both models as of October 21, 2026. Gemma 4 31B's coding index rests on 2 independent benchmarks and GLM 5.3's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/gemma-4-31b-it-vs-glm-5-3" title="Gemma 4 31B vs GLM 5.3, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/gemma-4-31b-it-vs-glm-5-3">LLMBenchmark.ai, Gemma 4 31B vs GLM 5.3</a></p>