Take into account a rising social media platform that processes hundreds of thousands of consumer posts every day. Their content material moderation workforce faces a well-recognized problem: their rule-based system flags a cooking video discussing “knife methods” as violent content material, irritating customers, whereas concurrently lacking a veiled risk disguised as a restaurant evaluation. After they strive a general-purpose AI moderation service, it struggles with their group’s gaming terminology, flagging discussions about “eliminating opponents” in technique video games whereas lacking precise harassment that makes use of coded language particular to their platform. The moderation workforce finds themselves caught between consumer complaints about over-moderation and advertiser considerations about dangerous content material slipping by means of—an issue that scales exponentially as their consumer base grows.
This situation illustrates the broader challenges that content material moderation at scale presents for purchasers throughout industries. Conventional rule-based approaches and key phrase filters usually wrestle to catch nuanced coverage violations, rising dangerous content material patterns, or contextual violations that require deeper semantic understanding. In the meantime, the quantity of user-generated content material continues to develop, making handbook moderation more and more impractical and dear. Prospects want adaptable options that may scale with their content material wants whereas sustaining accuracy and reflecting their particular moderation insurance policies.
Whereas general-purpose AI content material moderation companies supply broad capabilities, they sometimes implement standardized insurance policies which may not align with a buyer’s distinctive necessities. These approaches usually wrestle with domain-specific terminology, complicated coverage edge instances, or culturally-specific content material analysis. Moreover, totally different prospects may need various taxonomies for content material annotation and totally different thresholds or boundaries for a similar coverage classes. Because of this, many purchasers discover themselves managing trade-offs between detection capabilities and false positives.
On this submit, we introduce an strategy to content material moderation by means of Amazon Nova customization on Amazon SageMaker AI. With this answer, you’ll be able to fine-tune Amazon Nova for content material moderation duties tailor-made to your necessities. Through the use of domain-specific coaching knowledge and organization-specific moderation pointers, this custom-made strategy can ship improved accuracy and coverage alignment in comparison with off-the-shelf options. Our analysis throughout three benchmarks reveals that custom-made Nova fashions obtain a mean enchancment of seven.3% in F1 scores in comparison with the baseline Nova Lite, with particular person enhancements starting from 4.2% to 9.2% throughout totally different content material moderation duties. The custom-made Nova mannequin can detect coverage violations, perceive contextual nuances, and adapt to content material patterns primarily based by yourself dataset.
Key benefits
With Nova customization, you’ll be able to construct textual content content material moderators that ship compelling benefits over various approaches together with coaching from scratch and utilizing a normal basis mannequin. Through the use of pre-trained Nova fashions as a basis, you’ll be able to obtain superior outcomes whereas lowering complexity, value, and time-to-deployment.
When in comparison with constructing fashions completely from the bottom up, Nova customization gives a number of key advantages in your group:
- Makes use of pre-existing information: Nova comes with prior information in textual content content material moderation, having been skilled on comparable datasets, offering a basis for personalisation that achieves aggressive efficiency with simply 10,000 cases for SFT.
- Simplified workflow: As a substitute of constructing coaching infrastructure from scratch, you’ll be able to add formatted knowledge and submit a SageMaker coaching job, with coaching code and workflows supplied, finishing coaching in roughly one hour at a value of $55 (primarily based on US East Ohio Amazon EC2 P5 occasion pricing).
- Diminished time and value: Reduces the necessity for intensive computational sources and months of coaching time required for constructing fashions from the bottom up.
Whereas general-purpose basis fashions supply broad capabilities, Nova customization delivers extra focused advantages in your content material moderation use instances:
- Coverage-specific customization: In contrast to basis fashions skilled with broad datasets, Nova customization fine-tunes to your group’s particular moderation pointers and edge instances, reaching 4.2% to 9.2% enhancements in F1 scores throughout totally different content material moderation duties.
- Constant efficiency: Reduces unpredictability from third-party API updates and coverage adjustments that may alter your content material moderation habits.
- Value effectivity: At $0.06 per 1 million enter tokens and $0.24 per 1 million output tokens, Nova Lite gives vital value benefits in comparison with different business basis fashions that spend about 10–100 instances extra value, delivering substantial value financial savings.
Past particular comparisons, Nova customization gives inherent advantages that apply no matter your present strategy:
- Versatile coverage boundaries: Customized thresholds and coverage boundaries could be managed by means of prompts and taught to the mannequin throughout fine-tuning.
- Accommodates various taxonomies: The answer adapts to totally different annotation taxonomies and organizational content material moderation frameworks.
- Versatile knowledge necessities: You need to use your current coaching datasets with proprietary knowledge or use public coaching splits from established content material moderation benchmarks in the event you don’t have your individual datasets.
Demonstrating content material moderation efficiency with Nova customization
To judge the effectiveness of Nova customization for content material moderation, we developed and evaluated three content material moderation fashions utilizing Amazon Nova Lite as our basis. Our strategy used each proprietary inner content material moderation datasets and established public benchmarks, coaching low-rank adaptation (LoRA) fashions with 10,000 fine-tuning cases—augmenting Nova Lite’s intensive base information with specialised content material moderation experience.
Coaching strategy and mannequin variants
We created three mannequin variants from Nova Lite, every optimized for various content material moderation situations that you simply would possibly encounter in your individual implementation:
- NovaTextCM: Skilled on our inner content material moderation dataset, optimized for organization-specific coverage enforcement
- NovaAegis: Tremendous-tuned utilizing Aegis-AI-Content material-Security-2.0 coaching break up, specialised for adversarial immediate detection
- NovaWildguard: Personalized with WildGuardMix coaching break up, designed for content material moderation throughout actual and artificial contents
This multi-variant strategy demonstrates the pliability of Nova customization in adapting to totally different content material moderation taxonomies and coverage frameworks which you can apply to your particular use instances.
Complete benchmark analysis
We evaluated our custom-made fashions in opposition to three established content material moderation benchmarks, every representing totally different features of the content material moderation challenges that you simply would possibly encounter in your individual deployments. In our analysis, we computed F1 scores for binary classification, figuring out whether or not every occasion violates the given coverage or not. The F1 rating gives a balanced measure of precision and recall, which is beneficial for content material moderation the place each false positives (incorrectly flagging secure content material) and false negatives (lacking dangerous content material) carry prices.
- Aegis-AI-Content material-Security-2.0 (2024): A dataset with 2,777 check samples (1,324 secure, 1,453 unsafe) for binary coverage violation classification. This dataset combines artificial LLM-generated and actual prompts from crimson teaming datasets, that includes adversarial prompts designed to check mannequin robustness in opposition to bypass makes an attempt. Obtainable at Aegis-AI-Content-Safety-Dataset-2.0.
- WildGuardMix (2024): An analysis set with 3,408 check samples (2,370 secure, 1,038 unsafe) for binary coverage violation classification. The dataset consists largely of actual prompts with some LLM-generated responses, curated from a number of security datasets and human-labeled for analysis protection. Obtainable at wildguardmix.
- Jigsaw Poisonous Remark (2018): A benchmark with 63,978 check samples (57,888 secure, 6,090 unsafe) for binary poisonous content material classification. This dataset accommodates actual Wikipedia discuss web page feedback and serves as a longtime benchmark within the content material moderation group, offering insights into mannequin efficiency on genuine user-generated content material. Obtainable at jigsaw-toxic-comment.
Efficiency achievements
Our outcomes present that Nova customization gives significant efficiency enhancements throughout all benchmarks which you can anticipate when implementing this answer. The custom-made fashions achieved efficiency ranges similar to giant business language fashions (referred to right here as LLM-A and LLM-B) whereas utilizing solely a fraction of the coaching knowledge and computational sources.
The efficiency knowledge reveals vital F1 rating enhancements throughout all mannequin variants. NovaLite baseline achieved F1 scores of 0.7822 on Aegis, 0.54103 on Jigsaw, and 0.78901 on Wildguard. NovaTextCM improved to 0.8305 (+6.2%) on Aegis, 0.59098 (+9.2%) on Jigsaw, and 0.83871 (+6.3%) on Wildguard. NovaAegis achieved the very best Aegis efficiency at 0.85262 (+9.0%), with scores of 0.55129 on Jigsaw, and 0.81701 on Wildguard. NovaWildguard scored 0.848 on Aegis, 0.56439 on Jigsaw, and 0.82234 (+4.2%) on Wildguard.
As proven within the previous determine, the efficiency positive aspects had been noticed throughout all three variants, with every mannequin displaying enhancements over the baseline Nova Lite throughout a number of analysis standards:
- NovaAegis achieved the very best efficiency on the Aegis benchmark (0.85262), representing a 9.0% enchancment over Nova Lite (0.7822)
- NovaTextCM confirmed constant enhancements throughout all benchmarks: Aegis (0.8305, +6.2%), Jigsaw (0.59098, +9.2%), and WildGuard (0.83871, +6.3%)
- NovaWildguard carried out effectively on JigSaw (0.56439, +2.3%) and WildGuard (0.82234, +4.2%)
- All three custom-made fashions confirmed positive aspects throughout benchmarks in comparison with the baseline Nova Lite
These efficiency enhancements counsel that Nova customization can facilitate significant positive aspects in content material moderation duties by means of focused fine-tuning. The constant enhancements throughout totally different benchmarks point out that custom-made Nova fashions have the potential to exceed the efficiency of economic fashions in specialised functions.
Value-effective large-scale deployment
Past efficiency enhancements, Nova Lite gives vital value benefits for large-scale content material moderation deployments which you can reap the benefits of in your group. With low-cost pricing for each enter and output tokens, Nova Lite gives substantial value benefits in comparison with business basis fashions, delivering value financial savings whereas sustaining aggressive efficiency.

