Search

Search papers and lessons

Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long...

Gheorghe Comanici, Eric Bieber, Mike Schaekermann et al. · 2025

Gemini 2.5 Pro is a sparse mixture-of-experts model that thinks before it answers, trained with reinforcement learning, and it set new results on coding, math and long-context benchmarks.

On this page

  • Colour = topic mix
  • Probability
  • Neural network basics
  • Calculus
  • Discrete math
  • Linear algebra
  • Architectures
  • ReadReady to readNot yet

TL;DR

The Gemini 2.5 report describes two models, Gemini 2.5 Pro and Gemini 2.5 Flash, and the earlier Gemini 2.0 Flash models. Both are sparse mixture-of-experts transformers that read text, images, audio and video, and both are trained with reinforcement learning to spend extra computation reasoning before they answer. The report shows large gains over Gemini 1.5 Pro on coding, math, long-context retrieval and multimodal tasks, and it places Gemini 2.5 Pro at or near the top of several public leaderboards at its date of publication.

Builds on: Transformer, Mixture of Experts, Reinforcement Learning, Reward Model, Knowledge Distillation, Language Model · Leads to: the trained-reasoning models of 2025 that the report's thinking section describes; no lesson node yet

Why it mattered

Gemini 2.5 Pro was presented in 2025 as the most capable model Google had built. Its thinking mode, where the model decides how long to reason and developers can cap that reasoning with a token budget, is a concrete example of trained reasoning rather than a prompting trick. The report also gave a concrete account of how a model of this size is trained on a large multi-datacentre cluster, which is rare in public documentation.

For users, the report's main claims were that one model could handle a million-token context, could work through hours of video, and could write code and act as a tool-using agent. These capabilities are the main subject of the report's evaluation sections.

The problem

Before the 2.5 generation, the Gemini 1.5 models answered immediately after a prompt. That fixed the amount of computation a model could spend on a hard problem. A hard maths question and a greeting got the same budget, and the model could not check its own work before replying.

Three other problems were pressing. First, training very large sparse models is unstable: some runs diverge or stall, and hardware failures interrupt them many times an hour at the scale of this run. Second, reward signals for reasoning are hard to build by hand, so the model needs checks it can run itself. Third, public benchmarks leak into training data, so a score is only meaningful if the test questions were kept out of training. The report addresses all three.

How it works

Here is what happens to one request, and what the training pipeline did to make the model respond this way.

flowchart LR
  A["text, image, audio or video tokens"] --> B["router picks a few experts per token"]
  B --> C["transformer layers"]
  C --> D["thinking stage, length chosen by the model or capped"]
  D --> E["answer"]
  1. Pre-train a sparse mixture-of-experts transformer. The model has many expert sub-networks, and a router sends each token to only a few of them. This decouples the model's total capacity from the compute spent per token. The report says the Gemini 2.5 models are sparse mixture-of-experts transformers with native support for text, vision and audio input.

  2. Train across many accelerator pods. The family was the first trained on Google's TPUv5p chips, in synchronous data-parallel training over multiple pods of 8960 chips each, across several datacentres. The report describes elastic training: when a slice of chips fails, training continues on the remaining slices with about 97 percent throughput while the failed slice recovers.

  3. Detect silent data corruption quickly. A corrupted chip can silently spoil training. The team replays any step with suspicious metrics and compares per-device checksums to locate the faulty hardware. The report says about 0.25 percent of steps were replayed for this reason, and 6 percent of those replays found genuine hardware corruption.

  4. Distil the smaller models. Models at Flash size and below learn from a larger teacher's output distribution, approximated by a k-sparse distribution over the vocabulary, which keeps storage manageable.

  5. Post-train with supervised data, reward models and reinforcement learning. The team increased the compute spent on reinforcement learning, focused on verifiable rewards (checks that a program can run, such as a test passing or an answer matching) and model-based generative rewards, and changed the algorithm to keep long runs stable. Reinforcement learning environments include multi-step actions and tool use.

  6. Teach thinking natively. The model is trained with reinforcement learning to spend extra inference-time computation, described as tens of thousands of forward passes in a hidden thinking stage before the reply. The model decides how long to think. Developers can set a thinking budget, a token limit on that stage, to trade quality for cost and latency.

  7. Evaluate in a fixed setting. Scores are pass at 1 in a single attempt unless stated otherwise: no majority voting and no parallel test-time search. Public benchmark numbers come from the model's own API with default sampling, and the report states how each benchmark was run.

