• bitcoinBitcoin(BTC)$85,306.004.71%
  • ethereumEthereum(ETH)$2,724.362.09%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$786.201.66%
  • rippleXRP(XRP)$1.516.08%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$116.093.93%
  • tronTRON(TRX)$0.3485981.57%
  • zcashZcash(ZEC)$1,471.40-3.44%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.011.28%
  • HyperliquidHyperliquid(HYPE)$93.41-0.67%
  • dogecoinDogecoin(DOGE)$0.09912712.14%
  • moneroMonero(XMR)$570.85-2.18%
  • whitebitWhiteBIT Coin(WBT)$85.873.17%
  • RainRain(RAIN)$0.013666-3.74%
  • chainlinkChainlink(LINK)$12.882.32%
  • USDSUSDS(USDS)$1.000.00%
  • cardanoCardano(ADA)$0.2441625.39%
  • leo-tokenLEO Token(LEO)$8.950.38%
  • stellarStellar(XLM)$0.2104916.57%
  • nearNEAR Protocol(NEAR)$4.30-1.66%
  • uniswapUniswap(UNI)$8.911.56%
  • bitcoin-cashBitcoin Cash(BCH)$264.274.06%
  • Ethena USDeEthena USDe(USDE)$1.00-0.04%
  • litecoinLitecoin(LTC)$60.744.08%
  • avalanche-2Avalanche(AVAX)$10.64-6.64%
  • CantonCanton(CC)$0.1176605.13%
  • daiDai(DAI)$1.00-0.01%
  • USD1USD1(USD1)$1.00-0.03%
  • suiSui(SUI)$1.028.58%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.442.33%
  • hedera-hashgraphHedera(HBAR)$0.0921176.01%
  • BittensorBittensor(TAO)$314.4318.72%
  • shiba-inuShiba Inu(SHIB)$0.0000068.39%
  • crypto-com-chainCronos(CRO)$0.0659186.32%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • MemeCoreMemeCore(M)$1.36-10.62%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • tether-goldTether Gold(XAUT)$4,334.68-0.52%
  • okbOKB(OKB)$121.021.42%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.13%
  • BitwayBitway(BTW)$0.839.31%
  • aaveAave(AAVE)$142.913.24%
  • EthenaEthena(ENA)$0.212089-0.91%
  • mantleMantle(MNT)$0.645.88%
  • pepePepe(PEPE)$0.00000524.96%
  • OndoOndo(ONDO)$0.4322021.25%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Google AI Introduces ShieldGemma: A Comprehensive Suite of LLM-based Safety Content Moderation Models Built on Gemma2

August 2, 2024
in AI & Technology
Reading Time: 6 mins read
A A
Google AI Introduces ShieldGemma: A Comprehensive Suite of LLM-based Safety Content Moderation Models Built on Gemma2
ShareShareShareShareShare

Large Language Models (LLMs) have gained significant traction in various domains, revolutionizing applications from conversational agents to content generation. These models demonstrate exceptional capabilities in comprehending and producing human-like text, enabling sophisticated applications across diverse fields. However, the deployment of LLMs necessitates robust mechanisms to ensure safe and responsible user interactions. Current practices often employ content moderation solutions like LlamaGuard, WildGuard, and AEGIS to filter LLM inputs and outputs for potential safety risks. Despite providing initial safeguards, these tools face limitations. They often lack granular predictions of harm types or offer only binary outputs instead of probabilities, restricting customized harm filtering or threshold adjustments. Also, most solutions provide fixed-size models, which may not align with specific deployment needs. With that, the absence of detailed instructions for constructing training data hampers the development of models robust against adversarial prompts and fair across identity groups.

Researchers have made significant strides in content moderation, particularly for human-generated content on online platforms. Tools like Perspective API have been instrumental in detecting toxic language. However, these resources often fall short when applied to the unique context of human prompts and LLM-generated responses. Recent advancements in LLM content moderation have emerged through fine-tuning approaches, as seen in models like Llama-Guard, Aegis, MD-Judge, and WildGuard.

YOU MAY ALSO LIKE

SpaceXAI Releases Grok 4.7: A Larger Base Model at the Same $2/$6 Price as Grok 4.6

Why It’s Important To Unplug Your PC During A Power Outage

The development of robust safety models hinges on high-quality data. While human-computer interaction data is abundant, its direct use presents challenges due to limited positive examples, lack of adversarial and diverse data, and privacy concerns. LLMs, utilizing their vast pre-trained knowledge, have demonstrated exceptional capabilities in generating synthetic data aligned with human requirements. In the safety domain, this approach allows for the creation of diverse and highly adversarial prompts that can effectively test and improve LLM safety mechanisms.

Safety policies play a crucial role in deploying AI systems in real-world scenarios. These policies provide guidelines for acceptable content in both user inputs and model outputs. They serve dual purposes: ensuring consistency among human annotators and facilitating the development of zero-shot/few-shot classifiers as out-of-the-box solutions. While the categories of disallowed content are largely consistent for both inputs and outputs, the emphasis differs. Input policies focus on prohibiting harmful requests or attempts to elicit harmful content, while output policies primarily aim to prevent the generation of any harmful content.

