ShieldGemma 2: Robust and Tractable Image Content Moderation
Wenjun Zeng, Dana Kurniawan, Ryan Mullins, Yuchi Liu, Tamoghna Saha, Dirichi Ike-Njoku, Jindong Gu, Yiwen Song, Cai Xu, Jingjing Zhou, Aparna Joshi, Shravan Dheep, Mani Malek, Hamid Palangi, Joon Baek, Rick Pereira, Karthik Narasimhan
TL;DR
ShieldGemma 2 (SG2) tackles robust image safety classification for both synthetic and natural images by fine-tuning a 4B-parameter Gemma 3 base model with policy-aware outputs. It introduces a novel Borderline Adversarial Data Generation (BADG) pipeline to create diverse, adversarial training data, enabling strong performance across three harm categories: Sexual, Dangerous Content, and Violence & Gore. In extensive internal and external benchmarks, SG2 achieves state-of-the-art results and benefits from continuous confidence scoring to support adjustable thresholds in downstream applications. The work also delivers an open-source safety detector framework and data generation resources to advance multimodal safety research and responsible AI development.
Abstract
We introduce ShieldGemma 2, a 4B parameter image content moderation model built on Gemma 3. This model provides robust safety risk predictions across the following key harm categories: Sexually Explicit, Violence \& Gore, and Dangerous Content for synthetic images (e.g. output of any image generation model) and natural images (e.g. any image input to a Vision-Language Model). We evaluated on both internal and external benchmarks to demonstrate state-of-the-art performance compared to LlavaGuard \citep{helff2024llavaguard}, GPT-4o mini \citep{hurst2024gpt}, and the base Gemma 3 model \citep{gemma_2025} based on our policies. Additionally, we present a novel adversarial data generation pipeline which enables a controlled, diverse, and robust image generation. ShieldGemma 2 provides an open image moderation tool to advance multimodal safety and responsible AI development.
