Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 3 4B vs Phi 4

Google · released

Wins 2 of 5 areas

Long documents · Following instructions

Microsoft · released

Wins 2 of 5 areas

Coding · Facts

The two are evenly matched.Gemma 3 4B is better at long documents and following instructions; Phi 4 at facts and coding.

Scores updated · 26 tests both models report · How we compare

Where each one wins

Tests won in each of the five areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Long documents and following instructions rest on a single test each.

What it costs

Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.

Gemma 3 4B$0.05 to read · $0.10 to write$0.15Price from deepinfra
Phi 4$0.13 to read · $0.50 to write$0.63Price from Artificial Analysis

Gemma 3 4B costs 76% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where Phi 4 pulls ahead

  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+28.4points aheadPhi 457.5Gemma 3 4B29.1
  • Code for real scientific research problemsSciCode+18.7points aheadPhi 426Gemma 3 4B7.3
  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+17points aheadPhi 418.8Gemma 3 4B1.8

Where Gemma 3 4B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+4.8points aheadGemma 3 4B28.3Phi 423.5
  • Very hard expert questions across many subjectsHumanity's Last Exam+1.5points aheadGemma 3 4B5.3Phi 43.8

Every test, side by side

All 26 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingPhi 4

Full coding ranking

ReasoningEven

Full reasoning ranking

FactsPhi 4

Full facts ranking

Long documentsGemma 3 4B
  • AA-LCRGemma 3 4B by 6.76.70+6.7

Full long documents ranking

Following instructionsGemma 3 4B
  • IFBenchGemma 3 4B by 4.828.323.5+4.8

Full following instructions ranking

Other results16 tests, not counted

Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.

Questions people ask

Which is better, Gemma 3 4B or Phi 4?

Gemma 3 4B and Phi 4 each win two of the five areas where both have results. Gemma 3 4B wins long documents and following instructions; Phi 4 wins coding and facts. Gemma 3 4B costs 76% less. They are level on reasoning.

Which is better for coding?

Phi 4. It wins 2 of the 2 coding tests both models report; Gemma 3 4B wins none.

Which is cheaper?

Gemma 3 4B costs $0.05 per million input tokens and $0.10 per million output tokens; Phi 4 costs $0.13 and $0.50. That makes Gemma 3 4B about 76% cheaper for the same work.

How do you compare the two?

We use the 26 benchmark tests both models have published scores on. The verdict counts the 10 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 16 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.