---
type: analysis
slug: gemma-4-31b-s-scores-hold-in-google-s-setup-your-bottleneck-is-keeping-them
title: "Gemma 4 31B's scores hold in Google's setup. Your bottleneck is keeping them across backends"
description: "Google released an Apache 2.0 31B model with strong reported scores, a fine-tuning map that exports to four serving formats, a voice pipeline made of several separate parts, and a DeepMind paper showing that identical weights give different token probabilities on different backends. Taken together, these suggest that most of the risk for builders now sits in the space between runtimes, and the benchmark table doesn't capture it."
published_at: 2026-11-30T08:00:00.000Z
topics: ["google","tools"]
source_urls: ["https://huggingface.co/google/gemma-4-31B-it","https://developers.googleblog.com/en/on-device-speech-recognition-and-text-to-speech-in-google-ai-edge-gallery","https://gemma.ai/tuning","https://arxiv.org/html/2603.20521v3"]
author: "Andrey Reshetnikov"
author_profile: https://newruntime.com/owner-profile.md
---
# Gemma 4 31B's scores hold in Google's setup. Your bottleneck is keeping them across backends

Google released an Apache 2.0 31B model with strong reported scores, a fine-tuning map that exports to four serving formats, a voice pipeline made of several separate parts, and a DeepMind paper showing that identical weights give different token probabilities on different backends. Taken together, these suggest that most of the risk for builders now sits in the space between runtimes, and the benchmark table doesn't capture it.

## Summary

Google DeepMind's Gemma 4 31B-it is an open-weights, Apache 2.0 dense model. Google reports 85.2% on MMLU Pro, 89.2% on AIME 2026 without tools, and a Codeforces Elo of 2150. In the same period Google published a Gemma 4 fine-tuning guide that ends in export to vLLM, GGUF, Ollama or LiteRT-LM, added on-device ASR and TTS that run alongside Gemma 4 in AI Edge Gallery, and a DeepMind researcher posted a paper on reinforcement learning when rollout and training backends disagree. Our read: once you tune and deploy Gemma 4 yourself, the scores you actually get depend on whether you keep behaviour the same across runtimes.

## What happened

The Hugging Face model card describes Gemma 4 as five sizes: E2B, E4B, 12B, 26B A4B and 31B. The 31B is a dense model with 30.7B parameters, 60 layers, a 256K context window, text and image input, native function calling, and a thinking mode switched by a control token. Google's own table, reported for instruction-tuned models, gives 85.2% on MMLU Pro, 89.2% on AIME 2026 without tools, 80.0% on LiveCodeBench v6, 2150 Codeforces Elo and 84.3% on GPQA Diamond. Gemma 3 27B without thinking scored 20.8% on AIME and 110 Elo. The card asks for fixed sampling settings (temperature 1.0, top_p 0.95, top_k 64) and gives detailed chat-template rules: empty thought tags even when thinking is off, thoughts removed from history except on tool-call turns, images placed before text and audio after.

The Gemma fine-tuning overview lays out four stages: continued pre-training, supervised fine-tuning, reinforcement learning, and deployment. The RL stage includes GRPO with verifiable rewards for math, code or SQL. The deployment stage exports merged checkpoints to vLLM, GGUF, Ollama or LiteRT-LM. Google's AI Edge blog (November 10, 2026) adds on-device ASR and TTS to AI Edge Gallery, paired with Gemma 4. It deliberately uses separate small speech models in a chain rather than Gemma's native audio input. Ian Osband's arXiv paper, "Delightful Policy Gradient under Distributed Friction" (v3, November 20, 2026), starts from the observation that identical weights produce different token probabilities across inference stacks, which quietly turns on-policy RL into off-policy RL. It proposes a gated update that needs no behaviour probabilities. The paper says plainly that all its experiments are controlled diagnostics.

## What the archive adds

