Gemma 4 31B vs GLM-5

Side-by-side benchmark comparison across agentic, coding, multimodal, knowledge, reasoning, and math workflows.

Agentic
Coding
Multimodal & Grounded
Reasoning
Knowledge
Instruction Following
Multilingual
Mathematics

Gemma 4 31B· GLM-5

Quick Verdict

Pick GLM-5 if you want the stronger benchmark profile. Gemma 4 31B only becomes the better choice if coding is the priority or you need the larger 256K context window.

GLM-5 has the cleaner overall profile here, landing at 75 versus 73. It is a real lead, but still close enough that category-level strengths matter more than the headline number.

GLM-5's sharpest advantage is in knowledge, where it averages 67.7 against 61.3. The single biggest benchmark swing on the page is LiveCodeBench, 80% to 52%. Gemma 4 31B does hit back in coding, so the answer changes if that is the part of the workload you care about most.

Gemma 4 31B is the reasoning model in the pair, while GLM-5 is not. That usually helps on harder chain-of-thought-heavy tests, but it can also mean more latency and more token spend in real use. Gemma 4 31B gives you the larger context window at 256K, compared with 200K for GLM-5.

Operational tradeoffs

PriceFree*Free*
SpeedN/A74 t/s
TTFTN/A1.64s
Context256K200K

Decision framing

BenchLM keeps the benchmark table and the operator tradeoffs on the same page so a better score does not hide a materially slower, pricier, or smaller-context model.

Runtime metrics show N/A when BenchLM does not have a sourced snapshot for that exact model. The scoring rules and freshness policy are documented on the methodology page.

BenchmarkGemma 4 31BGLM-5
Agentic
Terminal-Bench 2.056.2%
BrowseComp62%
OSWorld-Verified58%
Claw-Eval57.7%
QwenClawBench54.1%
QwenWebBench1315
TAU3-Bench65.6%
VITA-Bench37.0%
DeepPlanning14.6%
Toolathlon38%
MCP Atlas31.1%
MCP-Tasks60.8%
WideResearch69.8%
Tau2-Airline80.5%
Tau2-Telecom98.2%
PinchBench86.4%
BFCL v470.8%
CodingGemma 4 31B wins
LiveCodeBench80%52%
HumanEval80%
SWE-bench Verified77.8%
SWE-bench Verified*72.8%
LiveCodeBench v685.6%
SWE-bench Pro55.1%
SWE Multilingual73.3%
NL2Repo35.9%
SWE-Rebench62.8%
React Native Evals74.2%
Multimodal & GroundedGemma 4 31B wins
MMMU-Pro76.9%66%
OfficeQA Pro73%
ReasoningGLM-5 wins
BBH74.4%83%
MRCRv266.4%73%
MuSR82%
LongBench v260.8%
AI-Needle63.3%
KnowledgeGLM-5 wins
GPQA84.3%86%
MMLU-Pro85.2%85.7%
HLE26.5%27.2%
HLE w/o tools19.5%
MMLU91.7%
GPQA-D81.6%
SuperGPQA66.8%
MMLU-Pro (Arcee)85.8%
MMLU-Redux94.4%
C-Eval92.8%
FrontierScience74%
SimpleQA84%
Instruction Following
IFEval92.6%
IFBench72.3%
Multilingual
MGSM84%
MMLU-ProX83.1%
NOVA-6355.1%
INCLUDE84.9%
PolyMath65.2%
VWT2k-lite82.1%
MAXIFE85.6%
Mathematics
AIME 202388%
AIME 202490%
AIME 202593.3%
AIME2695.8%
AIME25 (Arcee)93.3%
HMMT Feb 202384%
HMMT Feb 202486%
HMMT Feb 202585%
HMMT Feb 202597.5%
HMMT Nov 202596.9%
HMMT Feb 202686.4%
MMAnswerBench82.5%
BRUMO 202587%
MATH-50097.4%
Frequently Asked Questions (5)

Which is better, Gemma 4 31B or GLM-5?

GLM-5 is ahead overall, 75 to 73. The biggest single separator in this matchup is LiveCodeBench, where the scores are 80% and 52%.

Which is better for knowledge tasks, Gemma 4 31B or GLM-5?

GLM-5 has the edge for knowledge tasks in this comparison, averaging 67.7 versus 61.3. Inside this category, GPQA is the benchmark that creates the most daylight between them.

Which is better for coding, Gemma 4 31B or GLM-5?

Gemma 4 31B has the edge for coding in this comparison, averaging 80 versus 60.4. Inside this category, LiveCodeBench is the benchmark that creates the most daylight between them.

Which is better for reasoning, Gemma 4 31B or GLM-5?

GLM-5 has the edge for reasoning in this comparison, averaging 70.5 versus 66.4. Inside this category, BBH is the benchmark that creates the most daylight between them.

Which is better for multimodal and grounded tasks, Gemma 4 31B or GLM-5?

Gemma 4 31B has the edge for multimodal and grounded tasks in this comparison, averaging 76.9 versus 69.2. Inside this category, MMMU-Pro is the benchmark that creates the most daylight between them.

Last updated: April 2, 2026

Weekly LLM Benchmark Digest

Get notified when new models drop, benchmark scores change, or the leaderboard shifts. One email per week.

Free. No spam. Unsubscribe anytime. We only store derived location metadata for consent routing.