One Month Later, Everything Changed
In early March, we published a head-to-head comparison of Llama 4, Qwen 3.5, and Gemma 3. The conclusion was clear: Gemma 3 finished last in every category except raw inference speed. Qwen 3.5 won math, coding, and multilingual. Llama 4 Scout won reasoning and context length. Gemma 3 was the also-ran.
Update, October 2026. Qwen has moved on from 3.5: our measurements of Qwen3.8-27B on an RTX 5090 and of Qwen3.8-Flash-Next on two DGX Sparks are the current state of that family. The Gemma 4 and Qwen 3.5 numbers below are unchanged.
Update, November 2026. Three things have changed since April. Google added a fifth size, Gemma 4 12B, on 3 June 2026. Google has since published scores for E2B and E4B, in the model card and the July technical report, so the small-model section now has numbers where it said there were none. And Qwen 3.5-4B and 9B are not text-only, as we wrote: their model cards list a vision encoder and score them on image and video benchmarks. The size-for-size section below is new; the April tables are as published.
That article is now outdated, and this one replaces it. Short version: Gemma 4 takes math, coding and general reasoning; Qwen 3.5 keeps multilingual and the best quality per gigabyte. The tables below show the whole picture, and the small-model question has its own section below, with the per-size numbers both vendors have published since launch.
Where the Qwen family went next is a separate story: Qwen3.8-27B and Qwen3.8-Flash-Next are several generations on from the 3.5 discussed here.
Google just released Gemma 4 — four model sizes at launch, five since June, a new MoE architecture, multimodal audio support, thinking mode, and benchmark scores that make Gemma 3's numbers look like a different era. The jump isn't incremental. It's the largest single-generation improvement we've seen in the open model space.
The Gemma 4 Family
Five models, four at the April launch and a 12B added on 3 June 2026, spanning edge devices to full GPUs:
| Model | Architecture | Total Params | Active Params | Context | Modalities |
|---|---|---|---|---|---|
| Gemma 4 E2B | Dense | 5.1B | 2.3B | 128K | Text, Image, Audio, Video |
| Gemma 4 E4B | Dense | 8B | 4.5B | 128K | Text, Image, Audio, Video |
| Gemma 4 12B (June 2026) | Dense, encoder-free | 11.95B | 11.95B | 256K | Text, Image, Audio |
| Gemma 4 26B-A4B | MoE (128 experts) | 25.2B | 3.8B | 256K | Text, Image, Video |
| Gemma 4 31B | Dense | 30.7B | 30.7B | 256K | Text, Image, Video |
The naming convention: E prefix means effective parameters, the count that is active at inference once the per-layer embeddings are set aside, so E4B is 8B on disk with embeddings; A means active parameters in the MoE variant. The 12B, which Google calls "12B Unified", drops the separate vision and audio encoders and projects raw image patches and audio waveforms straight into the model; Google's launch line for it was that it runs in 16 GB of VRAM or unified memory. So "26B-A4B" = 26B total, 4B active per token.
The standout is the 26B-A4B. It uses 128 small experts with 8 active per token plus one shared always-on expert. This is a different design philosophy from Llama 4 Scout's 16 large experts — Google bet on many small experts rather than fewer large ones.
The Numbers: Gemma 3 vs Gemma 4
These comparisons use the same benchmarks, same evaluation conditions. The improvements are not subtle.
Reasoning & Knowledge
| Benchmark | Gemma 3 27B | Gemma 4 31B | Gemma 4 26B-A4B | Change (31B) |
|---|---|---|---|---|
| MMLU Pro | 67.6% | 85.2% | 82.6% | +17.6 pts |
| GPQA Diamond | 42.4% | 84.3% | 82.3% | +41.9 pts |
| BigBench Extra Hard | 19.3% | 74.4% | 64.8% | +55.1 pts |
| MMMLU (multilingual) | 70.7% | 88.4% | 86.3% | +17.7 pts |
GPQA Diamond — graduate-level reasoning — nearly doubled. BigBench Extra Hard went from 19% to 74%. These aren't incremental gains. Gemma 3 was struggling with hard reasoning; Gemma 4 handles it.
Mathematics
| Benchmark | Gemma 3 27B | Gemma 4 31B | Gemma 4 26B-A4B | Change (31B) |
|---|---|---|---|---|
| AIME 2026 | 20.8% | 89.2% | 88.3% | +68.4 pts |
From 20.8% to 89.2% on competition math. This is the single most dramatic benchmark improvement in the table. For context, in our March comparison, Qwen 3.5-27B scored 48.7% on AIME 2025 and was the math leader. Gemma 4 nearly doubles that.
The thinking mode — where the model reasons step-by-step before answering — is likely driving this. When Gemma 4 "thinks," it can produce 4,000+ tokens of reasoning before committing to an answer.
Coding
| Benchmark | Gemma 3 27B | Gemma 4 31B | Gemma 4 26B-A4B | Change (31B) |
|---|---|---|---|---|
| LiveCodeBench v6 | 29.1% | 80.0% | 77.1% | +50.9 pts |
| Codeforces ELO | 110 | 2150 | 1718 | +2040 pts |
Codeforces ELO went from 110 (barely functional) to 2150 (expert competitive programmer). LiveCodeBench nearly tripled. The coding gap between Gemma and the competition didn't just close — it reversed.
Vision
| Benchmark | Gemma 3 27B | Gemma 4 31B | Gemma 4 26B-A4B |
|---|---|---|---|
| MMMU Pro | 49.7% | 76.9% | 73.8% |
| MATH-Vision | 46.0% | 85.6% | 82.4% |
Vision understanding saw similar jumps. MATH-Vision — solving math problems from images — nearly doubled. The model now handles charts, diagrams, and handwritten equations significantly better.
Long Context
| Benchmark | Gemma 3 27B | Gemma 4 31B | Gemma 4 26B-A4B |
|---|---|---|---|
| MRCR v2 (128K avg) | 13.5% | 66.4% | 44.1% |
Gemma 3's 128K context was mostly theoretical — it could accept long inputs but couldn't reliably use information from them. Gemma 4 at 256K context actually retrieves and reasons over long documents. The 31B model went from 13.5% to 66.4% on multi-needle retrieval tests.
The MoE Efficiency Story
The 26B-A4B deserves special attention. Look at these numbers again:
| Benchmark | Gemma 4 31B (30.7B active) | Gemma 4 26B-A4B (3.8B active) |
|---|---|---|
| MMLU Pro | 85.2% | 82.6% |
| AIME 2026 | 89.2% | 88.3% |
| LiveCodeBench v6 | 80.0% | 77.1% |
| GPQA Diamond | 84.3% | 82.3% |
| LMArena Score | ~1452 | ~1441 |
The MoE variant achieves 97% of the dense model's quality while activating only 3.8B parameters per token instead of 30.7B. That's 8x less compute per inference step. If the routing arithmetic behind that is unfamiliar, we broke it down in Mixture of Experts, Explained.
For deployment, this means:
- Much less VRAM needed for KV cache at long contexts
- Faster inference — fewer parameters to compute per token
- Lower cost per query in production
Google's choice of 128 small experts (vs Llama 4's 16 large experts) appears to work. The LMArena score of 1441 with only 4B active params is remarkable — it's competitive with models 8x its active size.
How Gemma 4 Reshapes Our Comparison
Our March rankings put Qwen 3.5 first, Llama 4 second, Gemma 3 third. Here's how Gemma 4 changes each category:
| Category | March Winner | Updated Assessment |
|---|---|---|
| General reasoning | Llama 4 Scout | Gemma 4 31B takes the lead (84.3% GPQA vs Scout's 74.3%) |
| Mathematics | Qwen 3.5-27B | Gemma 4 dominates (89.2% AIME, well ahead of Qwen's ~49%) |
| Coding | Qwen 3.5-27B | Gemma 4 dominates (80.0% LiveCodeBench vs Qwen's ~43%) |
| Multilingual | Qwen 3.5-27B | Likely still Qwen (250K vocab, 201 languages vs Gemma's 140) |
| Inference speed | Gemma 3 27B | TBD — need to benchmark Gemma 4 31B on same hardware |
| Context length | Llama 4 Scout (10M) | Still Llama 4 (10M vs 256K), but Gemma 4 actually uses its context |
| License | Qwen 3.5 (Apache 2.0) | Tie — Gemma 4 is now Apache 2.0 too |
| VRAM efficiency | Qwen 3.5-9B | Gemma 4 26B-A4B is the new efficiency king |
Note on benchmark versions: Our March tests used AIME 2025, LiveCodeBench v5, and standard MMLU. Gemma 4's reported scores use AIME 2026, LiveCodeBench v6, and MMLU Pro. Direct numerical comparison across versions should be taken as directional, not exact. The Gemma 3 → Gemma 4 comparisons above use identical benchmark versions.
Size for size: Gemma 4 E2B, E4B and 12B vs Qwen 3.5-4B and 9B
The comparison above is between the big models. The one people ask about is the small pairs, and since April both vendors have published enough to answer it on paper.
| Row | Gemma 4 E2B | Qwen 3.5-4B | Gemma 4 E4B | Qwen 3.5-9B | Gemma 4 12B |
|---|---|---|---|---|---|
| params, effective / with embeddings | 2.3B / 5.1B | 4.66B | 4.5B / 8B | 9.65B | 11.95B |
| context | 128K | 262K | 128K | 262K | 256K |
| modalities | text, image, audio, video | text, image, video | text, image, audio, video | text, image, video | text, image, audio |
| licence | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| size on disk, Q6_K | — | 3.6 GB | — | 7.5 GB | — |
| decode on an RTX 5090, measured | — | — | — | 161 tok/s | — |
The two rows at the bottom are ours, from March. Everything else is from the model cards.
The vendors' numbers, side by side. Six benchmarks appear in both Google's and Qwen's own tables, both in thinking mode. They were run by two different labs on two different harnesses, so these are the numbers each vendor chose to publish, not a head-to-head we ran, and gaps under three points are noise. Math is missing because Google reports AIME 2026 and Qwen reports HMMT, which are not the same test.
| vendor-reported, thinking mode | Gemma 4 E2B | Qwen 3.5-4B | Gemma 4 E4B | Qwen 3.5-9B | Gemma 4 12B |
|---|---|---|---|---|---|
| MMLU Pro | 60.0 | 79.1 | 69.4 | 82.5 | 77.2 |
| GPQA Diamond | 43.4 | 76.2 | 58.6 | 81.7 | 78.8 |
| LiveCodeBench v6 | 44.0 | 55.8 | 52.0 | 65.6 | 72.0 |
| MMMLU, multilingual | 67.4 | 76.1 | 76.6 | 81.2 | 83.4 |
| MMMU Pro, vision | 44.2 | 66.3 | 52.6 | 70.1 | 69.1 |
| IFEval | 94.6 | 89.8 | 96.7 | 91.5 | — |
Sources: Google's Gemma 4 model card and technical report (July 2026) for the Gemma columns, the Qwen3.5-4B and 9B model cards for the Qwen columns. Qwen's card does not label its table by mode; the models think by default.
Gemma 4 E2B vs Qwen 3.5-4B. Not close on the published numbers: Qwen leads by 19 points on MMLU Pro, 33 on GPQA, 12 on LiveCodeBench, 9 on MMMLU and 22 on MMMU Pro. E2B's case is elsewhere: 2.3B effective parameters against 4.66B, so it is the smaller and faster of the two on a phone or a 4 GB card, and it is the only one of the pair that hears audio. Pick E2B for the edge and for voice; pick the 4B for quality where it fits.
Gemma 4 E4B vs Qwen 3.5-4B. The fair fight by memory, 8B with embeddings and 4.5B effective against 4.66B. Qwen leads MMLU Pro by 10, GPQA by 18, MMMU Pro by 14 and LiveCodeBench by 4; MMMLU is a tie at 76; Gemma leads IFEval by 7. So Qwen 3.5-4B for knowledge, reasoning, vision and code, E4B for audio and for strict instruction following, which IFEval measures.
Gemma 4 E4B vs Qwen 3.5-9B. The pair people search for most, and on vendor numbers the 9B leads every row by 10 to 23 points except IFEval. It has twice the active parameters, so that is the expected result, and the price is memory: 7.5 GB at Q6_K against something under 6 GB for E4B. What we wrote in April, that the differentiator is modality, was half right: E4B's audio is still unique at this size, but Qwen 3.5-9B reads images and video, which we had wrong. Pick E4B for audio on a small device; pick the 9B for everything else on 8 GB and up.
Gemma 4 12B vs Qwen 3.5-9B. The only close one. Gemma leads on LiveCodeBench, 72.0 against 65.6, and on MMMLU, 83.4 against 81.2; Qwen leads on MMLU Pro, 82.5 against 77.2, and on GPQA, 81.7 against 78.8; vision is a tie. Gemma adds audio and costs about a quarter more memory, 11.95B parameters against 9.65B, so around 9.5 GB at Q6_K against 7.5. If the work is code, the 12B; if it is knowledge and reasoning, the 9B; on a 12 GB card the 9B leaves room for context and the 12B does not.
Qwen 3.5-4B vs 9B. Same architecture, same training, same modalities. The 9B is ahead by 3 to 10 points on every row, with the largest gap on coding, 65.6 against 55.8. The 4B's only wins are size, 3.6 GB against 7.5 at Q6_K, and the speed that follows from it. Run the 9B wherever 8 GB of VRAM or more is available; take the 4B on a 6 GB card or on CPU, where every gigabyte of bandwidth counts.
Gemma 4 vs Qwen 3.5 for coding
LiveCodeBench v6 is the one coding benchmark both vendors report across every size, so the ladder is complete:
| vendor-reported, LiveCodeBench v6 | score |
|---|---|
| Gemma 4 31B | 80.0 |
| Gemma 4 26B-A4B | 77.1 |
| Gemma 4 12B | 72.0 |
| Qwen 3.5-9B | 65.6 |
| Qwen 3.5-4B | 55.8 |
| Gemma 4 E4B | 52.0 |
| Gemma 4 E2B | 44.0 |
Gemma takes every tier from 12B up; Qwen takes the 4B class, where its 4B beats E4B by four points on a near-equal memory budget. Qwen 3.5-27B's roughly 43% in our March piece was on LiveCodeBench v5 and is not comparable to this table. None of these is a measurement of ours: the coding we measure is repairing real broken repositories with an agent harness, and we have not run it on either family's small models.
The Apache 2.0 Switch
Gemma 3 shipped with the "Gemma Open" license — commercial use allowed but with Google-specific terms and restrictions. In our March comparison, we flagged this as a disadvantage against Qwen 3.5's Apache 2.0.
Gemma 4 switches to Apache 2.0. No usage restrictions, no MAU limits, no acceptable use policies. The same license as Qwen 3.5.
This removes one of the last arguments against Gemma. For businesses building products on open models, the licensing playing field is now level between Gemma 4 and Qwen 3.5. Llama 4's community license (700M MAU limit + Meta's acceptable use policy) is now the most restrictive of the three families.
What's New Beyond Benchmarks
Thinking Mode
Gemma 4 supports extended reasoning — the model produces a chain-of-thought before answering, similar to DeepSeek-R1 or OpenAI o1. This is what drives the massive math and reasoning improvements. The thinking can run to 4,000+ tokens, giving the model space to break problems down, try approaches, and verify its work.
Multimodal Audio
The smaller models (E2B, E4B) and, since June, the 12B support audio input — speech transcription and audio Q&A. The larger models (26B-A4B, 31B) handle image and video but not audio. This is an unusual split: the edge models are more multimodal than the flagship.
Native Function Calling
All models support structured function calling out of the box — returning JSON with tool calls without special prompting. Combined with the thinking mode, this makes Gemma 4 a strong candidate for agentic workflows where the model needs to reason about which tools to call and in what order.
Per-Layer Embeddings (PLE)
A novel architecture feature: a second embedding table feeds residual signals into every decoder layer, giving each layer a token-identity component tailored to that specific layer's role. This is a quiet innovation that likely contributes to the quality improvements across the board. The idea has since turned up at much larger scale — Qwen3.8-Flash-Next spends 51B of its 180B parameters on a per-layer n-gram table, which we take apart in Three Local Flagships, One Idea.
Shared KV Cache
The last several decoder layers share key-value tensors, reducing memory usage during long-context inference with minimal quality impact. Combined with the 256K context window, this makes Gemma 4 practical for long-document workflows where Gemma 3 was only theoretical.
Updated Decision Matrix
| If you need... | Use | Why |
|---|---|---|
| Best overall quality (32 GB GPU) | Gemma 4 31B | Leads reasoning, math, coding, vision |
| Best quality per compute | Gemma 4 26B-A4B | 97% of 31B quality at 8x less compute |
| Maximum context window | Llama 4 Scout | Still 10M tokens, unmatched |
| Best multilingual | Qwen 3.5-27B | 250K vocab, 201 languages |
| Best under 10 GB VRAM | Qwen 3.5-9B | Leads E4B on every vendor row but IFEval; Gemma 4 12B at ~9.5 GB if coding matters |
| Best under 5 GB VRAM | Qwen 3.5-4B | Leads E4B on knowledge, reasoning, vision and code at the same memory |
| Edge / mobile deployment | Gemma 4 E2B | 2.3B active, audio support, 128K context |
| Most permissive license | Gemma 4 or Qwen 3.5 | Both Apache 2.0 |
| Audio understanding | Gemma 4 E4B or 12B | Qwen 3.5's small models see images and video but do not hear |
| Agentic workflows | Gemma 4 31B | Thinking mode + native function calling |
What We Still Need to Test
We haven't run Gemma 4 on our RTX 5090 benchmark suite yet, and the size-for-size table above is the vendors' numbers, not ours. Key unknowns:
- Actual inference speed — the 31B dense model should be comparable to Gemma 3 27B in tok/s, but the MoE 26B-A4B is the interesting question. With 128 experts and 3.8B active params, it could be very fast
- VRAM usage with quantization — Q6_K and Q4_K_M sizes for each variant
- Real-world multilingual performance — Gemma claims 140 languages, but Qwen's 201-language, 250K-vocabulary advantage may still hold for CJK and non-Latin scripts
- Thinking mode overhead — how much slower is inference when the model reasons for 4,000 tokens before answering?
We'll publish a full hands-on benchmark when we've run the tests. For now, Google's reported numbers are strong enough to change the recommendation.
The Bottom Line
A month ago we wrote: "Choose Gemma 3 when you need Google ecosystem integration or when marginal inference speed differences matter. It's a solid model, but it doesn't lead in any benchmark category."
That's no longer true. Gemma 4 leads in reasoning, math, coding, and vision. The 26B-A4B MoE variant offers the best quality-per-compute ratio in the open model space. The license is now Apache 2.0. The context window works.
The open model race just got a new leader. Qwen 3.5 still holds the multilingual crown, and Llama 4 Scout still has the unmatched 10M context window. But for overall quality, especially on hard reasoning and coding tasks, Gemma 4 is the model to beat.
The ball is now in Alibaba's and Meta's court.
This article is a follow-up to Llama 4 vs Qwen 3.5 vs Gemma 3: Which Open Model Should You Deploy?, published March 6, 2026.
Want to fine-tune Gemma 4 locally? Read Gemma 4 LoRA Fine-Tuning on RTX 5090: What Works and What Doesn't for our hands-on results.