An earlier New Runtime note on the Gemma fine-tuning guide summarised its decision map. It recommends RAG for facts that change often, supervised fine-tuning for new formats, personas or tool schemas, and starting most work from the instruction-tuned checkpoint. It also quotes Google's estimate of about 11 GB peak memory with QLoRA versus about 80 GB for full fine-tuning on Gemma 4 12B at 2,048 tokens. The same note pointed out that the page has no publication date or changelog. That still matters: guidance on backend mismatch could arrive with no visible announcement. Independent outside checks help here too. Artificial Analysis ranks Gemma 4 31B (reasoning) at 39 on its Intelligence Index, below Qwen3.5 27B at 42. It also notes this is a separately run evaluation, not a replication of Google's AIME or Codeforces figures. The vLLM LLM Compressor docs report a sweep of NVFP4 quantization on Gemma 4 31B. Score recovery ranged from 92.4% to 99.9% on GPQA Diamond, MMLU-Pro and LiveCodeBench v6, and coding varied more than knowledge tasks.

## Trend signal

Open-weight releases now ship as stacks rather than files. Each Gemma 4 piece comes with recipes for several runtimes: Transformers for loading, vLLM and SGLang for serving, llama.cpp, Ollama and MLX for local use, LiteRT-LM and MediaPipe for edge, and Unsloth plus an agent "skill" for tuning. Google's open-source blog says the move to Apache 2.0 was about developer autonomy and local execution. The launch post lists third-party runtimes next to Google's own tools. The outcome is that one model's behaviour is spread across many implementations that each handle chat templates, thinking tags, sampling and numerics a little differently. The research community is starting to treat this spread as a training problem, as Osband's paper shows. Release marketing still treats it as a deployment detail. This continues the familiar gap between vendor scores and independent scores, but it is getting worse: more of the pipeline, including RL rollouts, now runs on hardware and software the user chooses.

## Why now

