Model comparison

GLM-5.2 vs Phi-4

GLM-5.2 is the stronger model overall, scoring 51.1 to 31.2 on the Noometry Index. Phi-4 costs 25× less per token, which makes it the better buy when GLM-5.2's lead doesn't matter for your workload.

Last verified . 21 shared benchmarks.

GLM-5.2 Z.ai (Zhipu)

51.1

Rank #44 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 21 benchmarks with published results for both. GLM-5.2 scores higher in 9 categories and Phi-4 in 0 categories; 9 gaps are clear of the uncertainty.
  • The widest gap is in math, where GLM-5.2 leads 55.7 to 20.8.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 86.4% for GLM-5.2 and 13.8% for Phi-4.
  • Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $1.40 / $4.40 for GLM-5.2.
  • GLM-5.2 accepts more context: 1M tokens versus 128K.

Side by side

GLM-5.2 and Phi-4 specifications
GLM-5.2Phi-4
ProviderZ.ai (Zhipu)Microsoft
Noometry Index51.131.2
Released2026-06-132024-12-11
WeightsOpenOpen
Context window1M128K
Max output131K4K
Input $ / M tokens$1.40$0.07
Output $ / M tokens$4.40$0.14
Results tracked5137

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GLM-5.2 leads

GLM-5.2: 51.3 (#41), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkGLM-5.2Phi-4
LMArena Coding14851231
SWE-bench Verified78.7%—
DeepSWE43.8%—
FrontierCode24.5%—
LMArena WebDev1603—
SciCode50.5%—
WeirdML70.1%—
BigCodeBench Instruct—45.5%
LiveBench Coding—30.7%
BigCodeBench Complete—55.4%
ALE-Bench1,047—

Agentic & Tool Use GLM-5.2 leads

GLM-5.2: 32.4 (#63), Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkGLM-5.2Phi-4
APEX-Agents45.2%—
Berkeley Function Calling Leaderboard—28.8%
τ²-bench Banking37.1%—
PostTrainBench31.7%—
BALROG—11.6%
GBAEval0%—
Vending-Bench 28,314—

Reasoning GLM-5.2 leads

GLM-5.2: 42.3 (#52), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkGLM-5.2Phi-4
Chess Puzzles21%1%
LMArena Hard Prompts14801220
Epoch Capabilities Index151.78130.42
ARC-AGI-222.8%—
SimpleBench58.8%—
Kagi LLM Benchmark62.6%—
NYT Connections (extended)74.3%—
ARC-AGI-177%—
CritPt20.9%—
EBR-Bench9.5%—
LiveBench Reasoning—47.8%
Mystery Game Puzzles19%—
DTBench93.6%—
LiveBench Data Analysis—45.2%
LMCA45.8%—
Surface Evolver Bench55.6%—
LiveBench—41.6%

Math GLM-5.2 leads

GLM-5.2: 55.7 (#43), Phi-4: 20.8 (#285)

Knowledge GLM-5.2 leads

GLM-5.2: 57.1 (#40), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkGLM-5.2Phi-4
GPQA Diamond91.9%56.1%
LMArena Expert14861203
SimpleQA Verified34.2%—
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
MMLU—84.8%

Multilingual GLM-5.2 leads

GLM-5.2: 55.8 (#26), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkGLM-5.2Phi-4
LMArena Non-English14591197
LMArena Chinese15191212
LMArena French14791224
LMArena German14681222
LMArena Japanese14511158
LMArena Korean14451151
LMArena Russian14661209
LMArena Spanish14771234

Instruction Following GLM-5.2 leads

GLM-5.2: 76.9 (#34), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkGLM-5.2Phi-4
LMArena Instruction Following14651201
LiveBench Instruction Following—58.4%

Long Context GLM-5.2 leads

GLM-5.2: 45.3 (#43), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkGLM-5.2Phi-4
LMArena Longer Query14791217

Writing & Preference GLM-5.2 leads

GLM-5.2: 70.4 (#21), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkGLM-5.2Phi-4
LMArena Text14701217
LMArena Creative Writing14621182
LMArena Multi-Turn14691206
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing1757—
EQ-Bench 41222—
LiveBench Language—25.6%

Frequently asked questions

Is GLM-5.2 better than Phi-4?

GLM-5.2 is the stronger model overall, scoring 51.1 to 31.2 on the Noometry Index. Phi-4 costs 25× less per token, which makes it the better buy when GLM-5.2's lead doesn't matter for your workload.

Which is cheaper, GLM-5.2 or Phi-4?

Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; GLM-5.2 lists at $1.40 and $4.40.

Is GLM-5.2 or Phi-4 better for coding?

GLM-5.2 scores higher on coding benchmarks: 51.3 versus 34.4 in the Noometry coding category.

Which has the bigger context window?

GLM-5.2 does, with 1M tokens against 128K.

How many benchmarks do GLM-5.2 and Phi-4 share?

21 benchmarks have published results for both models. GLM-5.2 has 51 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper