GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
RecentarXiv preprint

Gemma 4 Technical Report

Google DeepMind's open-weight family from 2.3B to 31B, with thinking mode, audio and vision. The report's memory table is what to read first: which model fits your hardware, and with how many users.

Breakdown by FDE Interviews · 14 min read · Updated

About the original · 2026
AUTHORS
Gemma Team
FROM
Google DeepMind
PUBLISHED
Jul 2026 · arXiv preprint
CITED BY
253Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 16% of this breakdown.

01

The paper in one minute

Gemma 4 is Google DeepMind's fourth open-weight family, released under Apache 2.0. It has five models. E2B and E4B are dense models with 2.3B and 4.5B effective parameters (5B and 8B including per-layer embeddings), built for phones and laptops, with vision and audio encoders. 12B is dense and encoder-free: image patches pass through a single 35M-parameter projection and raw audio is fed in 40 ms chunks. 26B-A4B is a mixture-of-experts with 3.8B parameters active per token. 31B is dense.

All five have a thinking mode, switched on by putting <|think|> in the system turn, that writes a reasoning trace before answering. The architecture is tuned for memory: five sliding-window layers per global attention layer (four for E2B), keys reused as values in global layers of the larger models, p-RoPE on global layers, and KV-cache sharing across layers in E2B and E4B. Each model ships with a small multi-token-prediction drafter (76M to 500M parameters) for speculative decoding and with quantization-aware-trained checkpoints.

In thinking mode, the 31B scores 89.2 on AIME 2026, 80.0 on LiveCodeBench v6 and 84.3 on GPQA Diamond; Gemma 3 27B, without thinking, scored 20.8, 29.1 and 42.4. On the Arena text leaderboard the 31B reached 1451 Elo, the top dense open model, against 1508 for the top closed model. The report's Table 3 gives memory for weights and a 32k-token KV cache for every size.

THE IDEA, VISUALLY
TEXT-ONLY MEMORY, GB (TABLE 3) quantized weights bf16 weights + int8 KV, 32k E2B 0.8 / 4.6 +0.05 E4B 2.3 / 9.0 +0.14 12B 7.65 / 24.0 +0.28 26B-A4B 16.2 / 52.0 +0.28 31B 19.2 / 64.0 +1.10 26B-A4B activates ~4B per token but must hold all 26B in memory; 31B's KV cache is 4x the 26B-A4B's at the same context WHAT THE ARCHITECTURE DOES FOR SERVING 5 sliding-window layers per global layer (4 for E2B) global layers reuse keys as values; p-RoPE (p = 0.25) E2B, E4B share KV across layers (ratios 20/35, 18/42) a 76M-500M multi-token-prediction drafter per model QAT checkpoints: Q4_0, and int2/int4 mobile mixes 12B: no encoders; a 35M matmul on 48 x 48 pixel patches thinking mode switched on with <|think|> in the system turn Apache 2.0; vision budget per image: 70 to 1,120 tokens pre-training data cutoff: January 2025 THINKING-MODE SCORES (TABLE 5) 31B 26B-A4B 12B E4B E2B G3 27B AIME 2026 89.2 88.3 77.5 42.5 37.5 20.8 LiveCodeBench v6 80.0 77.1 72.0 52.0 44.0 29.1 GPQA Diamond 84.3 82.3 78.8 58.6 43.4 42.4 Tau2 retail 86.4 85.5 77.6 67.1 34.6 6.6 MRCR v2, 128k 66.4 44.1 43.4 25.4 19.1 13.5 Gemma 3 27B ran without thinking ARENA TEXT ELO, 2026-06-19 (TABLE 4) top closed model 1508 Gemma 4 31B (rank 43) 1451 Gemma 4 26B-A4B (rank 61) 1438 Gemma 3 27B (rank 157) 1366 axis starts at 1,300; intervals ±4 to ±10 DOCUMENTS NEED VISION TOKENS (INFOGRAPHICVQA) 1,120 → 280 tokens 31B 92.0 → 82.8 26B-A4B 89.3 → 77.8 12B 88.4 → 58.7 E4B 70.0 → 54.8 E2B 63.9 → 44.6 axis starts at 40; the encoder-free 12B drops most
Quantized weights for the whole family fit between 0.8 and 19.2 GB, but the MoE must hold all its weights and the 31B's KV cache is four times the MoE's. Document images lose a lot when the vision budget is cut.
Research notes: the problem, approach and results
19.2 GB

Gemma 4 31B weights in Q4_0, against 64.0 GB in bf16; an int8 KV cache for 32k tokens adds 1.10 GB

1451

Arena text Elo of Gemma 4 31B on 19 June 2026, the highest dense open model; the top closed model scored 1508

88.4 → 58.7

Gemma 4 12B on InfographicVQA at 1,120 versus 280 vision tokens per image

THE PROBLEM

Teams choosing an open model for their own hardware need more than a leaderboard: memory for weights and KV cache at real context lengths, what thinking mode buys, how multimodal input is priced in tokens, and which size matches which device.

THE IDEA

Release five sizes (effective 2.3B and 4.5B for phones, 12B, a 26B mixture-of-experts with about 4B active, and 31B dense) with a thinking mode, quantization-aware-trained checkpoints, a multi-token-prediction drafter for speculative decoding, long-context memory savings, and an encoder-free 12B that takes raw image patches and audio.

THE RESULT

Gemma 4 31B scores 89.2 on AIME 2026 and 84.3 on GPQA Diamond in thinking mode and reached Arena text Elo 1451, the top dense open model on 19 June 2026. Quantized, it needs 19.2 GB for weights plus 1.10 GB of int8 KV cache per 32k-token session; the E2B needs 0.8 GB.

02

Why it matters to an FDE

Most open-model reports give benchmark tables. This one also gives the numbers you need to size a deployment, which makes it a working document for a model-selection conversation.

Memory, per model. Quantized weights take 0.8 GB (E2B), 2.3 GB (E4B), 7.65 GB (12B), 16.2 GB (26B-A4B) and 19.2 GB (31B). An int8 KV cache for one 32k-token session adds 0.05 to 1.10 GB. From those two numbers you can estimate how many concurrent long sessions fit on a 24 GB or 80 GB card before testing anything.

The MoE trade. 26B-A4B computes like a 4B model per token but holds 26B of weights, so it saves compute and latency, not memory. Its KV cache is a quarter of the 31B's at the same context, which matters more than its weights once many users share a GPU.

Images cost context. The vision budget is set per image from 70 to 1,120 soft tokens. Documents need the high end: the 12B's InfographicVQA score falls from 88.4 to 58.7 at 280 tokens. A 40-page PDF at full resolution is over 40,000 tokens of context.

Thinking costs tokens. The large gains on math and code are in thinking mode. Each answer then carries a reasoning trace, so measure latency and token spend with it on and off for the customer's tasks.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 149 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    Size by size, what thinking mode and quantization change, long-context results and three misreadings

    Free account
  2. 04How it works

    The memory-saving attention design, the drafter, the image tokenizer and the encoder-free 12B

    Premium
  3. 05The numbers that matter

    Benchmarks by size, Arena, vision at two budgets, long context, audio and memory

    Premium
  4. 06Try it yourself

    Check the report's claims, count vision tokens per page, and see what fits a GPU

    Premium
  5. 07Where it breaks

    Missing speedup numbers, mixed-mode comparisons, partial memory figures and the slips

    Premium
  6. 08Using it on a deployment

    Sizing to hardware and users, setting the vision budget, and testing thinking mode on the real tasks

    Premium
  7. 09Interview angles

    Five questions this report prepares you for, with answer hints

    Premium
Back to the paper library →