Instead of training small models solely from raw next-token prediction, Google DeepMind trained Gemma 2’s 2B and 9B models using knowledge distillation from a larger teacher across more than 50x their Chinchilla compute-optimal token counts. By replacing sparse one-hot targets with the teacher’s full next-token probability distribution at each step, the distilled 2B and 9B checkpoints outperformed comparable open models and rivaled systems two to three times their size, while a 27B sibling trained from scratch matched models 2.5x larger.

  • 7.4-point distillation lift at equal compute: In a controlled 500B-token ablation on a 2B model (10x compute-optimal), distilling from a 7B teacher raised the three-benchmark average from 60.3 (from scratch) to 67.7.
  • 2T, 8T, and 13T training budgets: Gemma 2 2B trained on 2 trillion tokens (512 TPUv5e chips), 9B on 8 trillion tokens (4,096 TPUv4 chips), and 27B from scratch on 13 trillion tokens (6,144 TPUv5p chips).
  • Small-scale MMLU and code jumps: Gemma 2 2B lifted MMLU from 42.3% (Gemma 1 2B) to 52.2% despite fewer training tokens (2T vs 3T); Gemma 2 9B reached 71.3% MMLU and 68.6% GSM8K versus Llama-3 8B’s 66.6% and 45.7%.
  • Human preference parity with much larger models: Instruction-tuned Gemma 2 27B reached 1,218 Elo on LMSYS Chatbot Arena (ahead of Llama-3 70B’s 1,206), while 9B hit 1,187 (matching GPT-4-0314’s 1,186) and 2.6B reached 1,126 (ahead of GPT-3.5-Turbo-0613’s 1,116).
Gemma 2 model family architecture, training scale, and Arena Elo
VariantNon-Emb / EmbTokensPretrain TargetArena Elo (IT)
Gemma 2 2B2.02B / 0.59B2TTeacher distillation1,126
Gemma 2 9B8.32B / 0.92B8TTeacher distillation1,187
Gemma 2 27B26.05B / 1.18B13TObserved next token1,218

Non-embedding plus 256k-vocab embedding parameters and LMSYS Chatbot Arena ratings. Source: Gemma Team (2024), Tables 1, 2, and 14.

Why logit distillation beats brute-force token scaling

Small language models are typically pushed past Chinchilla ratios by extending next-token pretraining to 10T to 15T tokens, yet quality improves only logarithmically with dataset size, so tripling tokens can add barely 1 to 2 percentage points. Gemma 2 breaks out of that curve by changing what each token teaches. For the 2B and 9B runs, the student minimizes negative log-likelihood against a large teacher’s full distribution P_T(x | x_c) rather than a single observed token’s one-hot label.

That richer target exposes alternative plausible continuations and relative probabilities on every context, simulating the gradient density of training beyond available raw text. Crucially, the ablation in Table 7 shows the perplexity advantage holds as student capacity grows from 200M (23 vs 21) to 400M (19 vs 17) to 1B (17 vs 15) under a fixed 7B teacher.

Across the family, Google DeepMind paired distillation with four targeted transformer refinements over Gemma 1:

  • Alternating local and global attention: Every other layer uses a 4,096-token sliding window instead of full 8,192-token global context. Shrinking that window at inference time to 2,048 or 1,024 tokens left validation perplexity nearly unchanged (1.63 to 1.64).
  • Grouped-Query Attention: Using GQA with num_groups = 2 (4, 8, and 16 KV heads on 2B, 9B, and 27B) kept four-benchmark 9B accuracy intact (50.8 vs 50.3 for MHA) while cutting KV-cache traffic.
  • Deeper, stabilized blocks: At equal 9B parameters, a deeper network beat a wider layout (52.0 vs 50.8 across four benchmarks), stabilized with pre-norm and post-norm RMSNorm on every sub-layer plus tanh logit soft-capping (50.0 in attention, 30.0 at output).

Benchmark gains, post-training, and memorization

Distillation lifted both general knowledge and reasoning without requiring extra pretraining tokens. On the 17-benchmark suite in Table 13, Gemma 2 2B averaged 48.7 (versus 44.2 for Gemma 1 2B), while 9B reached 64.9 (versus 57.9 for Gemma 1 7B and 55.6 for Mistral 7B). The scratch-trained 27B model beat Qwen1.5 32B across every HuggingFace leaderboard metric (MMLU 75.2 vs 74.3, GSM8K 74.0 vs 61.1) and trailed 2.5x-larger Llama-3 70B by only a few points (MMLU 79.2, GSM8K 76.9).

5-shot MMLU and GSM8K across compact open models (Table 13)
MMLU 5-shot accuracy (higher is better)MMLU · GSM8K
Gemma 1 2B
42.3% · 15.1%
Gemma 2 2B
52.2% · 24.3%
Mistral 7B
62.5% · 39.6%
Llama-3 8B
66.6% · 45.7%
Gemma 2 9B
71.3% · 68.6%

Base pretrained checkpoints evaluated on 5-shot MMLU and 5-shot GSM8K. Source: Gemma Team (2024), Table 13.

Post-training combined teacher-generated SFT completions, on-policy distillation, RLHF with a reward model an order of magnitude larger than the policy, and checkpoint averaging across hyperparameter runs. On 50-token memorization probes, Gemma 2 emitted memorized training data at rates below 0.1% (sharply lower than Gemma 1), with zero high-severity personal-data hits and 0.00026% low-severity flags.

Caveats and builder takeaway

Three constraints matter before adopting Gemma 2 or its training recipe:

  • English-first and text-only scope: The pretraining mixture was primarily English, non-multimodal, and not tuned for multilingual parity, even though it kept Gemini’s 256,128-token vocabulary (which adds 590M embedding parameters to the 2B model, inflating VRAM footprint relative to its 2.02B non-embedding core).
  • Prompt sensitivity at 2B: Across 12 MMLU formatting variations, Gemma 2 2B showed a 2.1-point standard deviation versus 0.9 on 9B and 1.0 on 27B, meaning small-model evals depend heavily on prompt templates.
  • Hidden teacher overhead: The report does not break out the compute or I/O cost of running and storing top-k teacher logits across 2T and 8T tokens, nor does it identify the exact teacher behind the final 2B and 9B runs.

For teams building custom small models, the takeaway matches inference-aware scaling: if you already pay for a strong large teacher, logit distillation buys far more capability per token than extending one-hot pretraining alone. For teams simply deploying open weights, Gemma 2 9B delivers frontier-grade instruction quality inside a single-GPU footprint.