PreprintCited by 5Hate Speech and Cyberbullying DetectionAdversarial Robustness in Machine LearningEthics and Social Impacts of AI

ShieldGemma: Generative AI Content Moderation Based on Gemma

Open access
Zeng, Wenjun, Liu, Yuchi, Mullins, Ryan, Peran, Ludovic, Fernandez, Joe, Harkous, Hamza, Narasimhan, Karthik, Proud, Drew +4 more·2024·arXiv

Abstract

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

DataCite · 10.48550/arxiv.2407.21772

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

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.”
  • 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.”
  • 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 [”
  • 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].”

Cited by

Sorted by citations

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.
Venue
arXiv
Publisher
arXiv
Published
2024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4401306838
Cited by
3
References
0
Citations by year
2026: 1 · 2025: 2
Type
posted content
Language
en
Open access
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