The associated fee-performance evaluation on the WildGuard benchmark reveals compelling benefits for Nova customization which you can understand in your deployments. Your Nova variants obtain superior F1 scores in comparison with business basis fashions whereas working within the low-cost class. For instance, NovaTextCM achieves an F1 rating of 0.83871 on WildGuard whereas working at extraordinarily low value, outperforming LLM-B’s F1 rating of 0.80911 which operates at high-cost pricing—delivering higher efficiency at considerably decrease value.
This value effectivity turns into notably compelling at scale in your group. Whenever you’re moderating giant volumes of content material every day, the pricing benefit of Nova variants within the low-cost class can translate to substantial operational financial savings whereas delivering superior efficiency. The mix of higher accuracy and dramatically decrease prices makes Nova customization an economically engaging answer in your enterprise content material moderation wants.
Key coaching insights
We noticed a number of vital findings for Nova customization that may information your implementation strategy as follows.
- Extra knowledge isn’t essentially higher: We discovered that 10,000 coaching cases represents an acceptable quantity for LoRA adaptation. Once we elevated the coaching knowledge from 10,000 to twenty-eight,000 cases, we noticed proof of overfitting. This discovering means that when utilizing LoRA for fine-tuning, extra coaching cases can harm efficiency, indicating that the pre-existing content material moderation information inbuilt to Nova permits for studying with comparatively small, well-curated datasets.
- Format consistency is vital: Efficiency degraded when coaching and analysis knowledge codecs had been inconsistent. This highlights the significance of sustaining constant knowledge formatting all through the customization pipeline.
- Job-specific adaptation: Every mannequin variant carried out finest on benchmarks most just like their coaching knowledge, confirming that focused customization can ship improved outcomes in comparison with general-purpose approaches.
The best way to practice a mannequin with Nova customization
This part gives a walkthrough for coaching your individual custom-made Nova mannequin for content material moderation. We’ll cowl the info preparation, configuration setup, and coaching execution utilizing SageMaker AI.
Conditions and setup
Earlier than starting the coaching course of, guarantee you’ve gotten adopted the great directions in Tremendous-tuning Amazon Nova fashions utilizing SageMaker coaching jobs. The next examples exhibit the particular configurations we used for our textual content content material moderation fashions.
Coaching knowledge format
Your coaching knowledge have to be formatted as a JSONL file and uploaded to an Amazon Easy Storage Service (Amazon S3) bucket. Every line ought to include an entire dialog following the Amazon Bedrock dialog schema. Right here’s an instance from our coaching dataset:
This format helps be sure that the mannequin learns each the enter construction (content material moderation directions and textual content to judge) and the anticipated output format (structured coverage violation responses).
Coaching configuration
The coaching recipe defines all of the hyperparameters and settings in your Nova customization. Save the next configuration as a YAML file (for instance, text_cm.yaml):
This configuration makes use of LoRA for environment friendly fine-tuning, which considerably reduces coaching time and computational necessities whereas sustaining excessive efficiency.
SageMaker AI coaching job setup
Use the next pocket book code to submit your coaching job to SageMaker AI. This implementation intently follows the pattern pocket book supplied within the official pointers, with particular variations for content material moderation:
Essential configuration notes:
Coaching efficiency
With our configuration utilizing LoRA fine-tuning, coaching 10,000 cases on Nova Lite takes roughly one hour utilizing the previous setup. This environment friendly coaching time demonstrates the ability of parameter-efficient fine-tuning mixed with Nova’s pre-existing information base.The comparatively quick coaching length makes it sensible to iterate in your content material moderation insurance policies and retrain fashions as wanted, enabling fast adaptation to evolving content material challenges.
The best way to infer with a custom-made Nova mannequin
After your Nova mannequin has been efficiently skilled for content material moderation, this part guides you thru the analysis and inference course of. We’ll exhibit how one can benchmark your custom-made mannequin in opposition to established datasets and deploy it for manufacturing use.
Conditions and setup
Earlier than continuing with mannequin analysis, guarantee you’ve gotten adopted the great directions in Evaluating your SageMaker AI-trained mannequin. The next examples present the particular configurations we used for benchmarking our content material moderation fashions in opposition to public datasets.
Check knowledge format
Your analysis knowledge needs to be formatted as a JSONL file and uploaded to an S3 bucket. Every line accommodates a query-response pair that represents the enter immediate and anticipated output for analysis. Right here’s an instance from our check dataset:
This format permits the analysis framework to match your mannequin’s generated responses in opposition to the anticipated floor fact labels, enabling correct efficiency measurement throughout totally different content material moderation benchmarks. Word that the response discipline was not used within the inference however included right here to ship the label within the inference output.
Analysis configuration
The analysis recipe defines the inference parameters and analysis settings in your custom-made Nova mannequin. Save the next configuration as a YAML file (for instance, recipe.yaml):
Key configuration notes:
- The
temperature: 0setting ensures deterministic outputs, which is essential for benchmarking
SageMaker analysis job setup
Use the next pocket book code to submit your analysis job to SageMaker. You need to use this setup to benchmark your custom-made mannequin in opposition to the identical datasets utilized in our efficiency analysis:
Essential setup notes:
Clear up
To keep away from incurring extra prices after following together with this submit, you must clear up the AWS sources that had been created in the course of the coaching and deployment course of. Right here’s how one can systematically take away these sources:
Cease and delete coaching jobs
After your coaching job finishes, you’ll be able to clear up your coaching job utilizing the next AWS Command Line Interface (AWS CLI) command.
aws sagemaker list-training-jobsaws sagemaker stop-training-job --training-job-name <title> # provided that nonetheless working
Delete endpoints, endpoint configs, fashions
These are the massive value drivers if left working. It is best to delete them on this particular order:aws sagemaker delete-endpoint --endpoint-name <endpoint-name>
aws sagemaker delete-endpoint-config --endpoint-config-name <endpoint-config-name>
aws sagemaker delete-model --model-name <model-name>
Delete in that order:
- endpoint
- config
- mannequin.
Clear up storage and artifacts
Coaching output and checkpoints are saved in Amazon S3. Delete them if not wanted:
aws s3 rm s3://your-bucket-name/path/ --recursive
Extra storage concerns in your cleanup:
- FSx for Lustre (in the event you hooked up it for coaching or HyperPod): delete the file system within the FSx console
- EBS volumes (in the event you spun up notebooks or clusters with hooked up volumes): verify to verify that they aren’t lingering
Take away supporting sources
Should you constructed customized Docker photographs for coaching or inference, delete them:
aws ecr delete-repository --repository-name <title> --force
Different supporting sources to contemplate:
- CloudWatch logs: These don’t normally value a lot, however you’ll be able to clear them if desired
- IAM roles: Should you created momentary roles for jobs, detach or delete insurance policies if unused
Should you used HyperPod
For HyperPod deployments, you also needs to:
- Delete the HyperPod cluster (to the SageMaker console and select HyperPod)
- Take away related VPC endpoints, safety teams, and subnets if devoted
- Delete coaching job sources tied to HyperPod (identical because the earlier: endpoints, configs, fashions, FSx, and so forth)
Analysis efficiency and outcomes
With this analysis setup, processing 100,000 check cases utilizing the skilled Nova Lite mannequin takes roughly one hour utilizing a single p5.48xlarge occasion. This environment friendly inference time makes it sensible to frequently consider your mannequin’s efficiency as you iterate on coaching knowledge or regulate moderation insurance policies.
Subsequent steps: Deploying your custom-made Nova mannequin
Able to deploy your custom-made Nova mannequin for manufacturing content material moderation? Right here’s how one can deploy your mannequin utilizing Amazon Bedrock for on-demand inference:
Customized mannequin deployment workflow
After you’ve skilled or fine-tuned your Nova mannequin by means of SageMaker utilizing PEFT and LoRA methods as demonstrated on this submit, you’ll be able to deploy it in Amazon Bedrock for inference. The deployment course of follows this workflow:
- Create your custom-made mannequin: Full the Nova customization coaching course of utilizing SageMaker together with your content material moderation dataset
- Deploy utilizing Bedrock: Arrange a customized mannequin deployment in Amazon Bedrock
- Use for inference: Use the deployment Amazon Useful resource Title (ARN) because the mannequin ID for inference by means of the console, APIs, or SDKs
On-demand inference necessities
For on-demand (OD) inference deployment, guarantee your setup meets these necessities:
- Coaching technique: Should you used SageMaker customization, on-demand inference is simply supported for Parameter-Environment friendly Tremendous-Tuned (PEFT) fashions, together with Direct Desire Optimization, when hosted in Amazon Bedrock.
- Deployment platform: Your custom-made mannequin have to be hosted in Amazon Bedrock to make use of on-demand inference capabilities.
Implementation concerns
When deploying your custom-made Nova mannequin for content material moderation, take into account these elements:
- Scaling technique: Use the managed infrastructure of Amazon Bedrock to robotically scale your content material moderation capability primarily based on demand.
- Value optimization: Reap the benefits of on-demand pricing to pay just for the inference requests you make, optimizing prices for variable content material moderation workloads.
- Integration strategy: Use the deployment ARN to combine your custom-made mannequin into current content material moderation workflows and functions.
Conclusion
The quick inference velocity of Nova Lite—processing 100,000 cases per hour utilizing a single P5 occasion—gives vital benefits for large-scale content material moderation deployments. With this throughput, you’ll be able to average excessive volumes of user-generated content material in real-time, making Nova customization notably well-suited for platforms with hundreds of thousands of every day posts, feedback, or messages that require quick coverage enforcement.
With the deployment strategy and subsequent steps described on this submit, you’ll be able to seamlessly combine your custom-made Nova mannequin into manufacturing content material moderation programs, benefiting from each the efficiency enhancements demonstrated in our analysis and the managed infrastructure of Amazon Bedrock for dependable, scalable inference.
In regards to the authors
Yooju Shin is an Utilized Scientist on Amazon’s AGI Foundations RAI workforce. He focuses on auto-prompting for RAI coaching dataset and supervised fine-tuning (SFT) of multimodal fashions. He accomplished his Ph.D. from KAIST in 2023.
Chentao Ye is a Senior Utilized Scientist within the Amazon AGI Foundations RAI workforce, the place he leads key initiatives in post-training recipes and multimodal giant language fashions. His work focuses notably on RAI alignment. He brings deep experience in Generative AI, Multimodal AI, and Accountable AI.
Fan Yang is a Senior Utilized Scientist on the Amazon AGI Foundations RAI workforce, the place he develops multimodal observers for accountable AI programs. He obtained a PhD in Pc Science from the College of Houston in 2020 with analysis centered on false info detection. Since becoming a member of Amazon, he has specialised in constructing and advancing multimodal fashions.
Weitong Ruan is an Utilized Science Manger on the Amazon AGI Foundations RAI workforce, the place he leads the event of RAI programs for Nova and bettering Nova’s RAI efficiency throughout SFT. Earlier than becoming a member of Amazon, he accomplished his Ph.D. in Electrical Engineering with specialization in Machine Studying from the Tufts College in Aug 2018.
Rahul Gupta is a senior science supervisor on the Amazon Synthetic Common Intelligence workforce heading initiatives on Accountable AI. Since becoming a member of Amazon, he has centered on designing NLU fashions for scalability and velocity. A few of his newer analysis focuses on Accountable AI with emphasis on privateness preserving methods, equity and federated studying. He acquired his PhD from the College of Southern California in 2016 on deciphering non-verbal communications in human interplay. He has printed a number of papers in avenues reminiscent of EMNLP, ACL, NAACL, ACM Facct, IEEE-Transactions of affective computing, IEEE-Spoken language Understanding workshop, ICASSP, Interspeech and Elselvier laptop speech and language journal. He’s additionally co-inventor on over twenty 5 patented/patent-pending applied sciences at Amazon.

