ShieldGemma: Generative AI Content Moderation Based on Gemma
Open accessAbstract
We present ShieldGemma, a comprehensive suite of LLM-based safety content moderation models built upon Gemma2. These models provide robust, state-of-the-art predictions of safety risks across key harm types (sexually explicit, dangerous content, harassment, hate speech) in both user input and LLM-generated output. By evaluating on both public and internal benchmarks, we demonstrate superior performance compared to existing models, such as Llama Guard (+10.8\% AU-PRC on public benchmarks) and WildCard (+4.3\%). Additionally, we present a novel LLM-based data curation pipeline, adaptable to a variety of safety-related tasks and beyond. We have shown strong generalization performance for model trained mainly on synthetic data. By releasing ShieldGemma, we provide a valuable resource to the research community, advancing LLM safety and enabling the creation of more effective content moderation solutions for developers.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Typically, judge developers release some performance information about the models they are making available.
“Typically, judge developers release some performance information about the models they are making available (Mazeika et al., 2024; Han et al., 2024; Zeng et al., 2024).”
From Know Thy Judge: On the Robustness Meta-Evaluation of LLM Safety Judges (2025) · cites this paper as Zeng et al., 2024
LLMs can be prompted to generate harmful or toxic content across adversarial contexts.
“LLMs can be prompted to generate harmful or toxic content across adversarial contexts.”
From Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats (2026) · cites this paper as [11]
General-purpose moderators provide broad coverage across harmful content categories, but typically rely on single-model judgment and may collapse prompt intent and response harm into one decision.
“However, these systems typically rely on single-model judgment and may collapse prompt intent and response harm into one decision.”
From Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats (2026) · cites this paper as [11]
The precision-sensitivity trade-off is not a characteristic specific to Llama-3.1-nemoguard-8b-content-safety, but a structural property of the current generation of external semantic classifiers.
“Together, both patterns suggest that the precision-sensitivity trade-off is not a characteristic specific to Llama-3.1-nemoguard-8b-content-safety, but a structural property of the current generation of external semantic classifiers-whose origins may lie in the choice of training taxonomy, sensitivity to prompt templates, data, and the absence of threshold calibration accessible to the end user [”
From Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction (2026) · cites this paper as [33]
ShieldGemma explicitly acknowledges an analogous conservative bias, noting that its interpretation of policy violations may be overly conservative and recommending that downstream clients adjust filtering thresholds based on their specific use cases.
“ShieldGemma, in turn, explicitly acknowledges an analogous conservative bias to the one identified in this work, noting that its interpretation of policy violations may be overly conservative and recommending that downstream clients adjust filtering thresholds based on their specific use cases [33].”
From Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction (2026) · cites this paper as [33]
ShieldGemma recognizes that direct comparison remains challenging due to variations in policy definitions and supported harm types across datasets, as well as inconsistencies in policy definitions even within the same harm type.
“Similarly, ShieldGemma recognizes that direct comparison remains challenging due to variations in policy definitions and supported harm types across datasets, as well as inconsistencies in policy definitions even within the same harm type.Ref. [33]”
From Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction (2026) · cites this paper as [33]
Llama Guard operates over 6 risk categories, ShieldGemma over 6 primary harm types, and the Do Not Answer corpus over 12 categories distributed across 5 risk areas, with only partial overlap among the three taxonomies.
“The first is taxonomic: Llama Guard operates over 6 risk categories [32], ShieldGemma over 6 primary harm types [33], and the Do Not Answer corpus over 12 categories distributed across 5 risk areas [29]-with only partial overlap among the three taxonomies.”
From Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction (2026) · cites this paper as [33]
Evidence from the literature indicates that ShieldGemma shares an analogous asymmetric error profile, explicitly acknowledging that its interpretation of policy violations may be overly conservative, potentially interfering with helpfulness when used to filter LLM responses.
“The second obstacle is behavioral: evidence from the literature indicates that Shield-Gemma shares an analogous asymmetric error profile, explicitly acknowledging that its interpretation of policy violations may be overly conservative, potentially interfering with helpfulness when used to filter LLM responses [33].”
From Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction (2026) · cites this paper as [33]
Cited by
Sorted by citations
Evaluation of NeMo Guardrails as a Firewall for User–LLM Interaction
Azambuja, A. J., Guilherme, M., Castro, J. V. F. D., Lima, J. P. D. O., Oliveira, L. B., & Soares, A. D. S. (2026) · Future Internet · doi:10.3390/fi18050252 · Cited by 2 · see citing works
Know Thy Judge: On the Robustness Meta-Evaluation of LLM Safety Judges
Eiras, F., Zemour, E., Lin, E., & Mugunthan, V. (2025) · arXiv · doi:10.48550/arxiv.2503.04474 · Cited by 1 · see citing works
Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats
Thota, P., Lei, Y., Thangaraj, S., Jonnalagadda, S. R., & Nilizadeh, S. (2026) · arXiv · doi:10.48550/arxiv.2606.26377
“General-purpose moderators such as LlamaGuard [10], ShieldGemma [11], WildGuard [12], and the OpenAI Mod-eration API [13] provide broad coverage across harmful content categories.”
InfluentialEfficient LLM Safety Evaluation through Multi-Agent Debate
Lin, D., Shen, G., Yang, Z., Liu, T., Zhao, D., & Zeng, Y. (2025) · arXiv · doi:10.48550/arxiv.2511.06396
SoK: The Attack Surface of Agentic AI - Tools and Autonomy
Dehghantanha, A., & Homayoun, S. (2026) · arXiv · doi:10.48550/arxiv.2603.22928
- Authors
- Zeng, W., Liu, Y., Mullins, R., Peran, L., Fernandez, J., Harkous, H., Narasimhan, K., Proud, D., Kumar, P., Radharapu, B., Sturman, O., & Wahltinez, O.
- ORCID
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2407.21772
- OpenAlex
- W4401306838
- Cited by
- 3
- References
- 0
- Citations by year
- 2026: 1 · 2025: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Hate Speech and Cyberbullying Detection
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Social Sciences › Safety Research › Ethics and Social Impacts of AI
- Keywords
- content moderation, LLM safety, harmful content detection, sexually explicit material, harassment detection, hate speech detection
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review