Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 3 4B vs Phi 4 Mini Instruct

Google · released

Wins 1 of 6 areas

Following instructions

Microsoft · released

Wins 4 of 6 areas

Coding · Reasoning · Facts · Long documents

Phi 4 Mini Instruct is the stronger all-rounder.Gemma 3 4B is cheaper and better at following instructions.

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

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.04 to read · $0.05 to write$0.09Price from parasail
Phi 4 Mini Instruct$0.07 to read · $0.30 to write$0.38Price 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 Mini Instruct pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+20.2points aheadPhi 4 Mini Instruct22Gemma 3 4B1.8
  • Reasons across sets of long documentsAA-LCR+8.6points aheadPhi 4 Mini Instruct15.3Gemma 3 4B6.7
  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+4points aheadPhi 4 Mini Instruct33.1Gemma 3 4B29.1

Where Gemma 3 4B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+7.2points aheadGemma 3 4B28.3Phi 4 Mini Instruct21.1

Every test, side by side

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

CodingPhi 4 Mini Instruct

Full coding ranking

AgentsEven

Full agents ranking

ReasoningPhi 4 Mini Instruct

Full reasoning ranking

FactsPhi 4 Mini Instruct

Full facts ranking

Long documentsPhi 4 Mini Instruct
  • AA-LCRPhi 4 Mini Instruct by 8.66.715.3+8.6

Full long documents ranking

Following instructionsGemma 3 4B
  • IFBenchGemma 3 4B by 7.228.321.1+7.2

Full following instructions ranking

Other results13 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 Mini Instruct?

Phi 4 Mini Instruct wins four of the six areas where both have results: coding, reasoning, facts and long documents. Gemma 3 4B wins following instructions, and costs 76% less. They are level on agents.

Which is better for coding?

Phi 4 Mini Instruct. It wins 1 of the 2 coding tests both models report; Gemma 3 4B wins none, and 1 is a tie.

Which is cheaper?

Gemma 3 4B costs $0.04 per million input tokens and $0.05 per million output tokens; Phi 4 Mini Instruct costs $0.07 and $0.30. That makes Gemma 3 4B about 76% cheaper for the same work.

How do you compare the two?

We use the 25 benchmark tests both models have published scores on. The verdict counts the 12 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 13 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.