Skip to main content
llm.info
ShieldGemma 2 logo

ShieldGemma 2

Versionshieldgemma-2-4b-it

byGoogle

  • Views4 views
  • Date addedAdded Oct 14, 2026
Skip to community
Community (0)

Overview

About

Google's image safety classifier: a 4 billion parameter model trained on Gemma 3's 4B instruction-tuned checkpoint. It takes an image plus a policy definition in the prompt and returns the probability of a 'Yes' or 'No' token, so a caller can set its own threshold. Google's card supplies three policies out of the box: sexually explicit content, dangerous content, and violence/gore. It is recommended as an input filter in front of vision-language models or as an output filter on image generation systems.

Strengths

  • Classifies images against a safety policy supplied in the prompt, rather than against a fixed built-in label set
  • Returns both 'Yes' and 'No' token probabilities, so callers can pick their own threshold and compute calibration metrics
  • Ships three ready-made policies: sexually explicit content, dangerous content, and violence/gore
  • Works at either end of a pipeline: input filter for vision-language models, output filter for image generation systems
  • Open weights on a 4B Gemma 3 checkpoint, so it can be self-hosted and fine-tuned for a specific policy
  • Leads Google's internal benchmark on all three harm types against LlavaGuard 7B, GPT-4o mini and the base Gemma-3-4B-IT

Caveats

  • Violence and gore is its weakest category at 80.3 precision / 90.4 recall / 85.0 F1, well below the 93.7 F1 it reaches on dangerous content
  • Training data covered only three harm types and was English only, so other languages and harms are out of scope
  • Google's card warns the model is 'highly sensitive to the specific user-provided description of safety principles' and 'might perform unpredictably under conditions that require a good understanding of language ambiguity and nuance'
  • The published numbers come from an internal synthetic benchmark of roughly 500 examples per policy; Google states 'the training and evaluation data might not be representative of real-world scenarios'
  • Distributed under the Gemma Terms of Use and Google's prohibited use policies, not an OSI-approved open-source licence, and Hugging Face access is gated behind accepting that licence
  • No release date, context window or output limit is stated on the model card

Tags

Specs

Company
Google
Family
ShieldGemma
Version
shieldgemma-2-4b-it
Modalities
Image, Text
License
Gemma Terms of Use
Open weights
Yes
Streaming
No
Added
Oct 14, 2026
Updated
Dec 1, 2026

Benchmarks (3)

Scores come from the listed sources and are not directly comparable across methodologies.
BenchmarkScoreMaxSourceAs ofNotes
Internal image safety benchmark - Dangerous Content (optimal F1)
Curated
93.7100ai.google.devOpens in a new tabGoogle internal benchmark, ~500 examples; precision/recall/optimal F1 = 95.6/91.9/93.7. GPT-4o mini scored 91.0 F1.
Internal image safety benchmark - Sexually Explicit (optimal F1)
Curated
88.6100ai.google.devOpens in a new tabprecision/recall/optimal F1 = 87.6/89.7/88.6. GPT-4o mini scored 80.3 F1.
Internal image safety benchmark - Violence & Gore (optimal F1)
Curated
85.0100ai.google.devOpens in a new tabprecision/recall/optimal F1 = 80.3/90.4/85.0, the model's weakest of the three policies.

Community

Reviews

Reviews

Comments

Comments