Researchers from Google present ShieldGemma, a spectrum of content moderation models ranging from 2B to 27B parameters, built on Gemma2. These models filter both user input and model output for key harm types, adapting to various application needs. The innovation lies in a novel methodology for generating high-quality, adversarial, diverse, and fair datasets using synthetic data generation techniques. This approach reduces human annotation effort and has broad applicability beyond safety-related challenges. By combining scalable architectures with advanced data generation, ShieldGemma addresses the limitations of existing solutions, offering more nuanced and adaptable content filtering across different deployment scenarios.

ShieldGemma introduces a comprehensive approach to content moderation based on the Gemma2 framework. The method defines a detailed content safety taxonomy for six harm types: Sexually Explicit Information, Hate Speech, Dangerous Content, Harassment, Violence, and Obscenity and Profanity. This taxonomy guides the model’s decision-making process for both user input and model output scenarios.

The core innovation lies in the synthetic data curation pipeline. This process begins with raw data generation using AART (Automated Adversarial Red Teaming) to create diverse, adversarial prompts. The data is then expanded through a self-critiquing and generation framework, enhancing semantic and syntactic diversity. The dataset is further augmented with examples from Anthropic HH-RLHF to increase variety.

To optimize the training process, ShieldGemma employs a cluster-margin algorithm for data sub-sampling, balancing uncertainty and diversity. The selected data undergoes human annotation, with fairness expansion applied to improve representation across various identity categories. Finally, the model is fine-tuned using supervised learning on Gemma2 Instruction-Tuned models of varying sizes (2B, 9B, and 27B parameters).

ShieldGemma (SG) models demonstrate superior performance in binary classification tasks across all sizes (2B, 9B, and 27B parameters) compared to baseline models. The SG-9B model, in particular, achieves a 10.8% higher average AU-PRC on external benchmarks than LlamaGuard1, despite having a similar model size and training data volume. Also, the 9B model’s F1 score surpasses that of WildGuard and GPT-4 by 4.3% and 6.4%, respectively. Within the ShieldGemma family, performance is consistent on internal benchmarks. However, on external benchmarks, the 9B and 27B models show slightly better generalization capability, with average AU-PRC scores 1.2% and 1.7% higher than the 2B model, respectively. These results highlight ShieldGemma’s effectiveness in content moderation tasks across various model sizes.

ShieldGemma marks a significant advancement in safety content moderation for Large Language Models. Built on Gemma2, this suite of models (2B to 27B parameters) demonstrates superior performance across diverse benchmarks. The key innovation lies in its novel synthetic data generation pipeline, producing high-quality, diverse datasets while minimizing human annotation. This methodology extends beyond safety applications, potentially benefiting various AI development domains. By outperforming existing baselines and offering flexible deployment options, ShieldGemma enhances the safety and reliability of LLM interactions. Sharing these resources with the research community aims to accelerate progress in AI safety and responsible deployment.


Check out the Paper and HF Model Card. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter..

Don’t Forget to join our 47k+ ML SubReddit

Find Upcoming AI Webinars here



Asjad is an intern consultant at Marktechpost. He is persuing B.Tech in mechanical engineering at the Indian Institute of Technology, Kharagpur. Asjad is a Machine learning and deep learning enthusiast who is always researching the applications of machine learning in healthcare.


Credit: Source link

ShareTweetSendSharePin

Related Posts

SpaceXAI Releases Grok 4.7: A Larger Base Model at the Same / Price as Grok 4.6
AI & Technology

SpaceXAI Releases Grok 4.7: A Larger Base Model at the Same $2/$6 Price as Grok 4.6

September 22, 2026
Why It’s Important To Unplug Your PC During A Power Outage
AI & Technology

Why It’s Important To Unplug Your PC During A Power Outage

September 22, 2026
Why Is Your Laptop Fan So Loud?
AI & Technology

Why Is Your Laptop Fan So Loud?

September 22, 2026
These Drones Could Cover Up To 98 Percent Of The World’s Oceans By 2028
AI & Technology

These Drones Could Cover Up To 98 Percent Of The World’s Oceans By 2028

September 21, 2026
Next Post
AI Will Transform Traditionally Female Spheres – We Can’t Afford to Ignore Their Voices

AI Will Transform Traditionally Female Spheres - We Can’t Afford to Ignore Their Voices

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Stock futures slip as 10-year Treasury yield breaches 5% mark: Live updates – CNBC

Stock futures slip as 10-year Treasury yield breaches 5% mark: Live updates – CNBC

September 15, 2026
Full Episode: TODAY Show – Aug. 31

Full Episode: TODAY Show – Aug. 31

September 20, 2026
AI’s Frontier Faces Calls for Safety Slowdown

AI’s Frontier Faces Calls for Safety Slowdown

September 16, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!