Model comparison
Gemma 4 31B IT vs GPT-4
Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.1 on the Noometry Index.
Last verified . 22 shared benchmarks.
Summary
- They share 22 benchmarks with published results for both. Gemma 4 31B IT scores higher in 8 categories and GPT-4 in 0 categories; 8 gaps are clear of the uncertainty.
- The widest gap is in math, where Gemma 4 31B IT leads 43.2 to 10.8.
- The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 73.3% for Gemma 4 31B IT and 1.1% for GPT-4.
- Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $30 / $60 for GPT-4.
- Gemma 4 31B IT accepts more context: 262K tokens versus 8K.
- Gemma 4 31B IT has downloadable open weights; the other is API-only.
Side by side
| Gemma 4 31B IT | GPT-4 | |
|---|---|---|
| Provider | OpenAI | |
| Noometry Index | 43.5 | 29.1 |
| Released | 2026-04-02 | 2023-03-14 |
| Weights | Open | Proprietary |
| Context window | 262K | 8K |
| Max output | 33K | 8K |
| Input $ / M tokens | $0.09 | $30 |
| Output $ / M tokens | $0.34 | $60 |
| Results tracked | 35 | 38 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Gemma 4 31B IT leads
Gemma 4 31B IT: 42.3 (#108), GPT-4: 31.6 (#283)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| WeirdML | 52.3% | 12.4% |
| LMArena Coding | 1459 | 1254 |
| LMArena WebDev | 1366 | — |
| SciCode | 43.4% | — |
| BigCodeBench Instruct | — | 46% |
| BigCodeBench Complete | — | 57.2% |
| ALE-Bench | 925.5 | — |
| HumanEval+ | — | 79.3% |
Agentic & Tool Use Not comparable
Gemma 4 31B IT: —, GPT-4: —
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| METR Time Horizons | — | 36.1% |
Reasoning Gemma 4 31B IT leads
Gemma 4 31B IT: 27.2 (#122), GPT-4: 17.8 (#289)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| Chess Puzzles | 5% | 4% |
| LMArena Hard Prompts | 1448 | 1241 |
| DTBench | 82.7% | 62.7% |
| LMCA | 39.3% | 17.1% |
| Epoch Capabilities Index | 142.74 | 125.89 |
| Kagi LLM Benchmark | 63.5% | — |
| NYT Connections (extended) | 70.6% | — |
| CritPt | 1.4% | — |
| Thematic Generalization | 53% | — |
| Mystery Game Puzzles | — | 12% |
| Surface Evolver Bench | 30.6% | — |
| BIG-Bench Hard | — | 75.1% |
| ForecastBench | — | 57.8 |
| HellaSwag | — | 95.3% |
| WinoGrande | — | 87.5% |
Math Gemma 4 31B IT leads
Gemma 4 31B IT: 43.2 (#81), GPT-4: 10.8 (#309)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 73.3% | 1.1% |
| LMArena Math | 1465 | 1269 |
| MATH Level 5 | — | 23% |
| GSM8K | — | 92% |
Knowledge Gemma 4 31B IT leads
Gemma 4 31B IT: 37.9 (#151), GPT-4: 18.4 (#282)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| GPQA Diamond | 75.8% | 35.7% |
| LMArena Expert | 1465 | 1211 |
| SimpleQA Verified | 10.4% | — |
| Vectara Hallucination Rate | 7.4% | — |
| MMLU | — | 86.4% |
| TriviaQA | — | 84.8% |
Multimodal Not comparable
Gemma 4 31B IT: 41.6 (#34), GPT-4: —
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| LMArena Vision | 1277 | — |
| LMArena Document | 1425 | — |
Multilingual Gemma 4 31B IT leads
Gemma 4 31B IT: 53.8 (#57), GPT-4: 40.6 (#215)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| LMArena Non-English | 1431 | 1246 |
| LMArena Chinese | 1476 | 1242 |
| LMArena French | 1435 | 1283 |
| LMArena Russian | 1460 | 1251 |
| LMArena Spanish | 1444 | 1261 |
| LMArena German | — | 1251 |
| LMArena Japanese | — | 1209 |
| LMArena Korean | — | 1184 |
Instruction Following Gemma 4 31B IT leads
Gemma 4 31B IT: 75.5 (#61), GPT-4: 65.3 (#222)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| LMArena Instruction Following | 1433 | 1241 |
Long Context Gemma 4 31B IT leads
Gemma 4 31B IT: 44.2 (#71), GPT-4: 37.7 (#212)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| LMArena Longer Query | 1446 | 1244 |
Writing & Preference Gemma 4 31B IT leads
Gemma 4 31B IT: 60.5 (#96), GPT-4: 34.9 (#268)
| Benchmark | Gemma 4 31B IT | GPT-4 |
|---|---|---|
| LMArena Text | 1443 | 1263 |
| LMArena Creative Writing | 1415 | 1244 |
| EQ-Bench Creative Writing | 1368 | 752 |
| LMArena Multi-Turn | 1452 | 1257 |
| EQ-Bench 4 | 1120 | — |
Frequently asked questions
Is Gemma 4 31B IT better than GPT-4?
Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.1 on the Noometry Index.
Which is cheaper, Gemma 4 31B IT or GPT-4?
Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; GPT-4 lists at $30 and $60.
Is Gemma 4 31B IT or GPT-4 better for coding?
Gemma 4 31B IT scores higher on coding benchmarks: 42.3 versus 31.6 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 4 31B IT and GPT-4 share?
22 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and GPT-4 has 38.