Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 3 12B vs Phi 4 Mini Instruct

Google · released

Wins 3 of 6 areas

Coding · Reasoning · Following instructions

Microsoft · released

Wins 1 of 6 areas

Long documents

Gemma 3 12B wins more areas, narrowly.Phi 4 Mini Instruct is better at long documents.

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

Where each one wins

Tests won in each of the six 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 12B$0.05 to read · $0.15 to write$0.20Price from deepinfra
Phi 4 Mini InstructNo current price is tracked.

The biggest differences

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

Where Gemma 3 12B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+15.6points aheadGemma 3 12B36.7Phi 4 Mini Instruct21.1
  • Code for real scientific research problemsSciCode+5.6points aheadGemma 3 12B16.4Phi 4 Mini Instruct10.8
  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+1.8points aheadGemma 3 12B34.9Phi 4 Mini Instruct33.1

Where Phi 4 Mini Instruct pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+19.4points aheadPhi 4 Mini Instruct22Gemma 3 12B2.6
  • Reasons across sets of long documentsAA-LCR+7points aheadPhi 4 Mini Instruct15.3Gemma 3 12B8.3

Every test, side by side

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

CodingGemma 3 12B

Full coding ranking

AgentsEven

Full agents ranking

ReasoningGemma 3 12B

Full reasoning ranking

FactsEven

Full facts ranking

Long documentsPhi 4 Mini Instruct
  • AA-LCRPhi 4 Mini Instruct by 78.315.3+7

Full long documents ranking

Following instructionsGemma 3 12B
  • IFBenchGemma 3 12B by 15.636.721.1+15.6

Full following instructions ranking

Other results11 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 12B or Phi 4 Mini Instruct?

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

Which is better for coding?

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

How do you compare the two?

We use the 23 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 11 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.