AI for content moderation
AI content moderation with a model trained on your own policy and labels. It runs at volume in your environment, with people on the hard calls.
Updated
AI content moderation means using a language model to read posts, comments, messages or captions, then decide whether to allow, remove, label or escalate each one. A model trained for that one decision can run on every item in a high-volume queue. Its cost and speed depend on your traffic and the length of your policy, so measure both on your own queue before you commit.
The hard part is not the demo. It is keeping decisions consistent across a large queue, across languages, and after the policy changes.
What one decision looks like
A moderation call is a small, fixed task. The model receives the item, the policy area it is checked against, and sometimes context such as the language or how many users reported it. It returns one label from a closed set. Keep that set small and tied to the wording of your policy document, so a reviewer can trace any label back to a rule.
The cases that decide whether the system works are rarely the obvious ones:
- A slur reclaimed inside a community, and the same slur used as an attack.
- A user quoting abuse they received so a moderator can see it, with no endorsement.
- Sarcasm in a gaming chat, where an insult is part of a friendly exchange.
- A caption that is harmless alone but harmful next to the image it describes.
- A message that mixes two languages, or uses a dialect your reviewers read easily and your training data barely covers.
Collect these first. They are where reviewers disagree, and where a model needs labeled examples most.
Measure on your own queue
Moderation accuracy is not one number. Track three things separately:
- Precision on removals: of the items removed, how many should have been removed.
- Recall on harmful content: of the harmful items, how many were caught.
- Agreement with reviewers on borderline cases, including how often reviewers disagree with each other.
Build the test set from past decisions, and include overturned appeals. Freeze it, score the current model on it first, and replace that model only if the new one wins on the same set. Keep the frozen set out of training.
Split by account or thread, not by row. If one user’s posts appear in both training and test data, the model learns that user’s habits, and the score looks better than production will be.
Moderation puts each post under one label from a fixed policy list, and our nearest public result measures that same skill on different text. Across the 77 intents of Banking77’s 1,000 test messages, our fine-tuned model got 93.3% right and Claude Opus 5.5 got 87.6%, a gap of 5.7 points. Bank customer messages are not user posts and bank intents are not your policy, so let your frozen test set decide the switch. See Full results and the LLM evaluation guide for how to build the set.
Set thresholds by policy area
One threshold across all policies is a common mistake. A missed spam post and a missed threat carry different costs, so each policy area needs its own cut points. Set them from the test set, and recheck them whenever the policy changes.
A workable design has three bands:
- High confidence in either direction: the model acts alone, if your policy allows it.
- The middle band: the item goes to a reviewer, ordered by how close its score sits to the cut point.
- Irreversible actions such as permanent bans: a person decides, whatever the score.
Reviewer decisions from the middle band are the most useful training data you will collect, because they are the cases the model was unsure about. Store each one with its label, policy version and date. A wider middle band costs reviewer hours. A narrower one means more automatic decisions, and more errors that nobody sees.
Keep the data in your environment
Posts, direct messages and abuse reports often cannot leave your environment. An open-weight model that runs in your own cloud account or on-premises keeps that data under your controls. Own Weights fine-tunes the model for your policy, tests it against the current model on your data, and serves it where you choose. The customer owns the weights.
This does not make moderation compliant with any law or platform rule. Those obligations stay with your team, and the model runs under your own access controls, logging and retention settings. For where prompts go in general, read LLM data privacy.
Common mistakes
- Changing the policy without rerunning the frozen set. The old scores no longer describe the rules.
- Splitting rows at random, which lets the same accounts leak into the test set.
- Reporting one accuracy figure when results differ by language. Break scores down by language and by policy area.
- Training on decisions that were reversed on appeal without asking why. Sometimes the policy was unclear, and the model was right to be unsure.
- Resending a long policy prompt with every item. A trained model does not need the policy text in each request. If you keep a prompt, see prompt caching for when it helps.
- Judging the system on one month. Queues shift with news events and new abuse patterns, so score the frozen set and a fresh sample each month.
Checklist before you switch
- Pick one policy area, such as spam or a single harm type.
- Pull past decisions for it, including overturned appeals and the borderline cases reviewers argued about.
- Freeze a test set, split by account or thread.
- Score the current model and record results per language.
- Train the candidate on training data only, then score it on the same frozen set.
- Switch only if the candidate wins on removal precision and harmful recall without lowering reviewer agreement.
- Log the model version, threshold and policy version, including failed runs.
- Keep the tested version pinned. A model you host yourself does not change under you, which matters when an API provider retires a model and enforcement rates shift. See model retirements and what they do to your app.
- Rerun the frozen set whenever the policy, labels or threshold change.
Run the free AI cost audit on the repository that makes your moderation calls, or book a call and we will go through the numbers with you.
Questions
Can AI moderate content without sending user posts to a third party?
Yes, if the model runs in your own environment. An open-weight model served in your cloud account or on-premises keeps posts on infrastructure you control. Whether that meets your legal and platform obligations is a question for your own compliance team.
How do I know if an AI moderation model is accurate enough?
Build a test set from past decisions, including the borderline cases reviewers argued about. Score the current model on that set before you change anything, and switch only if the new model wins on the same set. Keep the test set fixed so the scores stay comparable over time.
Should AI make final removal decisions?
For clear cases in either direction, a trained model can act alone if your policy allows it. Anything irreversible, such as a permanent ban, should go to a person first. Reviewer decisions on those cases can later become training data for the next version.