The math

The report is mostly empirical, so the maths here is the definitions behind its scores and its thinking budget.

Definition (pass at 1). If a model answers a question correctly with probability p on one attempt, its pass at 1 score on a benchmark is the average fraction of questions answered correctly in one attempt. The report uses this single-attempt setting for its headline numbers.

Definition (pass at k). If k independent attempts are sampled and any one counts, the chance of at least one correct answer is

pass@k=1−(1−p)k\mathrm{pass@}k = 1-(1-p)^{k}

under the simplifying assumption that attempts are independent and each has success probability p. This is why a multiple-attempts figure is always at least as high as a single-attempt figure for the same model.

Step 1 in symbols: the thinking budget

A thinking budget B is a cap on the internal tokens the model may produce before answering. The report varies B and plots accuracy, reporting that higher budgets give significantly higher accuracy on AIME 2025, LiveCodeBench and GPQA diamond. The report does not give a formula for the curve, only the plot.

Step 6 in symbols: the Elo rating

The report cites LMArena Elo scores. Under the standard Elo model, a player rated R_A against one rated R_B is expected to score

EA=11+10(RB−RA)/400E_A=\frac{1}{1+10^{(R_B-R_A)/400}}

A difference of 400 points gives an expected score of about 0.91 for the higher-rated player. Elo ratings are relative, so only differences mean anything.

Plot of the expected score against the rating difference:

−400−300−200−100010020030040000.20.40.60.81rating difference R_A minus R_Bexpected score
  • expected score of the higher rating
A 0 point gap is a coin flip. The curve is S-shaped: near the middle, 100 extra points moves the expected score the most, and each further 100 points moves it less.

Worked examples

Example
1. Pass at 2 from pass at 1

Suppose a model answers a question correctly with probability p = 0.5 on each attempt, and attempts are independent.

  1. Compute the chance of getting it wrong once: 1 minus 0.5 is 0.5.
  2. Compute the chance of getting it wrong twice in a row: 0.5 times 0.5 is 0.25.
  3. Subtract from 1: 1 minus 0.25 is 0.75.

So pass at 2 is 0.75, up from 0.5 at pass at 1. The gain comes from the second attempt being a fresh chance, which is why a multiple-attempts score is never lower than a single-attempt one.

Example
2. Expected score for a 122-point gap

The report cites Gemini 2.5 Pro as more than 120 points above Gemini 1.5 Pro on LMArena. Take a gap of 122 points, with A the higher-rated model.

  1. Compute the rating difference divided by 400: R_B minus R_A is minus 122, so minus 122 divided by 400 is minus 0.305.
  2. Compute 10 raised to minus 0.305: this is about 0.495.
  3. Add 1: 1 plus 0.495 is 1.495.
  4. Take the reciprocal: 1 divided by 1.495 is about 0.669.

Under the standard Elo model, the higher-rated model is expected to win about 67 percent of pairwise comparisons. This is a calculation from the Elo formula, not a number the report states.

Example
3. The gap on AIME 2025 and LiveCodeBench

The report's Table 3 gives AIME 2025 scores of 88.0 percent for Gemini 2.5 Pro and 72.0 percent for Gemini 2.5 Flash, and LiveCodeBench scores of 74.2 percent and 59.3 percent for the same two models.

  1. Compute the AIME gap between Pro and Flash: 88.0 minus 72.0 is 16.0 percentage points.
  2. Compute the AIME gap between Pro and Gemini 1.5 Pro: 88.0 minus 17.5 is 70.5 percentage points.
  3. Compare the two gaps: 16.0 divided by 70.5 is about 0.23, so the Pro versus Flash gap is under a quarter of the Pro versus 1.5 Pro gap.
  4. Compute the LiveCodeBench gap between Pro and Flash: 74.2 minus 59.3 is 14.9 percentage points.

So the largest jump in the table is from Gemini 1.5 Pro to Gemini 2.5 Pro on maths, not the step between the two 2.5 models. Both 2.5 models are far above the 1.5 generation on both benchmarks.

