Model comparison

Gemma 2 27B vs Gemma 4 31B IT

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.4 on the Noometry Index.

Last verified . 19 shared benchmarks.

Gemma 2 27B Google

29.4

Rank #312 Confirmed

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Summary

  • They share 19 benchmarks with published results for both. Gemma 2 27B scores higher in 0 categories and Gemma 4 31B IT in 8 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in math, where Gemma 4 31B IT leads 43.2 to 10.7.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 1.4% for Gemma 2 27B and 73.3% for Gemma 4 31B IT.
  • Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $0.65 / $0.65 for Gemma 2 27B.
  • Gemma 4 31B IT accepts more context: 262K tokens versus 8K.

Side by side

Gemma 2 27B and Gemma 4 31B IT specifications
Gemma 2 27BGemma 4 31B IT
ProviderGoogleGoogle
Noometry Index29.443.5
Released2024-06-242026-04-02
WeightsOpenOpen
Context window8K262K
Max output2K33K
Input $ / M tokens$0.65$0.09
Output $ / M tokens$0.65$0.34
Results tracked3435

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

Category by category

Coding Gemma 4 31B IT leads

Gemma 2 27B: 34.1 (#246), Gemma 4 31B IT: 42.3 (#108)

Coding benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Coding12111459
LMArena WebDev—1366
SciCode—43.4%
WeirdML—52.3%
BigCodeBench Instruct42.8%—
LiveBench Coding36%—
BigCodeBench Complete52.5%—
ALE-Bench—925.5

Reasoning Gemma 4 31B IT leads

Gemma 2 27B: 15.3 (#315), Gemma 4 31B IT: 27.2 (#122)

Reasoning benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Hard Prompts11981448
DTBench48%82.7%
LMCA7.1%39.3%
Epoch Capabilities Index122.08142.74
Kagi LLM Benchmark—63.5%
NYT Connections (extended)—70.6%
CritPt—1.4%
Chess Puzzles—5%
Thematic Generalization—53%
LiveBench Reasoning28.1%—
LiveBench Data Analysis47.9%—
Surface Evolver Bench—30.6%
LiveBench38.2%—

Math Gemma 4 31B IT leads

Gemma 2 27B: 10.7 (#311), Gemma 4 31B IT: 43.2 (#81)

Math benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
OTIS Mock AIME 2024-20251.4%73.3%
LMArena Math12121465
LiveBench Math26.5%—
MATH Level 527.9%—

Knowledge Gemma 4 31B IT leads

Gemma 2 27B: 19.0 (#280), Gemma 4 31B IT: 37.9 (#151)

Knowledge benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
GPQA Diamond36.5%75.8%
LMArena Expert11721465
SimpleQA Verified—10.4%
Confabulations27.1%—
Vectara Hallucination Rate—7.4%
MMLU75.7%—

Multimodal Not comparable

Gemma 2 27B: —, Gemma 4 31B IT: 41.6 (#34)

Multimodal benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Vision—1277
LMArena Document—1425

Multilingual Gemma 4 31B IT leads

Gemma 2 27B: 38.6 (#226), Gemma 4 31B IT: 53.8 (#57)

Multilingual benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Non-English12171431
LMArena Chinese12211476
LMArena French12471435
LMArena Russian12341460
LMArena Spanish12281444
LMArena German1209—
LMArena Japanese1175—
LMArena Korean1174—

Instruction Following Gemma 4 31B IT leads

Gemma 2 27B: 60.5 (#249), Gemma 4 31B IT: 75.5 (#61)

Instruction Following benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Instruction Following12061433
LiveBench Instruction Following58.1%—

Long Context Gemma 4 31B IT leads

Gemma 2 27B: 37.3 (#218), Gemma 4 31B IT: 44.2 (#71)

Long Context benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Longer Query12311446

Writing & Preference Gemma 4 31B IT leads

Gemma 2 27B: 44.2 (#225), Gemma 4 31B IT: 60.5 (#96)

Writing & Preference benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Text12311443
LMArena Creative Writing12411415
LMArena Multi-Turn12241452
EQ-Bench Creative Writing—1368
EQ-Bench 4—1120
LiveBench Language32.6%—

Frequently asked questions

Is Gemma 2 27B better than Gemma 4 31B IT?

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.4 on the Noometry Index.

Which is cheaper, Gemma 2 27B or Gemma 4 31B IT?

Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; Gemma 2 27B lists at $0.65 and $0.65.

Is Gemma 2 27B or Gemma 4 31B IT better for coding?

Gemma 4 31B IT scores higher on coding benchmarks: 42.3 versus 34.1 in the Noometry coding category.

Which has the bigger context window?

Gemma 4 31B IT does, with 262K tokens against 8K.

How many benchmarks do Gemma 2 27B and Gemma 4 31B IT share?

19 benchmarks have published results for both models. Gemma 2 27B has 34 scored results on Noometry and Gemma 4 31B IT has 35.

Related comparisons

Go deeper