Model comparison

Gemma 2 27B vs Gemma 4 31B IT

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

Last verified . 19 shared benchmarks.

Gemma 2 27B Google

29.2

Rank #302 Confirmed

Gemma 4 31B IT Google

43.2

Rank #85 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 41.3 to 10.0.
  • 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.243.2
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: 33.5 (#243), Gemma 4 31B IT: 41.9 (#98)

Coding benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Coding12111459
LMArena WebDev—1364
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: 14.8 (#313), Gemma 4 31B IT: 26.4 (#119)

Reasoning benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Hard Prompts11991448
DTBench48%82.7%
LMCA7.1%39.3%
Epoch Capabilities Index122.06142.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.0 (#306), Gemma 4 31B IT: 41.3 (#72)

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

Knowledge Gemma 4 31B IT leads

Gemma 2 27B: 18.9 (#275), Gemma 4 31B IT: 37.9 (#141)

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.0 (#32)

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

Multilingual Gemma 4 31B IT leads

Gemma 2 27B: 38.8 (#221), Gemma 4 31B IT: 54.0 (#52)

Multilingual benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Non-English12171431
LMArena Chinese12211478
LMArena French12461436
LMArena Russian12341462
LMArena Spanish12281443
LMArena German1209—
LMArena Japanese1175—
LMArena Korean1174—

Instruction Following Gemma 4 31B IT leads

Gemma 2 27B: 60.7 (#244), Gemma 4 31B IT: 75.6 (#58)

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 (#213), Gemma 4 31B IT: 44.2 (#67)

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

Writing & Preference Gemma 4 31B IT leads

Gemma 2 27B: 44.4 (#220), Gemma 4 31B IT: 60.7 (#92)

Writing & Preference benchmarks
BenchmarkGemma 2 27BGemma 4 31B IT
LMArena Text12311443
LMArena Creative Writing12411416
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.2 to 29.2 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: 41.9 versus 33.5 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