Try it: on Aider Polyglot, the table gives 82.2 percent for Gemini 2.5 Pro and 56.7 percent for Gemini 2.5 Flash. Compute the gap in percentage points.

Answer: 82.2 minus 56.7 is 25.5 percentage points.

Results

Table 3 of the report compares Gemini 2.5 Pro and Flash with Gemini 1.5 Pro (the table also has a 1.5 Flash column, omitted here), using single-attempt scores unless stated:

BenchmarkGemini 1.5 ProGemini 2.5 FlashGemini 2.5 Pro
LiveCodeBench29.7%59.3%74.2%
Aider Polyglot16.9%56.7%82.2%
SWE-bench Verified, single attempt22.3%48.9%59.6%
GPQA diamond58.1%82.8%86.4%
Humanity's Last Exam, no tools4.6%11.0%21.6%
AIME 202517.5%72.0%88.0%
LOFT, 1M context47.1%58.9%69.8%
MMMU67.7%79.7%82.0%

On SWE-bench Verified the multiple-attempts setting gives 67.2 percent for Gemini 2.5 Pro. On LMArena the report gives Elo gains of 122 points for Gemini 2.5 Pro and 111 for Gemini 2.5 Flash over their Gemini 1.5 counterparts. The report also says Gemini 2.5 Pro scores more than 500 Elo above Gemini 1.5 Pro on the LMArena WebDev Arena.

The report also compares Gemini 2.5 Pro with other models in its Table 4. It says Gemini achieves the highest score among the models it examined on Aider Polyglot, Humanity's Last Exam, GPQA diamond, SimpleQA and FACTS Grounding, and the best score on LOFT and MRCR at 128K context. It is the only model in that comparison that supports context lengths of 1M tokens or more.

Limits. The report does not state the model's parameter count, its number of experts, or its training data mix, so the architecture can be described only in general terms. Non-Gemini numbers are the providers' own reports, computed with different scaffolds and infrastructure, and the report says they are not directly comparable. Humanity's Last Exam scores come from an external leaderboard. Decontamination uses n-gram, semantic-similarity and model-based methods, which reduce leakage but cannot prove it absent. The Vibe-Eval scores are judged by Gemini itself. The report is a technical report, not a peer-reviewed paper, and its safety section says the model did not reach any Critical Capability Level, while noting significant increases in some capabilities compared with earlier Gemini models.

Tradeoffs. Thinking improves hard problems but costs tokens and latency on every request. The thinking budget is the lever the report offers. Mixture-of-experts models give large capacity for the compute per token, but routing adds training complexity, and the report's own account of training instability shows how much engineering that takes.

Reading guide

Read next: Gemini 1.5: Multimodal Understanding Across Millions of Tokens for the generation this report compares against, and Distilling the Knowledge in a Neural Network for the distillation idea used for the smaller models.

Check yourself

QuestionWhat does sparse mixture of experts mean, and why does it help?Show answer

The model has many expert sub-networks and a router that sends each token to only a few of them. Total capacity can grow without the compute spent per token growing in proportion, so the model is larger without being as expensive to run for every token.

QuestionA model has single-attempt accuracy p = 0.2 on a benchmark. Compute its pass at 3, assuming independent attempts.Show answer

The chance of three wrong answers in a row is 0.8 times 0.8 times 0.8, which is 0.512. So pass at 3 is 1 minus 0.512, which is 0.488.

QuestionWhy does the report measure AIME 2025 in the single-attempt setting for its headline numbers?Show answer

A single attempt removes majority voting and parallel test-time search, so the score reflects what the model does on one pass. A multiple-attempts score can be higher for the same model, so comparing a multiple-attempts number with a single-attempt one would overstate the gap.

QuestionA developer caps the thinking budget for a model that already scores well on easy questions. What is the likely effect on latency and accuracy?Show answer

Latency falls, because fewer internal tokens are produced before the answer, and cost falls with it. Accuracy on hard questions is likely to drop, because the report shows accuracy rising with the budget on hard benchmarks. On easy questions the drop is likely to be small, since the model needs little reasoning to answer them.

Sources

Read the full paper

Gheorghe Comanici, Eric Bieber, Mike Schaekermann et al., 2025. arXiv:2507.06261