Four drivers explain why the backend gap is showing up now. First, Google moved Gemma 4 to Apache 2.0 to give developers autonomy and local execution (Google's open-source blog), which pushes the model onto many third-party runtimes rather than one hosted endpoint. Second, the fine-tuning guide makes RL with verifiable rewards and multi-format export standard steps, so users now run rollouts on one stack and training on another. Third, reasoning models produce long traces, and the DG paper says small token-probability mismatches compound across tokens. Fourth, the edge push, with AI Edge Gallery chaining separate ASR and TTS models around Gemma 4, adds more runtimes per product, each with its own numerics and scheduling.

## Connections to other events

The constraint nobody names is consistency across backends. Follow a typical Gemma 4 31B project through Google's own documents. You start from the -it checkpoint that the 89.2% AIME figure was measured on, under Google's harness and sampling settings. You run GRPO with verifiable rewards, as the tuning guide suggests. For speed, rollouts usually come from a serving engine while gradients are computed in a training framework. The DG paper says this is exactly where identical weights assign different token probabilities, and the gap compounds over long sequences. AIME-style reasoning traces are long, so they are hit hardest. Then you export to GGUF or LiteRT-LM and likely quantize. The vLLM NVFP4 sweep shows coding retention varying by recipe, and AIME and Codeforces were not tested after quantization at all. Every step also re-implements the thinking-tag and history-stripping rules from the model card. If you get those wrong, the model gets prompts it was never trained on. Even the edge voice pipeline adds separate components, ASR and TTS models chained around the LLM, each with its own runtime. So the score that counts is the one your exported, quantized, template-processed model gets on your task. The DG paper's own disclaimer shows that nobody has yet shown, end to end, how to keep RL stable through this chain. Google is publishing the ingredients but not a harness that checks for consistency.

## Why it matters

For builders, budget for parity testing the way you budget for GPUs. Before any RL run, measure the per-token log-probability gap between your rollout engine and your trainer on the same prompts. If the gap grows with sequence length, plain policy-gradient updates are training on off-policy data. For buyers comparing Gemma 4 31B with hosted APIs: Google's table describes what the model can do, not what your deployment will deliver. Artificial Analysis already places it slightly below Qwen3.5 27B on a broader index. The real choice depends on how well your chosen runtime and quantization preserve the specific skill you need. The strongest counter-argument is that these drifts are small, a few points at most, and that mature runtimes like vLLM and llama.cpp already handle chat templates correctly, so the 31B's lead over Gemma 3 overwhelms any drift. That is fair for chat and knowledge tasks, where the NVFP4 data shows close to full retention. It is weaker for the long-trace reasoning and coding that the headline numbers advertise. Those are exactly where compounding token mismatch and varied coding recovery show up, and they are the use cases people adopt the 31B for.

## What happens next

- **Artificial Analysis will still rank Gemma 4 31B (reasoning) below Qwen3.5 27B on its Intelligence Index at the end of January 2027, despite Google's stronger self-reported scores.** (3 months, 70%). Watch for: Artificial Analysis publishes updated index scores for Gemma 4 31B without closing the 3-point gap to Qwen3.5 27B. Resolves on 2027-01-31, yes if: The Artificial Analysis leaderboard or Gemma 4 article shows Gemma 4 31B (reasoning) with a lower Intelligence Index score than Qwen3.5 27B on 2027-01-31.
- **Google's Gemma tuning documentation will add explicit guidance on handling rollout/trainer log-probability mismatch in RL within three months.** (3 months, 20%). Watch for: The verifiable rewards or scaling pages on gemma.ai/tuning mention backend mismatch, importance correction or the Delightful Policy Gradient. Resolves on 2027-02-28, yes if: The Gemma fine-tuning docs at gemma.ai/tuning contain the phrase 'Delightful Policy Gradient' or a section on rollout/trainer probability mismatch by 2027-02-28.
- **A new version of the Delightful Policy Gradient paper will add an end-to-end LLM post-training evaluation within three months.** (3 months, 20%). Watch for: A v4 of arXiv:2603.20521 appears with experiments on a production-scale language model. Resolves on 2027-02-28, yes if: arXiv lists a version v4 or later of 2603.20521 whose abstract no longer states that no end-to-end distributed system is evaluated, by 2027-02-28.

## Limits and uncertainty

No public data measures how far Gemma 4 31B's AIME or Codeforces scores move after GGUF export, Ollama serving or LiteRT-LM conversion. The quantization evidence covers NVFP4 on three benchmarks only. The DG paper tests MNIST, bandits and a small transformer token-reversal task, not an LLM post-training run. Its relevance to a GRPO job on Gemma is our inference, not something the paper shows. Artificial Analysis and Google use different benchmark setups, so the gap between them does not prove harness drift. It could simply reflect different task mixes. Google may already handle consistency inside its gemma-trainer skill or Unsloth integration in ways the overview page doesn't describe. Our archive could not return comparable past cases, so we have no base rate for how often open-model scores degrade after deployment.

## Competing readings

- **The binding constraint for Gemma 4 31B builders is keeping behaviour consistent across rollout, training, quantization and serving backends, not the model's raw capability** (likely, about 55%). What would tell it apart: Google's tuning path runs RL and then exports to four different serving formats ([gemma.ai](https://gemma.ai/tuning)); DeepMind's own researcher documents token-probability drift across backends with identical weights ([arxiv.org](https://arxiv.org/html/2603.20521v3)); Quantized coding retention varies, and an independent index ranks the model lower than vendor numbers imply ([artificialanalysis.ai](https://artificialanalysis.ai/articles/gemma-4-everything-you-need-to-know/))([docs.vllm.ai](https://docs.vllm.ai/projects/llm-compressor/en/latest/research/nvfp4-sweeps/nvfp4-gemma4-agentic-sweep-dsikka/)).
- **Drift is minor and mature runtimes handle templates correctly, so Google's scores carry over roughly intact and the 31B becomes a default open base** (unlikely, about 30%). What would tell it apart: NVFP4 recovery reaches near 100% on knowledge tasks like MMLU-Pro ([docs.vllm.ai](https://docs.vllm.ai/projects/llm-compressor/en/latest/research/nvfp4-sweeps/nvfp4-gemma4-agentic-sweep-dsikka/)); The jump over Gemma 3 is large enough to absorb a few points of loss ([huggingface.co](https://huggingface.co/google/gemma-4-31B-it)).
- **The cluster is mainly a distribution play for Google's edge tooling, and engineering consistency is a secondary concern for most adopters** (very unlikely, about 15%). What would tell it apart: The edge blog ties Gemma 4 to ML Kit and MediaPipe pipelines ([developers.googleblog.com](https://developers.googleblog.com/en/on-device-speech-recognition-and-text-to-speech-in-google-ai-edge-gallery)).

## Base rate

The New Runtime archive could not be queried for comparable cases (canceling statement due to statement timeout), so it gives 0 cases: no base rate. The archive returned 0 cases and 0 matches, too few to say anything, so this take does not rely on a base rate for post-deployment score degradation.

## What would change this view

- Independent tests show Gemma 4 31B's AIME 2026 and LiveCodeBench scores within one point of Google's figures after GGUF Q4 export in llama.cpp (signal): Drift across runtimes is negligible for the headline skills, and capability is the real story.
- Google's gemma-trainer skill or Unsloth integration ships a built-in rollout/trainer log-prob parity check (open-source signal): The constraint is being solved in tooling and stops being a hidden cost for users.
- Artificial Analysis moves Gemma 4 31B above Qwen3.5 27B without a new checkpoint (model-listing signal): The gap between vendor and independent scores was about harness choice, not deployment drift.

## Skill to build now

The skill to build is backend parity testing for open models. First exercise: load google/gemma-4-31B-it, or the 26B A4B if memory is tight, in Transformers. Score 50 of your own prompts and save per-token log-probabilities for a fixed set of completions. Run the same completions through vLLM or llama.cpp with your intended quantization, and compute the mean absolute log-prob difference grouped by sequence length. Then repeat with thinking enabled, deliberately breaking the history-stripping rule once, to see how much a template error alone moves accuracy. Keep the script. It becomes the gate before any RL run or export.

## Reader takeaway

Before you fine-tune or deploy Gemma 4 31B, build a small parity harness. Choose 50 prompts from your own task, including long reasoning ones. Run them through Transformers in BF16, your serving engine, and your quantized export, using the model card's sampling settings and thinking-tag rules. Record task accuracy and per-token log-prob differences. Only start RL or ship the export once these three agree within a tolerance you have set in advance.

## Open question

For RL on open models running across mixed backends, should teams spend their effort making rollout and training numerics match exactly, or accept the mismatch and switch to update rules like DG that are built to tolerate it?

## Sources

- [Base gemma-4-31B-it hits 85.2% MMLU Pro, 89.2% AIME 2026, and 2150 Codeforces ELO.](https://huggingface.co/google/gemma-4-31B-it)

- [On-Device Speech Recognition and Text-to-Speech in Google AI Edge Gallery](https://developers.googleblog.com/en/on-device-speech-recognition-and-text-to-speech-in-google-ai-edge-gallery)

- [gemma.ai/tuning/](https://gemma.ai/tuning)

- [Delightful Policy Gradient Beats PPO Under Corrupted and Stale AI Training Data](https://arxiv.org/html/2603.20521v3)

- [Gemma 4: Expanding the Gemmaverse with Apache 2.0](https://opensource.googleblog.com/2026/03/gemma-4-expanding-the-gemmaverse-with-apache-20.html)

- [Gemma 4: Our most capable open models to date](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/)

- [Bring state-of-the-art agentic skills to the edge with Gemma 4](https://developers.googleblog.com/en/bring-state-of-the-art-agentic-skills-to-the-edge-with-gemma-4/)

- [Gemma 4: Google on the American open weights frontier | Artificial Analysis](https://artificialanalysis.ai/articles/gemma-4-everything-you-need-to-know/)

- [LLM Leaderboard – Best Text & Chat AI Models Compared | LMArena](https://lmarena.ai/leaderboard/text/industry-software-and-it-services)

- [NVFP4 sweep on Gemma-4 26B-A4B and 31B for agentic reasoning | vLLM LLM Compressor Docs](https://docs.vllm.ai/projects/llm-compressor/en/latest/research/nvfp4-sweeps/nvfp4-gemma4-agentic-sweep-dsikka/)

- [Compare AI Models: Pricing, Context & Benchmarks | OpenRouter](https://openrouter.ai/models)

- [Run Gemma with Ollama - Gemma Docs](https://gemma.ai/deployment/ollama/)

Author: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- topic hub: [Tools](https://newruntime.com/topics/tools.md): Explore the tools topic hub.
- collection: [Analysis](https://newruntime.com/analysis.json): Open the latest authorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
