# GLM-5 vs Phi-4

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

- Canonical page: https://noometry.com/compare/glm-5-vs-phi-4
- Last updated: 2026-10-10
- Shared benchmarks: 22

## Summary

- They share 22 benchmarks with published results for both. GLM-5 scores higher in 9 categories and Phi-4 in 0 categories; 9 gaps are clear of the uncertainty.
- The widest gap is in writing & preference, where GLM-5 leads 66.2 to 40.7.
- The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 80% for GLM-5 and 13.8% for Phi-4.
- Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $1 / $3.20 for GLM-5.
- GLM-5 accepts more context: 205K tokens versus 128K.

## Snapshot

| | GLM-5 | Phi-4 |
|---|---|---|
| Provider | Z.ai (Zhipu) | Microsoft |
| Noometry Index | 45.9 | 30.9 |
| Rank | 59 | 269 |
| Context | 205K | 128K |
| Input $/M | $1 | $0.07 |
| Output $/M | $3.20 | $0.14 |
| Weights | Open | Open |

## Coding

- GLM-5: 49.0 (#47)
- Phi-4: 33.8 (#237)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| LMArena Coding | 1461 | 1231 |
| SWE-bench Verified | 72.1% | — |
| SWE-bench Verified (bash only) | 72.8% | — |
| LMArena WebDev | 1434 | — |
| SWE-bench Multilingual | 69.7% | — |
| WeirdML | 48.2% | — |
| BigCodeBench Instruct | — | 45.5% |
| LiveBench Coding | — | 30.7% |
| BigCodeBench Complete | — | 55.4% |
| ALE-Bench | 765.62 | — |

## Agentic & Tool Use

- GLM-5: 30.9 (#65)
- Phi-4: 22.6 (#120)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| Terminal-Bench | 52.4% | — |
| Berkeley Function Calling Leaderboard | — | 28.8% |
| τ²-bench Airline | 82.5% | — |
| τ²-bench Banking | 9.8% | — |
| τ²-bench Retail | 73.7% | — |
| τ²-bench Telecom | 86.8% | — |
| BALROG | — | 11.6% |
| Vending-Bench 2 | 4,432 | — |

## Reasoning

- GLM-5: 27.6 (#100)
- Phi-4: 17.0 (#287)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| Chess Puzzles | 10% | 1% |
| LMArena Hard Prompts | 1451 | 1220 |
| Epoch Capabilities Index | 145.84 | 130.43 |
| ARC-AGI-2 | 4.9% | — |
| SimpleBench | 53.2% | — |
| Kagi LLM Benchmark | 75% | — |
| NYT Connections (extended) | 74.8% | — |
| ARC-AGI-1 | 44.7% | — |
| LiveBench Reasoning | — | 47.8% |
| LiveBench Data Analysis | — | 45.2% |
| ForecastBench | 61 | — |
| LiveBench | — | 41.6% |

## Math

- GLM-5: 44.8 (#66)
- Phi-4: 19.6 (#279)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 80% | 13.8% |
| LMArena Math | 1440 | 1246 |
| MathArena Final-Answer Competitions | 65.7% | — |
| LiveBench Math | — | 42% |
| MATH Level 5 | — | 64.9% |
| FrontierMath (Feb 2025 set) | 16.4% | — |
| FrontierMath Tier 4 (v1) | 2.1% | — |

## Knowledge

- GLM-5: 52.2 (#59)
- Phi-4: 32.5 (#204)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| GPQA Diamond | 87.8% | 56.1% |
| Vectara Hallucination Rate | 10.1% | 3.7% |
| LMArena Expert | 1454 | 1203 |
| Confabulations | — | 29.4% |
| MMLU | — | 84.8% |

## Multilingual

- GLM-5: 53.9 (#57)
- Phi-4: 37.4 (#232)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| LMArena Non-English | 1430 | 1197 |
| LMArena Chinese | 1511 | 1211 |
| LMArena French | 1455 | 1223 |
| LMArena German | 1445 | 1222 |
| LMArena Japanese | 1416 | 1158 |
| LMArena Korean | 1421 | 1151 |
| LMArena Russian | 1436 | 1209 |
| LMArena Spanish | 1452 | 1234 |

## Instruction Following

- GLM-5: 75.4 (#64)
- Phi-4: 60.6 (#246)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| LMArena Instruction Following | 1427 | 1201 |
| LiveBench Instruction Following | — | 58.4% |

## Long Context

- GLM-5: 44.6 (#58)
- Phi-4: 36.9 (#221)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| LMArena Longer Query | 1446 | 1217 |
| CL-bench | 18.7% | — |

## Writing & Preference

- GLM-5: 66.2 (#38)
- Phi-4: 40.7 (#239)

| Benchmark | GLM-5 | Phi-4 |
|---|---|---|
| LMArena Text | 1446 | 1217 |
| LMArena Creative Writing | 1438 | 1182 |
| LMArena Multi-Turn | 1456 | 1206 |
| Short-Story Creative Writing | — | 62.6% |
| EQ-Bench Creative Writing | 1601 | — |
| LiveBench Language | — | 25.6% |

## FAQ

### Is GLM-5 better than Phi-4?

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

### Which is cheaper, GLM-5 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 lists at $1 and $3.20.

### Is GLM-5 or Phi-4 better for coding?

GLM-5 scores higher on coding benchmarks: 49.0 versus 33.8 in the Noometry coding category.

### Which has the bigger context window?

GLM-5 does, with 205K tokens against 128K.

### How many benchmarks do GLM-5 and Phi-4 share?

22 benchmarks have published results for both models. GLM-5 has 45 scored results on Noometry and Phi-4 has 37.
