Model comparison

Gemma 2 9B vs Phi-4

Phi-4 is the stronger model overall, scoring 31.2 to 25.9 on the Noometry Index.

Last verified . 31 shared benchmarks.

Gemma 2 9B Google

25.9

Rank #341 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 31 benchmarks with published results for both. Gemma 2 9B scores higher in 0 categories and Phi-4 in 8 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Phi-4 leads 32.6 to 9.7.
  • The biggest single-benchmark swing is MATH Level 5: 21% for Gemma 2 9B and 64.9% for Phi-4.

Side by side

Gemma 2 9B and Phi-4 specifications
Gemma 2 9BPhi-4
ProviderGoogleMicrosoft
Noometry Index25.931.2
Released2024-06-242024-12-11
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.07
Output $ / M tokens—$0.14
Results tracked3537

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

Category by category

Coding Phi-4 leads

Gemma 2 9B: 29.4 (#304), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkGemma 2 9BPhi-4
BigCodeBench Instruct34.7%45.5%
LiveBench Coding22.5%30.7%
LMArena Coding11731231
BigCodeBench Complete40.6%55.4%

Agentic & Tool Use Not comparable

Gemma 2 9B: —, Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkGemma 2 9BPhi-4
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%

Reasoning Phi-4 leads

Gemma 2 9B: 15.9 (#309), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkGemma 2 9BPhi-4
LiveBench Reasoning15.2%47.8%
LMArena Hard Prompts11711220
LiveBench Data Analysis36.4%45.2%
Epoch Capabilities Index119.83130.42
LiveBench28.7%41.6%
Chess Puzzles—1%
PIQA83.7%—

Math Phi-4 leads

Gemma 2 9B: 9.9 (#318), Phi-4: 20.8 (#285)

Math benchmarks
BenchmarkGemma 2 9BPhi-4
OTIS Mock AIME 2024-20250.6%13.8%
LiveBench Math19.8%42%
LMArena Math11831246
MATH Level 521%64.9%
GSM8K84.9%—

Knowledge Phi-4 leads

Gemma 2 9B: 9.7 (#305), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkGemma 2 9BPhi-4
GPQA Diamond27.5%56.1%
LMArena Expert11471203
MMLU72.1%84.8%
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
BoolQ85.7%—

Multilingual Too close to call

Gemma 2 9B: 36.6 (#238), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkGemma 2 9BPhi-4
LMArena Non-English11881197
LMArena Chinese11851212
LMArena French11901224
LMArena German11861222
LMArena Japanese11441158
LMArena Korean11371151
LMArena Russian12001209
LMArena Spanish12001234

Instruction Following Phi-4 leads

Gemma 2 9B: 57.6 (#269), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkGemma 2 9BPhi-4
LiveBench Instruction Following52.6%58.4%
LMArena Instruction Following11781201

Long Context Too close to call

Gemma 2 9B: 36.3 (#233), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkGemma 2 9BPhi-4
LMArena Longer Query11971217

Writing & Preference Phi-4 leads

Gemma 2 9B: 32.1 (#281), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkGemma 2 9BPhi-4
LMArena Text12071217
LMArena Creative Writing12061182
LMArena Multi-Turn11931206
LiveBench Language25.5%25.6%
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing841—

Frequently asked questions

Is Gemma 2 9B better than Phi-4?

Phi-4 is the stronger model overall, scoring 31.2 to 25.9 on the Noometry Index.

Is Gemma 2 9B or Phi-4 better for coding?

Phi-4 scores higher on coding benchmarks: 34.4 versus 29.4 in the Noometry coding category.

How many benchmarks do Gemma 2 9B and Phi-4 share?

31 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper