Google Releases MedGemma 2, Scoring 82.3 on Medical Benchmarks
Google's new MedGemma 2 family brings reasoning, tool calling, and long-context EHR comprehension to open medical AI, with a 26B Mixture-of-Experts flagship and a 4B edge model.
Takeaways
- Google released MedGemma 2 in 4B dense and 26B Mixture-of-Experts variants, both built on Gemma 4.
- The 26B MoE uses ~4B active parameters per token and supports 256K context for hospital on-prem deployment.
- New native tool calling generates FHIR queries, SQL, and Python for clinical calculations in agentic workflows.
- MedGemma 2 4B hits 82.3 on MedQA vs 69.1 for MedGemma 1.5 4B, a large reasoning jump.
- Grounded clinical QA accuracy rockets from 13.1 to 94.8, making RAG workflows finally viable.
- Available on Hugging Face and Model Garden under the HAI-DEF license.
Google has released MedGemma 2, a new generation of its open-weight medical vision-language model family. The release pairs a 4B dense model for local and edge deployments with a 26B Mixture-of-Experts model that activates roughly 4B parameters per token. Both use the Gemma 4 architecture and medical post-training.
Compared with MedGemma 1.5, the models add native tool-call generation, an optional reasoning mode, longer context windows, and grounded answering from supplied references. Those capabilities support applications that retrieve health records, invoke clinical calculators, analyze medical images, and synthesize long patient histories under application-controlled safeguards.
One family, two hardware targets
| Specification | 4B dense model | 26B MoE model |
|---|---|---|
| Parameter layout | 4B dense | 26B total, about 4B active per token |
| Context window | Up to 128K tokens | Up to 256K tokens |
| Inputs | Text, images, and audio | Text and images |
| Intended deployment | Edge, mobile, and local development | On-premises servers and private clouds |
The 26B model activates eight of its 128 routed experts, plus one shared expert, for each token. This reduces per-token computation, but serving generally still requires loading or distributing the full 26B weights. Its memory requirements therefore remain higher than those of a 4B dense model.
Both variants use Gemma 4’s native vision encoders without the additional medical pre-training applied to MedGemma 1.5’s MedSigLIP-derived encoder. Only the 4B model accepts audio, using a fine-tuned Gemma 4 audio encoder for 16 kHz recordings of up to 30 seconds.
Developers can assign each image a visual budget of 70, 140, 280, 560, or 1,120 tokens. Larger budgets preserve more image detail at the cost of memory and throughput, especially when prompts contain multiple CT or MRI slices.
Benchmark gains come with exceptions
Google reports sizable gains for the 4B model on four medical knowledge benchmarks. The following scores come from the published evaluation and use each benchmark’s reported scoring method.
| Benchmark | MedGemma 1.5 4B | MedGemma 2 4B |
|---|---|---|
| MedQA, four-option | 69.1 | 82.3 |
| MedMCQA | 59.8 | 63.8 |
| PubMedQA | 67.6 | 78.6 |
| MMLU Med | 69.6 | 81.6 |
Google’s agent evaluations favor the 26B MoE model, particularly on tasks that require record navigation, tool selection, or clinical calculations. F1 scores balance precision and recall; the other figures use the scoring method defined by each benchmark.
| Benchmark | MedGemma 2 26B | Reported comparison |
|---|---|---|
| MedAgentBench | 86.3 | Gemma 4 26B: 81.3 |
| AgentEHR, common | 30.7 F1 | Not reported here |
| AgentEHR, rare | 26.5 F1 | Not reported here |
| ClinSeek-Bench | 49.1 F1 | Not reported here |
| MedCalc-Bench Verified | 72.8 | Not reported here |
On Google’s internal grounded clinical QA benchmark, MedGemma 2 4B scores 94.8, compared with 13.1 for MedGemma 1.5 4B. Because the test is internal, the result does not establish production accuracy or a general hallucination rate. Teams need evaluations built from their own references, prompts, retrieval systems, and failure criteria.
MedGemma 1.5 4B retains higher scores on some older evaluations, including MIMIC-CXR macro-F1 and PathMCQA. Google continues to offer that checkpoint for workloads where its specialized vision encoder performs better.
Tool calls move work into the application
MedGemma 2 can generate structured HL7 FHIR requests, SQL queries, and Python code for external execution. A healthcare application can use those outputs to retrieve a patient summary, calculate a MELD or CHA2DS2-VASc score, and return the result to the model for synthesis.
The model produces proposed calls and code; the host application executes them. A production agent therefore needs schema validation, authorization checks, parameterized database access, sandboxed code execution, timeouts, and audit logs. Clinical tools should expose the minimum data and permissions required for each task.
- Provide the model with the user request, permitted tools, and relevant context.
- Validate the generated tool name and arguments against an allowlist and schema.
- Execute the approved request in a controlled service.
- Return the result to the model for a grounded response.
- Check the final answer for unsupported claims, missing evidence, and escalation conditions.
Grounded answering conditions the response on supplied guidelines, records, or literature. Its reliability still depends on retrieval quality, source currency, prompt construction, and citation verification. Unsupported output remains possible even when references are present.
The 128K and 256K context windows can accommodate long records and larger reference sets, reducing the need for aggressive chunking. Long context does not guarantee that every detail will be retrieved or weighted correctly, so applications still need record selection, provenance tracking, and task-specific testing.
Medical post-training shapes the models
Google retained the Gemma 4 architecture and post-trained its checkpoints on de-identified and licensed medical data. The training mix includes medical text and question-answer pairs, FHIR-based electronic health records, 2D and 3D radiology, histopathology, ophthalmology, dermatology, medical documents, and medical audio for the 4B model.
Google’s research post and developer docs also describe training material involving tool-use trajectories, ECGs, endoscopy, surgical video, and genomics. The model card does not publish evaluations for every listed modality, so coverage in the training mix should not be treated as evidence of task-level performance.
A minimal Transformers path
Access through Hugging Face is gated under the HAI-DEF license. Developers must accept the terms and authenticate before downloading the weights. Google specifies transformers>=5.15.0 for prefix-aware parsing of reasoning and tool-call responses.
from PIL import Image
from transformers import pipeline
image = Image.open("chest_xray.png").convert("RGB")
pipe = pipeline(
"image-text-to-text",
model="google/medgemma-2-26B-A4B-it",
device_map="auto",
dtype="auto",
)
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this X-ray."},
],
}
]
result = pipe(
text=messages,
max_new_tokens=1024,
)
print(result[0]["generated_text"][-1]["content"])
For explicit reasoning mode, pass enable_thinking=True to apply_chat_template; the template inserts a <|think|> token. Reasoning text remains untrusted model output and should not serve as a clinical audit rationale.
With multimodal prompts, Google recommends placing images before the text and audio after it. Google lists vLLM, SGLang, and Docker Model Runner as supported serving options, with managed deployment available through Model Garden.
Clinical use requires local evidence
Google states that MedGemma outputs are not intended to directly determine diagnoses, patient management, treatment recommendations, clinical calculations, or other clinical practice decisions, including mental and behavioral health decisions. Developers remain responsible for defining the intended use, adapting the model, validating the complete system, and meeting applicable clinical, privacy, security, and regulatory requirements.
The 4B model processes supplied audio files and does not provide streaming microphone capture. Community conversions such as GGUF, MLX, and LiteRT can change model behavior, so each conversion requires validation at the exact precision, runtime, prompt template, and hardware configuration planned for deployment.
Predeployment checks
- Measure performance on representative local data, relevant patient subgroups, and known failure cases.
- Test retrieval, tool execution, and final responses as one system.
- Require evidence links or source spans for grounded claims.
- Block unauthorized FHIR, SQL, and code-execution requests.
- Define abstention, escalation, clinician review, monitoring, and rollback procedures.
- Repeat evaluations after quantization, fine-tuning, prompt changes, or model upgrades.